:root {
    --bg-base: #030407;
    --bg-surface: rgba(10, 12, 20, 0.6);
    --glass-border: rgba(0, 240, 255, 0.15);
    
    --neon-cyan: #00f0ff;
    --neon-pink: #ff007f;
    --neon-purple: #7a04eb;
    
    --text-primary: #b3c2d1;
    --text-bright: #ffffff;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .logo { font-family: 'Orbitron', sans-serif; color: var(--text-bright); }

/* System Animations */
.scanlines {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px; z-index: 9999; pointer-events: none; opacity: 0.6;
}

#particle-network {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; opacity: 0.6;
}

.glow-orb {
    position: fixed; border-radius: 50%; filter: blur(140px); z-index: -1; opacity: 0.5;
    animation: float 15s infinite alternate ease-in-out; mix-blend-mode: screen;
}
.orb-1 { width: 50vw; height: 50vw; background: rgba(0, 240, 255, 0.15); top: -20%; left: -10%; }
.orb-2 { width: 40vw; height: 40vw; background: rgba(255, 0, 127, 0.15); bottom: 10%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 30vw; height: 30vw; background: rgba(122, 4, 235, 0.15); top: 40%; left: 30%; animation-delay: -10s; }

@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 80px) scale(1.2); } }

/* Tactical Top Bar */
.top-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 5vw; background: rgba(3, 4, 7, 0.9); border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: clamp(0.75rem, 1vw + 0.5rem, 0.85rem); color: #888; font-weight: 600; z-index: 1001; position: relative;
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar a { color: #888; text-decoration: none; transition: 0.3s; }
.top-bar a:hover { color: var(--neon-cyan); }
.pulse-dot { display: inline-block; width: 8px; height: 8px; background: #00ff00; border-radius: 50%; box-shadow: 0 0 10px #00ff00; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }

/* Navbar Core */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5vw; background: rgba(3, 4, 7, 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    position: sticky; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--glass-border); transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.navbar.scrolled { padding: 12px 5vw; background: rgba(3, 4, 7, 0.95); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-bottom: 1px solid var(--neon-purple); }
.logo { font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem); font-weight: 900; letter-spacing: 2px; position: relative; z-index: 1002; }
.logo span { color: var(--neon-cyan); }

/* Desktop Navigation */
.nav-controls { display: flex; align-items: center; gap: clamp(15px, 2vw, 30px); }
.nav-link { color: var(--text-primary); text-decoration: none; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; position: relative; }
.nav-link::after { content: ''; position: absolute; width: 0%; height: 2px; bottom: -5px; left: 0; background: var(--neon-cyan); transition: 0.3s; }
.nav-link:hover { color: var(--text-bright); }
.nav-link:hover::after { width: 100%; box-shadow: 0 0 10px var(--neon-cyan); }
.lang-toggle a { color: #555; text-decoration: none; font-weight: 700; padding: 0 5px; transition: 0.3s; }
.lang-toggle a.active, .lang-toggle a:hover { color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); }

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; z-index: 1002; }
.menu-toggle .bar { width: 30px; height: 3px; background-color: var(--neon-cyan); margin: 5px 0; transition: all 0.4s ease; border-radius: 3px; box-shadow: 0 0 5px var(--neon-cyan); }

/* Scroll Animation Engine */
.reveal { opacity: 0; transform: translateY(50px) scale(0.95); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }

/* Hero Section */
.hero { height: calc(100vh - 100px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 5vw; }
.badge { display: inline-block; padding: 6px 18px; border: 1px solid var(--neon-purple); border-radius: 20px; font-size: 0.8rem; letter-spacing: 2px; color: var(--neon-pink); margin-bottom: 30px; background: rgba(122, 4, 235, 0.1); text-transform: uppercase; }
.hero-content h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 1.05; margin-bottom: 25px; text-transform: uppercase; }
.animate-gradient { background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink), var(--neon-cyan)); background-size: 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradient-shift 6s linear infinite; }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.hero-content p { font-size: clamp(1.1rem, 2vw + 0.5rem, 1.4rem); max-width: 650px; margin: 0 auto 40px; font-weight: 500; }

