/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --accent: #ff6b35;
    --accent-glow: rgba(255, 107, 53, 0.4);
    --purple: #8b5cf6;
    --cyan: #06b6d4;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --gradient: linear-gradient(135deg, var(--accent), var(--purple));
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== Loader ===== */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-icon {
    font-size: 4rem;
    color: var(--accent);
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* ===== Utilities ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.accent { color: var(--accent); }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px var(--accent-glow); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: white; }

/* ===== Navigation ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s;
}
#navbar.scrolled { background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(10px); padding: 0.75rem 0; }
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
}
.logo .iconify { font-size: 2rem; color: var(--accent); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 2rem;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?w=1920&q=80') center/cover;
    opacity: 0.15;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glitch {
    position: relative;
    animation: glitch 3s infinite;
}
@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
    98% { transform: translate(2px, 2px); }
}
.tagline {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--cyan);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}
.hero-desc { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 2rem; max-width: 600px; margin-inline: auto; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}
.scroll-indicator .iconify { font-size: 2rem; color: var(--accent); }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Games Section ===== */
.games { padding: 6rem 0; }
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.game-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.15);
}
.game-card.featured { border-color: var(--purple); background: linear-gradient(135deg, var(--bg-card), rgba(139, 92, 246, 0.1)); }
.game-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.game-icon .iconify { font-size: 1.75rem; }
.game-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.game-card p { color: var(--text-muted); font-size: 0.95rem; }
.game-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ===== Features ===== */
.features {
    padding: 3rem 0;
    background: var(--bg-secondary);
}
.features-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}
.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.feature .iconify { font-size: 1.5rem; color: var(--accent); }
.feature h4 { font-size: 1rem; }

/* ===== Pricing ===== */
.pricing { padding: 6rem 0; background: var(--bg-secondary); }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.price-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    border: 1px solid transparent;
    transition: all 0.3s;
}
.price-card:hover { border-color: var(--accent); }
.price-card.popular {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 10px 40px var(--accent-glow);
}
.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.price-header { margin-bottom: 1.5rem; }
.price-header .iconify { font-size: 2.5rem; color: var(--accent); margin-bottom: 0.5rem; }
.price-header h3 { font-family: var(--font-display); }
.price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.price span { font-size: 3rem; color: var(--accent); }
.price-card ul { margin-bottom: 1.5rem; }
.price-card li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-muted);
}
.price-card li .iconify { color: var(--cyan); }

/* ===== Gallery ===== */
.gallery { padding: 6rem 0; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.1); }

/* ===== Contact ===== */
.contact { padding: 6rem 0; background: var(--bg-secondary); }
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}
.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.info-item .iconify { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; margin-top: 0.25rem; }
.info-item h4 { font-family: var(--font-display); margin-bottom: 0.25rem; }
.info-item p, .info-item a { color: var(--text-muted); }
.info-item a:hover { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: 0.5rem;
    padding: 1rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.contact-form select { cursor: pointer; }
.contact-form select option { background: var(--bg-card); }

/* Honeypot field - hidden from users */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Form status messages */
.form-status {
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: none;
}
.form-status.success { display: block; background: rgba(6, 182, 212, 0.2); color: var(--cyan); }
.form-status.error { display: block; background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Button loading state */
.btn.loading { opacity: 0.7; pointer-events: none; }
.btn.loading .btn-text { display: none; }
.btn.loading::after {
    content: 'Sending...';
    animation: dots 1.5s infinite;
}
@keyframes dots {
    0%, 20% { content: 'Sending.'; }
    40% { content: 'Sending..'; }
    60%, 100% { content: 'Sending...'; }
}

/* ===== Footer ===== */
.footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
}
.footer-brand .iconify { font-size: 1.5rem; color: var(--accent); }
.footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-social .iconify { font-size: 1.25rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s;
    }
    .nav-links.active { right: 0; }
    .nav-toggle { display: block; z-index: 1001; }
    .price-card.popular { transform: none; }
    .features-grid { gap: 1.5rem; }
    .feature { flex-direction: column; text-align: center; }
}
