/* Definicja kolorów z logo */
:root {
    --color-ice-white: #FFFFFF;
    --color-iceberg-blue: #3F51B5; 
    --color-dark-deep: #1A237E;    
    --color-bg-light: #F4F7F9;     
    --nav-height: 70px; /* Stała wysokość nawigacji dla precyzyjnego scrolla */
}

/* Globalne ustawienia płynnego przewijania */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg-light);
    color: var(--color-dark-deep);
    line-height: 1.6;
    overflow-x: hidden;
    /* USUNIĘTO: height: 100% oraz overflow-y: overlay (powodują problemy ze snapowaniem) */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Nawigacja --- */
.navbar {
background-color: var(--color-iceberg-blue);
    color: white;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    
    /* Stan początkowy: ukryty */
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Płynne wejście */
    pointer-events: none; /* Blokuje klikanie gdy niewidoczne */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar.scrolled {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.logo-text {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffeb3b; /* Kolor z animacji pulsu dla spójności */
}

.hero, .main-content, .footer {
    scroll-snap-align: start;
    scroll-snap-stop: normal; /* Zmienione z "always" na "normal", by scroll myszką był luźniejszy */
}

/* --- Sekcja Hero (Pełny Ekran) --- */
.hero {
    height: 100vh;
    background: radial-gradient(circle at center, var(--color-iceberg-blue) 0%, var(--color-dark-deep) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative; /* Przydatne dla scroll-hint */
}

/* Kontener wewnątrz hero dla dużego logo */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1.2s ease-out;
}

.hero-logo-big {
    width: 400px; /* Duże logo na start */
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    color : var(--color-ice-white);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    color : var(--color-ice-white);
}

.status-box {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 700;
}

/* --- Treść Główna --- */
.main-content {
    /* Zwiększamy padding na dole (np. do 80px), aby przyklejona stopka nie zasłoniła treści na samym dole */
    padding: 100px 20px 80px 20px; 
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-margin-top: var(--nav-height); 
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 5px solid var(--color-iceberg-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--color-iceberg-blue);
}

/* --- Stopka --- */
.footer {
    background-color: var(--color-dark-deep);
    color: white;
    text-align: center;
    
    /* Sprawiamy, że stopka jest węższa (mniejszy padding) i mniejsza czcionka */
    padding: 15px 0;
    font-size: 0.85rem;
    
    /* Przyklejamy stopkę do dołu ekranu */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    /* Stan początkowy: ukryta (zjechana w dół) */
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Płynne wejście, jak w navbarze */
    pointer-events: none;
}

/* Klasa aktywująca widoczność (dodawana przez JS) */
.footer.scrolled {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Animacje --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ffeb3b;
    border-radius: 50%;
    margin-right: 10px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- Responsywność --- */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 10px 0;
    }
    .navbar .container {
        flex-direction: column;
        gap: 10px;
    }
    .nav-links a {
        margin: 0 10px;
        font-size: 0.9rem;
    }
    .hero-logo-big {
        width: 180px;
    }
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}