@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@300;400;600;900&display=swap');

:root {
    --bg-deep: #020c1b;
    --ocean-cyan: #00f3ff;
    --ocean-blue: #0a192f;
    --text-main: #ffffff;
    --text-dim: #b0b9d8; /* Brighter for significantly improved readability */
    --accent-glow: rgba(0, 243, 255, 0.4);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Space Grotesk', sans-serif; /* Unique Space-Cyber look */
    --font-mono: 'JetBrains Mono', monospace; /* Modern Terminal character */
    --font-logo: 'Outfit', sans-serif;
}

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

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
}


h1, h2, h3 {
    font-family: var(--font-logo);
}

.glow-text {
    color: var(--ocean-cyan);
    text-shadow: 0 0 20px var(--accent-glow);
}

.label-tech {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--ocean-cyan); /* High contrast highlight color */
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Navigation Tactical HUD - Screenshot Sync */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(2, 12, 27, 0.85);
    transition: all 0.4s ease;
    box-sizing: border-box;
}


/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--ocean-cyan);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }


.logo-hud-v2 {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    position: relative;
    text-decoration: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

.logo-v2-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.03); 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
    transform: rotate(45deg);
    overflow: hidden;
    transition: transform 0.5s ease;
}

.logo-hud-v2:hover .logo-v2-icon {
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

.logo-v2-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.5) 0%, transparent 70%);
    filter: blur(8px);
    z-index: 1;
}

.logo-v2-icon img {
    width: 130%; 
    position: relative;
    z-index: 2;
    transform: rotate(-45deg);
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.8));
    transition: transform 0.5s ease;
}

.logo-hud-v2:hover .logo-v2-icon img {
    transform: rotate(-45deg) scale(1.1);
}

.logo-v2-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.logo-v2-text .main {
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -1px;
    color: #fff;
    line-height: 0.9;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.logo-v2-text .brand-hl {
    color: var(--ocean-cyan);
    font-weight: 950;
}

.logo-v2-text .sub {
    font-size: 0.65rem;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-top: 5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
}

.nav-item-skew {
    background: rgba(255, 255, 255, 0.03);
    transform: skewX(-20deg);
    padding: 10px 25px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item-skew a {
    transform: skewX(20deg);
    display: flex;
    align-items: center;
    color: #fff; /* Bright white base */
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0.8;
    min-height: 44px; /* Improved tap target */
}


.nav-item-skew:hover a, .nav-item-skew.active a {
    opacity: 1;
    color: var(--ocean-cyan);
}

.nav-item-skew:hover, .nav-item-skew.active {
    background: rgba(0, 243, 255, 0.05);
    border-bottom-color: var(--ocean-cyan);
}

.nav-item-skew:hover a, .nav-item-skew.active a {
    color: #fff;
}

.btn-start {
    background: linear-gradient(90deg, #00f3ff 0%, #00d2ff 100%);
    color: #000 !important;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-start:hover {
    box-shadow: 0 8px 30px rgba(0, 243, 255, 0.5);
    transform: scale(1.05);
}


/* Landing Page Buttons */
.btn-solid {
    background: var(--ocean-cyan);
    color: var(--bg-deep);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border: none;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-solid:hover {
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-5px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.4s ease;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    border-color: var(--ocean-cyan);
    background: rgba(0, 243, 255, 0.05);
}



/* Hero Section */
.hero-v2 {
    min-height: 100vh;
    padding: 0 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 10;
}

.badge-tech {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(0, 243, 255, 0.1);
    color: var(--ocean-cyan);
    font-size: 0.7rem;
    letter-spacing: 3px;
    border-radius: 5px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 8vw, 7.5rem); /* Extremely fluid scaling */
    line-height: 0.9;
    margin-bottom: 40px;
    font-weight: 950;
    letter-spacing: clamp(-6px, -0.5vw, -2px);
    display: flex;
    flex-direction: column;
    word-break: break-word;
}


.hero-title span {
    display: block;
}

.hero-title .glow-text {
    color: var(--ocean-cyan);
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #fff;
    max-width: 600px;
    margin-bottom: 50px;
    line-height: 1.8;
    opacity: 0.95;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1.2;
    position: relative;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 5;
}

.dashboard-cluster {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
}

.metrics-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.metric-node {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 243, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-node:hover {
    background: rgba(0, 243, 255, 0.05);
    border-color: var(--ocean-cyan);
    transform: translateX(10px);
}

.metric-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--ocean-cyan);
    letter-spacing: 1px;
}

.metric-lab {
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 5px;
}

.engineers-view {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    background: #000;
}

.engineers-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: all 0.8s ease;
}

.engineers-view:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Phase 33 - Hovering Whale Core */
.brand-orbital-mini {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.brand-orbital-img {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.03);
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.1);
}

