/* ======================================= */
/* IMPORT CZCIONEK (Cinzel - Tytuły, Noto Sans - Treść) */
/* ======================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Noto+Sans:wght@300;400;700&display=swap');

/* ======================================= */
/* ZMIENNE GLOBALNE (KOLORY I FONT) */
/* ======================================= */
:root {
    --color-dark: #07090b; 
    --color-accent: #00FFEE; /* Turkus */
    --color-light: #f4f4f4; 
    --color-gray: #aaaaaa;
    --font-primary: 'Noto Sans', sans-serif; 
    --font-secondary: 'Cinzel', serif; 
    --glow-shadow: 0 0 12px rgba(0, 255, 238, 0.7), 0 0 25px rgba(0, 255, 238, 0.5); /* Turkusowy Glow */
}

/* ======================================= */
/* RESETY I PODSTAWOWE STYLE */
/* ======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark);
    color: var(--color-light);
    line-height: 1.7;
    scroll-behavior: smooth;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
    color: var(--color-light);
    text-shadow: 0 0 8px var(--color-accent);
}

h1, h2, h3 {
    font-family: var(--font-secondary);
    color: var(--color-light);
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 5px;
    color: var(--color-accent); 
    text-shadow: var(--glow-shadow); 
}

.subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--color-gray);
}
html {
    /* Wartość powinna być nieco większa niż wysokość paska NAV */
    scroll-padding-top: 90px; 
    scroll-behavior: smooth; /* Gwarantuje płynne przewijanie */
}
/* ======================================= */
/* PRZYCISKI (CTA) */
/* ======================================= */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--color-accent);
    color: var(--color-dark); 
    border: 2px solid var(--color-accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 238, 0.4); 
}

.cta-button:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
    transform: translateY(-2px);
    border-color: var(--color-light);
    box-shadow: 0 0 15px var(--color-accent), 0 0 5px var(--color-light); 
}

.button-secondary {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    margin-top: 15px;
    border-radius: 3px;
    transition: background-color 0.3s, text-shadow 0.3s;
}

.button-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
    text-shadow: none;
}

/* ======================================= */
/* 1. NAWIGACJA (NAV) */
/* ======================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background: rgba(7, 9, 11, 0.98); 
    z-index: 1000;
    border-bottom: 2px solid var(--color-accent); 
    animation: pulse-glow 4s infinite alternate; /* ANIMACJA PASKIEM */
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem; 
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 5px;
    text-shadow: 0 0 5px rgba(0, 255, 238, 0.8);
    display: flex; 
    align-items: center;
}

/* Styl dla symboli skrzydeł */
.logo span {
    font-size: 1.5em; 
    margin: 0 10px;
    color: var(--color-light); 
    text-shadow: 0 0 8px var(--color-accent);
    animation: flicker 6s infinite ease-in-out; /* ANIMACJA SKRZYDEŁ */
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-light);
    font-family: var(--font-secondary); /* UŻYTO CINZEL DLA LINKÓW */
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--color-accent);
    text-shadow: 0 0 8px var(--color-accent);
}

/* ======================================= */
/* 1. SEKCJA HERO (Tło Mistyczny Las/Bastion) */
/* ======================================= */
.full-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* NOWE: Zawartość leci na ŚRODEK */
    position: relative;
    text-align: center; /* NOWE: Tekst w kontenerze wyśrodkowany */
    padding-top: 100px;
    padding-right: 0; /* Usuwamy margines prawy */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* POPRAWIONA ŚCIEŻKA DLA TWOJEJ GRAFIKI */
    background-image: url('img/bastion_hero.png'); 
    background-size: cover;
    background-position: center;
    /* ROZJAŚNIENIE TŁA */
    opacity: 0.25; 
    filter: brightness(0.8) sepia(0.2) hue-rotate(240deg); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 1000px; /* Zwiększamy, żeby tytuły mogły być szerokie */
}

.hero-content h1 {
    font-size: 6rem; 
    margin: 0;
    letter-spacing: 15px; 
    color: var(--color-accent); 
    text-shadow: var(--glow-shadow); 
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--color-light);
    letter-spacing: 5px;
}

.hero-content .tagline {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto; 
    margin-right: auto; /* NOWE: Wyśrodkowanie bloku */
    font-family: var(--font-secondary); 
    text-shadow: 0 0 5px rgba(244, 244, 244, 0.2);
    text-align: center; /* NOWE: Wyśrodkowanie samego tekstu */
}

/* ======================================= */
/* 2. SEKCJA OPIS */
/* ======================================= */
.description-content {
    display: flex;
    gap: 60px; 
    align-items: flex-start;
    text-align: left;
}

.cover-image {
    flex-shrink: 0;
    width: 350px; 
    height: auto;
    border: 4px solid var(--color-accent); 
    box-shadow: var(--glow-shadow); 
}

.text-block p {
    margin-bottom: 18px;
    color: var(--color-gray);
    font-size: 1.1rem;
}

.text-block .excerpt {
    font-style: italic;
    color: var(--color-light);
    font-size: 1.25rem;
    padding: 10px 0;
}

