/* ============================================
   ANIMACJE WEJŚCIA — Hero
   ============================================ */

/* Definicje animacji */
@keyframes wejscieOdDolu {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wejscieOdLewej {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pojawienie {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulsOrangeGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 107, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 107, 0, 0.7);
    }
}

/* Przypisanie animacji do elementów hero */
.hero-content h1 {
    animation: wejscieOdDolu 0.9s ease forwards;
    opacity: 0;
}

.hero-content p {
    animation: wejscieOdDolu 0.9s ease 0.2s forwards;
    opacity: 0;
    /* 0.2s to delay — pojawia się chwilę po nagłówku */
}

.btn-glowny {
    animation: wejscieOdDolu 0.9s ease 0.4s forwards,
               pulsOrangeGlow 3s ease 1.5s infinite;
    opacity: 0;
}

/* ============================================
   ANIMACJE SCROLL — elementy pojawiają się
   podczas przewijania strony
   ============================================ */

/* Stan początkowy — element niewidoczny */
.animuj {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Stan po wejściu w viewport — JS doda tę klasę */
.animuj.widoczny {
    opacity: 1;
    transform: translateY(0);
}

/* Opóźnienia dla efektu kaskady */
.animuj:nth-child(1) { transition-delay: 0s;    }
.animuj:nth-child(2) { transition-delay: 0.15s; }
.animuj:nth-child(3) { transition-delay: 0.3s;  }
.animuj:nth-child(4) { transition-delay: 0.45s; }
.animuj:nth-child(5) { transition-delay: 0.6s;  }

/* ============================================
   LINIA DEKORACYJNA pod nagłówkami sekcji
   ============================================ */
.naglowek-sekcji {
    text-align: center;
    margin-bottom: 3rem;
}

.naglowek-sekcji h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.naglowek-sekcji .linia {
    display: inline-block;
    width: 60px;
    height: 3px;
    background: var(--pomaranczowy);
    border-radius: 2px;
    position: relative;
}

.naglowek-sekcji .linia::before {
    content: '';
    position: absolute;
    left: 70px;
    top: 0;
    width: 20px;
    height: 3px;
    background: var(--pomaranczowy-jasny);
    border-radius: 2px;
}

/* ============================================
   EFEKT HOVER na kartach
   ============================================ */
.karta {
    background: var(--grafitowy);
    border: 1px solid rgba(255,107,0,0.1);
    border-radius: var(--zaokraglenie-duze);
    padding: 2rem;
    transition: var(--przejscie);
    position: relative;
    overflow: hidden;
}

.karta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--pomaranczowy);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.karta:hover {
    border-color: rgba(255,107,0,0.4);
    transform: translateY(-6px);
    box-shadow: var(--cien);
}

.karta:hover::before {
    transform: scaleX(1);
}

/* ============================================
   AURORA — animowane tło hero
   ============================================ */
.aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    will-change: transform;
    transform: translateZ(0);
    animation: floatBlob 10s ease-in-out infinite;
}

.blob1 {
    width: 600px;
    height: 500px;
    background: #FF914D;
    filter: blur(100px);
    top: -200px;
    left: -100px;
    animation-duration: 10s;
}

.blob2 {
    width: 450px;
    height: 400px;
    background: #cc5500;
    filter: blur(100px);
    top: 0;
    right: -100px;
    animation-duration: 13s;
    animation-delay: -4s;
}

.blob3 {
    width: 350px;
    height: 350px;
    background: #FF914D;
    filter: blur(100px);
    bottom: -100px;
    left: 35%;
    animation-duration: 15s;
    animation-delay: -7s;
    opacity: 0.25;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -30px) scale(1.08); }
    66%       { transform: translate(-25px, 20px) scale(0.94); }
}
/* ============================================
   REVEAL — tekst wyjeżdża spod maski
   ============================================ */
.reveal-wrapper {
    overflow: hidden;
    display: block;
    line-height: 1.25;
}