/* Steroid CTA Button */
.btn-primary {
    position: relative; display: inline-block; padding: 18px 45px; font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--neon-cyan); background: rgba(0, 240, 255, 0.05); border: 1px solid var(--neon-cyan);
    font-family: 'Orbitron', sans-serif; text-transform: uppercase; text-decoration: none;
    letter-spacing: 2px; overflow: hidden; transition: 0.3s ease; border-radius: 4px; box-shadow: 0 0 15px rgba(0, 240, 255, 0.2) inset;
}
.btn-scanline { position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); transition: 0.4s; z-index: 1; transform: skewX(-20deg); }
.btn-primary:hover { background: var(--neon-cyan); color: var(--bg-base); box-shadow: 0 0 30px var(--neon-cyan); border-color: var(--text-bright); }
.btn-primary:hover .btn-scanline { left: 150%; }
.btn-text { position: relative; z-index: 2; font-weight: 700; }

/* General Sections */
section { padding: clamp(60px, 10vw, 120px) 5vw; }
.container { max-width: 900px; margin: 0 auto; text-align: center; }
.glass-panel { background: var(--bg-surface); backdrop-filter: blur(25px); border: 1px solid var(--glass-border); padding: clamp(30px, 5vw, 60px); border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.divider { width: 80px; height: 4px; background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple)); margin: 25px auto; border-radius: 2px; }
.about p { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.8; }

/* 3D Magnetic Services Grid */
.services h2 { text-align: center; font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: clamp(40px, 8vw, 80px); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 3vw, 40px); max-width: 1400px; margin: 0 auto; perspective: 1000px; }
.card {
    background: linear-gradient(145deg, rgba(20,25,35,0.8) 0%, rgba(5,6,10,0.8) 100%);
    backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.05); padding: clamp(30px, 4vw, 50px);
    border-radius: 16px; position: relative; overflow: hidden;
    transform-style: preserve-3d; transition: border-color 0.3s ease; cursor: crosshair;
}
.card-border { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 2px solid transparent; border-radius: 16px; z-index: 0; transition: 0.4s; pointer-events: none; }
.card:hover .card-border { border-color: var(--neon-purple); box-shadow: 0 0 30px rgba(122, 4, 235, 0.3) inset; }
.card-icon { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 25px; transform: translateZ(30px); }
.card h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin-bottom: 15px; transform: translateZ(20px); }
.card p { transform: translateZ(10px); color: #999; font-size: 1.05rem; }

/* CTA Section */
.cta-section { background: radial-gradient(circle at center, rgba(122, 4, 235, 0.15) 0%, rgba(3,4,7,0) 70%); text-align: center; padding: clamp(80px, 12vw, 150px) 20px; border-top: 1px solid rgba(255,255,255,0.02); }
.cta-section h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 20px; text-transform: uppercase; }
.cta-section p { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-bottom: 40px; color: var(--neon-cyan); }

/* Expanded Corporate Footer */
footer { background: #010102; border-top: 1px solid #111; padding: clamp(40px, 8vw, 80px) 5vw 20px; font-size: 0.95rem; position: relative; z-index: 10; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 40px; margin-bottom: 40px; max-width: 1400px; margin: 0 auto 40px; }
.footer-brand .logo { font-size: 2rem; margin-bottom: 15px; }
.footer-brand p { color: #666; max-width: 300px; line-height: 1.6; }
.footer-links h4 { font-size: 1.3rem; margin-bottom: 20px; color: var(--text-bright); }
.footer-links p { margin-bottom: 15px; color: #888; display: flex; align-items: center; gap: 10px; }
.footer-links a { color: #888; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #111; color: #444; font-size: 0.85rem; }

/* Mobile Menu & Optimization Matrix */
@media (max-width: 768px) {
    .top-bar { display: none; }
    
    /* Enable Hamburger */
    .menu-toggle { display: flex; }
    
    /* Off-Canvas Navigation Drawer */
    .nav-controls {
        position: fixed; top: 0; right: -100%; width: 100vw; height: 100vh;
        background: rgba(3, 4, 7, 0.98); backdrop-filter: blur(25px);
        flex-direction: column; justify-content: center; align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0); z-index: 1001;
        box-shadow: -10px 0 30px rgba(0,0,0,0.8); border-left: 1px solid var(--neon-purple);
    }
    
    /* Triggered Active State */
    .nav-controls.active { right: 0; }
    
    .nav-link { font-size: 2rem; margin: 25px 0; }
    .lang-toggle { margin-top: 30px; font-size: 1.5rem; }
    
    /* Hamburger to X Animation */
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--neon-pink); box-shadow: 0 0 10px var(--neon-pink); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--neon-pink); box-shadow: 0 0 10px var(--neon-pink); }

    .hero { height: auto; min-height: 85vh; padding-top: 80px; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .btn-primary { width: 100%; text-align: center; }
}