:root {
    --bg: #121212;
    --highlight: #39FF15;
    --white: #ffffff;
    --gray: #353535;
}

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

html,
body {
    width: 100%;
    height: 100%;
    background: #121212;
}

body {
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
}

/* ===== HERO SECTION STYLES ===== */
.hero-circle {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #121212;
    overflow: hidden;
}

/* Android mobile fix */
@media (max-width: 768px) {
    .hero-circle:not(.ios-hero) {
        margin-top: -5vh;
    }
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .hero-circle {
            margin-top: -5vh;
        }
    }
}

.animation-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Stałe proporcje kontenera */
.circle-images {
    position: absolute;
    width: 400px;
    height: 400px;
    perspective: 1000px;
    perspective-origin: center center;
    will-change: transform;
    transform-style: preserve-3d;
}

.circle-images img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.circle-content {
    position: relative;
    z-index: 5;
    text-align: center;
    opacity: 0;
}

.circle-content h1 {
    font-size: 100px;
    line-height: 1;
    font-weight: 700;
}

.white-text {
    color: #fff;
}

.highlight {
    color: #39FF15;
    display: block;
}

/* ===== SCROLL ANIMATION SECTION ===== */
.about {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #121212;
}

@media (max-width: 768px) {
    .about {
        height: 50vh;
    }
}

.cool-split h2 {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    font-size: 8vw;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .cool-split h2 {
        font-size: 9vw;
        line-height: 1.5;
    }
}

.cool-split h2 .char {
    display: inline-block;
    color: #39FF14;
    opacity: 0.09;
}