.reveal-line {
    display: block;
    transform: translateY(110%);
    animation: revealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.reveal-line:nth-child(1) { animation-delay: 0.1s; }
.reveal-line:nth-child(2) { animation-delay: 0.3s; }
.reveal-line:nth-child(3) { animation-delay: 0.5s; }
.reveal-line:nth-child(4) { animation-delay: 0.65s; }

@keyframes revealUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Linia pomarańczowa która przelatuje przed tekstem */
.reveal-linia {
    display: block;
    width: 0;
    height: 2px;
    background: var(--pomaranczowy);
    animation: liniaRozrost 0.4s ease 0.05s forwards;
    margin-bottom: 0.6rem;
}

@keyframes liniaRozrost {
    to { width: 100px; }
}
/* ============================================
   SPLIT TEXT HERO
   ============================================ */
.split-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.split-left {
    flex: 1;
    overflow: hidden;
    padding-right: 2.5rem;
    text-align: right;
}

.split-right {
    flex: 1;
    overflow: hidden;
    padding-left: 2.5rem;
    text-align: left;
}

.split-divider {
    width: 3px;
    height: 130px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--pomaranczowy),
        transparent
    );
    flex-shrink: 0;
}

.split-right {
    flex: 1;
    overflow: hidden;
    padding-left: 2rem;
}

.split-left-inner {
    transform: translateX(100%);
    animation: slideZLewej 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.split-right-inner {
    transform: translateX(-100%);
    animation: slideZPrawej 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes slideZLewej {
    to { transform: translateX(0); }
}

@keyframes slideZPrawej {
    to { transform: translateX(0); }
}

.main-title {
    font-family: var(--font-naglowek);
    font-size: clamp(1.6rem, 3.2vw, 3rem);
    font-weight: 800;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    line-height: 1.2;
}

.main-title .sub {
    display: block;
    font-size: clamp(0.75rem, 1.3vw, 1rem);
    font-weight: 400;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.main-title .akcent {
    display: block;
    font-size: clamp(1rem, 2vw, 1.7rem);
    font-weight: 300;
    letter-spacing: 6px;
    color: var(--pomaranczowy);
    margin-top: 0.4rem;
    opacity: 0.85;
    text-transform: capitalize;
}

.biegly-title {
    font-family: var(--font-naglowek);
    font-size: clamp(1.6rem, 3.2vw, 3rem);
    font-weight: 800;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.biegly-subtitle {
    display: block;
    font-family: var(--font-naglowek);
    font-size: clamp(0.75rem, 1.3vw, 1rem);
    font-weight: 300;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.25);
    text-transform: capitalize;
    margin-top: 0.4rem;
    line-height: 1.8;
}

.miasto {
    color: rgba(255, 145, 77, 0.75);
    font-weight: 600;
}

/* SHINY TEXT */
.shiny {
    background: linear-gradient(
        90deg,
        var(--pomaranczowy) 0%,
        #ffffff 35%,
        var(--pomaranczowy) 65%,
        rgba(255, 145, 77, 0.4) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* OPIS Z DOŁU */
.hero-opis-wrap {
    overflow: hidden;
    margin-bottom: 2rem;
    text-align: center;
}


.hero-opis-inner {
    transform: translateY(100%);
    opacity: 0;
    animation: fadeUpIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
    font-family: var(--font-naglowek);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto;
}

/* CTA */
.hero-cta-wrap {
    overflow: hidden;
    text-align: center;
    padding-top: 4px;
}

.hero-cta-inner {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    transform: translateY(100%);
    opacity: 0;
    animation: fadeUpIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

@keyframes fadeUpIn {
    to { transform: translateY(0); opacity: 1; }
}

.btn-drugorzedny {
    display: inline-block;
    color: var(--bialy);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 145, 77, 0.4);
    border-radius: var(--zaokraglenie);
    transition: var(--przejscie);
}

.btn-drugorzedny:hover {
    border-color: var(--pomaranczowy);
    color: var(--pomaranczowy);
    transform: translateY(-3px);
}

/* SCROLL VELOCITY SEKCJA */
.scroll-velocity-sekcja {
    padding: 0;
}

.scroll-velocity {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 145, 77, 0.15);
    border-bottom: 1px solid rgba(255, 145, 77, 0.15);
    padding: 12px 0;
}

.scroll-track {
    display: inline-block;
    animation: scrollVelocity 25s linear infinite;
    font-family: var(--font-naglowek);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: rgba(255, 145, 77, 0.55);
    text-transform: uppercase;
}

.scroll-velocity:hover .scroll-track {
    animation-play-state: paused;
}

@keyframes scrollVelocity {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .split-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .split-divider {
        width: 80px;
        height: 3px;
        background: linear-gradient(
            to right,
            transparent,
            var(--pomaranczowy),
            transparent
        );
    }

    .split-left,
    .split-right {
        padding: 0;
        text-align: center;
        overflow: hidden;
    }
}