/* === CSS Variables === */
:root {
    --primary-purple: #6B4C9A;
    --primary-purple-dark: #4A3570;
    --primary-purple-light: #8B6BBF;
    --accent-yellow: #F5D547;
    --accent-yellow-dark: #E5C537;
    --text-white: #FFFFFF;
    --text-light: #E8E0F0;
    --bg-dark: #1a1025;
    --bg-section: #251735;
    --bg-card: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --gradient-purple: linear-gradient(135deg, #6B4C9A 0%, #1a1025 100%);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fredoka', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

strong {
    color: var(--accent-yellow);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #FFE066 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(245, 213, 71, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(245, 213, 71, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-yellow);
    transform: translateY(-4px);
}

.btn-discord {
    background: #5865F2;
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.3rem;
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/bg.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(26, 16, 37, 0.4) 0%,
        rgba(26, 16, 37, 0.6) 50%,
        rgba(26, 16, 37, 0.95) 100%
    );
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
}

.logo {
    max-width: 450px;
    width: 90%;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 500;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.tagline .highlight {
    color: var(--accent-yellow);
    font-weight: 700;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent-yellow);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 32px; }
}

/* === About Section === */
.about {
    padding: 100px 24px 60px;
    background: var(--bg-dark);
    position: relative;
}

.about-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
    line-height: 1.9;
}

/* === Trailer Section === */
.trailer-section {
    padding: 60px 24px 100px;
    background: var(--bg-dark);
    position: relative;
}

.trailer-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.trailer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.trailer-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px auto 0;
}

/* === Features Section === */
.features {
    padding: 100px 24px;
    background: var(--bg-section);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.feature-showcase {
    margin-top: 60px;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-item.reverse {
    direction: rtl;
}

.feature-item.reverse > * {
    direction: ltr;
}

.feature-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.feature-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 76, 154, 0.3) 0%, transparent 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-image:hover::before {
    opacity: 1;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-text {
    padding: 20px;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* === Steam Section === */
.steam-section {
    padding: 100px 24px;
    background: var(--bg-dark);
    text-align: center;
    position: relative;
}

.steam-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.steam-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.steam-widget-container {
    margin-top: 50px;
}

.steam-widget {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* === Footer === */
.footer {
    padding: 60px 24px 40px;
    background: var(--bg-section);
    text-align: center;
}

.footer-logo {
    width: 150px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-white);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* === Responsive === */
@media (max-width: 968px) {
    .feature-item {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .feature-item:last-child {
        margin-bottom: 0;
    }

    .feature-item.reverse {
        direction: ltr;
    }

    .feature-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .logo {
        max-width: 280px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .btn-large {
        padding: 16px 36px;
        font-size: 1.1rem;
    }

    .cta-buttons,
    .trailer-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about {
        padding: 80px 20px 40px;
    }

    .trailer-section {
        padding: 40px 20px 80px;
    }

    .features,
    .steam-section {
        padding: 80px 20px;
    }

    .steam-widget {
        height: 300px;
    }

    .footer {
        padding: 50px 20px 30px;
    }

    .footer-logo {
        width: 120px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 15px 25px;
    }

    .footer-links a {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100svh;
    }

    .logo {
        max-width: 220px;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .scroll-indicator {
        display: none;
    }

    .footer-logo {
        width: 100px;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

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

    .copyright {
        font-size: 0.8rem;
    }
}
