/* --- ZDEFINIOWANA PALETA KOLORÓW (Sunset Fade) --- */
:root {
    --sunset-orange: #ffaa00;
    --sunset-pink: #ff00cc;
    --sunset-purple: #aa00ff;
    --bg-dark: #05020a; /* Głęboka czerń z nutą fioletu */
    --glass-bg: rgba(20, 10, 30, 0.85);
    --glass-border: rgba(255, 170, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    /* Dodajemy tło gradientowe jak w poprzednim projekcie */
    background: radial-gradient(ellipse at top center, rgba(170, 0, 255, 0.15) 0%, var(--bg-dark) 60%);
    color: #ffffff;
    overflow-x: hidden;
}

/* Navigation */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Dodany cień w kolorze pomarańczowym */
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.nav-links {
    display: flex;
    gap: 50px;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    /* Zmiana na gradient */
    background: linear-gradient(90deg, var(--sunset-orange), var(--sunset-pink));
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--sunset-orange);
}

.nav-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px var(--sunset-orange);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 10px;
    overflow: hidden;
}

.icon-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-btn:hover {
    background: rgba(255, 170, 0, 0.2);
    border-color: var(--sunset-orange);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
}

/* GŁÓWNY PRZYCISK REJESTRACJI - GRADIENT */
.register-btn {
    padding: 13px 32px;
    background-image: linear-gradient(
        to right,
        var(--sunset-orange) 0%,
        var(--sunset-pink) 51%,
        var(--sunset-orange) 100%
    );
    background-size: 200% auto;
    border: none;
    border-radius: 25px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background-position 0.5s, transform 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.3);
}

.register-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 204, 0.4);
}


/* Register Page */
.parallax-layer {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}
.parallax-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.register-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    pointer-events: all;
}

#characterParallax {
    will-change: transform;
}

.register-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/tlol.png'); 
    background-color: var(--bg-dark); /* Fallback */
    z-index: 200;
    overflow-x: hidden;
    overflow-y: hidden;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.register-page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    gap: 80px;
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.register-page.active .register-container {
    opacity: 1;
    transform: scale(1);
}


.register-content {
    max-width: 500px;
    z-index: 2;
    position: relative;
    margin-top: 80px;
    align-self: center;
}

.register-content h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 40px;
    letter-spacing: -2px;
    color: #ffffff;
}

.register-content h1 .highlight {
    /* Kolor zmieniony w klasie .highlight niżej */
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-input {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--sunset-orange);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.form-input::placeholder {
    color: #888;
}

.form-select {
    display: none;
}

.social-login {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.social-title {
    font-size: 14px;
    color: #b8c5d6;
    margin-bottom: 15px;
    text-align: center;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
}

.social-btn:hover {
    border-color: var(--sunset-orange);
    background: rgba(255, 170, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.2);
}

/* Discord zostawiamy fioletowy, ale dopasowany do palety */
.social-btn.discord:hover {
    border-color: var(--sunset-purple);
    background: rgba(170, 0, 255, 0.1);
}

.social-btn.steam:hover {
    border-color: #00adee;
    background: rgba(0, 173, 238, 0.1);
}

.social-icon {
    font-size: 20px;
}

.terms {
    margin-top: 20px;
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

.submit-btn {
    margin-top: 30px;
    padding: 18px 45px;
    /* Zmiana na gradient Sunset */
    background-image: linear-gradient(
        to right,
        var(--sunset-orange) 0%,
        var(--sunset-pink) 51%,
        var(--sunset-orange) 100%
    );
    background-size: 200% auto;
    border: none;
    border-radius: 30px;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.3);
}

.submit-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 204, 0.4);
}

.register-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scale(1.2);
    z-index: 5;
    width: 700px;
    height: auto;
    pointer-events: none;
}

.register-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.back-btn {
    position: absolute;
    top: 30px;
    left: 60px;
    z-index: 330;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
}

.back-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero {
    /* Zwiększyłem padding z lewej, żeby tekst nie kleił się do krawędzi, jeśli monitor jest szeroki */
    padding: 0 8%; 
    min-height: 100vh;
    display: flex;
    align-items: center; /* Centrowanie pionowe tekstu */
    justify-content: flex-start; /* Tekst zawsze od lewej */
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark); /* Zabezpieczenie gdyby zdjęcie się nie wczytało */
}

/* Warstwa ze zdjęciem (background) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/hero-main-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    
    /* ZMIANA: Usunąłem dziwne kolory/filtry. Zdjęcie jest teraz czyste. */
    filter: none; 
    opacity: 1; /* Pełna widoczność zdjęcia */
}

