/* =========================================================
   DIGITAL ICON — SPIDER-VERSE WEB-SHOT & TECH EDITION
   ========================================================= */

:root {
    --bg: #050508;
    --bg-soft: #0a0a0f;
    --panel: #0e0e14;
    --panel2: #161622;

    --red: #ff1e38;      /* Spider-Man Crimson */
    --red2: #ff4d6d;
    --blue: #00d2ff;     /* Electric Web-Shooter Cyan */
    --deep: #7a0016;

    --text: #f6f3f8;
    --muted: #a39fa8;
    --muted2: #6e6a75;

    --line: rgba(255, 30, 56, 0.22);
    --line-soft: rgba(255, 255, 255, 0.05);

    --max: 1240px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: default;
}

img { max-width: 100%; }
button, input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

::selection {
    background: var(--red);
    color: #fff;
}

/* =========================================================
   PROFESSIONAL CORNER SPIDER WEB ACCENTS
   ========================================================= */

.spider-web-corner {
    position: fixed;
    width: 130px;
    height: 130px;
    pointer-events: none;
    z-index: 45;
    opacity: 0.65;
}

.spider-web-corner.top-left {
    top: 0;
    left: 0;
}

.spider-web-corner.top-right {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

.spider-web-corner svg {
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}

/* Dynamic diagonal web-lines shooting across the background */
body::after {
    content: "";
    position: fixed;
    inset: -50%;
    pointer-events: none;
    background-image: 
        linear-gradient(45deg, rgba(0, 210, 255, 0.05) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(255, 30, 56, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: -1;
    animation: webShotShift 30s linear infinite;
}

@keyframes webShotShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 30, 56, .22), transparent 35%),
        radial-gradient(circle at 10% 80%, rgba(0, 210, 255, .18), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(122, 0, 22, .12), transparent 60%);
    z-index: -2;
}

/* Comic-book halftone dot pattern */
.noise {
    position: fixed;
    inset: 0;
    opacity: .07;
    pointer-events: none;
    z-index: 100;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='spider-dots'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23spider-dots)' opacity='0.5'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: "Space Grotesk", Inter, Arial, sans-serif; }
h1, h2, h3, p { margin-top: 0; }

/* RED GLOW EXCLUSIVELY ON DARK VERSION */
h1 em, h2 em { 
    font-style: normal; 
    color: var(--red); 
    text-shadow: 0 0 18px rgba(255, 30, 56, 0.65) !important; 
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .22em;
    font-weight: 800;
    color: #c8c1bd;
    text-transform: uppercase;
}

.section-no {
    display: block;
    color: var(--blue);
    font: 700 12px "Space Grotesk", sans-serif;
    margin-bottom: 9px;
    text-shadow: 0 0 8px var(--blue);
}

.pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 8px var(--blue), 0 0 18px rgba(0, 210, 255, .8);
    margin-right: 9px;
    animation: pulseGlow 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: .5; transform: scale(.9); box-shadow: 0 0 5px var(--blue); }
    50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 20px var(--blue), 0 0 30px var(--red); }
}

/* =========================================================
   INTERACTIVE WEB-SHOOTER CANVAS & TARGET RETICLE
   ========================================================= */

#web-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}

.web-target-pulse {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: webReticlePulse 0.8s ease-out forwards;
    z-index: 1000;
}

@keyframes webReticlePulse {
    0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; box-shadow: 0 0 10px var(--blue); }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; box-shadow: 0 0 25px var(--red); }
}

/* =========================================================
   HEADER & NAVBAR WITH WEB SHOT GLOW
   ========================================================= */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 85px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
    background: linear-gradient(135deg, rgba(14, 14, 20, 0.96), rgba(8, 8, 12, 0.99));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 30, 56, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 210, 255, 0.12);
}

.brand {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform .3s ease;
}

.brand:hover {
    border: none;
    box-shadow: none;
    transform: scale(1.03);
}

.brand img {
    height: 48px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    object-position: left center;
    display: block;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 12px rgba(255, 30, 56, 0.8));
    transition: transform .3s ease, filter .3s ease;
}

.brand:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.9));
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.nav a {
    position: relative;
    opacity: .75;
    transition: opacity .25s ease, color .25s ease;
}

.nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; bottom: -8px;
    width: 0; height: 2px;
    background: var(--blue);
    box-shadow: 0 0 10px var(--blue);
    transition: width .3s var(--ease);
}

.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav a:hover { opacity: 1; color: var(--blue); text-shadow: 0 0 8px var(--blue); }