.whale-jump img {
    width: 140%; /* Fill bounds smoothly */
    height: 140%;
    object-fit: cover;
    border-radius: 50%; /* Mask out the dark background so it spins as a circle! */
    animation: spin-action 30s linear infinite !important; /* Gentle massive rotation */
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.4));
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

@keyframes spin-action {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sector-meta h4 {
    font-size: 1.8rem;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 10px;
}

.sector-meta p {
    font-size: 0.8rem;
    color: var(--text-dim);
    max-width: 300px;
    line-height: 1.5;
}

/* Background Grids */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(2, 20, 43, 1) 0%, rgba(2, 12, 27, 1) 100%),
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100px 100px, 100px 100px;
    z-index: -2;
}

/* Next-Gen Holographic Matrix - Industries */
.kinetic-container {
    padding: 100px 10%;
    display: flex;
    flex-direction: column;
    gap: 15vw;
}

.depth-card {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.depth-card::before {
    content: attr(data-index);
    position: absolute;
    top: -150px;
    left: 0;
    font-size: clamp(10rem, 30vw, 30rem); /* Fluid scaling to prevent overflow */
    font-weight: 950;
    color: rgba(255, 255, 255, 0.02);
    line-height: 0.8;
    font-family: 'Outfit', sans-serif;
    z-index: 0;
    pointer-events: none;
    transition: all 1s ease;
}


.depth-card:hover::before {
    color: rgba(0, 243, 255, 0.04);
    transform: translateY(-20px);
}

.depth-card:nth-child(even)::before {
    left: auto;
    right: 0;
}

.depth-visual {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 55vw;
    height: 70vh;
    border-radius: 40px;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 243, 255, 0.1);
    box-shadow: 0 40px 150px rgba(0, 0, 0, 0.9);
}

.depth-card:nth-child(even) .depth-visual {
    right: auto;
    left: 5%;
}

.depth-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.5) brightness(0.6);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.depth-card:hover .depth-visual img {
    filter: saturate(1.2) brightness(1.1);
    transform: scale(1.08);
}

.holo-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    animation: scanlines-a 8s linear infinite;
}