/* Warstwa cienia pod tekstem (Gradient) */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* ZMIANA: Gradient idzie od czerni (za tekstem) do przezroczystości (na zdjęciu) */
    /* Dzięki temu zdjęcie po prawej jest jasne i wyraźne */
    background: linear-gradient(90deg, 
        rgba(5, 2, 10, 0.95) 0%,   /* Ciemno za tekstem */
        rgba(5, 2, 10, 0.7) 40%,   /* Półprzezroczyście na środku */
        transparent 100%           /* Czyste zdjęcie po prawej */
    );
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 700px; /* Trochę szerszy kontener na tekst */
    z-index: 3; /* Tekst musi być NAJWYŻEJ */
    position: relative;
    /* Dodatkowy odstęp od góry, bo nawigacja jest absolute */
    padding-top: 60px; 
}

.hero h1 {
    font-size: 82px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 25px;
    letter-spacing: -2px;
    color: #ffffff;
}

/* Highlight (to co się świeci) */
.hero h1 .highlight {
    background: linear-gradient(to right, var(--sunset-orange), var(--sunset-pink));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 4s linear infinite;
    filter: drop-shadow(0 0 15px rgba(255, 170, 0, 0.25)); /* Delikatna poświata */
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #d1d5db; /* Jaśniejszy szary, lepszy kontrast */
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* Cień pod tekstem dla czytelności na tle */
}

/* Przycisk CTA */
.cta-button {
    padding: 18px 45px;
    background-image: linear-gradient(
        to right,
        var(--sunset-orange) 0%,
        var(--sunset-pink) 51%,
        var(--sunset-orange) 100%
    );
    background-size: 200% auto;
    border: none;
    border-radius: 30px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background-position 0.5s, transform 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(255, 170, 0, 0.3);
}

.cta-button:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 204, 0.4);
}



/* About Section */
.about {
    padding: 120px 60px;
    background: var(--bg-dark);
    display: flex;
    gap: 60px;
    align-items: stretch;
    position: relative;
}

.about-left {
    flex: 0 0 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about h2 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: #b8c5d6;
    margin-bottom: 35px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.about-tag {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.about-tag:hover {
    background: rgba(255, 170, 0, 0.1);
    border-color: var(--sunset-orange);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.about-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.about-right {
    flex: 1;
    min-width: 0;
}

.secondary-btn {
    padding: 16px 38px;
    background: transparent;
    border: 2px solid var(--sunset-orange);
    border-radius: 25px;
    color: var(--sunset-orange);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.4);
    box-shadow: inset 0 0 10px rgba(255, 170, 0, 0.1);
}

.secondary-btn:hover {
    background: var(--sunset-orange);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
}

/* Cards Grid */
.cards-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cards-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    cursor: grab;
    height: 100%;
}

.cards-scroll-container::-webkit-scrollbar {
    display: none;
}

.cards-grid {
    display: flex;
    gap: 25px;
    height: 100%;
    padding-bottom: 10px;
}

/* KARTY - GLASSMORPHISM */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    width: calc((100% - 50px) / 2.5); 
    min-width: calc((100% - 50px) / 2.5);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
    border-color: var(--sunset-orange);
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 65%;
    background: #1a1a1a;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    height: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.card-content h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
    text-transform: uppercase;
}

.card-content p {
    font-size: 14px;
    color: #bbb;
    line-height: 1.5;
}

/* Scroll indicator */
.scroll-indicator {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    position: relative;
    border-radius: 10px;
    cursor: pointer;
}

.scroll-indicator-bar {
    position: absolute;
    height: 100%;
    /* Gradient paska przewijania */
    background: linear-gradient(90deg, var(--sunset-orange), var(--sunset-pink));
    width: 30%;
    border-radius: 10px;
    left: 0;
    transition: transform 0.1s linear;
    cursor: grab;
    box-shadow: 0 0 10px var(--sunset-orange);
}

.scroll-indicator-bar:active {
    cursor: grabbing;
}

/* --- Sekcja HOW TO START --- */

.how-to-start {
    padding: 100px 60px;
    background: var(--bg-dark);
    position: relative;
}

.how-to-start h2 {
    font-size: 60px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.how-to-start-subtitle {
    color: #888;
    margin-bottom: 60px;
    font-size: 14px;
    letter-spacing: 1px;
}

.steps-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 30px;
    border-radius: 30px;
    flex: 0 1 300px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.step-card:hover {
    border-color: var(--sunset-pink);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.step-card.highlight-card {
    /* Wyróżniona karta z gradientem */
    background: linear-gradient(145deg, rgba(255, 170, 0, 0.1), rgba(255, 0, 204, 0.1));
    border: 1px solid var(--sunset-orange);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.2);
}

.step-content h3 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: #ffffff;
}