.nav-cta {
    padding: 10px 15px;
    border: 1px solid rgba(0, 210, 255, .7);
    background: rgba(0, 210, 255, .1);
    opacity: 1 !important;
    transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.nav-cta:hover {
    background: rgba(255, 30, 56, .2);
    border-color: var(--red);
    box-shadow: 0 0 20px rgba(255, 30, 56, 0.5);
    transform: translateY(-2px);
}

.nav-cta span { margin-left: 6px; color: var(--blue); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 25px; cursor: pointer; }

/* GENERAL LAYOUT */
.section {
    width: 100%;
    max-width: var(--max);
    margin: auto;
    padding: 140px 5vw;
}

.hero {
    min-height: 860px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    position: relative;
    padding-top: 155px;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
    pointer-events: none;
}

.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(58px, 7.5vw, 105px); line-height: .91; letter-spacing: -.06em; margin: 25px 0 28px; max-width: 850px; }
.hero-text { max-width: 620px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 14px 20px;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: .3s var(--ease);
    cursor: pointer;
}

.btn-primary { 
    background: var(--red); 
    border-color: var(--red); 
    color: #fff; 
    box-shadow: 0 0 35px rgba(255, 30, 56, .35), inset 0 0 10px rgba(255, 255, 255, 0.3); 
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    background: var(--blue); 
    border-color: var(--blue); 
    box-shadow: 0 0 40px rgba(0, 210, 255, .6), inset 0 0 15px rgba(255, 255, 255, 0.5); 
}
.btn-ghost { background: rgba(255, 255, 255, .01); }
.btn-ghost:hover { border-color: var(--blue); box-shadow: 0 0 20px rgba(0, 210, 255, 0.3); transform: translateY(-3px); }

.hero-proof { display: flex; gap: 42px; margin-top: 58px; }
.hero-proof div { display: flex; flex-direction: column; }
.hero-proof strong { font: 700 25px "Space Grotesk", sans-serif; color: #fff; text-shadow: 0 0 10px rgba(255, 30, 56, 0.4); }
.hero-proof span { font-size: 10px; color: #8f8986; text-transform: uppercase; letter-spacing: .13em; }

/* =========================================================
   SPIDER-MAN WEB-SHOOTER ORBIT & TARGET-LOCK RINGS
   ========================================================= */

.hero-orbit {
    height: 520px;
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
}

.orbit-ring {
    position: absolute;
    border: 2px dashed rgba(0, 210, 255, 0.6);
    border-radius: 50%;
    transform: rotate(-18deg);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.3);
}

.ring-a {
    width: 460px;
    height: 460px;
    border-top-color: var(--red);
    border-bottom-color: var(--blue);
    border-width: 2px;
    box-shadow: 0 0 35px rgba(255, 30, 56, 0.4);
    animation: spin 16s linear infinite;
}

.ring-b {
    width: 340px;
    height: 340px;
    border-right-color: rgba(255, 255, 255, 0.6);
    border-left-color: var(--blue);
    border-width: 2px;
    animation: spin 12s linear infinite reverse;
}

.ring-c {
    width: 230px;
    height: 230px;
    border-left-color: var(--red);
    border-right-color: var(--blue);
    border-width: 3px;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
    animation: spin 8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(342deg); }
}

.core {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.35), rgba(10, 10, 15, 0.98) 70%);
    border: 2px solid var(--blue);
    box-shadow: 0 0 70px rgba(0, 210, 255, 0.6), inset 0 0 30px rgba(255, 30, 56, 0.5);
    position: relative;
    animation: coreFloat 4s ease-in-out infinite;
}

@keyframes coreFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.core img {
    width: 145px;
    height: 105px;
    object-fit: contain;
    object-position: center;
    display: block;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.9));
}

.core span {
    position: absolute;
    bottom: 14px;
    font: 700 9px "Space Grotesk", sans-serif;
    letter-spacing: .3em;
    color: var(--red);
    text-shadow: 0 0 8px var(--red);
}

.orbit-tag {
    position: absolute;
    font: 700 10px "Space Grotesk", sans-serif;
    letter-spacing: .18em;
    border: 1px solid rgba(255, 30, 56, 0.6);
    background: rgba(14, 14, 20, 0.95);
    padding: 10px 14px;
    color: #fff;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 210, 255, 0.3);
    transition: all .3s ease;
}

.orbit-tag:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 210, 255, 0.8);
}

.tag-1 { top: 18%; left: 2%; }
.tag-2 { right: 0%; top: 40%; }
.tag-3 { bottom: 10%; left: 18%; }