@keyframes scanlines-a {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.depth-content {
    position: relative;
    z-index: 5;
    background: rgba(4, 15, 30, 0.7); 
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 80px;
    border-radius: 30px;
    width: 45vw;
    left: -20%;
    box-shadow: 0 30px 80px rgba(0,0,0,1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.depth-card:nth-child(even) .depth-content {
    left: 20%;
}

.depth-content:hover {
    border-color: rgba(0, 243, 255, 0.8);
    transform: translateY(-15px);
    box-shadow: 0 50px 100px rgba(0,243,255,0.15);
}

.depth-content h2 {
    font-size: 5.5rem;
    margin: 20px 0 30px;
    line-height: 0.9;
    letter-spacing: -3px;
    font-weight: 950;
    color: #fff;
}

/* Phase 29 - Elegant Top-Down Vertical Spine */
.fixed-vertical-spine {
    position: fixed;
    top: 0;
    left: 20px;
    height: 100vh;
    z-index: 100;
    pointer-events: none;
    display: flex;
    justify-content: center; /* True mathematical center */
    align-items: center;
}

.fvs-text {
    position: relative;
    writing-mode: vertical-rl;
    /* Native top-to-bottom reading format avoids collision entirely */
    font-size: 1.5rem; /* Extensively scaled down to fit standard laptops (<700px vertical) */
    font-weight: 300; /* Ultra-thin stylish elegance */
    color: #fff;
    letter-spacing: 12px; /* Premium expansive kerning precisely calculated to not clip */
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    white-space: nowrap;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    
    /* Architectural tracking border maps to the actual physical left */
    padding-left: 20px; 
    border-left: 1px solid rgba(0, 243, 255, 0.2);
}

.fvs-text::after {
    content: '';
    position: absolute;
    top: 0; /* Placed at the very top of the text */
    left: -1px; /* Align with border-left */
    width: 2px;
    height: 120px; /* Scaled cyan tracer proportionate to shorter text */
    background: var(--ocean-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.8);
}

.fvs-cyan {
    font-weight: 900; /* High contrast boldness */
    color: var(--ocean-cyan);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

@media (max-width: 1200px) {
    .fixed-vertical-spine { display: none; }
}


/* Phase 18 - Mastermind Bento Architecture - Services */
.services-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 30px;
    padding: 150px 5% 200px 8%; /* Subtle left padding curve to clear the new sleek spine */
}

.bento-card {
    position: relative;
    background: #020a14;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.5s ease;
    cursor: pointer;
}

/* Structural Dimension Grid */
.bento-2x2 { grid-column: span 2; grid-row: span 2; }
.bento-2x1 { grid-column: span 2; grid-row: span 1; }
.bento-1x2 { grid-column: span 1; grid-row: span 2; }
.bento-1x1 { grid-column: span 1; grid-row: span 1; }

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: brightness(0.6);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 0;
}

.bento-card:hover {
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.1);
    transform: translateY(-5px);
}

.bento-card:hover .bento-bg {
    opacity: 0.8;
    filter: brightness(1.2);
    transform: scale(1.05);
}

.bento-content {
    position: relative;
    z-index: 5;
    background: linear-gradient(to top, rgba(2, 10, 20, 0.95) 0%, rgba(2, 10, 20, 0.7) 60%, transparent 100%);
    padding: 80px 40px 40px; 
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.flex-center {
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(2, 10, 20, 0.7);
    padding: 20px;
}

.bento-num {
    color: rgba(0, 243, 255, 0.5);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.bento-content h4 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.bento-2x2 .bento-content h4 {
    font-size: 3rem;
}

.bento-content p {
    color: #fff;
    line-height: 1.6;
    font-size: 1.05rem;
    opacity: 0.95;
}

@media (max-width: 1400px) {
    .services-bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-2x2, .bento-2x1, .bento-1x2, .bento-1x1 { grid-column: span 1; grid-row: span 1; }
    .bento-2x2 { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 768px) {
    .services-bento-grid { grid-template-columns: 1fr; }
    .bento-2x2 { grid-column: span 1; }
}


/* Glass Elements */
.glass {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
}

/* Animations Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .hero-title { font-size: 4rem; }
    .depth-card { grid-template-columns: 1fr; gap: 50px; }
    .depth-visual { height: 450px; }
    .orbital-node { flex-direction: column; text-align: center; gap: 60px; }
    .node-visual { width: 350px; height: 350px; }
}

/* About Section - Restored Split Layout Phase 10 */
.about-v3 {
    background: #000;
    padding: 150px 10%;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.about-visual {
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    height: 600px;
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 1.2s ease;
}

.about-v3:hover .about-visual img {
    transform: scale(1.05);
}

.about-content h2 {
    font-size: 5rem;
    font-weight: 950;
    line-height: 0.85;
    margin-bottom: 40px;
    letter-spacing: -3px;
    color: #fff;
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Phase 26 - Strategic Outsourcing Capsule */
.outsourcing-capsule {
    display: flex;
    background: rgba(5, 15, 30, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    overflow: hidden;
    margin-top: 50px;
}

.oc-visual {
    width: 45%;
    position: relative;
    overflow: hidden;
}

.oc-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.2);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.outsourcing-capsule:hover .oc-visual img {
    filter: brightness(1) scale(1.05); /* Vivid visual unlocking */
    transform: scale(1.05);
}

.oc-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(5, 15, 30, 0.6) 100%);
    z-index: 2;
}

.oc-content {
    width: 55%;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Phase 32-38: Global Partner Network Matrix (Refinement) */
.clients-section {
    padding: 150px 10%;
    background: #01060e;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 243, 255, 0.05);
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: url('network-mesh-bg.png') no-repeat center center;
    background-size: cover;
    transform: translate(-50%, -50%);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.client-brand {
    background: rgba(1, 15, 30, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    height: 140px;
    border-radius: 4px; /* Sharper corporate design */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(100%) opacity(0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Connection Label Overlay */
.client-brand::before {
    content: 'CONNECTION established';
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--ocean-cyan);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    text-transform: uppercase;
    font-weight: 800;
}

.client-brand:hover {
    filter: grayscale(0%) opacity(1);
    background: rgba(0, 243, 255, 0.03);
    border-color: rgba(0, 243, 255, 0.3);
    transform: perspective(1000px) scale(1.05) translateZ(20px);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.1);
}

.client-brand:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Neon Interaction Corner */
.client-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 15px 15px;
    border-color: transparent transparent var(--ocean-cyan) transparent;
    opacity: 0;
    transition: all 0.4s ease;
}

.client-brand:hover::after {
    opacity: 0.6;
}

@media (max-width: 1000px) {
    .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

@media (max-width: 1200px) {
    .outsourcing-capsule { flex-direction: column; }
    .oc-visual { width: 100%; height: 350px; }
    .oc-overlay { background: linear-gradient(0deg, rgba(5, 15, 30, 0.6) 0%, transparent 100%); }
    .oc-content { width: 100%; padding: 50px 30px; }
}


/* Phase 35-36: Neural Contact & Footer System (Refinement) */
#contact {
    padding: 180px 10%;
    background: #01060e;
    position: relative;
    overflow: hidden;
}

/* Neural Background Overlay */
#contact::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: url('contact-neural-bg.png') no-repeat center center;
    background-size: contain;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    filter: blur(2px);
    animation: pulse-bg 15s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.18; transform: translate(-50%, -50%) scale(1.05); }
}

.contact-chassis {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.contact-form-node {
    background: rgba(1, 10, 20, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 243, 255, 0.1);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    position: relative;
}

.contact-form-node::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px;
    border-top: 2px solid var(--ocean-cyan);
    border-left: 2px solid var(--ocean-cyan);
    width: 40px; height: 40px;
    opacity: 0.5;
}

.cyber-form input, .cyber-form textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 4px; /* Sharper geometric look */
    padding: 18px 25px;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cyber-form input:focus, .cyber-form textarea:focus {
    border-color: var(--ocean-cyan);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15);
    transform: translateX(5px);
}

#refresh-captcha:hover {
    opacity: 1 !important;
    transform: rotate(180deg);
}

#refresh-captcha svg {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#refresh-captcha:active svg {
    transform: scale(0.8);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack for refined look */
    gap: 30px;
}

.loc-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

/* Scanner Line Animation */
.loc-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, transparent 0%, rgba(0, 243, 255, 0.1) 50%, transparent 100%);
    animation: scan-line 4s linear infinite;
    pointer-events: none;
}