.step-content p {
    color: #bbb;
    font-size: 14px;
    line-height: 1.7;
}

.step-button {
    margin-top: auto;
    padding: 15px 25px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: 0.3s;
    text-align: center;
}

.step-button:hover {
    background: var(--sunset-pink);
    border-color: var(--sunset-pink);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 204, 0.5);
}

/* Laptop Preview */
.laptop-preview {
    flex: 1.5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.laptop-preview img {
    max-width: 50%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.8));
}

.lime-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    /* Zmiana na pomarańczowo-różową poświatę */
    background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-pink));
    filter: blur(90px);
    opacity: 0.25;
    z-index: 1;
}

/* FAQ Section */
.faq {
    padding: 120px 60px;
    background: var(--bg-dark);
}

.faq h2 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -2px;
    color: #ffffff;
}

.faq-subtitle {
    font-size: 17px;
    color: #b8c5d6;
    margin-bottom: 60px;
    line-height: 1.7;
    max-width: 800px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active {
    /* Aktywny element FAQ w kolorze pomarańczowym */
    background: rgba(255, 170, 0, 0.1);
    border-color: var(--sunset-orange);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.2);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s;
    user-select: none;
}

.faq-item.active .faq-question {
    color: var(--sunset-orange);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-item.active .faq-question:hover {
    background: transparent;
}

.faq-icon {
    font-size: 20px;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--sunset-orange);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 30px 25px 30px;
    color: #ddd;
    line-height: 1.7;
    font-size: 15px;
}


/* --- KLUCZOWE ANIMACJE I HIGHLIGHT --- */
@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* GŁÓWNY GRADIENT TEKSTU (Pomarańcz -> Róż -> Fiolet) */
.highlight {
    background: linear-gradient(to right, var(--sunset-orange), var(--sunset-pink), var(--sunset-orange));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; 
    animation: gradientFlow 4s linear infinite;
    display: inline-block;
    filter: drop-shadow(0 0 5px rgba(255, 170, 0, 0.3));
}

/* Styl ikonki Scroll Down */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mouse-icon svg {
    display: block;
    color: var(--sunset-orange);
    filter: drop-shadow(0 0 5px var(--sunset-orange));
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.scroll-down-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}
/* --- Animacje Scroll Reveal --- */

.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-bottom { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-zoom { transform: scale(0.9); }

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Przycisk Powrotu na Górę --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--sunset-pink);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 0, 204, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #ffffff;
    color: var(--sunset-pink);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: scale(1.1);
}

/* Warstwa przejścia między stronami */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.is-transitioning .page-transition {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.reg-only {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.registration-mode .reg-only {
    display: flex;
    opacity: 1;
}

.form-group {
    transition: all 0.3s ease;
}

.registration-mode h1 {
    font-size: 54px;
    margin-bottom: 20px;
}

.registration-mode .register-form {
    gap: 10px;
}

.registration-mode .submit-btn {
    margin-top: 15px;
}

/* --- Stylowanie sekcji zalogowanego użytkownika --- */

.user-welcome {
    color: #b8c5d6;
    font-size: 14px;
    font-weight: 500;
    margin-right: 10px;
    display: inline-block;
}

.user-welcome b {
    color: var(--sunset-orange);
    font-weight: 700;
}

.dashboard-btn, .logout-link {
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    background-size: 200% auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- PRZYCISK PANEL (Pomarańcz/Róż) --- */
.dashboard-btn {
    color: #ffffff;
    background-image: linear-gradient(
        to right,
        var(--sunset-orange) 0%,
        var(--sunset-pink) 51%,
        var(--sunset-orange) 100%
    );
    margin-right: 8px;
}

.dashboard-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 170, 0, 0.4);
}

/* --- PRZYCISK WYLOGUJ (Czerwony/Fioletowy) --- */
.logout-link {
    color: #ffffff;
    background-image: linear-gradient(
        to right,
        #ff3333 0%,
        #aa00ff 51%,
        #ff3333 100%
    );
}

.logout-link:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.4);
}

@media (max-width: 768px) {
    .user-welcome {
        display: none;
    }
    
    .dashboard-btn, .logout-link {
        padding: 8px 16px;
        font-size: 13px;
    }
}