/* TICKER */
.ticker {
    width: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    overflow: hidden; background: var(--bg-soft);
}
.ticker-track {
    display: flex; min-width: max-content; gap: 25px; align-items: center; padding: 17px 0;
    animation: marquee 24s linear infinite; font: 700 11px "Space Grotesk", sans-serif; letter-spacing: .18em;
}
.ticker b { color: var(--blue); text-shadow: 0 0 10px var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* SECTION HEADINGS & ABOUT */
.section-heading { display: grid; grid-template-columns: 220px 1fr; gap: 30px; margin-bottom: 65px; }
.section-heading h2 { font-size: clamp(44px, 5vw, 70px); line-height: .96; letter-spacing: -.045em; margin: 0; }

.about-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; }
.big-copy { font-size: 26px; line-height: 1.35; color: #f1edeb; margin-top: 0; }
.about-lead p:not(.big-copy) { color: var(--muted); max-width: 700px; margin-bottom: 20px; }
.about-lead strong {
    color: var(--text);
}
body.light-theme .about-lead strong {
    color: #121318 !important;
}

.timeline { border-left: 2px solid rgba(0, 210, 255, .4); padding-left: 30px; }
.timeline-item { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 0 0 45px; position: relative; }
.timeline-item::before {
    content: ""; width: 10px; height: 10px; border: 2px solid var(--red); border-radius: 50%;
    background: var(--bg); position: absolute; left: -35px; top: 5px; box-shadow: 0 0 10px var(--red);
}
.timeline-item.active::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 18px var(--blue); }
.timeline-item > span { font: 700 13px "Space Grotesk", sans-serif; color: var(--blue); }
.timeline-item h3 { margin: 0 0 4px; font-size: 20px; }
.timeline-item p { margin: 0; color: #817c79; font-size: 13px; }

/* SOFTWARE & APPS SHOWCASE GRID */
.software-showcase { background: linear-gradient(180deg, rgba(20, 14, 22, 0.4), transparent); }
.section-intro { max-width: 700px; color: var(--muted); margin: -35px 0 50px; font-size: 15px; }

.software-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.software-card {
    background: linear-gradient(145deg, var(--panel), var(--panel2));
    border: 1px solid var(--line);
    padding: 35px;
    position: relative;
    border-radius: 4px;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.software-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 10px 35px rgba(0, 210, 255, 0.2); }
.software-card.feature-highlight { border-color: rgba(255, 30, 56, 0.7); background: linear-gradient(145deg, rgba(255, 30, 56, 0.08), var(--panel)); box-shadow: 0 0 25px rgba(255, 30, 56, 0.15); }

.software-card .badge {
    display: inline-block; font: 700 10px "Space Grotesk", sans-serif; letter-spacing: .15em;
    color: var(--blue); background: rgba(0, 210, 255, .12); padding: 5px 10px; border-radius: 4px; margin-bottom: 18px;
}
.software-card h3 { font-size: 22px; margin-bottom: 12px; }
.software-card p { color: #9a9490; font-size: 14px; margin-bottom: 22px; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tech-tags li {
    font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); padding: 6px 10px; color: #ccc;
}

/* SERVICES GRID */
.services { background: linear-gradient(180deg, transparent, rgba(0, 210, 255, .015), transparent); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }

.service-card {
    min-height: 315px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    position: relative; overflow: hidden; transition: .35s var(--ease);
}
.service-card::before {
    content: ""; position: absolute; width: 180px; height: 180px; top: -100px; right: -100px;
    border-radius: 50%; background: rgba(0, 210, 255, .1); filter: blur(12px); transition: .4s ease;
}
.service-card:hover::before { width: 250px; height: 250px; }
.service-card:hover { background: linear-gradient(145deg, rgba(0, 210, 255, .12), transparent 55%); transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15); }

