/* Zmienne i Reset */
:root {
    --baltic-blue: #003A6D;
    --baltic-red: #FF0039;
    --baltic-dark: #2B2B2B;
    --baltic-light: #F8F9FA;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-700: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--baltic-light);
    color: var(--baltic-dark);
    line-height: 1.5;
}

section[id] {
    scroll-margin-top: 12vh; 
    height: 88vh;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

[x-cloak] { display: none !important; }

/* Nawigacja */
nav {
    position: fixed;
    width: 100%;
    z-index: 50;
    transition: all 0.5s ease;
    border-bottom: 1px solid transparent;
}

.nav-transparent {
    background: transparent;
}

.nav-scrolled {
    padding: 0rem;
    background: white;
    border-color: #e2e8f0;
    opacity: 1;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    margin-right: auto; 
}

.nav-logo {
    height: 12vh; 
    width: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease-in-out;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    width: 100%;
}
.nav-transparent .logo-text { color: white; }

.nav-scrolled .logo-text { color: var(--baltic-blue); }

.red { color: var(--baltic-red); }

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}

.nav-transparent .nav-links a { color: white; }
.nav-scrolled .nav-links a { color: var(--baltic-dark); }

.nav-links a:hover { color: var(--baltic-red); }

/* Hero Section */
section.hero {
    position: relative;
    height: 88vh;
    display: flex;
    align-items: center;
    background: var(--baltic-blue);
    overflow: hidden;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.6;
}

.hero-overlay img {
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 10;
}

.accent-line {
    width: 80px;
    height: 4px;
    background: var(--baltic-red);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.outline-text {
    color: var(--baltic-red);
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

/* Przyciski */
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 4%;
}

.btn-primary {
    background: var(--baltic-red);
    color: white;
}

.btn-primary:hover {
    background: white;
    color: var(--baltic-blue);
}

.btn-outline {
    border-color: white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--baltic-blue);
}

/* Statystyki */
.stats-bar {
    background: var(--baltic-dark);
    padding: 2rem 0;
    height: 12vh;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
    border-left: 1px solid var(--slate-700);
    padding-left: 1.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    font-style: italic;
    color: white;
}

.stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
}

/* Sekcja Rakiet */
.rockets-section {
    padding: 6rem 0;
    height: 88vh;
}

.bg-mesh {
    background-color: #f8f9fa;
    background-image: radial-gradient(#003a6d12 1px, transparent 1px);
    background-size: 40px 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    color: var(--baltic-blue);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--slate-500);
    max-width: 600px;
    margin-bottom: 4rem;
}

/* The Section Container */
.rockets-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    overflow: hidden;
}

/* The Horizontal Grid */
.rockets-grid {
    display: flex;
    gap: 2rem; /* The gap between cards */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 2rem;
    height: 100%;
    scrollbar-width: none; /* Hide for Firefox */
}

.rockets-grid::-webkit-scrollbar {
    display: none; /* Hide for Chrome/Safari */
}

/* The Rocket Card */
.rocket-card {
    /* Calculation: (100% / 2 cards) - (half of the total gap) */
    flex: 0 0 calc(50% - 1rem); 
    height: 100%; /* Fill the 80vh container */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    /* Visual styling to ensure content fits */
    min-width: 400px;
    padding: 2rem;
    box-sizing: border-box; 
}


.card-img{
    max-width: 80%;
    align-self: center;
    border-radius: 2%;
}


/* Mobile Adjustment: Show only 1.2 cards so user knows to scroll */
@media (max-width: 300px) {
    .rocket-card {
        flex: 0 0 85%;
    }
    .rockets-section {
        height: auto; /* Let it grow naturally on small phones */
        min-height: 80vh;
    }
}

.blue-border { border-color: var(--baltic-blue); }
.red-border { border-color: var(--baltic-red); }

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-header img {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 4px;
}

.badge {
    padding: 0.25rem 0.75rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.badge-blue { background: var(--baltic-blue); }
.badge-red { background: var(--baltic-red); }
.badge-grey { background: var(--baltic-dark); }

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.specs-grid label {
    font-size: 10px;
    color: var(--slate-400);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

.specs-grid p { font-weight: 700; }

.btn-outline-dark {
    width: 100%;
    justify-content: center;
    border-color: var(--baltic-blue);
    color: var(--baltic-blue);
}

.btn-outline-red {
    width: 100%;
    justify-content: center;
    border-color: var(--baltic-red);
    color: var(--baltic-red);
}

/* Stopka */
.footer {
    background: var(--baltic-dark);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer h4 {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    font-size: 9px;
    color: var(--slate-500);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* Sekcja Sponsorów */
.sponsors-panel {
    background: white;
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
    /* Ensure the panel can expand but stays structural */
    display: flex;
    flex-direction: column;
}

.sponsors-panel .container {
    display: flex;
    flex-direction: column;
    min-height: 87vh; /* Or a specific height if you want the section larger */
    height: 87vh;
}

.sponsors-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.sub-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--slate-400);
    margin-bottom: 0.5rem;
}

.small-line {
    width: 30px;
    height: 2px;
    background: var(--baltic-red);
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
    justify-items: center;
    /* This pushes the CTA down by taking up all available middle space */
    flex-grow: 1; 
    margin-bottom: 3rem; 
}

@media (min-width: 768px) {
    .sponsors-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 1;
    transition: all 0.4s ease;
}

.sponsor-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
}

.sponsor-item img {
    max-width: 16vw;
    height: auto;
}

.sponsor-role {
    font-size: 9px;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sponsor-cta {
    /* Push to the absolute bottom of the flex container */
    margin-top: auto; 
    margin-bottom: 12vh;
    padding-top: 2rem;
    padding-bottom: 1rem; 
    text-align: center;
    width: 100%;
}

.sponsor-cta p {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-500);
}

.sponsor-cta a {
    color: var(--baltic-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.sponsor-cta a:hover {
    color: var(--baltic-red);
}

.links-subgrid {
    display: flex;
    flex-direction: column;
    gap: 8px; 
}

.links-subgrid a {
    text-decoration: none;
    color: inherit;
}
.link{
    text-decoration: none; 
    color: white;
}

.description{
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

.specs-grid-2 {
    gap: 1.5rem;
    margin-bottom: 4.5rem;
}

.specs-grid-2 label {
    font-size: 10px;
    color: var(--slate-400);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

.specs-grid-2 p { font-weight: 700; }