@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');

:root{
    --color1: white;
    --color2: #080903;
    --color3: #7fffd4;
    --color4: #c5a880;
    --color5: #222525;
}

/* ================= RESET ================= */

*{
    box-sizing: border-box;
    transition: 500ms;
}

html{
    scroll-behavior: smooth;
    font-family: "Michroma";
    font-style: normal;
    letter-spacing: 25%;
}

body{
    background-color: var(--color2);
    background-image: url('../img/background.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode: color-dodge;

    color: var(--color1);
    padding-top: 80px;
}

/* ================= GLOBAL ================= */

a{
    text-decoration: none;
    color: inherit;
}

p{
    line-height: 200%;
    font-size: 12px;
    letter-spacing: 15%;
}

img{
    max-width: 100%;
    display: block;
}

h1{
    color: var(--color3);
    letter-spacing: 25%;
    font-size: 38px;
}

h2{
    color: var(--color4);
    letter-spacing: 25%;
    font-size: 24px;
}

h3{
    letter-spacing: 25%;
    font-size: 25px;
}
/* ================= SECTIONS ================= */

section{
    padding: 40px;
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 50px;
}
.zawartosc{
    max-width: 1400px;
    width: 100%;
}

/* ================= HEADER ================= */

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color2);
    padding: 20px 0;
}

header .zawartosc{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header nav{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

header .logo1 a{
    text-decoration: none;
    letter-spacing: 150%;
    font-size: 36px;
    transition: all 0.3s ease;
}

header .logo1 a:hover{
    text-shadow: 0 0 10px white;
}

header .nav-link{
    font-size: 13px;
}

header .nav-link:hover{
    color: var(--color3);
    text-shadow:
        0 0 5px rgba(127,255,212,0.6),
        0 0 15px rgba(127,255,212,0.4),
        0 0 30px rgba(127,255,212,0.2);
    transform: scale(1.05);
}

/* ================= HERO ================= */

#sekcja1 h3{
    position: relative;
    display: inline-block;

    color: white;

    animation: h3GlitchCore 2.8s infinite;

    /* 🔥 WIDOCZNY GLOW (CRT / Alien HUD) */
    text-shadow:
        0 0 4px rgba(127,255,212,0.25),
        0 0 10px rgba(127,255,212,0.18),
        0 0 18px rgba(0,255,200,0.08);
}

/* =========================
   GLITCH CORE (widoczny)
========================= */

@keyframes h3GlitchCore {

    0%, 86%, 100% {
        transform: translate(0);
        text-shadow:
            0 0 4px rgba(127,255,212,0.25),
            0 0 10px rgba(127,255,212,0.18),
            0 0 18px rgba(0,255,200,0.08);
    }

    /* 🔴 moment awarii */
    87% {
        transform: translate(-2px, 0);
        text-shadow:
            2px 0 rgba(127,255,212,0.8),
            -2px 0 rgba(255,0,0,0.6),
            0 0 12px rgba(127,255,212,0.4);
    }

    88% {
        transform: translate(2px, 0);
        text-shadow:
            -2px 0 rgba(127,255,212,0.7),
            2px 0 rgba(255,0,0,0.5),
            0 0 18px rgba(255,255,255,0.15);
    }

    89% {
        transform: translate(-1px, 0);
    }

    90% {
        transform: translate(1px, 0);
    }

    91% {
        transform: translate(0);
    }

    /* 🔵 pulse “powrót sygnału” */
    92% {
        text-shadow:
            0 0 8px rgba(127,255,212,0.35),
            0 0 20px rgba(127,255,212,0.25),
            0 0 30px rgba(0,255,200,0.1);
    }

    94% {
        text-shadow:
            0 0 4px rgba(127,255,212,0.25),
            0 0 10px rgba(127,255,212,0.18),
            0 0 18px rgba(0,255,200,0.08);
    }
}
#sekcja1{
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    text-align: center;
}

#sekcja1 .hero-bg{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    mix-blend-mode: lighten;
    opacity: 0.4;
    animation: drift 8s ease-in-out infinite;
}