.card-index { position: absolute; top: 26px; right: 28px; color: #5d5856; font: 700 11px "Space Grotesk", sans-serif; }
.service-icon { font-size: 31px; color: var(--red); margin: 25px 0 24px; transition: transform .3s ease, text-shadow .3s ease; }
.service-card:hover .service-icon { transform: scale(1.15); text-shadow: 0 0 25px rgba(255, 30, 56, 0.9); }
.service-card h3 { font-size: 23px; margin: 0 0 11px; }
.service-card p { color: #8d8784; font-size: 13px; max-width: 310px; }
.service-card a {
    position: absolute; bottom: 28px; font-size: 10px; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: var(--blue); transition: color .25s ease, transform .25s ease;
}
.service-card a:hover { color: var(--red); transform: translateX(4px); text-shadow: 0 0 10px var(--red); }

/* MEDIA PLACEHOLDER BANNER */
.media-banner {
    max-width: var(--max); margin: 60px auto; padding: 0 5vw;
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.banner-content h2 { font-size: clamp(32px, 4vw, 48px); margin: 15px 0 20px; letter-spacing: -.03em; }
.banner-content p { color: var(--muted); }

.image-placeholder-box {
    width: 100%; height: 320px;
    background: linear-gradient(135deg, var(--panel2), var(--panel));
    border: 2px dashed rgba(0, 210, 255, 0.5); border-radius: 8px;
    display: grid; place-items: center; text-align: center; padding: 20px;
    position: relative; box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 210, 255, 0.15);
}
.placeholder-tag span { display: block; font: 700 12px "Space Grotesk", sans-serif; letter-spacing: .2em; color: var(--blue); margin-bottom: 8px; text-shadow: 0 0 10px var(--blue); }
.placeholder-tag small { color: #777; font-size: 11px; }

/* SOLUTIONS */
.solution-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.solution-visual {
    height: 570px; position: relative; border: 1px solid var(--line);
    background: radial-gradient(circle at center, rgba(0, 210, 255, .12), transparent 35%), linear-gradient(135deg, #0d0d14, #050508);
    overflow: hidden;
}
.solution-visual::before {
    content: ""; 
    position: absolute; 
    inset: 10%; 
    border: 2px dashed rgba(0, 210, 255, 0.5); 
    border-radius: 50%; 
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2), 0 0 0 55px rgba(255, 30, 56, 0.04);
    animation: solutionRotate 25s linear infinite;
    display: block !important;
    visibility: visible !important;
}

@keyframes solutionRotate { 
    to { transform: rotate(360deg); } 
}

.solution-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    font: 700 32px/0.95 "Space Grotesk", sans-serif; /* Tightens the vertical line-height gap between DIGITAL and ICON */
    letter-spacing: .08em;
    z-index: 2;
}

.solution-center .brand-dig {
    color: var(--red) !important;
    text-shadow: 0 0 15px rgba(255, 30, 56, 0.7), 0 0 25px rgba(255, 30, 56, 0.4);
}

.solution-center .brand-icon {
    color: var(--red) !important;
    text-shadow: 0 0 15px rgba(255, 30, 56, 0.7), 0 0 25px rgba(255, 30, 56, 0.4);
}


.solution-center span { 
    color: var(--blue); 
    text-shadow: 0 0 15px var(--blue); 
}
.node {
    position: absolute; padding: 10px 14px; border: 1px solid rgba(0, 210, 255, 0.6);
    background: #08080c; display: flex; gap: 10px; align-items: center; font-size: 10px;
    text-transform: uppercase; letter-spacing: .12em; z-index: 3; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.node:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: 0 0 20px rgba(255, 30, 56, 0.6); }
.node b { color: var(--red); text-shadow: 0 0 8px var(--red); }
.node-a { top: 18%; left: 13%; }
.node-b { top: 25%; right: 10%; }
.node-c { bottom: 22%; right: 16%; }
.node-d { bottom: 13%; left: 18%; }

.solution-list { border-top: 1px solid var(--line); }
.solution-row { display: grid; grid-template-columns: 45px 1fr 30px; gap: 15px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; transition: padding-left .3s ease; }
.solution-row:hover { padding-left: 8px; }
.solution-row > span { color: var(--blue); font: 700 11px "Space Grotesk", sans-serif; }
.solution-row h3 { margin: 0 0 6px; font-size: 19px; }
.solution-row p { margin: 0; color: #827d7a; font-size: 12px; }
.solution-row i { font-style: normal; color: #777; transition: color .25s ease, transform .25s ease; }
.solution-row:hover i { color: var(--blue); transform: translate(3px, -3px); text-shadow: 0 0 10px var(--blue); }

/* PORTFOLIO / CLIENTS */
.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.client-card {
    min-height: 110px;
    border: 1px solid var(--line);
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    font: 600 14px/1.3 "Space Grotesk", sans-serif;
    background: linear-gradient(145deg, rgba(255, 255, 255, .025), transparent);
    transition: border-color .3s ease, background .3s ease, transform .3s ease, box-shadow .3s ease;
}

.client-card:hover {
    border-color: var(--blue);
    background: linear-gradient(145deg, rgba(0, 210, 255, .1), transparent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.15);
}

.client-logo-slot {
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 6px;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
    transition: border-color .3s ease, box-shadow .3s ease;
}

.client-card:hover .client-logo-slot {
    border-color: var(--blue);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.4);
}

.client-logo-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-info strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.client-card small {
    display: block;
    color: var(--blue);
    font: 600 10px Inter, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: 4px;
    text-shadow: 0 0 6px rgba(0, 210, 255, 0.4);
}

.client-card.featured {
    border-color: rgba(255, 30, 56, .6);
    background: linear-gradient(145deg, rgba(255, 30, 56, .15), transparent);
    box-shadow: 0 0 20px rgba(255, 30, 56, 0.15);
}

.client-card.wide {
    grid-column: span 2;
}

/* BLOG / INSIGHTS GRID */
.insights { background: linear-gradient(180deg, rgba(14, 14, 20, 0.5), transparent); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.blog-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0, 210, 255, 0.2); }
.blog-meta { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; font-weight: 700; text-shadow: 0 0 8px var(--blue); }
.blog-card h3 { font-size: 19px; line-height: 1.35; margin-bottom: 14px; }
.blog-card p { color: #8d8784; font-size: 13px; margin-bottom: 24px; }
.read-more { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; transition: color .25s ease; }
.blog-card:hover .read-more { color: var(--blue); text-shadow: 0 0 10px var(--blue); }

/* MANIFESTO & CONTACT */
.manifesto {
    padding: 150px 5vw; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: radial-gradient(circle at 50% 50%, rgba(255, 30, 56, .15), transparent 35%), #08080c;
    text-align: center; position: relative; overflow: hidden;
}
.manifesto::before {
    content: ""; position: absolute; width: 500px; height: 500px; left: 50%; top: 50%;
    transform: translate(-50%, -50%); border: 1px solid rgba(0, 210, 255, .25); border-radius: 50%; pointer-events: none;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.1);
}
.manifesto-inner { max-width: 900px; margin: auto; position: relative; z-index: 2; }
.manifesto h2 { font-size: clamp(48px, 6vw, 80px); line-height: .95; letter-spacing: -.05em; margin: 24px 0; }
.manifesto p { max-width: 680px; margin: 0 auto 32px; color: #8d8784; }

.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.contact-details { margin-top: 45px; display: grid; gap: 20px; }
.contact-details div { border-top: 1px solid var(--line); padding-top: 13px; display: flex; justify-content: space-between; gap: 20px; }
.contact-details span { font-size: 9px; letter-spacing: .15em; color: #777; }
.contact-details strong { font: 600 12px "Space Grotesk", sans-serif; text-align: right; }

.contact-note { display: flex; gap: 16px; align-items: center; margin-top: 35px; }
.contact-mark { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--blue); color: var(--blue); font: 700 15px "Space Grotesk", sans-serif; box-shadow: 0 0 20px rgba(0, 210, 255, 0.3); }
.contact-note strong { display: block; font: 700 18px "Space Grotesk", sans-serif; }
.contact-note small { color: #777; font-size: 10px; }

.contact-form { display: grid; gap: 18px; border: 1px solid var(--line); padding: 35px; background: #09090e; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5); }
.contact-form label { display: grid; gap: 8px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #85807d; font-weight: 700; }
.contact-form input, .contact-form textarea {
    width: 100%; border: 1px solid var(--line); background: #050508; color: #fff; padding: 14px;
    font: 500 13px Inter, sans-serif; outline: none; resize: vertical; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #555; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); background: #07070b; box-shadow: 0 0 15px rgba(0, 210, 255, 0.2); }
.form-status { font-size: 11px; color: #c9c2be; margin: 0; }

/* FOOTER */
.footer {
    padding: 60px 5vw 30px;
    border-top: 2px solid rgba(255, 30, 56, 0.4);
    background: #030305;
    position: relative;
    box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.9);
}

.footer-top {
    max-width: var(--max);
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    width: fit-content;
}

.footer-brand img {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
    display: block;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 10px rgba(255, 30, 56, 0.7));
    transition: opacity .3s ease, transform .3s ease;
}

.footer-brand:hover img {
    opacity: 1;
    transform: scale(1.02);
}

.footer-top p {
    margin: 0;
    text-align: center;
    color: #e0dce5;
    font-size: 11px;
    line-height: 1.8;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
}

.footer-top p span {
    color: var(--blue);
    text-shadow: 0 0 10px var(--blue);
}

.back-top {
    justify-self: end;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--blue);
    transition: color .25s ease, transform .25s ease, text-shadow .25s ease;
}

.back-top:hover {
    color: var(--red);
    transform: translateY(-3px);
    text-shadow: 0 0 12px var(--red);
}

.footer-bottom {
    max-width: var(--max);
    margin: 45px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    color: #b0aab5;
    font-size: 11px;
    letter-spacing: .05em;
}

/* REVEAL & ACCESSIBILITY */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 1px solid var(--blue); outline-offset: 4px; box-shadow: 0 0 10px var(--blue); }

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1100px) {
    .site-header { padding-left: 4vw; padding-right: 4vw; }
    .nav { gap: 16px; font-size: 12px; }
    .hero { grid-template-columns: 1fr .8fr; }
    .hero h1 { font-size: clamp(55px, 7vw, 85px); }
    .ring-a { width: 390px; height: 390px; }
    .ring-b { width: 295px; height: 295px; }
    .ring-c { width: 205px; height: 205px; }
    .section, .media-banner { padding-left: 4vw; padding-right: 4vw; }
    .software-grid, .blog-grid, .media-banner { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .site-header { height: 76px; }
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 135px;
        padding-bottom: 80px;
    }

    .hero-proof {
        margin-top: 30px;
        margin-bottom: 30px;
        gap: 20px;
    }

    .hero-orbit {
        margin-top: 50px;
        height: 380px;
    }
    .about-layout, .solution-layout, .contact-layout { grid-template-columns: 1fr; gap: 50px; }
    .service-grid, .client-grid { grid-template-columns: repeat(2, 1fr); }
    .solution-visual { height: 500px; }
}

@media (max-width: 760px) {
    .site-header { height: 70px; padding-left: 5vw; padding-right: 5vw; }
    .menu-toggle { display: block; }
    .nav {
        display: none; position: absolute; top: 70px; left: 0; right: 0;
        background: rgba(10, 10, 15, .98); border-bottom: 1px solid var(--line);
        padding: 18px 5vw; flex-direction: column; align-items: flex-start; gap: 18px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, .6);
    }
    .nav.open { display: flex; }
    .nav a, .nav-cta { width: 100%; }
    .nav-cta { text-align: center; }
    .nav a:not(.nav-cta)::after { display: none; }
	body.light-theme .nav.open {
        background: #ffffff !important; /* Clean white background for the dropdown panel */
        border-bottom-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
	body.light-theme .nav.open a {
        color: #121318 !important; /* Forces menu links (Home, About, etc.) to stark black */
        opacity: 1 !important;
    }
}

@media (max-width: 720px) {
    html { scroll-padding-top: 75px; }
    .section { padding: 105px 6vw; }
    .hero { padding-top: 125px; padding-bottom: 85px; }
    .hero h1 { font-size: clamp(48px, 15vw, 72px); line-height: .94; margin-top: 20px; }
  .hero-proof {
        margin-bottom: 25px;
    }

    .hero-orbit {
        display: grid !important;
        height: 340px;
        transform: scale(0.65);
        margin: 40px auto 0 auto;
    }
    .section-heading { display: block; margin-bottom: 45px; }
    .section-heading h2 { margin-top: 15px; font-size: clamp(40px, 12vw, 58px); }
    .big-copy { font-size: 21px; }
    .service-grid, .client-grid { grid-template-columns: 1fr; }
    .client-card.wide { grid-column: span 1; }
    .solution-visual { height: 420px; }
    .manifesto { padding: 105px 6vw; }
    .footer-top { grid-template-columns: 1fr; text-align: left; }
    .footer-top p { text-align: left; }
    .back-top { justify-self: start; }
    .footer-bottom { display: block; }
    .footer-bottom span { display: block; margin-top: 8px; }
}

@media (max-width: 480px) {
    .site-header { padding-left: 18px; padding-right: 18px; }
    .section { padding-left: 20px; padding-right: 20px; }
    .hero { padding-top: 115px; }
    .hero h1 { font-size: 48px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
    .solution-visual { height: 360px; }
    .contact-form { padding: 20px; }
    .footer { padding-left: 20px; padding-right: 20px; }
    .hero-orbit {
        transform: scale(0.58);
        height: 300px;
        margin: 50px auto -20px auto;
    }
}


/* =========================================================
   FIXED & POLISHED LIGHT THEME OVERRIDES (NO RED GLOW)
   ========================================================= */

body.light-theme {
    --bg: #f4f5f9;
    --bg-soft: #eaeef5;
    --panel: #ffffff;
    --panel2: #edf2f7;

    --text: #121318;
    --muted: #4a5061;
    --muted2: #656c7e;

    --line: rgba(255, 30, 56, 0.22);
    --line-soft: rgba(0, 0, 0, 0.08);
}

/* Completely remove red glow from headings in light mode */
body.light-theme h1 em, 
body.light-theme h2 em {
    text-shadow: none !important;
    color: var(--red);
}

body.light-theme .site-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 248, 0.99));
    border-bottom: 2px solid rgba(255, 30, 56, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.light-theme .brand img,
body.light-theme .footer-brand img,
body.light-theme .core img {
    mix-blend-mode: normal !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

body.light-theme .nav a {
    color: #121318;
}

body.light-theme .nav a:hover {
    color: var(--blue);
}

body.light-theme .hero-grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

body.light-theme .hero-text,
body.light-theme .about-lead p:not(.big-copy),
body.light-theme .section-intro,
body.light-theme .software-card p,
body.light-theme .service-card p,
body.light-theme .solution-row p,
body.light-theme .blog-card p,
body.light-theme .manifesto p {
    color: #4a5061 !important;
}
/* 2. Fix Manifesto heading and paragraph text visibility in light mode */
body.light-theme .manifesto {
    background: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, .1), transparent 40%), #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
body.light-theme .manifesto::before {
    border-color: rgba(0, 210, 255, 0.3);
}

body.light-theme .manifesto h2 {
    color: #121318 !important; /* Ensures headline is dark, bold, and fully readable */
}

body.light-theme .big-copy {
    color: #1a1c23 !important;
}

body.light-theme .section-no {
    color: #007bb5;
    text-shadow: none;
}

body.light-theme .hero-proof strong {
    color: #121318;
}

body.light-theme .hero-proof span {
    color: #555;
}

body.light-theme .orbit-tag {
    background: rgba(255, 255, 255, 0.98);
    color: #121318;
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

body.light-theme .core {
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15), rgba(240, 244, 248, 0.98) 70%);
}

body.light-theme .software-card,
body.light-theme .blog-card,
body.light-theme .contact-form,
body.light-theme .service-card {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

body.light-theme .client-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

body.light-theme .client-card:hover {
    border-color: var(--blue);
    background: #f8fafc;
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.15);
}

body.light-theme .client-info strong {
    color: #121318 !important;
}

body.light-theme .client-card small {
    color: #007bb5 !important;
    text-shadow: none;
}

body.light-theme .client-logo-slot {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-theme .node {
    background: #0e0e14;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
    background: #f8fafc;
    color: #121318;
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-theme .contact-form input::placeholder,
body.light-theme .contact-form textarea::placeholder {
    color: #8890a0;
}

body.light-theme .footer {
    background: #e8edf4;
    border-top: 2px solid rgba(255, 30, 56, 0.3);
}

body.light-theme .footer-top p {
    color: #333a48;
}

body.light-theme .footer-bottom {
    color: #555d6e;
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.5);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 16px;
    transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 30, 56, 0.2);
    border-color: var(--red);
}

@media (max-width: 760px) {
    .theme-toggle {
        width: 100%;
        border-radius: 4px;
        padding: 10px;
    }
}

/* ADDITIONAL LIGHT MODE VISIBILITY FIXES */
body.light-theme .eyebrow {
    color: #4a5061 !important;
}

body.light-theme .section-no {
    color: #007bb5 !important;
}

body.light-theme .tech-tags li {
    background: #edf2f7;
    border-color: rgba(0, 0, 0, 0.12);
    color: #2d3748;
}

body.light-theme .solution-visual {
    background: radial-gradient(circle at center, rgba(255, 30, 56, .06), transparent 50%), #ffffff !important;
    border-color: rgba(255, 30, 56, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}
body.light-theme .solution-visual::before {
    border: 2px dashed rgba(255, 30, 56, 0.7) !important;
    box-shadow: 0 0 20px rgba(255, 30, 56, 0.2), 0 0 0 55px rgba(255, 30, 56, 0.02);
}

body.light-theme .solution-center .brand-dig {
    color: #121318 !important; /* Stark Black for DIGITAL */
    text-shadow: none;
}

body.light-theme .solution-center .brand-icon {
    color: var(--red) !important; /* Crimson Red for ICON */
    text-shadow: 0 0 10px rgba(255, 30, 56, 0.3);
}

/* Turns floating node boxes white with crisp black text in light mode */
body.light-theme .solution-visual .node {
    background: #ffffff !important;
    border-color: rgba(255, 30, 56, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body.light-theme .solution-visual .node span {
    color: #121318 !important; /* Stark Black for Analysis, Architecture, etc. */
}

body.light-theme .solution-visual .node b {
    color: var(--red);
    text-shadow: none;
}

body.light-theme .menu-toggle {
    color: #121318 !important; /* Turns the hamburger menu icon dark/visible in light mode */
}

/* =========================================================
   FLOATING ACTION DOCK (THEME, WHATSAPP, AI CHAT)
   ========================================================= */

.floating-dock {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 210, 255, 0.5);
    background: rgba(14, 14, 20, 0.92);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 210, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.float-btn:hover {
    transform: scale(1.1);
    border-color: var(--red);
    background: rgba(255, 30, 56, 0.2);
    box-shadow: 0 10px 30px rgba(255, 30, 56, 0.4);
}

.whatsapp-btn {
    border-color: rgba(37, 211, 102, 0.6);
    background: rgba(14, 14, 20, 0.92);
}

.whatsapp-btn:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.2);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* Light Theme Floating Dock Styles */
body.light-theme .float-btn {
    background: #ffffff;
    color: #121318;
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

body.light-theme .float-btn:hover {
    border-color: var(--red);
    background: rgba(255, 30, 56, 0.1);
}

body.light-theme .whatsapp-btn {
    border-color: rgba(37, 211, 102, 0.5);
}

/* =========================================================
   AI ASSISTANT CHAT DRAWER STYLING
   ========================================================= */

.ai-chat-drawer {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 360px;
    height: 480px;
    background: rgba(14, 14, 20, 0.96);
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 210, 255, 0.15);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}

.ai-chat-drawer.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.ai-chat-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 30, 56, 0.15), rgba(0, 210, 255, 0.08));
    border-bottom: 1px solid rgba(255, 30, 56, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-status-dot {
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--blue);
    animation: pulseGlow 1.5s infinite;
}

.ai-chat-header h3 {
    margin: 0;
    font-size: 14px;
    letter-spacing: .05em;
    color: #fff;
}

.ai-chat-header small {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ai-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity .2s ease;
}

.ai-close-btn:hover {
    opacity: 1;
    color: var(--red);
}

.ai-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 13px;
}

.ai-message {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 8px;
    line-height: 1.5;
}

.ai-message.bot {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2dce5;
    align-self: flex-start;
}

.ai-message.user {
    background: rgba(0, 210, 255, 0.15);
    border: 1px solid rgba(0, 210, 255, 0.4);
    color: #fff;
    align-self: flex-end;
}

.ai-quick-options {
    padding: 8px 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--blue);
    font: 600 10px "Space Grotesk", sans-serif;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: .05em;
    transition: all .2s ease;
}