@keyframes scan-line {
    0% { top: -100%; }
    100% { top: 100%; }
}

.loc-card:hover {
    background: rgba(0, 243, 255, 0.05);
    border-color: var(--ocean-cyan);
    transform: scale(1.02);
}

.ping-icon {
    position: relative;
}

.ping-icon::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: var(--ocean-cyan);
    border-radius: 50%;
    z-index: -1;
    animation: sonar-ping 2s ease-out infinite;
}

@keyframes sonar-ping {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

.map-container {
    margin-top: 40px;
    border: 2px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.1);
    position: relative;
}

.map-container::after {
    content: 'SYSTEM MAP ONLINE';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--ocean-cyan);
    font-weight: 800;
    pointer-events: none;
}

/* Footer Grid HUD Styles */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
}

.social-btn {
    width: 45px; height: 45px;
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    transition: all 0.4s;
}

.social-btn:hover {
    background: var(--ocean-cyan);
    border-color: var(--ocean-cyan);
    color: #000;
    transform: rotate(15deg) translateY(-10px);
}

@media (max-width: 1100px) {
    .contact-chassis { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-node { padding: 40px; }
}
/* Kinetic Header - Mastermind Aesthetic */
.kinetic-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0) 0%, rgba(2, 12, 27, 0.5) 100%);
}

.kinetic-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ocean-cyan), transparent);
    opacity: 0.3;
}

/* Industries - Neural Bento Grid Architecture */
.industries-neural-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 30px;
    padding: 100px 8% 200px;
    position: relative;
    z-index: 10;
}

