/* ========== CSS Variables & Reset ========== */
:root {
    --clr-bg: #0a0a0f;
    --clr-bg-secondary: #111118;
    --clr-bg-card: #16161f;
    --clr-surface: #1c1c28;
    --clr-border: rgba(255,255,255,0.06);
    --clr-text: #e8e8ed;
    --clr-text-muted: #8b8b9e;
    --clr-accent: #f0a500;
    --clr-accent-light: #ffc847;
    --clr-accent-glow: rgba(240,165,0,0.15);
    --clr-accent-glow-strong: rgba(240,165,0,0.3);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--clr-accent) var(--clr-bg);
}

body {
    font-family: var(--font-body);
    background: var(--clr-bg);
    color: var(--clr-text);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
ul { list-style: none; }

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

/* ========== Cursor Glow ========== */
.cursor-glow {
    position: fixed; width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, var(--clr-accent-glow) 0%, transparent 70%);
    pointer-events: none; z-index: 0; transform: translate(-50%, -50%);
    opacity: 0; transition: opacity 0.3s;
}

/* ========== Navbar ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 20px 0; transition: all 0.4s var(--ease-out);
}
.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--clr-border);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; z-index: 1001; }
.logo-img { width: 40px; height: 40px; border-radius: 8px; }
.logo-text {
    font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem;
    letter-spacing: 3px; color: var(--clr-accent);
}
.nav-links { display: flex; gap: 36px; }
.nav-link {
    font-size: 0.9rem; font-weight: 500; letter-spacing: 0.5px;
    color: var(--clr-text-muted); transition: color 0.3s;
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--clr-accent); transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--clr-text); }
.nav-link:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; z-index: 1001; padding: 4px; }
.hamburger-line {
    width: 24px; height: 2px; background: var(--clr-text);
    transition: all 0.3s var(--ease-out); border-radius: 2px;
}
.nav-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu-overlay {
    position: fixed; inset: 0; background: rgba(10,10,15,0.97);
    z-index: 999; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: all; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 32px; text-align: center; }
.mobile-nav-link { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--clr-text-muted); transition: color 0.3s; }
.mobile-nav-link:hover { color: var(--clr-accent); }

/* ========== Hero ========== */
.hero-section {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg-wrapper {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg-img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.4) saturate(0.8);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.6) 50%, var(--clr-bg) 100%);
}
.particle-canvas {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 800px; padding: 0 24px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: 50px;
    background: var(--clr-accent-glow);
    border: 1px solid rgba(240,165,0,0.2);
    font-size: 0.8rem; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--clr-accent-light);
    margin-bottom: 28px;
}
.badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--clr-accent); animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-title {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900; line-height: 1.1; margin-bottom: 24px;
}
.title-line { display: block; }
.title-accent {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem; color: var(--clr-text-muted);
    max-width: 600px; margin: 0 auto 40px; line-height: 1.8;
}
.hero-subtitle strong { color: var(--clr-accent-light); font-weight: 600; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 12px;
    font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s var(--ease-out); position: relative; overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--clr-accent), #d4900a);
    color: #0a0a0f;
    box-shadow: 0 4px 24px rgba(240,165,0,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(240,165,0,0.5);
}
.btn-ghost {
    border: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    background: rgba(255,255,255,0.03);
}
.btn-ghost:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: var(--clr-accent-glow);
}
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-arrow { width: 18px; height: 18px; transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
    opacity: 0.6; transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-mouse {
    width: 24px; height: 38px; border: 2px solid var(--clr-text-muted);
    border-radius: 12px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-wheel {
    width: 3px; height: 8px; background: var(--clr-accent);
    border-radius: 3px; animation: scroll-anim 2s infinite;
}
@keyframes scroll-anim {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}
.scroll-text { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--clr-text-muted); }

/* ========== Section Headers ========== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 3px; color: var(--clr-accent); margin-bottom: 16px;
    text-transform: uppercase;
}
.section-title {
    font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; line-height: 1.2;
}

/* ========== About Cards ========== */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-card {
    background: var(--clr-bg-card); border: 1px solid var(--clr-border);
    border-radius: 20px; padding: 40px 32px;
    transition: all 0.4s var(--ease-out); position: relative; overflow: hidden;
}
.about-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--clr-accent-glow) 0%, transparent 50%);
    opacity: 0; transition: opacity 0.4s;
}
.about-card:hover { border-color: rgba(240,165,0,0.2); transform: translateY(-4px); }
.about-card:hover::before { opacity: 1; }
.card-icon { width: 56px; height: 56px; color: var(--clr-accent); margin-bottom: 24px; position: relative; }
.card-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; position: relative; }
.card-text { color: var(--clr-text-muted); font-size: 0.95rem; line-height: 1.7; position: relative; }

