:root {
    --bg-dark: #090d0b;
    --bg-card: rgba(18, 28, 23, 0.75);
    --bg-card-border: rgba(64, 145, 108, 0.25);
    --bg-card-hover: rgba(28, 48, 38, 0.9);

    --accent-green: #10b981;
    --accent-emerald: #40916c;
    --accent-bright-green: #52b788;
    --accent-cyan: #00f5d4;
    --accent-violet: #a29bfe;
    --accent-purple-glow: rgba(162, 155, 254, 0.4);

    --text-light: #e8f5e9;
    --text-muted: #94a3b8;
    --text-gold: #f4d06f;

    --font-title: 'MedievalSharp', 'Cinzel', serif;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow: hidden;
    user-select: none;
}

#container {
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    position: relative;
}

/* Sekcja Slajdu */
.slide-section {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 40px 20px;
    overflow: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: rgba(9, 13, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(64, 145, 108, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.header-title {
    font-family: var(--font-title);
    font-size: 1.6rem;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5), 0 0 20px rgba(0, 245, 212, 0.2);
    transition: text-shadow 0.3s ease;
}

.header-title:hover {
    text-shadow: 0 0 15px rgba(0, 245, 212, 0.8);
}

.header-nav {
    display: flex;
    gap: 30px;
    list-style: none;
}

.header-nav a {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 245, 212, 0.6);
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 80%;
}

.side-nav {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dot-link {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent-emerald);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot-link::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 28, 23, 0.9);
    border: 1px solid var(--accent-emerald);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dot-link:hover::before {
    opacity: 1;
}

.dot-link.active,
.dot-link:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
    scale: 1.25;
}

#hero {
    background: radial-gradient(circle at 50% 55%, #255d49 0%, #113629 35%, #0d2119 65%, #070d0a 100%);
    text-align: center;
}

/* Dynamic background atmosphere glow */
.hero-glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.12) 0%, rgba(162, 155, 254, 0.08) 40%, transparent 70%);
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulseGlow 6s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-staff-wrapper {
    position: relative;
    width: 100%;
    max-width: 850px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    z-index: 2;
}

.hero-staff-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 245, 212, 0.45)) drop-shadow(0 0 35px rgba(162, 155, 254, 0.3));
    animation: floatStaff 4s infinite ease-in-out;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-staff-img:hover {
    filter: drop-shadow(0 0 30px rgba(0, 245, 212, 0.8)) drop-shadow(0 0 50px rgba(162, 155, 254, 0.6));
    transform: scale(1.03);
}

@keyframes floatStaff {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-content {
    z-index: 5;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-main-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.6);
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.1rem;
    color: #d1fae5;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.7);
    transform: translateY(-3px);
    color: var(--accent-cyan);
}

.scroll-down-hint {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.scroll-down-hint:hover {
    opacity: 1;
    color: var(--accent-cyan);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-green);
    border-bottom: 2px solid var(--accent-green);
    transform: rotate(45deg);
    animation: bounceArrow 2s infinite ease-in-out;
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(8px) rotate(45deg); }
    60% { transform: translateY(4px) rotate(45deg); }
}

#team {
    background: radial-gradient(circle at 50% 50%, #16261e 0%, #0b1410 60%, #060a08 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    z-index: 2;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.section-sub-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    z-index: 2;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-emerald), transparent);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--accent-green);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.2);
}

.team-card:hover::before {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green), var(--accent-violet));
}

.avatar-box {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 2px solid var(--accent-emerald);
    padding: 4px;
    background: rgba(10, 20, 15, 0.8);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-box img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1b3a2f 0%, #0d1f18 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-cyan);
}

.member-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.member-role {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

#characters {
    background: radial-gradient(circle at 30% 60%, #15221b 0%, #0a120e 60%, #050806 100%);
}

.char-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    z-index: 2;
}

.char-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 20px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.char-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 245, 212, 0.15);
    transform: translateY(-4px);
}

.char-badge {
    align-self: flex-start;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--accent-emerald);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

.char-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.char-subtitle {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    font-style: italic;
}

.char-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

#gameplay {
    background: radial-gradient(circle at 70% 40%, #1e3328 0%, #0d1712 60%, #050907 100%);
}

.features-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1100px;
    z-index: 2;
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 10px;
    padding: 26px 20px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--accent-violet);
    box-shadow: 0 0 20px rgba(162, 155, 254, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.difficulty-pills {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.pill {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

.pill.easy { border-color: #34d399; color: #34d399; }
.pill.normal { border-color: #fbbf24; color: #fbbf24; }
.pill.hard { border-color: #f87171; color: #f87171; }


.team-card a {
    color: #34d399;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .char-grid {
        grid-template-columns: 1fr;
    }
    .features-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-main-title {
        font-size: 2.8rem;
    }
    header {
        padding: 0 20px;
    }
    .header-nav {
        gap: 15px;
    }
    .header-nav a {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    .hero-main-title {
        font-size: 2.2rem;
    }
    .header-nav {
        display: none;
    }
    .side-nav {
        right: 10px;
    }
}