.ai-chip:hover {
    background: rgba(0, 210, 255, 0.2);
    border-color: var(--blue);
}

.ai-chat-footer {
    padding: 12px 16px;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    display: flex;
    gap: 8px;
}

.ai-chat-footer input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--line);
    color: #fff;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 4px;
    outline: none;
}

.ai-chat-footer input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.ai-chat-footer button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 0 14px;
    font: 700 11px "Space Grotesk", sans-serif;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s ease;
}

.ai-chat-footer button:hover {
    background: var(--blue);
}

/* Light Theme Overrides for Chat Drawer */
body.light-theme .ai-chat-drawer {
    background: #ffffff;
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body.light-theme .ai-message.bot {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
    color: #121318;
}

body.light-theme .ai-message.user {
    background: rgba(0, 210, 255, 0.12);
    color: #121318;
    border-color: rgba(0, 210, 255, 0.3);
}

body.light-theme .ai-chat-footer {
    background: #f8fafc;
}

body.light-theme .ai-chat-footer input {
    background: #ffffff;
    color: #121318;
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-theme .ai-chat-header h3 {
    color: #121318 !important; /* Makes "DI-CORE // AI Assistant" dark and bold */
}

body.light-theme .ai-chat-header small {
    color: #555d6e !important; /* Makes "DIGITAL ICON INTELLIGENCE UNIT" clearly legible */
}

body.light-theme .ai-close-btn {
    color: #121318 !important; /* Makes the "×" close button dark and visible */
    opacity: 0.8;
}

body.light-theme .ai-close-btn:hover {
    opacity: 1;
    color: var(--red);
}

body.light-theme .ai-quick-options {
    background: #f1f5f9 !important; /* Clears out the dark/grey background box */
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .ai-chip {
    background: #ffffff !important;
    border-color: rgba(0, 210, 255, 0.4);
    color: #007bb5 !important; /* Makes chip text crisp blue/dark */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

body.light-theme .ai-chip:hover {
    background: var(--blue) !important;
    color: #ffffff !important;
}
