/* --- GLOBAL SCALE OVERRIDE (80% ZOOM MIMIC) --- */
html {
    /* Shrinks the root 16px down to 13px dynamically, mimicking an 80% zoom on desktop */
    font-size: clamp(13px, 0.9vw, 16px) !important;
}

/* Ensure mobile devices don't become too small to read */
@media (max-width: 768px) {
    html {
        font-size: 16px !important; 
    }
}

:root {
    --bg-color: #080c14; 
    --accent-blue: #3b82f6;
    --border-dim: rgba(255, 255, 255, 0.1);
    --hover-bg: #131c44;
    /* Shortcut padding fix for browser behavior */
    scroll-padding-top: 90px;
}

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: var(--bg-color); 
    color: #f1f5f9; 
    margin: 0;
    overflow-x: hidden;
    transition: background-color 0.1s ease-out, color 0.1s ease-out; 
}

/* --- LOGO GLOW STYLES --- */
.logo-svg {
    width: 140px; 
    height: auto;
    fill: #ffffff; 
    shape-rendering: geometricPrecision;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6)) 
            drop-shadow(0 0 10px rgba(137, 180, 250, 0.35));
}

.brand-name-glow {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.brand-name-glow span {
    color: #89b4fa; 
    text-shadow: 0 0 12px rgba(137, 180, 250, 0.5);
}

.tagline-glow {
    position: relative;
    font-size: 0.6rem;
    font-weight: 700;
    margin-top: 8px;
    padding-top: 6px;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

.tagline-glow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 2px; 
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.85) 15%, rgba(255,255,255,0.85) 85%, transparent 100%);
    box-shadow: 0 0 8px 1px rgba(137, 180, 250, 0.7);
    border-radius: 50%;
}

/* --- ENTRANCE ANIMATIONS (APPLE STYLE) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- MAGNETIC CONFIG --- */
section, header, footer {
    snap-align: start;
    /* Manual location offset for magnetic snap */
    scroll-margin-top: 90px;
}

#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; 
    z-index: -1;
    opacity: 0.8;
    will-change: transform;
}

.framer-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 75%);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

nav { 
    background: rgba(8, 12, 20, 0.8) !important; 
    backdrop-filter: blur(16px); 
    border-bottom: 1px solid var(--border-dim) !important; 
}

.nav-link { 
    font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); transition: color 0.3s; 
}
.nav-link:hover { color: var(--accent-blue); }

section, header { position: relative; z-index: 10; background: transparent !important; }

/* --- SERVICE TILES WITH SHADOW EFFECT --- */
.card-shadow-light { 
    background: rgba(255, 255, 255, 0.65) !important; 
    /* CHANGE 1: Darkened the border from #cbd5e1 to #94a3b8 */
    border: 1px solid #94a3b8 !important; 
    border-radius: 24px; 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    /* CHANGE 2: Slightly darkened the shadow opacities (from 0.1 to 0.15) */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    height: 100%;
    display: flex; 
    flex-direction: column;
}

.card-shadow-light:hover { 
    transform: translateY(-12px) !important; 
    border-color: var(--hover-bg) !important; 
    background: var(--hover-bg) !important; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.stat-card { border-right: 1px solid var(--border-dim); }
@media (max-width: 768px) { .stat-card { border-right: none; border-bottom: 1px solid var(--border-dim); padding-bottom: 2rem; } }

input, textarea, select { 
    background: rgba(255,255,255,0.6) !important; 
    border: 1px solid #cbd5e1 !important; 
    color: inherit !important;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    outline: none;
    transition: border-color 0.3s;
    backdrop-filter: blur(8px);
}
input:focus, textarea:focus, select:focus { border-color: var(--accent-blue) !important; background: rgba(255,255,255,0.9) !important;}

.map-container {
    filter: grayscale(1) invert(0.85) contrast(1.1);
    opacity: 0.8;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
}

section, header, footer, .snap-start {
    scroll-snap-align: start; 
    scroll-margin-top: 100px !important;
}

#solutions {
    scroll-snap-align: start;
    scroll-snap-stop: always !important; 
    scroll-margin-top: 30px !important; 
}