/* ===== CSS Variables - Premium Dark Theme ===== */
:root {
    --primary: #0a0a0f;
    --secondary: #0d0d14;
    --tertiary: #12121a;
    --accent: #c9a227;
    --accent-light: #e3b835;
    --accent-glow: rgba(201, 162, 39, 0.3);
    --gold: #d4af37;
    --gold-dark: #b8960c;
    --platinum: #e5e4e2;
    --text: #f5f5f5;
    --text-muted: #83839a;
    --text-light: #9a9aab;
    --bg-dark: #050508;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.04);
    --border: rgba(201, 162, 39, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--accent) 50%, #8b6914 100%);
    --gradient-dark: linear-gradient(180deg, var(--primary) 0%, var(--bg-dark) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    --shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 10px 40px rgba(201, 162, 39, 0.15);
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary);
    box-shadow: var(--shadow-gold);
}

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(201, 162, 39, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201, 162, 39, 0.05);
}

.btn-nav {
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-nav:hover {
    background: var(--accent);
    color: var(--primary);
}

.btn-game {
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.8rem;
}

.btn-game:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201, 162, 39, 0.05);
}

.btn-cta {
    background: var(--text);
    color: var(--primary);
    padding: 18px 52px;
    font-size: 0.9rem;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.15);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.4rem;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.logo-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links a:hover:not(.btn) {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    background: var(--gradient-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(201, 162, 39, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Subtle grid pattern */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 162, 39, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.floating-cards {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-cards .card {
    position: absolute;
    font-size: 6rem;
    opacity: 0.04;
    animation: float 8s ease-in-out infinite;
    color: var(--accent);
}

.card-1 { top: 15%; left: 8%; animation-delay: 0s; }
.card-2 { top: 20%; right: 12%; animation-delay: 2s; }
.card-3 { bottom: 25%; left: 15%; animation-delay: 4s; }
.card-4 { bottom: 15%; right: 8%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.04; }
    50% { transform: translateY(-30px) rotate(3deg); opacity: 0.08; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--platinum);
}

.highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 60px;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== Section Styles ===== */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-header h2 {
    color: var(--platinum);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== Games Section ===== */
.games {
    background: var(--primary);
    position: relative;
}

.games::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    justify-content: center;
    gap: 24px;
}

.games-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    padding: 48px 0;
}

.game-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: var(--transition);
}

.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(201, 162, 39, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--border);
    box-shadow: var(--shadow), 0 0 60px rgba(201, 162, 39, 0.05);
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-card:hover::after {
    opacity: 1;
}

.game-card.featured {
    border-color: rgba(201, 162, 39, 0.3);
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.05) 0%, transparent 100%);
}

.game-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    background: var(--gradient-gold);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.game-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.game-card h3 {
    color: var(--platinum);
    position: relative;
    z-index: 1;
}

.game-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

/* ===== Features Section ===== */
.features {
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 48px 36px;
    transition: var(--transition);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 36px;
    width: 60px;
    height: 1px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    opacity: 1;
    width: 40px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: block;
    filter: grayscale(20%);
}

.feature-card h3 {
    color: var(--platinum);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== About Section ===== */
.about {
    background: var(--secondary);
    position: relative;
}

.about::before,
.about::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.about::before { top: 0; }
.about::after { bottom: 0; }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-text .section-tag {
    margin-bottom: 2rem;
}

.about-text h2 {
    color: var(--platinum);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 2.5rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check {
    width: 28px;
    height: 28px;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--accent);
}

.about-feature span:last-child {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.cards-stack {
    position: relative;
    width: 240px;
    height: 320px;
}

.stack-card {
    position: absolute;
    width: 160px;
    height: 220px;
    background: linear-gradient(145deg, var(--tertiary) 0%, var(--primary) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.stack-1 { top: 0; left: 40px; transform: rotate(-12deg); z-index: 4; color: var(--platinum); }
.stack-2 { top: 20px; left: 55px; transform: rotate(-4deg); z-index: 3; color: var(--accent); }
.stack-3 { top: 40px; left: 70px; transform: rotate(4deg); z-index: 2; color: var(--gold); }
.stack-4 { top: 60px; left: 85px; transform: rotate(12deg); z-index: 1; color: var(--platinum); }

.cards-stack:hover .stack-1 { transform: rotate(-20deg) translateX(-30px) translateY(-10px); }
.cards-stack:hover .stack-2 { transform: rotate(-8deg) translateX(-15px); }
.cards-stack:hover .stack-3 { transform: rotate(8deg) translateX(15px); }
.cards-stack:hover .stack-4 { transform: rotate(20deg) translateX(30px) translateY(-10px); }

/* ===== CTA Section ===== */
.cta {
    background: var(--primary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.08) 0%, transparent 60%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: var(--platinum);
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--bg-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(201, 162, 39, 0.02);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 36px;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 24px;
}

.info-icon {
    font-size: 1.5rem;
    width: 64px;
    height: 64px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h4 {
    margin-bottom: 4px;
    color: var(--platinum);
    font-size: 0.95rem;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary);
    padding: 100px 0 40px;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 280px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--platinum);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.disclaimer {
    margin-top: 12px;
    font-size: 0.75rem !important;
    opacity: 0.6;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(5, 5, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 32px;
        transform: translateX(100%);
        opacity: 0;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero-stats {
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    section {
        padding: 80px 0;
    }

    .games-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .cards-stack {
        transform: scale(0.85);
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===== Selection ===== */
::selection {
    background: var(--accent);
    color: var(--primary);
}
