@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #07070a;
    --bg-panel: rgba(12, 12, 18, 0.7);
    --primary: #00f0ff; /* Cyber Cyan */
    --secondary: #ff0055; /* Neon Pink/Red */
    --accent: #7000ff; /* Deep Purple */
    --text-main: #f0f0f0;
    --text-muted: #8b9bb4;
    
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-glow: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(255, 0, 85, 0.3));
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    
    --glass-border: 1px solid rgba(0, 240, 255, 0.15);
    --glass-border-hover: 1px solid var(--primary);
    
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease-in-out;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 18px;
}

/* Backgrounds */
.cyber-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(40px) translateZ(-200px); }
}

.ambient-glow {
    position: fixed;
    top: 30%; left: 50%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

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

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(7, 7, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem; font-weight: 900;
    color: var(--text-main); text-decoration: none;
    display: flex; align-items: center; gap: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.logo i { color: var(--primary); }

.nav-menu {
    display: flex; gap: 30px; list-style: none;
}
.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    text-decoration: none; cursor: pointer; border: none; outline: none;
    transition: var(--transition);
    position: relative; overflow: hidden;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-cyber {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2) inset;
}
.btn-cyber:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-main);
    border: none;
}
.btn-primary:hover {
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.6);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

/* Glass Card */
.glass-card {
    background: var(--bg-panel);
    border: var(--glass-border);
    backdrop-filter: blur(15px);
    padding: 40px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    transition: var(--transition);
}
.glass-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
    transform: translateY(-5px);
}

/* Glitch Effect */
.glitch-wrapper { margin-bottom: 20px; }
.glitch {
    font-size: 5rem;
    position: relative;
    color: white;
    text-shadow: 0.05em 0 0 rgba(255,0,85,0.75), -0.025em -0.05em 0 rgba(0,240,255,0.75), 0.025em 0.05em 0 rgba(112,0,255,0.75);
    animation: glitch 1.5s infinite;
}
@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 rgba(255,0,85,0.75), -0.025em -0.05em 0 rgba(0,240,255,0.75), 0.025em 0.05em 0 rgba(112,0,255,0.75); }
    14% { text-shadow: 0.05em 0 0 rgba(255,0,85,0.75), -0.025em -0.05em 0 rgba(0,240,255,0.75), 0.025em 0.05em 0 rgba(112,0,255,0.75); }
    15% { text-shadow: -0.05em -0.025em 0 rgba(255,0,85,0.75), 0.025em 0.025em 0 rgba(0,240,255,0.75), -0.05em -0.05em 0 rgba(112,0,255,0.75); }
    49% { text-shadow: -0.05em -0.025em 0 rgba(255,0,85,0.75), 0.025em 0.025em 0 rgba(0,240,255,0.75), -0.05em -0.05em 0 rgba(112,0,255,0.75); }
    50% { text-shadow: 0.025em 0.05em 0 rgba(255,0,85,0.75), 0.05em 0 0 rgba(0,240,255,0.75), 0 -0.05em 0 rgba(112,0,255,0.75); }
    99% { text-shadow: 0.025em 0.05em 0 rgba(255,0,85,0.75), 0.05em 0 0 rgba(0,240,255,0.75), 0 -0.05em 0 rgba(112,0,255,0.75); }
    100% { text-shadow: -0.025em 0 0 rgba(255,0,85,0.75), -0.025em -0.025em 0 rgba(0,240,255,0.75), -0.025em -0.05em 0 rgba(112,0,255,0.75); }
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding-top: 80px;
}
.hero-subtitle {
    font-size: 1.4rem; color: var(--text-muted);
    max-width: 700px; margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 20px; justify-content: center; }

/* Sections */
.features { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 3rem; margin-bottom: 10px; }
.section-title p { font-size: 1.2rem; color: var(--text-muted); }

.grid-3 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.game-card {
    text-align: center;
}
.game-card .card-icon {
    font-size: 3rem; color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--primary);
}
.game-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.game-card p { color: var(--text-muted); }

.cta-section { padding: 80px 0 120px; }
.cta-box h2 { font-size: 2.5rem; margin-bottom: 15px; }
.cta-box p { font-size: 1.2rem; color: var(--text-muted); }

/* Footer */
.footer {
    padding: 40px 0; border-top: var(--glass-border);
    background: rgba(5,5,8,0.9);
}

/* Contact Page */
.contact-page { padding: 160px 0 100px; min-height: 100vh; }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px;
}

.contact-info .subtitle { font-size: 1.2rem; }
.info-block {
    display: flex; align-items: center; gap: 20px;
    background: rgba(255,255,255,0.03); padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.info-icon { font-size: 2rem; color: var(--primary); }
.info-block h4 { font-size: 1.2rem; margin-bottom: 5px; color: var(--text-main); }
.info-block a, .info-block p { color: var(--text-muted); text-decoration: none; font-size: 1.1rem; }

/* Form */
.contact-form h2 { font-size: 2.2rem; margin-bottom: 30px; color: var(--primary); }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { margin-bottom: 24px; text-align: left; }
.input-group label {
    display: block; font-family: var(--font-heading); font-size: 1rem;
    color: var(--primary); margin-bottom: 10px; letter-spacing: 1px;
}
.form-input {
    width: 100%; padding: 16px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--text-main);
    font-family: var(--font-body); font-size: 1.1rem;
    outline: none; transition: var(--transition);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.form-input:focus {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}
.btn-submit { width: 100%; margin-top: 10px; padding: 20px; font-size: 1.3rem; }

/* Modal */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-backdrop.show { opacity: 1; pointer-events: all; }
.modal-content { max-width: 450px; width: 90%; text-align: center; transform: scale(0.9); transition: 0.3s; }
.modal-backdrop.show .modal-content { transform: scale(1); }
.modal-success-icon { font-size: 4rem; color: var(--primary); margin-bottom: 20px; }

/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .glitch { font-size: 3.5rem; }
}
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .btn-cyber { display: none; }
    .input-row { grid-template-columns: 1fr; }
    .glitch { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
}