.industry-node {
    position: relative;
    background: rgba(2, 10, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.node-large { grid-column: span 3; grid-row: span 2; }
.node-tall { grid-column: span 2; grid-row: span 2; }
.node-wide { grid-column: span 4; grid-row: span 1; }
.node-standard { grid-column: span 2; grid-row: span 1; }

.industry-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(0, 243, 255, 0.1), transparent 70%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.industry-node:hover::before {
    opacity: 1;
}

.node-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.node-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: grayscale(1) brightness(0.4);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.industry-node:hover {
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 243, 255, 0.1);
    transform: translateY(-10px);
}

.industry-node:hover .node-image img {
    opacity: 0.4;
    filter: grayscale(0) brightness(0.8);
    transform: scale(1.1) rotate(1deg);
}

.node-content {
    position: relative;
    z-index: 5;
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.node-header {
    margin-bottom: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.node-id {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--ocean-cyan);
    letter-spacing: 3px;
    border-left: 2px solid var(--ocean-cyan);
    padding-left: 15px;
}

.status-ping {
    width: 10px;
    height: 10px;
    background: var(--ocean-cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--ocean-cyan);
}

.industry-node h3 {
    font-size: 2.8rem;
    color: #fff;
    line-height: 0.95;
    margin: 30px 0 20px;
    font-weight: 900;
    letter-spacing: -1px;
}

.node-large h3 { font-size: 5rem; letter-spacing: -3px; }

.industry-node p {
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.8;
    max-width: 95%;
    margin-top: auto;
    opacity: 0.9;
}

.industry-node:hover p {
    color: #fff;
    opacity: 1;
}

.telemetry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.telemetry-line {
    position: absolute;
    background: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    transition: top 0.1s ease, left 0.1s ease;
    display: none;
}

.industry-node:hover .telemetry-line {
    display: block;
}

.t-v { width: 1px; height: 100%; }
.t-h { height: 1px; width: 100%; }

.node-data {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--ocean-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 30px;
    opacity: 0.5;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.industry-node:hover .node-data {
    opacity: 1;
}

@media (max-width: 1400px) {
    .industries-neural-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .node-large { grid-column: span 4; }
    .node-wide { grid-column: span 4; }
    .node-tall { grid-column: span 2; }
}

@media (max-width: 900px) {
    .node-large h3 { font-size: 3rem; }
    .industry-node h3 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .industries-neural-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        padding: 50px 5%;
    }
    .node-large, .node-tall, .node-wide, .node-standard {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 450px;
    }
}

/* Services - Kinetic Blueprint Architecture */
.services-kinetic-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
    padding: 150px 12% 100px;
    position: relative;
    z-index: 10;
}

.service-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.service-row:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}

.service-row:nth-child(even) .service-blueprint-visual {
    order: 2;
}

.service-row:nth-child(even) .service-blueprint-content {
    order: 1;
    text-align: right;
    align-items: flex-end;
}

.service-blueprint-visual {
    position: relative;
    height: 500px;
    background: rgba(4, 15, 30, 0.4);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 40px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

.service-blueprint-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(0, 243, 255, 0.05) 1px, transparent 0);
    background-size: 30px 30px;
    z-index: 1;
}

.service-blueprint-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: saturate(0) brightness(0.6);
    transition: all 1s ease;
}

.service-row:hover .service-blueprint-visual {
    border-color: var(--ocean-cyan);
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 60px 120px rgba(0, 243, 255, 0.1);
}

.service-row:hover .service-blueprint-visual img {
    opacity: 0.8;
    filter: saturate(1.2) brightness(1.1);
    transform: scale(1.1);
}

.blueprint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.blueprint-line {
    position: absolute;
    border: 1px dashed rgba(0, 243, 255, 0.3);
}

.blueprint-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--ocean-cyan);
    opacity: 0.4;
}

.b-tl { top: 20px; left: 20px; border-right: 0; border-bottom: 0; }
.b-tr { top: 20px; right: 20px; border-left: 0; border-bottom: 0; }
.b-bl { bottom: 20px; left: 20px; border-right: 0; border-top: 0; }
.b-br { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }

