body {
    background-color: theme('colors.background');
    color: theme('colors.on-background');
    font-family: 'Hanken Grotesk', sans-serif;
}

/* The Intelligence Mesh Background Pattern */
.mesh-bg {
    background-image: radial-gradient(theme('colors.outline-variant') 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: -12px -12px;
    opacity: 0.15;
}

.bg-mesh {
    background-image: radial-gradient(var(--tw-colors-outline-variant) 1px, transparent 1px);
    background-size: 24px 24px;
    background-color: transparent;
    opacity: 0.05;
}

.intelligence-mesh-bg {
    background-image: radial-gradient(circle at 1px 1px, rgba(115, 119, 132, 0.1) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Cursor-Reactive Grid */
.cursor-reactive-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(circle 600px at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(0, 50, 125, 0.08) 0%, transparent 80%),
        linear-gradient(rgba(0, 50, 125, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 50, 125, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, 0 0;
    transition: background-image 0.1s ease;
}

/* Ghost Schematics (Architectural Blueprints) */
.ghost-schematic {
    pointer-events: none;
    z-index: -2;
    animation: slowRotate 1600s linear infinite;
    transform-origin: center;
}

.ghost-schematic.reverse {
    animation: slowRotateReverse 2000s linear infinite;
}

@keyframes slowRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slowRotateReverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}



.scan-crosshair {
    position: absolute;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00327d;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 300;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: scanPulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes scanPulse {
    0% {
        <link href="styles.css?v=70" rel="stylesheet" />g);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    100% {
        transform: scale(1.3) rotate(90deg);
        opacity: 0;
    }
}

.traveler-path {
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px #00f2ff);
    stroke-dasharray: 450 2000;
    animation: flow 5s linear forwards;
    pointer-events: none;
}

@keyframes flow {
    0% {
        stroke-dashoffset: 450;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: -1200;
        opacity: 0;
    }
}

/* Liquid Background Blobs */
.liquid-blob {
    position: absolute;
    filter: blur(80px);
    z-index: -2;
    animation: morph 15s ease-in-out infinite alternate;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
        transform: scale(1) rotate(0deg);
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: scale(1.1) rotate(20deg);
    }
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px rgba(0, 50, 125, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    /* Removed translate transition as JS will handle 3D tilt */
}

.glass-panel:hover {
    box-shadow: 0 16px 40px rgba(0, 50, 125, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.glass-panel-elevated {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 48px rgba(0, 50, 125, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-100 {
    transition-delay: 100ms;
}

.reveal.delay-200 {
    transition-delay: 200ms;
}

.reveal.delay-300 {
    transition-delay: 300ms;
}

/* Infinite Marquee */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Abstract Tech Schematics */
.tech-schematic-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 4s ease-in-out infinite alternate;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}


/* Button Gradients */
.btn-primary {
    background: linear-gradient(135deg, theme('colors.primary-container'), theme('colors.primary'));
    color: theme('colors.on-primary');
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    border-color: theme('colors.primary-fixed-dim');
    box-shadow: 0px 4px 12px rgba(0, 71, 171, 0.2);
}

.btn-secondary {
    background: transparent;
    color: theme('colors.primary');
    border: 1px solid theme('colors.outline-variant');
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(0, 71, 171, 0.05);
    border-color: theme('colors.primary');
}

/* Status Indicator */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: theme('colors.primary-container');
    box-shadow: 0 0 8px theme('colors.primary-container');
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 85, 104, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(0, 85, 104, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 85, 104, 0);
    }
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.border-gradient-edge {
    position: relative;
}

.border-gradient-edge::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to bottom right, var(--tw-colors-outline-variant), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Smart Focus Illumination (Service Cards) */
.marquee-content:hover .glass-panel {
    opacity: 0.65;
    filter: blur(1px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.marquee-content .glass-panel {
    position: relative;
    overflow: hidden;
    /* Contains the light sweep */
}

.marquee-content .glass-panel:hover {
    opacity: 1;
    filter: blur(0);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(0, 50, 125, 0.15);
    z-index: 10;
}

/* Sentinel Intel Ticker */
.intel-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    letter-spacing: 0.05em;
}

.ticker-label {
    background: #b21a1a;
    color: white;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.5);
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 150s linear infinite;
    padding-left: 20px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 40px;
}

.ticker-item span.timestamp {
    color: var(--tw-colors-primary);
    opacity: 0.8;
}

.ticker-item span.alert-tag {
    color: #b21a1a;
    font-weight: 700;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Neural Mesh Logo Architecture */
.background-logo {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vh;
    height: 70vh;
    background-image: url('New_logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1.5;
    pointer-events: none;
    z-index: -15;
    filter: grayscale(10%) brightness(1.2);
    transition: transform 0.2s ease-out;
    /* For Parallax */
    animation: meshBreathing 12s ease-in-out infinite;
}

@keyframes meshBreathing {

    0%,
    100% {
        opacity: 0.03;
        scale: 1;
    }

    50% {
        opacity: 0.08;
        scale: 1.05;
    }
}

/* Tactical HUD & Hero Core */
@keyframes scanLine {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.animate-scanLine {
    animation: scanLine 48s linear infinite;
    opacity: 0.15;
}

.animate-spin-slow {
    animation: spin 20s linear infinite;
}

.animate-spin-reverse-slow {
    animation: spin 25s linear reverse infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-10px) translateX(5px);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.path-animate {
    stroke-dashoffset: 20;
    animation: dash 10s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.border-gradient-edge {
    border: 1px solid transparent;
    background: linear-gradient(var(--tw-colors-surface), var(--tw-colors-surface)) padding-box,
        linear-gradient(135deg, rgba(0, 50, 125, 0.3), transparent, rgba(0, 50, 125, 0.3)) border-box;
}

/* Typography Enhancements */
.text-gradient-blue {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(90deg, #001946 0%, #0077B6 25%, #00B4D8 50%, #0077B6 75%, #001946 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 4s linear infinite;
    font-weight: 800 !important;
    letter-spacing: 0.02em; 
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.font-black-force {
    font-weight: 900 !important;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* =====================================================
   MOBILE RESPONSIVE OVERRIDES
   ===================================================== */

/* Mobile Menu Drawer */
.mobile-menu-open nav {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 249, 251, 0.97);
    backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(195, 198, 213, 0.3);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 50, 125, 0.08);
}

.mobile-menu-open nav a {
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(195, 198, 213, 0.2);
}

.mobile-menu-open nav a:last-child {
    border-bottom: none;
}

/* Small Phone Breakpoint (< 640px) */
@media (max-width: 640px) {

    /* Suppress heavy background effects for performance */
    .ghost-schematic,
    .cursor-reactive-grid,
    .liquid-blob {
        display: none;
    }

    .background-logo {
        width: 90vw;
        height: 90vw;
        opacity: 0.04 !important;
    }

    /* Hero Typography Scaling */
    section h1 {
        font-size: 36px !important;
        line-height: 1.1 !important;
        margin-bottom: 20px !important;
    }

    /* Hero Section Padding */
    section.relative.pt-xl {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    section .py-24 {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    /* "ENTERPRISE ARCHITECTURE // SECURED" chip - smaller text */
    .font-mono.text-\[10px\] {
        font-size: 8px;
        letter-spacing: 0.1em;
    }

    /* Status chip compact */
    .inline-flex.gap-3.px-6 {
        padding-left: 16px;
        padding-right: 16px;
        gap: 8px;
    }

    /* Hero CTA Buttons - Stack & Full Width */
    .flex.flex-col.sm\:flex-row.gap-6 {
        gap: 12px;
    }

    .flex.flex-col.sm\:flex-row.gap-6 > * {
        width: 100% !important;
        justify-content: center;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /* Section headings */
    h2.font-display-lg {
        font-size: 28px !important;
    }

    /* Problem section - stack columns */
    .flex.flex-col.lg\:flex-row {
        flex-direction: column !important;
        gap: 32px;
    }

    /* Bento card grid - force single column */
    .grid.grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    /* Bento cards - remove multi-col spans on mobile */
    .md\:col-span-2,
    .md\:row-span-2 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 240px !important;
    }

    /* Services marquee - slightly slower & visible on mobile */
    .marquee-content {
        animation-duration: 50s;
    }

    /* Contact form - stack grid cols */
    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* Contact submit button full width */
    .pt-sm.flex.justify-end {
        justify-content: stretch;
    }

    .pt-sm.flex.justify-end > button {
        width: 100%;
        justify-content: center;
    }

    /* Ticker - slightly larger font on mobile for readability */
    .ticker-item {
        font-size: 11px;
    }

    .ticker-label {
        font-size: 9px;
        padding: 0 8px;
    }

    /* Section padding */
    .py-xl {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    /* Footer stacking */
    footer .flex.flex-col.md\:flex-row {
        flex-direction: column !important;
        text-align: center;
        gap: 24px;
    }

    /* Glass cards - reduce padding */
    .glass-panel.p-lg {
        padding: 20px;
    }
}

/* Tablet Breakpoint (641px–768px) */
@media (min-width: 641px) and (max-width: 768px) {

    section h1 {
        font-size: 52px !important;
        line-height: 1.1 !important;
    }

    .md\:col-span-2 {
        grid-column: span 2 !important;
    }

    h2.font-display-lg {
        font-size: 36px !important;
    }

    .py-xl {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}