@keyframes drift{
    0%,100%{ transform: translate(-50%, -50%); }
    50%{ transform: translate(-50%, calc(-50% - 15px)); }
}

/* ================= SEKCJA 2 ================= */

#sekcja2 .zawartosc{
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#sekcja2 article{
    flex: 1 1 200px;
}

#sekcja2 article img{
    filter:
        drop-shadow(0 0 10px rgba(127,255,212,0.15))
        drop-shadow(0 0 25px rgba(127,255,212,0.08));
    animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}
#sekcja2 article h1{
    margin-bottom: 20px;
}

#sekcja2 article p{
    margin-bottom: 40px;
}
#sekcja2 article h2{
    margin-bottom: 20px;
}
/* ================= SEKCJA 3 ================= */

#sekcja3 .zawartosc{
    width: 100%;
}

#sekcja3 h1{
    text-align: center;
    margin-bottom: 40px;
}

#sekcja3 .xeno-scroll{
    height: 700px;
    overflow-y: auto;
    padding: 40px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--color5);
}

/* stage */
#sekcja3 .stage{
    display: flex;
    align-items: center;
    height: 350px;
    gap: 60px;
    padding: 30px;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color5);
}

#sekcja3 .stage.reverse{
    flex-direction: row-reverse;
    text-align: right;
}

#sekcja3 .stage img{
    width: 250px;
    height: 250px;
    object-fit: contain;
}

#sekcja3 .stage .opis{
    flex: 1;
}

#sekcja3 .stage .opis h2{
    margin-bottom: 20px;
}
/* Scrollbar */

#sekcja3 .xeno-scroll::-webkit-scrollbar {
    width: 8px;
}

#sekcja3 .xeno-scroll::-webkit-scrollbar-track {
    background: transparent;
}

#sekcja3 .xeno-scroll::-webkit-scrollbar-thumb {
    background: rgba(127,255,212,0.5);
    border-radius: 20px;
}

#sekcja3 .xeno-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(127,255,212,0.8);
}
/* ================= SEKCJA 4 ================= */

#sekcja4 .zawartosc{
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#sekcja4 article{
    flex: 1 1 500px;
}

#sekcja4 article img{
    filter:
        drop-shadow(0 0 10px rgba(127,255,212,0.15))
        drop-shadow(0 0 25px rgba(127,255,212,0.08));
}

#sekcja4 article h1{
    margin-bottom: 20px;
}

#sekcja4 article p{
    margin-bottom: 40px;
}
#sekcja4 article h2{
    margin-bottom: 20px;
}
/* ================= SEKCJA 5 ================= */

#sekcja5 .zawartosc{
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    align-items: center;
}

#sekcja5 article{
    flex: 1 1 500px;
    text-align: right;
}

#sekcja5 article h1{
    margin-bottom: 20px;
}

#sekcja5 article p{
    margin-bottom: 40px;
}
#sekcja5 article h2{
    margin-bottom: 20px;
}
#sekcja5 article img{
    filter:
        drop-shadow(0 0 10px rgba(127,255,212,0.15))
        drop-shadow(0 0 25px rgba(127,255,212,0.08));
}

/* ================= PRZYCISKI (POPRAWNE DLA ARTICLE) ================= */

#sekcja2 article a,
#sekcja4 article a,
#sekcja5 article a,
#stopka a{
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 12px 24px;

    background: transparent;
    color: white;

    border: 1px solid var(--color5);

    text-decoration: none;

    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

/* hover - JEDEN SYSTEM */
#sekcja2 article a:hover,
#sekcja4 article a:hover,
#sekcja5 article a:hover,
#stopka a:hover{
    border-color: var(--color3);
    color: var(--color3);

    box-shadow:
        0 0 5px rgba(127,255,212,0.6),
        0 0 15px rgba(127,255,212,0.4),
        0 0 30px rgba(127,255,212,0.2);

    transform: scale(1.05);
}

/* duży przycisk (stopka) */
#stopka a{
    font-size: 36px;
    padding: 18px 32px;
}

/* logo w buttonie */
#stopka a img{
    height: 60px;
}