/* ========== Games Section ========== */
.games-section { background: var(--clr-bg-secondary); }
.game-card.featured {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    background: var(--clr-bg-card); border: 1px solid var(--clr-border);
    border-radius: 24px; overflow: hidden;
    transition: border-color 0.4s;
}
.game-card.featured:hover { border-color: rgba(240,165,0,0.2); }
.game-card-media { position: relative; overflow: hidden; min-height: 400px; }
.game-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.game-card:hover .game-img { transform: scale(1.05); }
.game-card-overlay {
    position: absolute; top: 20px; left: 20px;
}
.game-status {
    padding: 6px 16px; border-radius: 50px;
    background: rgba(240,165,0,0.15); border: 1px solid rgba(240,165,0,0.3);
    font-size: 0.75rem; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--clr-accent-light);
}
.game-card-info { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.game-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.game-tag {
    padding: 4px 12px; border-radius: 6px; font-size: 0.72rem;
    font-weight: 600; letter-spacing: 0.5px;
    background: rgba(255,255,255,0.05); color: var(--clr-text-muted);
    border: 1px solid var(--clr-border);
}
.game-title { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.game-description { color: var(--clr-text-muted); margin-bottom: 24px; font-size: 0.95rem; line-height: 1.8; }
.game-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.game-feature { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--clr-text-muted); }
.feature-icon { width: 18px; height: 18px; color: var(--clr-accent); flex-shrink: 0; }

.more-games-teaser {
    margin-top: 40px; padding: 48px; border-radius: 20px;
    border: 2px dashed var(--clr-border); text-align: center;
    transition: border-color 0.3s;
}
.more-games-teaser:hover { border-color: rgba(240,165,0,0.2); }
.teaser-icon { width: 48px; height: 48px; color: var(--clr-text-muted); margin: 0 auto 16px; }
.teaser-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.teaser-text { color: var(--clr-text-muted); font-size: 0.9rem; }

/* ========== Philosophy ========== */
.philosophy-grid { display: flex; flex-direction: column; gap: 0; max-width: 800px; margin: 0 auto; }
.philosophy-item {
    display: flex; gap: 32px; padding: 40px 0;
    border-bottom: 1px solid var(--clr-border);
    transition: all 0.3s;
}
.philosophy-item:last-child { border-bottom: none; }
.philosophy-item:hover .philosophy-number { color: var(--clr-accent); }
.philosophy-number {
    font-family: var(--font-heading); font-size: 3rem; font-weight: 900;
    color: rgba(255,255,255,0.06); transition: color 0.4s; flex-shrink: 0;
    line-height: 1;
}
.philosophy-content h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.philosophy-content p { color: var(--clr-text-muted); font-size: 0.95rem; }

/* ========== Contact ========== */
.contact-section { background: var(--clr-bg-secondary); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-text { color: var(--clr-text-muted); font-size: 1.05rem; margin: 24px 0 40px; line-height: 1.8; }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
    display: flex; align-items: center; gap: 16px; padding: 20px;
    border-radius: 16px; background: var(--clr-bg-card);
    border: 1px solid var(--clr-border); transition: all 0.3s var(--ease-out);
}
.contact-link:hover { border-color: rgba(240,165,0,0.3); transform: translateX(4px); }
.contact-link-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--clr-accent); flex-shrink: 0; }
.contact-link-icon svg { width: 22px; height: 22px; }
.contact-link-label { font-size: 0.75rem; color: var(--clr-text-muted); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.contact-link-value { font-weight: 500; font-size: 0.95rem; display: block; margin-top: 2px; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px; color: var(--clr-text-muted); display: block; margin-bottom: 8px; }
.form-input {
    width: 100%; padding: 14px 18px; border-radius: 12px;
    background: var(--clr-bg-card); border: 1px solid var(--clr-border);
    color: var(--clr-text); font-family: var(--font-body); font-size: 0.95rem;
    transition: all 0.3s; outline: none;
}
.form-input::placeholder { color: rgba(139,139,158,0.5); }
.form-input:focus { border-color: var(--clr-accent); box-shadow: 0 0 0 3px var(--clr-accent-glow); }
.form-textarea { resize: vertical; min-height: 120px; }

/* ========== Footer ========== */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--clr-border); }
.footer-content { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.footer-logo-img { width: 32px; height: 32px; border-radius: 6px; }
.footer-logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1rem; letter-spacing: 3px; color: var(--clr-accent); }
.footer-tagline { color: var(--clr-text-muted); font-size: 0.9rem; }
.footer-divider { height: 1px; background: var(--clr-border); margin: 32px 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-copyright { font-size: 0.8rem; color: var(--clr-text-muted); }
.social-link {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--clr-border);
    transition: all 0.3s;
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { border-color: var(--clr-accent); color: var(--clr-accent); background: var(--clr-accent-glow); }

/* ========== Animations ========== */
.animate-in {
    opacity: 0; transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}
.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.25s; }
.animate-in:nth-child(3) { animation-delay: 0.4s; }
.animate-in:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: all 0.7s var(--ease-out); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ========== Responsive ========== */
@media (max-width: 968px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .about-grid { grid-template-columns: 1fr; }
    .game-card.featured { grid-template-columns: 1fr; }
    .game-card-media { min-height: 250px; }
    .game-card-info { padding: 32px 24px; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
    .philosophy-item { gap: 20px; }
    .philosophy-number { font-size: 2rem; }
}

@media (max-width: 600px) {
    .section { padding: 80px 0; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 16px; }
}