/* ===== ANIMATED HEADERS SECTION - SAFARI OPTIMIZED ===== */
.animated-headers {
    width: 100vw;
    background-color: #39FF15;
    overflow: hidden;
    padding: 10px 0;
    margin: 0;
    /* Safari GPU acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.header-line {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    /* Safari optimization */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

.scrolling-text {
    display: flex;
    align-items: center;
    /* Usunięto animation-iteration-count i animation-timing-function */
    /* Zostaną dodane inline */
    width: fit-content;
    /* Zmieniono z max-content */
    /* Safari specific */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Osobne deklaracje dla kierunków */
.header-line-1 .scrolling-text {
    -webkit-animation: scrollLeftSafari 30s linear infinite;
    animation: scrollLeftSafari 30s linear infinite;
}

.header-line-2 .scrolling-text {
    -webkit-animation: scrollRightSafari 30s linear infinite;
    animation: scrollRightSafari 30s linear infinite;
}

.scrolling-text span {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 3.4rem;
    color: #121212;
    margin-right: 70px;
    white-space: nowrap;
    display: inline-block;
    /* Dodano dla Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Safari-optimized keyframes */
@-webkit-keyframes scrollLeftSafari {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    100% {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes scrollLeftSafari {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    100% {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }
}

@-webkit-keyframes scrollRightSafari {
    0% {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }

    100% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes scrollRightSafari {
    0% {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }

    100% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* Mobile optimizations dla Safari */
@media (max-width: 768px) {
    .animated-headers {
        /* Wyłącz animacje na Safari Mobile jeśli dalej są problemy */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .scrolling-text {
        /* Wolniejsza animacja na mobile */
        -webkit-animation-duration: 40s !important;
        animation-duration: 40s !important;
        /* Dodatkowa optymalizacja */
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }

    .scrolling-text span {
        font-size: 2rem;
        margin-right: 30px;
    }

    .header-line {
        height: 50px;
    }
}

/* Specyficzne poprawki dla Safari iOS */
@supports (-webkit-touch-callout: none) {
    .animated-headers {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    .scrolling-text {
        /* Użyj translate3d zamiast translateX */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        /* Wymuś rendering na GPU */
        -webkit-will-change: transform;
        will-change: transform;
    }

    /* Opcja: Całkowite wyłączenie animacji na problemowych urządzeniach */
    @media (max-width: 768px) and (hover: none) and (pointer: coarse) {

        .header-line-1 .scrolling-text,
        .header-line-2 .scrolling-text {
            /* Zatrzymaj animację jeśli są poważne problemy */
            /* -webkit-animation-play-state: paused !important;
            animation-play-state: paused !important; */

            /* Lub zwolnij znacznie animację */
            -webkit-animation-duration: 60s !important;
            animation-duration: 60s !important;
        }
    }
}

/* Dodatkowa optymalizacja dla małych ekranów */
@media (max-width: 480px) {
    .scrolling-text span {
        font-size: 1.8rem;
        margin-right: 25px;
    }

    .header-line {
        height: 45px;
    }
}

/* ================ SEKCJE ZESPOŁU ================ */
.team-section {
    background: #121212;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-bottom: 4rem;
    color: var(--white);
}

.team-container {
    width: 100%;
    max-width: 1600px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.team-part {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.team-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 6rem);
    color: #39FF15;
    line-height: 0.8;
    margin: 0;
}

.slide-up-reveal {
    position: relative;
    overflow: hidden;
}

.slide-up-reveal .text-line {
    display: inline-block;
    will-change: transform;
}

.team-description {
    margin-top: 2rem;
    max-width: 400px;
}

.team-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(0.8rem, 1.3vw, 1.1rem);
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.team-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: clamp(0.75rem, 1.1vw, 0.95rem);
    color: #fff;
    line-height: 1.6;
}

.team-text strong {
    font-weight: 600;
}

.center-part {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: auto;
    z-index: 1;
}

.image-svg {
    width: 100%;
    height: auto;
    display: block;
}

.center-part img {
    width: 100%;
    height: 80vh;
    object-fit: contain;
    position: relative;
    z-index: 1;
    display: block;
}

/* Sekcja Igor Roman */
.igor-roman-section {
    padding-top: 6rem;
}

.igor-roman-section .left-part {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.igor-roman-section .left-part .team-name {
    text-align: right;
    font-size: 4.5rem;
    padding-bottom: 5px;
    order: 1;
}

.igor-roman-section .left-part .team-description {
    text-align: right;
    order: 2;
    margin-left: auto;
}

.igor-roman-section .right-part {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.igor-roman-section .right-part .team-name {
    text-align: left;
    font-size: 4.5rem;
}

/* Sekcja Hubert Woźniak */
.hubert-wozniak-section {
    padding-bottom: 4rem;
}

.hubert-wozniak-section .left-part {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}

.hubert-wozniak-section .left-part .team-name {
    text-align: right;
    font-size: 4.5rem;
}

.hubert-wozniak-section .right-part {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hubert-wozniak-section .right-part .team-name {
    text-align: left;
    font-size: 4.5rem;
    order: 1;
}

.hubert-wozniak-section .right-part .team-description {
    text-align: left;
    order: 2;
}

/* Mobile description - ukryty na desktop */
.mobile-description {
    display: none;
}

/* ================ SEKCJE OFERTY ================ */
.offer-section {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 40px 10vw;
    background: var(--bg);
}

.offer-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ================ NAGŁÓWKI OFERTY ================ */
.animated-text {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--highlight);
    margin-bottom: 30px;
    line-height: 1.1;
}

/* Struktura dla animacji nagłówków */
.word {
    display: inline-block;
    white-space: nowrap;
}

.letter {
    display: inline-block;
    overflow: hidden;
}

.letter span {
    display: inline-block;
    transform: translateX(-100%);
}

/* ================ OPISY OFERTY ================ */
.reveal-type {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--white);
    opacity: 0;
    margin-bottom: 40px;
    width: 100%;
    max-width: none;
}

.reveal-type p {
    margin-bottom: 20px;
}

.reveal-type p:last-child {
    margin-bottom: 0;
}

/* Desktop - ukrycie dla animacji */
@media (min-width: 769px) {
    .reveal-type {
        overflow: hidden;
    }

    .reveal-type p {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* ================ PRZYCISKI OFERTY ================ */
.btn-offer {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    background: var(--highlight);
    color: var(--bg);
    padding: 18px 40px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    white-space: nowrap;
    align-self: flex-start;
    transform: translateX(20px);
    box-shadow: -6px 6px 0 rgba(57, 255, 21, 0.3);
}

/* Desktop - ukryj przycisk do animacji */
@media (min-width: 769px) {
    .btn-offer {
        opacity: 0;
    }
}

/* Hover efekt na desktop */
@media (hover: hover) and (pointer: fine) {
    .btn-offer:hover {
        transform: translateX(30px);
        box-shadow: -8px 8px 0 rgba(57, 255, 21, 0.4);
    }
}

/* Efekt dla mobile */
.btn-offer.tapped {
    transform: translateX(30px);
    box-shadow: -10px 10px 0 rgba(57, 255, 21, 0.4);
}

/* ===== RESPONSIVE STYLES ===== */

/* Skalowanie dla bardzo małych ekranów (< 360px szerokości) */
@media (max-width: 359px) {
    .animation-wrapper:not(.ios-wrapper) {
        transform: scale(0.75);
        transform-origin: center center;
    }

    .circle-images {
        width: 280px;
        height: 280px;
    }

    .circle-images img {
        width: 58px;
    }

    .circle-content h1 {
        font-size: 65px;
    }

    .cool-split h2 {
        font-size: 10vw;
    }
}

/* Skalowanie dla małych ekranów (360-400px) */
@media (min-width: 360px) and (max-width: 400px) {
    .animation-wrapper:not(.ios-wrapper) {
        transform: scale(0.8);
        transform-origin: center center;
    }

    .circle-images {
        width: 300px;
        height: 300px;
    }

    .circle-images img {
        width: 64px;
    }

    .circle-content h1 {
        font-size: 70px;
    }

    .cool-split h2 {
        font-size: 9vw;
    }

    /* Animated Headers - Mobile */
    .scrolling-text span {
        font-size: 2rem;
        margin-right: 30px;
    }

    .header-line {
        height: 50px;
    }
}

/* Dodatkowe breakpointy dla większych mobile */
@media (min-width: 401px) and (max-width: 768px) {
    .scrolling-text span {
        font-size: 1.8rem;
        margin-right: 25px;
    }

    .header-line {
        height: 45px;
    }
}

/* Skalowanie dla średnich mobile (401-500px) */
@media (min-width: 401px) and (max-width: 500px) {
    .animation-wrapper:not(.ios-wrapper) {
        transform: scale(0.95);
        transform-origin: center center;
    }

    .circle-images {
        width: 360px;
        height: 360px;
    }

    .circle-images img {
        width: 70px;
    }

    .circle-content h1 {
        font-size: 80px;
    }
}

/* Skalowanie dla większych mobile (501-768px) */
@media (min-width: 501px) and (max-width: 768px) {
    .animation-wrapper:not(.ios-wrapper) {
        transform: scale(1);
        transform-origin: center center;
    }

    .circle-images {
        width: 380px;
        height: 380px;
    }

    .circle-images img {
        width: 80px;
    }

    .circle-content h1 {
        font-size: 85px;
    }
}

/* Skalowanie dla małych tabletów (769-900px) */
@media (min-width: 769px) and (max-width: 900px) {
    .animation-wrapper:not(.ios-wrapper) {
        transform: scale(1);
        transform-origin: center center;
    }

    .circle-images img {
        width: 90px;
    }

    .circle-content h1 {
        font-size: 90px;
    }
}

/* Powyżej 900px - pełny rozmiar */
@media (min-width: 901px) {
    .animation-wrapper:not(.ios-wrapper) {
        transform: scale(1);
        transform-origin: center center;
    }
}

/* Team - Mobile */
@media (max-width: 768px) {
    .team-section {
        padding: 2rem 0;
        min-height: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        margin-bottom: 5rem;
    }

    .team-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        width: 100%;
        height: auto;
        justify-content: flex-start;
        align-items: center;
        padding: 0;
    }

    .team-part.left-part .team-description,
    .team-part.right-part .team-description {
        display: none;
    }

    .mobile-description {
        display: block;
        order: 4;
    }

    .team-part {
        width: 100%;
        padding: 0;
        margin: 0;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .team-name {
        font-size: clamp(3rem, 10vw, 5rem) !important;
        text-align: center !important;
        margin: 0 !important;
        line-height: 0.9 !important;
    }

    .center-part {
        margin: 0;
        order: 2;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .image-wrapper {
        max-width: 95vw;
        max-height: 70vh;
        width: auto !important;
        height: auto !important;
    }

    .center-part img {
        max-width: 95vw;
        max-height: 70vh;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .mobile-description .team-description {
        margin-top: 1rem;
        text-align: center !important;
        padding: 0 0.7rem;
    }

    .mobile-description .team-title {
        font-size: clamp(1rem, 4vw, 1.2rem);
        text-align: center !important;
        margin-bottom: 1rem;
    }

    .mobile-description .team-text {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        text-align: center !important;
        line-height: 1.5;
    }

    .igor-roman-section .left-part,
    .igor-roman-section .right-part,
    .hubert-wozniak-section .left-part,
    .hubert-wozniak-section .right-part {
        display: flex !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
    }

    .igor-roman-section .left-part .team-name,
    .igor-roman-section .right-part .team-name,
    .hubert-wozniak-section .left-part .team-name,
    .hubert-wozniak-section .right-part .team-name {
        text-align: center !important;
    }

    .igor-roman-section .left-part {
        order: 1;
    }

    .igor-roman-section .center-part {
        order: 2;
    }

    .igor-roman-section .right-part {
        order: 3;
    }

    .igor-roman-section .mobile-description {
        order: 4;
    }

    .igor-roman-section {
        padding-top: 5rem !important;
    }

    .hubert-wozniak-section .right-part {
        order: 1;
    }

    .hubert-wozniak-section .center-part {
        order: 2;
    }

    .hubert-wozniak-section .left-part {
        order: 3;
    }

    .hubert-wozniak-section .mobile-description {
        order: 4;
    }

    .hubert-wozniak-section {
        padding-bottom: 2rem !important;
    }
}

/* ================ MOBILE OFERTY ================ */
@media (max-width: 768px) {
    .offer-section {
        min-height: auto;
        padding: 60px 20px;
    }

    .offer-container {
        min-height: auto;
    }

    .animated-text {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .reveal-type {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .reveal-type p {
        margin-bottom: 15px;
    }

    .btn-offer {
        padding: 16px 35px;
        font-size: 19px;
        width: auto;
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .team-section {
        padding: 0.5rem 0;
    }

    .image-wrapper {
        max-width: 98vw !important;
        max-height: 70vh !important;
    }

    .center-part img {
        max-width: 98vw !important;
        max-height: 70vh !important;
    }

    /* ================ MAŁE TELEFONY OFERTY ================ */
    .offer-section {
        padding: 50px 15px;
    }

    .animated-text {
        font-size: 2.3rem;
        margin-bottom: 18px;
    }

    .reveal-type {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }

    .btn-offer {
        padding: 15px 30px;
        font-size: 18px;
        min-width: 220px;
    }
}

/* ================ DUŻE EKRANY OFERTY ================ */
@media (min-width: 1200px) {
    .offer-section {
        padding: 100px 15vw;
    }

    .offer-container {
        min-height: 550px;
    }

    .animated-text {
        font-size: 3.5rem;
        margin-bottom: 35px;
    }

    .reveal-type {
        font-size: 1.3rem;
        line-height: 1.8;
        margin-bottom: 45px;
    }

    .btn-offer {
        padding: 20px 45px;
        font-size: 20px;
    }
}

/* ================ BARDZO DUŻE EKRANY OFERTY ================ */
@media (min-width: 1600px) {
    .offer-section {
        padding: 120px 20vw;
    }

    .animated-text {
        font-size: 4rem;
    }

    .reveal-type {
        font-size: 1.4rem;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    body {
        height: -webkit-fill-available;
    }

    .hero-circle {
        min-height: -webkit-fill-available;
    }

    .animation-wrapper {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        height: auto;
    }

    .circle-images {
        -webkit-transform-style: preserve-3d;
        -webkit-perspective: 1000px;
    }

    /* Korekta pozycji dla małych iOS */
    @media (max-width: 359px) {
        .animation-wrapper {
            transform: translate(-50%, -50%) scale(0.75);
        }

        .circle-images {
            width: 280px !important;
            height: 280px !important;
        }

        .circle-images img {
            width: 58px !important;
        }
    }

    @media (min-width: 360px) and (max-width: 400px) {
        .animation-wrapper {
            transform: translate(-50%, -50%) scale(0.8);
        }

        .circle-images {
            width: 300px !important;
            height: 300px !important;
        }

        .circle-images img {
            width: 64px !important;
        }
    }

    @media (min-width: 401px) and (max-width: 500px) {
        .animation-wrapper {
            transform: translate(-50%, -50%) scale(0.95);
        }
    }

    @media (min-width: 501px) and (max-width: 768px) {
        .animation-wrapper {
            transform: translate(-50%, -50%) scale(1);
        }
    }
}

/* Firefox specific optimizations */
@-moz-document url-prefix() {
    .circle-images {
        transform: translateZ(0);
    }

    .circle-images img {
        transform-origin: center center;
    }

    /* Firefox mobile specific */
    @media (max-width: 768px) {
        .circle-images {
            will-change: auto;
        }
    }
}

/* Hide until loaded */
.loading {
    visibility: hidden;
}

/* Klasa dla animacji CSS (Firefox mobile) */
@keyframes continuousRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotating-css {
    animation: continuousRotate 20s linear infinite;
}

/* ================ GALERIA CERTYFIKATÓW ================ */
.dg-container {
    width: 100%;
    height: 500px;
    position: relative;
    margin: 4rem auto;
    background: #121212;
}

.dg-wrapper {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    position: relative;
    top: 20px;
    transform-style: preserve-3d;
    perspective: 1200px;
}

.dg-wrapper a {
    width: 400px;
    height: 300px;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    border-radius: 15px;
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.5),
        0px 5px 15px rgba(57, 254, 20, 0.1);
    border: 2px solid rgba(57, 254, 20, 0.2);
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    touch-action: pan-y;
}

.dg-wrapper a:hover {
    border-color: rgba(57, 254, 20, 0.4);
}

.dg-wrapper a.dg-transition {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dg-wrapper a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.dg-wrapper a:hover img {
    filter: brightness(1);
}

.dg-wrapper a div {
    display: none;
}

.dg-wrapper a.dg-center {
    transform: scale(1.1);
    z-index: 100;
}

.dg-wrapper a.dg-center {
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.6),
        0px 10px 25px rgba(57, 254, 20, 0.2);
    border-color: rgba(57, 254, 20, 0.6);
}

.certificate-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    color: #39FE14;
    text-shadow: 0 0 15px rgba(57, 254, 20, 0.4);
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    transition: opacity 0.4s ease;
    white-space: nowrap;
    z-index: 1001;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dg-container nav {
    width: 120px;
    position: absolute;
    z-index: 1000;
    bottom: 20px;
    left: 50%;
    margin-left: -60px;
    display: flex;
    justify-content: space-between;
}

.dg-container nav span {
    width: 45px;
    height: 45px;
    cursor: pointer;
    opacity: 0.7;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: rgba(57, 254, 20, 0.1);
    border: 2px solid rgba(57, 254, 20, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dg-container nav span:hover {
    opacity: 1;
    transform: scale(1.1);
    background-color: rgba(57, 254, 20, 0.2);
    border-color: rgba(57, 254, 20, 0.4);
    box-shadow: 0 0 20px rgba(57, 254, 20, 0.3);
}

.dg-container nav span.dg-prev {
    background-image: url('https://cyberpath.pl/media/arrowleft.svg');
}

.dg-container nav span.dg-next {
    background-image: url('https://cyberpath.pl/media/arrowright.svg');
}

/* Fullscreen styles */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    touch-action: pan-x;
    padding: 0;
    margin: 0;
}

.fullscreen-overlay.active {
    display: flex;
}

.fullscreen-content {
    position: relative;
    max-width: 50vw;
    max-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    border: 3px solid rgba(57, 254, 20, 0.4);
    transition: all 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.fullscreen-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: url('https://cyberpath.pl/media/close.svg') no-repeat center;
    background-size: contain;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    opacity: 0.8;
    touch-action: manipulation;
}

.fullscreen-close:hover {
    transform: scale(1.2);
    opacity: 1;
}

.fullscreen-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    opacity: 0.8;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

.fullscreen-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

.fullscreen-nav.prev {
    left: 40px;
    background-image: url('https://cyberpath.pl/media/arrowleft.svg');
}

.fullscreen-nav.next {
    right: 40px;
    background-image: url('https://cyberpath.pl/media/arrowright.svg');
}

/* ================ SERVICES SECTION ================ */
.services-section {
    background: #121212;
    padding: 3rem 2rem 4rem;
    margin-top: 2rem;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.service-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.8rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px;
    background: linear-gradient(135deg, #39FF15, #2acc00, #39FF15);
    border-radius: 15px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-box:hover::before {
    opacity: 1;
}

.service-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(57, 255, 21, 0.03) 0%, transparent 70%);
    animation: floatingParticles 6s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-box:hover::after {
    opacity: 1;
}

@keyframes floatingParticles {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(10px, -15px) rotate(5deg) scale(1.05);
    }

    66% {
        transform: translate(-8px, 10px) rotate(-3deg) scale(0.98);
    }
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(57, 255, 21, 0.12), 0 0 0 1px rgba(57, 255, 21, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #39FF15, #2acc00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-box:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 20px rgba(57, 255, 21, 0.3), 0 0 40px rgba(57, 255, 21, 0.15);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: #121212;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.service-box:hover .service-icon svg {
    transform: scale(1.1);
}

/* Stylowanie dla nowych ikon obrazkowych */
.service-icon img {
    width: 35px;
    height: 35px;
    filter: brightness(0) saturate(100%);
    transition: all 0.3s ease;
}

.service-box:hover .service-icon img {
    filter: brightness(0) saturate(100%);
    transform: scale(1.1);
}

.service-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #39FF15;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.service-box:hover .service-title {
    color: #fff;
    text-shadow: 0 0 10px rgba(57, 255, 21, 0.3);
}

.service-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.service-box:hover .service-text {
    color: rgba(255, 255, 255, 0.95);
}

/* Mobile adaptacje */
@media (max-width: 768px) {
    .fullscreen-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .dg-container {
        height: 400px;
        overflow: hidden;
    }

    .dg-wrapper {
        width: 280px;
        height: 320px;
        top: 10px;
    }

    .dg-wrapper a {
        width: 280px;
        height: 210px;
    }

    .certificate-title {
        font-size: 2rem;
        bottom: 100px;
        height: 35px;
    }

    .dg-container nav {
        width: 110px;
        bottom: 15px;
        margin-left: -55px;
    }

    .dg-container nav span {
        width: 40px;
        height: 40px;
    }

    .fullscreen-close {
        top: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
    }

    .fullscreen-content {
        max-width: 90vw;
        max-height: 70vh;
    }

    .services-section {
        padding: 2rem 1.5rem 2.5rem;
        margin-top: 0;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        max-width: 400px;
    }

    .service-box {
        padding: 1.5rem 1.2rem;
        min-height: 200px;
        border-radius: 12px;
    }

    .service-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 1rem;
    }

    .service-icon svg {
        width: 35px;
        height: 35px;
    }

    .service-icon img {
        width: 40px;
        height: 40px;
    }

    .service-title {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .service-text {
        font-size: 1rem;
        line-height: 1.4;
    }
}

/* ================ SEKCJA "JAK TO WYGLĄDA?" ================ */
.how-it-works-section {
    background: #121212;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30vh;
}

.title-on-timeline {
    font-family: 'Rajdhani', sans-serif;
    font-size: 5em;
    font-weight: 700;
    color: #39FE14;
    text-align: center;
    margin: 0;
}

.title-on-timeline span {
    position: relative;
    overflow: hidden;
    display: block;
    line-height: 1.2;
}

.title-on-timeline span::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: translateX(-101%);
    /* Usunięto animation - będzie kontrolowane przez JS */
}

.title-on-timeline span::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    transform: translateX(0);
    /* Usunięto animation - będzie kontrolowane przez JS */
}

/* Klasy dla animacji kontrolowanej przez ScrollTrigger */
.title-on-timeline.animate span::after {
    animation: a-ltr-after 1s cubic-bezier(.77, 0, .18, 1) forwards;
}

.title-on-timeline.animate span::before {
    animation: a-ltr-before 1s cubic-bezier(.77, 0, .18, 1) forwards;
}

/* Usunięto animation-delay - animacja zacznie się natychmiast */

@keyframes a-ltr-after {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(101%);
    }
}

@keyframes a-ltr-before {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(200%);
    }
}

/* Mobile adaptacje dla sekcji "JAK TO WYGLĄDA?" */
@media (max-width: 768px) {
    .how-it-works-section {
        padding: 3rem 1rem;
        min-height: 30vh;
    }

    .title-on-timeline {
        font-size: 3.5em;
    }
}

@media (max-width: 480px) {
    .title-on-timeline {
        font-size: 2.5em;
    }
}

/* ================ TIMELINE SECTION ================ */
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: 46% 8% 46%;
    row-gap: 250px;
    max-width: 90%;
    margin: 0 auto;
    padding: 60px 0;
    --white-line-height: 0px;
    background: #121212;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #444;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    background: #ffffff;
    transform: translateX(-50%);
    height: var(--white-line-height);
    z-index: 2;
}

.timeline-logo {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 10;
}

.timeline-item {
    position: relative;
    padding: 20px;
    transition: filter 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
    filter: blur(4px);
    opacity: 0.4;
    transform: scale(0.95);
}

.timeline-item.timeline-item-active {
    filter: blur(0px);
    opacity: 1;
    transform: scale(1);
}

.timeline-item.left {
    text-align: right;
    grid-column: 1;
}

.timeline-item.right {
    text-align: left;
    grid-column: 3;
}

.timeline-item h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #38FF14;
    font-size: 3.1rem;
    margin-bottom: 16px;
    transition: inherit;
}

.timeline-item p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #ffffff;
    transition: inherit;
}

.timeline-item:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
}

.timeline-item:nth-child(3) {
    grid-column: 3;
    grid-row: 2;
}

.timeline-item:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
}

.timeline-item:nth-child(5) {
    grid-column: 3;
    grid-row: 4;
}

.timeline-sparks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
    overflow: hidden;
}

.timeline-spark {
    position: absolute;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff, 0 0 16px #39FF15, 0 0 24px #39FF15;
    pointer-events: none;
    z-index: 20;
}

/* Mobile adaptacje dla Timeline */
@media (max-width: 768px) {
    .timeline {
        display: block;
        padding: 60px 0;
    }

    .timeline::before,
    .timeline::after {
        left: calc(5% - 2px) !important;
    }

    .timeline-item {
        margin-bottom: 80px;
        text-align: left !important;
        width: 90%;
        margin-left: 10%;
        padding: 20px;
    }

    .timeline-item h3 {
        font-size: 2.25rem;
        margin-bottom: 12px;
    }

    .timeline-item p {
        font-size: 1.15rem;
    }

    .timeline-logo {
        left: calc(9.5% - 2px) !important;
        transform: translateX(-50%) translateY(-50%) !important;
        width: 50px;
        height: 50px;
    }
}

/* ================ SEKCJA CTA ================ */
.cta-section {
    background: #121212;
    padding-top: 5rem;
    /* Zmniejszony padding-bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    /* Zmienione z 40vh na auto */
    text-align: center;
}

.cta-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4em;
    font-weight: 700;
    color: #39FE14;
    margin: 0 0 2rem 0;
}

.cta-title span {
    position: relative;
    overflow: hidden;
    display: block;
    line-height: 1.2;
}

.cta-title span::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: translateX(-101%);
}

.cta-title span::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    transform: translateX(0);
}

.cta-title.animate span::after {
    animation: a-ltr-after 1s cubic-bezier(.77, 0, .18, 1) forwards;
}

.cta-title.animate span::before {
    animation: a-ltr-before 1s cubic-bezier(.77, 0, .18, 1) forwards;
}

.cta-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    line-height: 1.6;
}

.cta-subtitle span {
    position: relative;
    overflow: hidden;
    display: block;
    line-height: 1.6;
}

.cta-subtitle span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: translateX(101%);
}

.cta-subtitle span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    transform: translateX(0);
}

.cta-subtitle.animate span::after {
    animation: a-rtl-after 1s cubic-bezier(.77, 0, .18, 1) forwards 0.3s;
}

.cta-subtitle.animate span::before {
    animation: a-rtl-before 1s cubic-bezier(.77, 0, .18, 1) forwards 0.3s;
}

/* Keyframes dla animacji od prawej do lewej */
@keyframes a-rtl-after {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-101%);
    }
}