/* ================= STOPKA ================= */
.sos-bar.alert {
    width: 100%;
    overflow: hidden;

    background: rgba(80, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 60, 60, 0.5);
    border-bottom: 1px solid rgba(255, 60, 60, 0.5);

    padding: 12px 0;

    position: relative;
    animation: alertPulse 3s infinite;
}

/* ===== TOR PRZESUWANIA ===== */

.sos-track {
    display: flex;
    width: max-content;
    animation: scrollLoop 25s linear infinite;
}

/* ===== TEKST ===== */

.sos-text {
    white-space: nowrap;

    font-size: 12px;
    letter-spacing: 3px;

    color: rgba(255, 80, 80, 0.9);

    padding-right: 80px; /* odstęp między kopiami */

    animation: glitchJitter 4s infinite;
}

/* ===== KLUCZ: płynny scroll ===== */

@keyframes scrollLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== GLITCH (nie blokuje scrolla) ===== */

@keyframes glitchJitter {
    0%, 92%, 100% {
        transform: translateY(0);
        text-shadow: none;
    }

    93% {
        transform: translateY(-1px);
        text-shadow: 1px 0 red, -1px 0 cyan;
    }

    94% {
        transform: translateY(1px);
        text-shadow: -1px 0 red, 1px 0 cyan;
    }
}

/* ===== PULS ===== */

@keyframes alertPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255,0,0,0.08);
    }
    50% {
        box-shadow: 0 0 25px rgba(255,0,0,0.25);
    }
}

/* ===== SCANLINES ===== */

.sos-bar.alert::before {
    content: "";
    position: absolute;
    inset: 0;

    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 0, 0, 0.05) 3px
    );

    pointer-events: none;
}
#stopka{
    min-height: 70vh;
    background-color: var(--color2);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 40px;
    text-align: center;
    padding: 60px 20px;
}

#stopka h1{
    font-size: 25px;
    text-transform: uppercase;
}

#stopka h6{
    font-size: 10px;
    opacity: 0.7;
}
/*rwd*/

@media (max-width: 992px) {
    header{
        display: none;
    }
    /* --- Sekcja 1 (Skalowanie tła) --- */
    #sekcja1 .hero-bg {
        width: 85vw;
        height: auto;
    }
    #sekcja1 h3 {
        font-size: 16px;
        padding: 0 20px;
    }


    /* --- Sekcje 2, 4, 5 (Zmniejszenie przestrzeni i ułożenie) --- */
    #sekcja2 .zawartosc,
    #sekcja4 .zawartosc,
    #sekcja5 .zawartosc {
        flex-direction: flex;
        justify-content: center;
    }

    /* Wymuszenie obrazka nad tekstem */
    #sekcja2 article:nth-child(2),
    #sekcja4 article:nth-child(2) {
        order: -1; 
    }

    #sekcja2 article img,
    #sekcja4 article img,
    #sekcja5 article img {
        margin: 0 auto;
        max-width: 80%;
    }

    #sekcja2 article p,
    #sekcja4 article p,
    #sekcja5 article p{
        line-height: 150%;
        font-size: 11px;
        margin-bottom: 30px;
        text-align: left;
    }

    #sekcja5 article, #sekcja2 article, #sekcja4 article{
        text-align: center;
    }


    /* --- Sekcja 3 (Poziomy scroll i obrazki nad tekstem) --- */
    #sekcja3 .xeno-scroll {
        height: auto;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        padding: 20px 10px;
        scroll-snap-type: x mandatory;
    }

    #sekcja3 .stage, 
    #sekcja3 .stage.reverse {
        flex: 0 0 90vw;
        flex-direction: column;
        height: auto;
        margin-bottom: 0;
        padding: 30px;
        scroll-snap-align: center;
        text-align: left;
        gap: 10px;
    }

    #sekcja3 .stage img {
        width: 200px;
        height: 200px;
        margin: 30px;
    }
    #sekcja3 .stage .opis p{
        font-size: 11px;
        line-height: 150%;
    }
    #sekcja3 .stage .opis h2 {
        margin-bottom: 20px;
        font-size: 16px;
    }

    /* Pasek przewijania poziomego */
    #sekcja3 .xeno-scroll::-webkit-scrollbar {
        height: 6px;
    }


    /* --- Stopka --- */
    #stopka h3{
        line-height: 200%;
        font-size: 20px;
    }
    #stopka {
        min-height: 0px;
        min-height: auto;
        padding: 50px 20px;
    }

    #stopka .watch-btn {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px; 
        font-size: 14px;
        padding: 20px 40px;
        width: 100%;
        max-width: 320px;
    }

    #stopka .watch-btn img {
        height: auto;
        width: 160px;
        max-width: 90%;
        margin: 0;
    }

    h1 { font-size: 26px;
    line-height: 150%; }
    h2 { font-size: 18px;
    line-height: 150%; }
    section { padding: 30px 20px; }
}