.service-blueprint-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-blueprint-content .module-id {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ocean-cyan);
    letter-spacing: 5px;
    background: rgba(0, 243, 255, 0.1);
    padding: 10px 20px;
    border-radius: 5px;
    width: fit-content;
}

.service-blueprint-content h2 {
    font-size: 6rem;
    font-weight: 950;
    line-height: 0.85;
    letter-spacing: -4px;
    color: #fff;
    margin: 0;
}

.service-blueprint-content p {
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.8;
    max-width: 550px;
    opacity: 0.95;
}

.service-blueprint-content .tech-specs {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spec-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

.spec-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
}

.blueprint-btn {
    margin-top: 40px;
    width: fit-content;
    padding: 18px 45px;
    background: transparent;
    border: 1px solid var(--ocean-cyan);
    color: var(--ocean-cyan);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: all 0.4s;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.blueprint-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--ocean-cyan);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.blueprint-btn:hover {
    color: #000;
}

.blueprint-btn:hover::before {
    left: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
}

.feature-item {
    border-left: 3px solid var(--ocean-cyan);
    padding-left: 15px;
}

@media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; gap: 20px; }
}

.service-main-title {
    font-size: 8.5rem;
    font-weight: 950;
    line-height: 0.8;
    letter-spacing: -6px;
    margin-bottom: 30px;
}

@media (max-width: 1440px) {
    .service-main-title { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -2px; }
    .hero-v2 { padding: 0 5%; }
}

@media (max-width: 1200px) {
    .hero-v2 { flex-direction: column; text-align: center; justify-content: center; padding-top: 150px; gap: 80px; min-height: auto; padding-bottom: 100px; width: 100%; }
    .hero-subtitle { margin: 0 auto 50px; }
    .hero-btns { justify-content: center; width: 100%; }
    .hero-visual { width: 100%; max-width: 800px; margin: 0 auto; }
    
    .about-v3 { grid-template-columns: 1fr; gap: 60px; text-align: center; width: 100%; }
    .about-content h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
    .about-visual { height: 450px; order: 2; width: 100%; }
    .about-content { order: 1; width: 100%; }

    .fixed-vertical-spine { display: none; }
    
    .depth-card { grid-template-columns: 1fr !important; min-height: auto; padding: 100px 0; overflow: hidden; width: 100%; }
    .depth-content { 
        width: 100% !important; 
        left: 0 !important; 
        padding: 50px 30px !important;
        margin-top: -50px;
        border-radius: 0;
    }
    .depth-visual { 
        position: relative !important; 
        width: 100% !important; 
        height: 400px !important; 
        right: 0 !important;
        left: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
    }

    .service-row {
        grid-template-columns: 1fr !important;
        gap: 50px;
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw; /* Full screen menu for better touch */
        max-width: 350px;
        height: 100vh;
        background: rgba(2, 12, 27, 0.98);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        flex-direction: column;
        padding: 100px 40px;
        gap: 0;
        transition: 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
        border-left: 1px solid rgba(0, 243, 255, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle { display: flex; right: 20px; }

    .industries-neural-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
    .node-large, .node-wide, .node-tall { grid-column: span 2; }
}

@media (max-width: 768px) {
    .hero-btns { flex-direction: column; align-items: stretch; padding: 0 10%; gap: 15px; }
    .hero-btns .btn-solid, .hero-btns .btn-outline { width: 100%; margin: 0 !important; }
    
    .dashboard-cluster { grid-template-columns: 1fr; width: 100%; }
    .metrics-stack { flex-direction: row; flex-wrap: wrap; justify-content: center; width: 100%; }
    .metric-node { flex: 1; min-width: 140px; }
    
    .brand-orbital-mini { flex-direction: column; text-align: center; padding: 30px 20px; width: 100%; box-sizing: border-box; }
    .brand-orbital-img { width: 120px; height: 120px; }

    .clients-grid { grid-template-columns: repeat(2, 1fr); width: 100%; }
    .client-brand { padding: 20px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; width: 100%; }
    .social-links { justify-content: center; }
    
    .service-blueprint-content h2 { font-size: clamp(2rem, 6vw, 3rem); }
    .tech-specs { flex-direction: column; gap: 15px; width: 100%; }
    
    .kinetic-header { padding: 180px 5% 40px !important; width: 100%; }
    .hero-v2 { padding-top: 180px !important; }

    #chatbot-window {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        position: fixed;
    }
}

@media (max-width: 480px) {
    .contact-form-node { padding: 30px 20px; width: 100%; box-sizing: border-box; }
    .logo-v2-text .main { font-size: 1.4rem; }
    .logo-v2-text .sub { letter-spacing: 2px; }
    .logo-v2-icon { width: 45px; height: 45px; }
    
    .industries-neural-grid { padding: 50px 5%; }
    .node-content { padding: 20px; }
}


/* Touch Device Specific Optimization */
@media (hover: none) {
    .client-brand { filter: grayscale(0%) opacity(0.8); }
    .bento-bg { opacity: 0.6; }
    .industry-node p { opacity: 1; }
    .bento-card:hover { transform: none; }
}


/* Advanced Neural Interface (WNI) */
#whale-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

#chatbot-trigger {
    width: 75px;
    height: 75px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trigger-ring {
    position: absolute; 
    border: 1px solid var(--ocean-cyan);
    border-radius: 50%;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    animation: ring-pulse 3s infinite;
}

.trigger-core {
    width: 50px;
    height: 50px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--ocean-cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    animation: core-rotate 10s infinite linear;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transition: all 0.3s;
}

#chatbot-trigger:hover .trigger-core {
    background: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 35px var(--ocean-cyan);
}