@keyframes a-rtl-before {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-200%);
    }
}

/* Mobile adaptacje dla sekcji CTA */
@media (max-width: 768px) {
    .cta-section {
        padding-top: 5rem;
        /* Zmniejszony padding-bottom dla mobile */
        min-height: auto;
    }

    .cta-title {
        font-size: 3em;
        margin-bottom: 1.5rem;
    }

    .cta-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .cta-title {
        font-size: 2.2em;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }
}

/* ================ SEKCJA FORMULARZA ================ */
.form-section {
    background: #121212;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#form-app {
    width: 100%;
    max-width: 800px;
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Article & Sidebar dla formularza */
.form-article {
    display: flex;
    margin: 10px;
    width: calc(100% - 20px);
    max-width: 720px;
    height: 530px;
    perspective: 1000px;
}

.form-header {
    display: flex;
    flex-direction: column;
    width: 60px;
    height: 100%;
    background-color: #444;
    border-right: 2px dotted #39FE14;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2),
        0 10px 10px rgba(0, 0, 0, 0.2);
}

/* Progress Steps */
.form-progress {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.form-progress-step {
    position: relative;
    width: 30px;
    height: 30px;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: #39FE14;
    color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.form-progress-step:last-child {
    margin-bottom: 0;
}

.form-progress-step::before {
    content: '';
    position: absolute;
    top: -20px;
    width: 2px;
    height: 20px;
    background: #39FE14;
}

.form-progress-step:first-child::before {
    display: none;
}

.form-progress-step.active~.form-progress-step {
    background-color: #555;
    color: #fff;
}

.form-progress-step.active~.form-progress-step::before {
    background: #555;
}

/* Main Section formularza */
.form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    background-color: #444;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2),
        0 10px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.form-content h2 {
    margin: 0 0 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #39FE14;
}

/* Inputs formularza */
.input-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.input-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.input-container input[type="text"],
.input-container input[type="email"],
.input-container input[type="tel"],
.input-container input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 2px dashed #fff;
    outline: none;
    padding: 8px 0;
}

.wrong-input {
    border-bottom-color: #ff4444 !important;
}

/* Radio & Checkbox dla formularza */
.radio-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.radio-group label,
.checkbox-label {
    display: flex;
    align-items: center;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 8px;
    cursor: pointer;
}

input[type="radio"],
input[type="checkbox"],
input.checkbox-as-radio {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

input[type="radio"],
input.checkbox-as-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #aaa;
    border-radius: 50%;
    margin-right: 12px;
    background-color: transparent;
    transition: border-color .2s, background-color .2s;
}

input[type="radio"]:checked,
input.checkbox-as-radio:checked {
    border-color: #39FE14;
    background-color: #39FE14;
}

input[type="radio"]:checked::after,
input.checkbox-as-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: #444;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

input[type="checkbox"]:not(.checkbox-as-radio) {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #aaa;
    border-radius: 4px;
    margin-right: 12px;
    background-color: transparent;
    transition: border-color .2s, background-color .2s;
}

input[type="checkbox"]:not(.checkbox-as-radio):checked {
    border-color: #39FE14;
    background-color: #39FE14;
}

input[type="checkbox"]:not(.checkbox-as-radio):checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 12px;
    border: solid #444;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* Przyciski formularza */
.actions {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-form {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    padding: 14px 30px;
    margin: 20px 0;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    white-space: nowrap;
    position: relative;
    display: inline-block;
    overflow: visible;
    transform: translateX(15px);
    box-shadow: -5px 5px 0 rgba(57, 255, 21, 0.3);
}

.btn-form:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

/* Przycisk wróć - bardziej wyraźny biały */
.btn-back {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: -5px 5px 0 rgba(255, 255, 255, 0.25);
}

/* Przycisk dalej/wyślij */
.btn-next {
    background: #39FF15;
    color: #121212;
    border: none;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Stany przycisku - zapewnienie widoczności podczas ładowania */
.btn-form.loading {
    pointer-events: none;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-form.success {
    pointer-events: none;
    opacity: 1 !important;
    visibility: visible !important;
    background: #2acc00;
}

/* Animacja kropek */
.btn-loading-text {
    display: inline-block;
}

.dots {
    display: inline-block;
    width: 24px;
    text-align: left;
}

.dots span {
    animation: dot-blink 1.4s infinite;
    opacity: 0;
}

.dots span:nth-child(1) {
    animation-delay: 0s;
}

.dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-blink {

    0%,
    20% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Success text */
.btn-success-text {
    display: inline-block;
    animation: success-pop 0.5s ease-out;
}

@keyframes success-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Link w checkboxie na zielono */
.checkbox-label a {
    color: #39FE14 !important;
}

/* hover na desktop */
@media (hover: hover) and (pointer: fine) {
    .btn-form:hover:not(:disabled) {
        transform: translateX(20px);
        box-shadow: -7px 7px 0 rgba(57, 255, 21, 0.4);
    }

    .btn-back:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.08);
        box-shadow: -7px 7px 0 rgba(255, 255, 255, 0.35);
    }
}

/* efekt tapped dla mobile */
.btn-form.tapped:not(:disabled) {
    transform: translateX(20px);
    box-shadow: -8px 8px 0 rgba(57, 255, 21, 0.4);
}

/* ================ ANIMACJE FORMULARZA ================ */

/* ANIMACJA DO PRZODU - oryginalna (opadanie z obrotem) */
.animate-out {
    transform-origin: bottom left;
    animation: form-out 0.6s ease-in-out;
}

.animate-in {
    transform-origin: left;
    animation: form-in 0.6s ease-in-out;
}

/* ANIMACJA DO TYŁU - kartka wraca jak się otworzyła */
.animate-out-reverse {
    transform-origin: left center;
    animation: form-out-reverse 0.6s ease-in-out;
}

.animate-in-reverse {
    transform-origin: left center;
    animation: form-in-reverse 0.6s ease-in-out;
}

/* ANIMACJA BŁĘDU */
.animate-wrong {
    animation: form-wrong 0.4s ease-in-out;
}

/* KEYFRAMES - DO PRZODU (ORYGINALNE) */
@keyframes form-out {
    0% {
        transform: translateY(0) rotate(0)
    }

    60% {
        transform: rotate(10deg)
    }

    100% {
        transform: translateY(1000px)
    }
}

@keyframes form-in {
    0% {
        opacity: 0;
        transform: rotateY(90deg)
    }

    100% {
        opacity: 1;
        transform: rotateY(0)
    }
}

/* KEYFRAMES - DO TYŁU (ODWRÓCONE OTWARCIE) */
@keyframes form-out-reverse {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }

    100% {
        transform: rotateY(90deg);
        opacity: 0;
    }
}

@keyframes form-in-reverse {
    0% {
        transform: rotateY(-90deg);
        opacity: 0;
    }

    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

/* KEYFRAMES - BŁĄD (TRZĘSIENIE) */
@keyframes form-wrong {
    0% {
        transform: translateX(0)
    }

    20% {
        transform: translateX(40px)
    }

    40% {
        transform: translateX(20px)
    }

    60% {
        transform: translateX(40px)
    }

    80% {
        transform: translateX(20px)
    }

    100% {
        transform: translateX(0)
    }
}

/* Mobile adaptacje dla formularza */
@media (max-width: 768px) {
    .form-section {
        padding: 2rem 1rem;
        min-height: 80vh;
    }

    .form-article {
        height: 470px;
    }

    .form-header {
        width: 60px;
        height: 100%;
        border-right: 2px dotted #39FE14;
        border-bottom: none;
    }

    .form-progress {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding: 20px 0;
    }

    .form-progress-step {
        margin-bottom: 0;
        margin-right: 0;
    }

    .form-progress-step:last-child {
        margin-bottom: 0;
    }

    .form-progress-step::before {
        content: '';
        position: absolute;
        top: -26px;
        width: 2px;
        height: 26px;
        background: #39FE14;
    }

    .form-progress-step:first-child::before {
        display: none;
    }

    .form-content {
        padding: 15px;
    }

    .form-content h2 {
        font-size: 1.7rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .form-article {
        margin: 5px;
        width: calc(100% - 10px);
        height: 470px;
    }

    .form-header {
        width: 50px;
    }

    .form-progress {
        justify-content: space-between;
        padding: 15px 0;
    }

    .form-progress-step {
        width: 25px;
        height: 25px;
        font-size: 14px;
        margin-bottom: 0;
    }

    .form-progress-step::before {
        top: -21px;
        height: 21px;
    }

    .form-content {
        padding: 12px;
    }

    .form-content h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .actions {
        flex-direction: row;
        gap: 15px;
        width: 100%;
        justify-content: flex-start;
    }

    .btn-form {
        width: auto;
        min-width: 90px;
        box-sizing: border-box;
        margin: 10px 0;
        padding: 12px 18px;
        text-align: center;
        justify-content: center;
        font-size: 16px;
        transform: translateX(10px);
        box-shadow: -5px 5px 0 rgba(57, 255, 21, 0.3);
    }

    .btn-back {
        box-shadow: -5px 5px 0 rgba(255, 255, 255, 0.25);
        order: 1;
    }

    .btn-next {
        order: 2;
        min-height: 48px;
    }

    .btn-form:hover:not(:disabled),
    .btn-form.tapped:not(:disabled) {
        transform: translateX(15px);
        box-shadow: -7px 7px 0 rgba(57, 255, 21, 0.4);
    }

    .btn-back:hover:not(:disabled) {
        box-shadow: -7px 7px 0 rgba(255, 255, 255, 0.35);
        background: rgba(255, 255, 255, 0.08);
    }

    .input-container input[type="text"],
    .input-container input[type="email"],
    .input-container input[type="number"],
    .input-container input[type="tel"] {
        border-radius: 0;
    }

    input[type="radio"],
    input.checkbox-as-radio {
        border-radius: 50%;
    }

    input[type="checkbox"]:not(.checkbox-as-radio) {
        border-radius: 4px;
    }
}

/* ================ SEPARATOR SECTION ================ */
.separator-section {
    background: #121212;
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.animated-line {
    height: 3px;
    width: 80%;
    max-width: 1200px;
    background: transparent;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.animated-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(57, 255, 21, 0.3) 10%,
            #39FF15 50%,
            rgba(57, 255, 21, 0.3) 90%,
            transparent 100%);
    transform: translateX(-50%);
}

.animated-line.animate::before {
    animation: expandFromCenter 0.8s ease-out forwards;
}

@keyframes expandFromCenter {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* ================ FOOTER SECTION ================ */
.footer-section {
    background: #121212;
    padding: 2rem 0;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
}

/* Footer Left - Privacy Policy & Cookie Settings */
.footer-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.8rem;
}

.footer-left a {
    color: #39FF15;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-left a:hover {
    color: #fff;
}

.footer-separator {
    color: #39FF15;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Footer Center - Copyright */
.footer-center {
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-center p {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin: 0;
}

/* Footer Right - Social Media */
.footer-right {
    display: flex;
    justify-content: flex-end;
}

.social-media ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.social-media ul li a {
    width: 50px;
    height: 50px;
    background-color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    display: block;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid #fff;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-media ul li a .icon {
    position: relative;
    color: #262626;
    transition: .5s;
    z-index: 3;
}

.social-media ul li a:hover .icon {
    color: #fff;
    transform: rotateY(360deg);
}

.social-media ul li a:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: .5s;
    z-index: 2;
}

.social-media ul li a:hover:before {
    top: 0;
}

/* Social Media Colors */
.social-media ul li:nth-child(1) a:before {
    background: #333;
    /* GitHub */
}

.social-media ul li:nth-child(2) a:before {
    background: #0077b5;
    /* LinkedIn */
}

.social-media ul li:nth-child(3) a:before {
    background: #ff0000;
    /* YouTube */
}

/* Footer - Mobile */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
    }

    .footer-left {
        order: 2;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .footer-left a {
        font-size: 1rem;
    }

    .footer-separator {
        font-size: 1rem;
    }

    .footer-center {
        order: 1;
    }

    .footer-center p {
        font-size: 0.9rem;
    }

    .footer-right {
        order: 3;
    }

    .social-media ul {
        justify-content: center;
    }

    .social-media ul li a {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .footer-section {
        padding: 1.5rem 0;
    }

    .footer-container {
        gap: 1rem;
    }

    .footer-left a {
        font-size: 0.9rem;
    }

    .footer-separator {
        font-size: 0.9rem;
    }

    .social-media ul {
        gap: 10px;
    }

    .social-media ul li a {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }
}