/* ======================================= */
/* 3. SEKCJA GALERIA */
/* ======================================= */
.dark-section {
    background-color: #141418;
    border-top: 2px solid rgba(0, 255, 238, 0.2);
    border-bottom: 2px solid rgba(0, 255, 238, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; 
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7); /* Zmieniony, ciemniejszy cień bazowy */
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out; /* Płynniejsza tranzycja */
}
.gallery-item:hover {
    /* Lekkie podniesienie dla efektu "odrywania" od tła */
    transform: translateY(-5px) scale(1.03); 
    
    /* EFEKT PŁOMIENIA: Skupienie cienia na dole (10px w pionie) 
       i dodanie mocnego turkusowego glowu */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7), /* Ciemny cień na dole */
                0 15px 30px rgba(0, 0, 0, 0.5), /* Większy cień na dole */
                0 10px 50px -10px var(--color-accent); /* Turkusowy blask/płomień skupiony na dole */
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1/1; 
    object-fit: cover;
}

/* ======================================= */
/* 4. SEKCJA FRAGMENTY */
/* ======================================= */
.media-container {
    display: flex;
    justify-content: space-around;
    gap: 40px;
}

.media-block {
    flex-basis: 48%;
    padding: 30px;
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    background: #0d0e11;
    box-shadow: 0 0 10px rgba(0, 255, 238, 0.3);
}

.media-block h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: var(--color-accent);
    text-shadow: 0 0 5px rgba(0, 255, 238, 0.7);
}

.audio-player {
    width: 100%;
    margin-top: 20px;
    filter: sepia(0.5) saturate(0.5) brightness(1.2); 
}

.text-fragment-box {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 15px;
    border-left: 4px solid var(--color-accent); 
    padding-left: 20px;
    background-color: #101013;
    border-radius: 0 5px 5px 0;
}

.fragment-text {
    white-space: pre-wrap;
    font-size: 1rem;
    color: var(--color-light);
}

/* ======================================= */
/* 5. SEKCJA SKLEP (CTA) */
/* ======================================= */
.cta-section {
    text-align: center;
    padding: 120px 0; 
}

.primary-cta {
    font-size: 1.6rem;
    padding: 25px 50px;
    margin: 40px 0;
    border-width: 4px;
    box-shadow: var(--glow-shadow);
}

/* ======================================= */
/* 6. SEKCJA KONTAKT */
/* ======================================= */
.contact-form-box {
    max-width: 700px;
    margin: 30px auto;
    padding: 40px;
    background: #141418;
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 238, 0.3);
}

.contact-form-box input, .contact-form-box textarea {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #333;
    background-color: #0c0d10;
    color: var(--color-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form-box input:focus, .contact-form-box textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 8px rgba(0, 255, 238, 0.7);
    outline: none;
}

.contact-form-box textarea {
    resize: vertical;
}

.social-links {
    margin-top: 50px;
    text-align: center;
    font-size: 1.2rem;
}

.social-links p {
    margin-bottom: 15px;
    font-weight: 700;
}

.social-links a {
    margin: 0 10px;
    text-transform: capitalize;
}

/* ======================================= */
/* STOPKA */
/* ======================================= */
footer {
    text-align: center;
    padding: 25px 0;
    background-color: #050608;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: var(--color-gray);
    letter-spacing: 1px;
}

/* ======================================= */
/* ANIMACJE KEYFRAMES */
/* ======================================= */

/* Definicja animacji dla świecenia paska */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 238, 0.5), 0 0 0 rgba(0, 255, 238, 0.0);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 255, 238, 0.8), 0 0 30px rgba(0, 255, 238, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 255, 238, 0.5), 0 0 0 rgba(0, 255, 238, 0.0);
    }
}

/* Definicja animacji dla subtelnego migotania skrzydeł/symboli */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    5% { opacity: 0.95; }
    10% { opacity: 1; }
    30% { opacity: 0.9; }
    35% { opacity: 1; }
}


/* ======================================= */
/* RESPONSYWNOŚĆ */
/* ======================================= */
@media (max-width: 1000px) {
    .hero-content h1 {
        font-size: 5rem;
    }
}

@media (max-width: 800px) {
    .description-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cover-image {
        width: 80%;
        max-width: 350px;
        margin-bottom: 30px;
    }

    .media-container {
        flex-direction: column;
        gap: 30px;
    }

    .media-block {
        flex-basis: 100%;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        padding: 15px 20px;
    }
    .nav-links {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links li {
        margin: 5px 10px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
        letter-spacing: 8px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}
/* ======================================= */
/* NOWA SEKCJA WIDEO (#video) */
/* ======================================= */

.video-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.video-item {
    background-color: var(--color-dark);
    box-shadow: 0 0 10px rgba(0, 255, 238, 0.4);
    border: 1px solid var(--color-accent);
    border-radius: 5px;
    overflow: hidden;
}

.video-item video {
    width: 100%;
    height: auto;
    display: block;
    /* Klucz do proporcji 16:9 */
    aspect-ratio: 16 / 9; 
}

.main-video {
    flex: 1;
    min-width: 50%;
}


/* Wideo CTA */
.video-cta {
    text-align: center;
}

/* Korekta responsywności dla wideo */
@media (max-width: 900px) {
    .video-grid {
        flex-direction: column;
        gap: 30px;
    }
    .main-video {
        min-width: 100%;
    }
}