/* ==========================================================================
   CSS Variables & Cyber-Neon Theme Settings
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
    /* Color Palette - Cyber / Deep Space */
    --bg-main: #020205; /* Deepest black/blue */
    --bg-surface: #0A0A12;
    --bg-header-footer: #000000; 
    
    /* Neon Accents */
    --neon-cyan: #00F0FF;
    --neon-magenta: #FF0055;
    --neon-violet: #7000FF;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
    --grad-secondary: linear-gradient(135deg, var(--neon-magenta), var(--neon-violet));
    --grad-text: linear-gradient(to right, #FFFFFF, #A0A0B0);
    
    /* Typography */
    --text-light: #FFFFFF;
    --text-muted: #8A8A9E;
    --text-dark: #000000;
    
    /* Structural Elements */
    --glass-bg: rgba(10, 10, 18, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(0, 240, 255, 0.15);
    
    /* Typography Fonts */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Layout & Animation */
    --max-width: 1300px;
    --nav-height: 90px;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    --section-gap: 150px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--neon-violet); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

/* Selection */
::selection { background: var(--neon-magenta); color: #fff; }

/* ==========================================================================
   Utility Classes & Typography
   ========================================================================== */
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-gradient-alt {
    background: var(--grad-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-lg {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
}

.title-md {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1rem;
    text-align: center;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.btn-cyber {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-light);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--neon-cyan);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-fast);
    z-index: 1;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--grad-primary);
    transition: left var(--transition-fast);
    z-index: -1;
}

.btn-cyber:hover::before { left: 0; }
.btn-cyber:hover { border-color: transparent; box-shadow: 0 0 30px rgba(0, 240, 255, 0.4); transform: translateY(-2px); }

/* ==========================================================================
   Master Header (Strictly Pure Black)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--nav-height);
    background: var(--bg-header-footer);
    border-bottom: 1px solid var(--glass-border);
    z-index: 9999;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.site-header.scrolled {
    height: 70px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0%; height: 2px;
    background: var(--neon-cyan);
    transition: var(--transition-fast);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10000;
}

.hamburger span {
    display: block;
    width: 30px; height: 2px;
    background: var(--neon-cyan);
    transition: var(--transition-fast);
    box-shadow: 0 0 5px var(--neon-cyan);
}

/* ==========================================================================
   Hero Section (Cyber 3D visual)
   ========================================================================== */
.hero {
    padding-top: calc(var(--nav-height) + 60px);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content { z-index: 2; position: relative; }

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 500px;
}

/* Cyber Orb Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.cyber-orb {
    width: 350px; height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
    box-shadow: 
        inset 0 0 50px rgba(0,0,0,0.8),
        0 0 100px rgba(0, 240, 255, 0.4),
        0 0 200px rgba(112, 0, 255, 0.4);
    animation: pulseOrb 4s ease-in-out infinite;
    position: relative;
}

.cyber-orb::after {
    content: '';
    position: absolute;
    top: -5%; left: -5%; width: 110%; height: 110%;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: spinRotate 20s linear infinite;
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.cyber-marquee {
    padding: 2rem 0;
    background: rgba(255,255,255,0.02);
    border-block: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollCyber 30s linear infinite;
}

.mq-item {
    font-family: var(--font-display);
    font-size: 2rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-muted);
    margin: 0 3rem;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.mq-item:hover {
    color: var(--neon-cyan);
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 20px var(--neon-cyan);
}

/* ==========================================================================
   About / Stat Grid
   ========================================================================== */
.about { padding: var(--section-gap) 0; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-bounce);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 50%; height: 2px;
    background: var(--grad-primary);
    box-shadow: 0 0 20px var(--neon-cyan);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 4rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Services (3D Glass Cards)
   ========================================================================== */
.services {
    padding: var(--section-gap) 0;
    position: relative;
}

.srv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.srv-card {
    background: linear-gradient(180deg, rgba(20,20,30,0.8) 0%, rgba(5,5,10,0.8) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    transform-style: preserve-3d;
    transition: transform 0.1s;
    position: relative;
    cursor: pointer;
}

.srv-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--grad-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.srv-card:hover::after { opacity: 1; }

.srv-icon {
    width: 60px; height: 60px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    transform: translateZ(40px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.srv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateZ(30px);
}

.srv-card p {
    color: var(--text-muted);
    transform: translateZ(20px);
}

/* ==========================================================================
   Live Reporting Dashboard (CSS Visuals)
   ========================================================================== */
.reports { padding: var(--section-gap) 0; }

.rep-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.dashboard-mock {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(112,0,255,0.1);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.css-bar-graph {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: 15px;
}

.c-bar {
    flex: 1;
    background: var(--grad-primary);
    border-radius: 4px 4px 0 0;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.c-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    border-radius: inherit;
}

.dashboard-mock.active .c-bar { transform: scaleY(1); }

/* ==========================================================================
   Interactive Calculator
   ========================================================================== */
.calculator {
    padding: var(--section-gap) 0;
    position: relative;
}

.calc-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem;
    backdrop-filter: blur(10px);
}

.calc-group { margin-bottom: 3rem; }

.calc-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.val-display {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Custom Cyber Range Slider */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px; width: 24px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    cursor: pointer;
    margin-top: -10px;
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); background: var(--neon-cyan); }

.calc-outputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 3rem;
}

.out-box h4 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.out-box p { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }

/* ==========================================================================
   Industry Grid
   ========================================================================== */
.industries { padding: var(--section-gap) 0; }

.ind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ind-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-fast);
}