.trigger-core img {
    width: 25px;
    transform: rotate(-45deg);
    filter: drop-shadow(0 0 5px var(--ocean-cyan));
}

@keyframes ring-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes core-rotate {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

#chatbot-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 400px;
    height: 600px;
    background: rgba(2, 12, 27, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 4px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,1);
    transform-origin: bottom right;
}

.chatbot-header {
    background: rgba(0, 243, 255, 0.08);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 243, 255, 0.1);
}

.chatbot-terminal-meta {
    padding: 5px 20px;
    background: #000;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

#chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-bot {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 243, 255, 0.1);
    padding: 12px 15px;
    border-left: 3px solid var(--ocean-cyan);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
}

.message-user {
    align-self: flex-end;
    background: var(--ocean-cyan);
    color: #000;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.chatbot-frequency {
    height: 2px;
    background: var(--ocean-cyan);
    width: 0%;
    margin-bottom: 5px;
}

.bot-typing .chatbot-frequency {
    width: 100%;
    animation: freq-wave 1s infinite;
}

.chatbot-input {
    padding: 20px;
    background: #000;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
}

.chatbot-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ocean-cyan);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

#send-btn {
    background: var(--ocean-cyan);
    color: #000;
    border: none;
    padding: 5px 15px;
    font-weight: 900;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    cursor: pointer;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.chat-options button {
    background: transparent;
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--ocean-cyan);
    padding: 4px 10px;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.3s;
}

.chat-options button:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--ocean-cyan);
}

/* Cyber Modal - Status Feedback */
.cyber-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s;
    font-family: 'Outfit', sans-serif;
}

.modal-backdrop {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(2, 12, 27, 0.9);
    backdrop-filter: blur(15px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #020c1b;
    border: 1px solid rgba(0, 243, 255, 0.4);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 50px 100px rgba(0,0,0,1), 0 0 40px rgba(0, 243, 255, 0.1);
    animation: modal-slide-in 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-content.modal-error {
    border-color: #ff3333;
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.15);
}

@keyframes modal-slide-in {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 0.2;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.modal-close:hover { opacity: 1; }

.modal-body h2 {
    font-size: 2.2rem;
    font-weight: 950;
    margin-top: 10px;
    color: #fff;
    letter-spacing: -1.5px;
    line-height: 1;
}

.modal-body p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 300;
}

.modal-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 35px;
    padding-top: 25px;
    text-align: right;
}

.modal-close-btn {
    background: var(--ocean-cyan);
    color: #000;
    border: none;
    padding: 15px 35px;
    font-family: var(--font-mono);
    font-weight: 950;
    font-size: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.4s;
}

.modal-close-btn:hover {
    box-shadow: 0 0 30px var(--ocean-cyan);
    transform: translateY(-3px);
}

.modal-error .modal-close-btn {
    background: #ff3333;
}