@media (max-width: 480px) {
    #sekcja1 h3 { 
        line-height: 200%;
        font-size: 20px; }
    #sekcja3 .stage { flex: 0 0 90vw; }
}

/* ================= NAWIGACJA MOBILNA (UKRYTA NA DESKTOPIE) ================= */
.mobile-logo, .burger, .nakladka {
    display: none;
}

/* ================= WERSJA RESPONSYWNA (MOBILE / TABLET) ================= */
@media (max-width: 992px) {
    
    /* Ukrycie standardowego menu desktopowego */
    header nav {
        display: none !important; 
    }


    .mobile-logo {
        display: flex;
        margin-top: 10px;
        position: fixed;
        left: 2rem;
        top: 2rem;
        z-index: 2001;
        color: var(--color1);
        font-size: 20px;
        letter-spacing: 150%;
        text-decoration: none;
    }
    .burger, .zamknijX {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
        background-color: transparent;
        transition: all 0.3s ease-in-out;
    }

    /* Pozycjonowanie burgera po prawej stronie */
    .burger {
        position: fixed;
        right: 2rem;
        top: 1.7rem;
        z-index: 2001;
        color: var(--color1);
    }

    /* Tło rozwijanego menu pełnoekranowego */
    .nakladka {
        display: flex;
        background-color: var(--color2);
        position: fixed;
        right: 0;
        top: 0;
        width: 0; /* Wartość dynamicznie zmieniana przez JS (0% -> 100%) */
        height: 100%;
        overflow: hidden;
        opacity: 0.98;
        z-index: 2000;
        justify-content: center;
        align-items: center;
        transition: width 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    }

    /* Ikona X wewnątrz otwartej nakładki */
    .zamknijX {
        position: absolute;
        top: 1.7rem;
        right: 2rem;
        color: var(--color1);
    }

    /* --- ANIMACJA: Ukrywanie i obracanie burgera po otwarciu menu --- */
    body:has(#MENU[style*="width: 100%"]) .burger {
        opacity: 0;
        visibility: hidden;
        transform: scale(0.5) rotate(90deg);
        pointer-events: none;
    }
    .nakladka ol {
        width: 100%;
        padding: 0 2rem;
        list-style: none;
    }

    .nakladka ol li a {
        color: var(--color1);
        display: block;
        text-align: center;
        font-size: 24px;
        margin-bottom: 3vh;
        padding: 1.5vh 0;
        letter-spacing: 4px;
        text-decoration: none;
        
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nakladka ol li a:hover, .zamknijX:hover {
        color: var(--color3);
    }

    /* --- ANIMACJA: Efekt kaskadowego wsuwania linków jeden po drugim --- */
    body:has(#MENU[style*="width: 100%"]) .nakladka ol li a {
        opacity: 1;
        transform: translateY(0);
    }
    body:has(#MENU[style*="width: 100%"]) .nakladka ol li:nth-child(1) a { transition-delay: 0.1s; }
    body:has(#MENU[style*="width: 100%"]) .nakladka ol li:nth-child(2) a { transition-delay: 0.2s; }
    body:has(#MENU[style*="width: 100%"]) .nakladka ol li:nth-child(3) a { transition-delay: 0.3s; }
    body:has(#MENU[style*="width: 100%"]) .nakladka ol li:nth-child(4) a { transition-delay: 0.4s; }
}