.ind-item:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-5px);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { padding: var(--section-gap) 0; }

.test-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.test-card {
    background: rgba(255,255,255,0.02);
    border-left: 4px solid var(--neon-magenta);
    padding: 3rem;
    border-radius: 0 16px 16px 0;
}

.test-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.test-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-img { width: 50px; height: 50px; border-radius: 50%; background: var(--glass-border); }

/* ==========================================================================
   Contact & Chat
   ========================================================================== */
.contact { padding: var(--section-gap) 0; border-top: 1px solid var(--glass-border); }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 18px 20px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.02);
}

textarea.form-input { min-height: 150px; resize: vertical; }

/* Chat UI */
.chat-ui {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    height: 450px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.chat-head {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot-online { width: 10px; height: 10px; border-radius: 50%; background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); }

.chat-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.c-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.c-msg.ai { background: rgba(255,255,255,0.05); align-self: flex-start; border-bottom-left-radius: 2px; }
.c-msg.user { background: var(--grad-primary); align-self: flex-end; border-bottom-right-radius: 2px; color: #fff;}

/* ==========================================================================
   Legal Pages Specifics
   ========================================================================== */
.legal-main {
    padding: calc(var(--nav-height) + 100px) 5% 100px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-main h1 { font-size: 3.5rem; margin-bottom: 2rem; color: var(--neon-cyan); }
.legal-main h2 { font-size: 1.5rem; margin: 3rem 0 1rem; color: var(--text-light); border-top: 1px solid var(--glass-border); padding-top: 2rem; }
.legal-main p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ==========================================================================
   Master Footer (Strictly Pure Black)
   ========================================================================== */
.site-footer {
    background: var(--bg-header-footer);
    border-top: 1px solid var(--glass-border);
    padding: 100px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto 4rem;
}

.footer-brand img { height: 40px; margin-bottom: 1.5rem; filter: drop-shadow(0 0 8px rgba(255,255,255,0.3)); }
.footer-brand p { color: var(--text-muted); max-width: 300px; }

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-col ul { display: flex; flex-direction: column; gap: 1rem; }
.footer-col a { color: var(--text-muted); transition: var(--transition-fast); }
.footer-col a:hover { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
@keyframes pulseOrb {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spinRotate {
    100% { transform: rotate(360deg); }
}

@keyframes scrollCyber {
    100% { transform: translateX(-50%); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero-grid, .rep-grid, .contact-layout { grid-template-columns: 1fr; }
    .hero-visual { height: 400px; margin-top: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: var(--nav-height); left: -100%; width: 100%; height: calc(100vh - var(--nav-height));
        background: var(--bg-header-footer);
        flex-direction: column; justify-content: center;
        transition: var(--transition-bounce);
    }
    .nav-menu.active { left: 0; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .stat-grid, .test-grid, .calc-outputs { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
    .calc-box { padding: 2rem; }
}