.aiservice-wrapper {
    --navy: #011146;
    --navy-2: #0a1845;
    --blue: #0284c7;
    --blue-light: #0ea5e9;
    --blue-pale: #e0f2fe;
    --ink: #011146;
    --muted: #64748b;
    --bg-primary: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.aiservice-page {
    color: var(--ink);
    background: var(--bg-primary);
    overflow-x: hidden;
}

.aiservice-wrapper h1,
.aiservice-wrapper h2,
.aiservice-wrapper h3 {
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(90deg, var(--blue), var(--blue-light), var(--blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textShine 4s linear infinite;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.text-muted-blue {
    color: var(--muted);
}

/* NAV */
#mainNav {
    background: rgba(8, 47, 73, .55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background .3s ease;
    padding: 14px 0;
    z-index: 1040;
}

#mainNav.scrolled {
    background: rgba(8, 47, 73, .92);
    box-shadow: 0 6px 24px rgba(8, 47, 73, .25);
}

.navbar-brand {
    font-weight: 600;
    font-size: 20px;
    color: #fff !important;
}

.nav-link {
    color: rgba(255, 255, 255, .75) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color .2s ease;
}

.nav-link:hover {
    color: #fff !important;
}

/* HERO */
.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    overflow: hidden;
    background: var(--navy);
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 25s alternate infinite ease-in-out;
    filter: brightness(1.1) contrast(1.15) saturate(1.25);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
    opacity: .55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

.hero-content {
    padding-top: 120px;
    padding-bottom: 80px;
    z-index: 2;
}

.badge-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue-light);
    background: rgba(14, 165, 233, .12);
    border: 1px solid rgba(56, 189, 248, .35);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(36px, 5.5vw, 62px);
    line-height: 1.08;
    color: #ffffff;
    margin-bottom: 22px;
    filter: none;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

.hero-sub {
    font-size: 19px;
    font-weight: 500;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto 34px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.9);
    filter: none;
}

@media(min-width:992px) {
    .hero-sub {
        margin: 0 auto 34px;
    }
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px !important;
    justify-content: center;
    margin-bottom: 40px;
}

.btn-primary-glow {
    background: var(--blue);
    border: 1px solid var(--blue);
    color: #fff;
    font-weight: 500;
    padding: 12px 26px;
    border-radius: 8px;
    box-shadow: 0 0 0 rgba(14, 165, 233, 0);
    transition: box-shadow .25s ease, transform .2s ease, background .2s ease;
}

.btn-primary-glow:hover {
    background: #0284c7;
    color: #fff;
    box-shadow: 0 8px 30px rgba(14, 165, 233, .45);
    transform: translateY(-2px);
}

.btn-outline-light-custom {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 26px;
    transition: all 0.25s ease;
}

.btn-outline-light-custom:hover {
    background: #ffffff;
    color: var(--ink);
    transform: translateY(-2px);
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .5);
    font-size: 22px;
    z-index: 2;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 8px);
    }
}

/* STATS STRIP */
.stats-strip {
    padding: 0 20px;
    position: relative;
    z-index: 5;
    margin-top: -80px;
    background: transparent;
}

.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 36px;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05),
        0 10px 20px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.stats-inner::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12), transparent 60%);
    top: -300px;
    right: -200px;
    filter: blur(40px);
    pointer-events: none;
}

.stats-inner::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1), transparent 60%);
    bottom: -200px;
    left: 10%;
    filter: blur(30px);
    pointer-events: none;
}

.stat-block {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: clamp(48px, 5vw, 64px);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 992px) {
    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px;
    }
}

@media (max-width: 576px) {
    .stats-inner {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

/* SECTION HEADING */
.section-heading {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.eyebrow-mono {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--blue);
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    margin-bottom: 14px;
}

.section-trends {
    position: relative;
    padding: 140px 0 100px;
    margin-top: -80px;
    background: #011146;
}

.section-trends .section-heading h2 {
    color: #ffffff;
}

.section-trends .section-heading p {
    color: #94a3b8;
}

.section-trends .eyebrow-mono {
    color: #38bdf8;
}

.section-usecases {
    padding: 60px 0;
    background: #ffffff;
}

.section-industries {
    padding: 48px 0;
    background: #ffffff;
}

.section-services {
    padding: 90px 0;
    background: #011146 !important;
    color: #ffffff;
}

.section-services h2 {
    color: #ffffff !important;
}

.section-services p {
    color: #cbd5e1 !important;
}

/* DOODLE BACKGROUND */
.doodle-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.12;
}

.doodle-bg i {
    position: absolute;
    color: var(--ink);
    opacity: 0.8;
}

.section-flow {
    padding: 60px 0;
}


/* FLOW DIAGRAM */
.flow-diagram {
    max-width: 380px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 10px;
    padding: 14px 18px;
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
    transition: background .4s ease, color .4s ease, border-color .4s ease, transform .3s ease;
}

.flow-step i {
    color: var(--blue);
    font-size: 18px;
}

.flow-step-accent {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.flow-step-processing {
    border-color: rgba(56, 189, 248, .5);
    box-shadow: 0 0 0 2px rgba(56, 189, 233, .15);
}

.flow-step-accent i {
    color: #fff;
}

.flow-arrow {
    text-align: center;
    color: var(--blue-light);
    padding: 6px 0;
    font-size: 18px;
    position: relative;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--blue-light);
    box-shadow: 0 0 8px var(--blue-light);
    animation: flowPulse 1.8s ease-in-out infinite;
    opacity: 0;
}

@keyframes flowPulse {
    0% {
        top: 0;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

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

@media (prefers-reduced-motion: reduce) {
    .flow-arrow::after {
        animation: none;
        display: none;
    }
}

.agent-robot-wrap {
    position: relative;
    display: inline-block;
}

.agent-robot-wrap::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 70%;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(56, 189, 248, .35), transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: .4;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: .8;
        transform: translateX(-50%) scale(1.15);
    }
}

/* BENTO GRID - TARGET INDUSTRIES */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: dense;
    gap: 20px;
    margin-top: 40px;
    grid-auto-rows: 240px;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
    }
}

@media (min-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 280px;
    }

    .bento-tall {
        grid-row: span 2;
    }

    .bento-wide {
        grid-column: span 2;
    }

    .bento-full {
        grid-column: span 3;
    }
}

.bento-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #0a0a0a;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.65);
}

.bento-card:hover .bento-img {
    transform: scale(1.05);
    filter: brightness(0.55);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.bento-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.bento-card:hover .bento-badge {
    background-color: #ffffff;
    color: #111;
    transform: scale(1.1) rotate(15deg);
}

.bento-text-wrap {
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-text-wrap {
    transform: translateY(-4px);
}

.bento-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.bento-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

/* SERVICES VISUAL HUD */
.services-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.services-visual-img {
    width: 100%;
    display: block;
    border-radius: 16px;
    transition: opacity 0.2s ease;
}

.hud-frame {
    position: absolute;
    inset: 12px;
    pointer-events: none;
    z-index: 5;
}

.hud-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid var(--blue-light);
    opacity: .8;
}

.hud-corner.tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.hud-corner.tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.hud-corner.bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.hud-corner.br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.hud-scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
    box-shadow: 0 0 12px var(--blue-light);
    animation: hudScan 3.2s ease-in-out infinite;
}

@keyframes hudScan {

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

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    50% {
        top: 94%;
    }
}

.hud-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(14, 165, 233, .3);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 12.5px;
    color: var(--ink);
    z-index: 10;
}

.hud-chip--1 {
    top: 18px;
    left: 18px;
}

.hud-chip--2 {
    bottom: 18px;
    right: 18px;
}

.hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px #34d399;
    animation: dotPulse 1.4s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: .5;
    }

    50% {
        opacity: 1;
    }
}

/* SERVICES ACCORDION - Migrated to Tailwind CSS in page.tsx */

/* SERVICES MARQUEE */
.services-marquee-wrap {
    overflow: hidden;
    margin: 32px 0 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.services-marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    padding: 6px 0;
    animation: servicesMarquee 28s linear infinite;
}

.services-marquee-wrap:hover .services-marquee-track {
    animation-play-state: paused;
}

.service-chip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 100px;
    padding: 12px 20px 12px 14px;
    white-space: nowrap;
    transition: border-color .25s ease, transform .25s ease;
    cursor: pointer;
}

.service-chip:hover {
    border-color: rgba(14, 165, 233, .5);
    transform: translateY(-3px);
}

.service-chip-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--blue-pale);
    color: var(--blue-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.service-chip-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

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

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

@media (prefers-reduced-motion: reduce) {
    .services-marquee-track {
        animation: none;
    }

    .services-marquee-wrap {
        overflow-x: auto;
    }
}

.chip-jump-highlight {
    animation: jumpFlash 1.2s ease;
}

@keyframes jumpFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }

    20% {
        box-shadow: 0 0 0 4px rgba(56, 189, 248, .35);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

/* Accordion Inner Content CSS migrated to Tailwind */


/* CTA section migrated to Tailwind in page.tsx */

/* FOOTER */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .7);
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-weight: 500;
}

.footer span:first-child {
    color: #fff;
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1.in-view {
    transition-delay: .1s;
}

.reveal-delay-2.in-view {
    transition-delay: .2s;
}

.reveal-delay-3.in-view {
    transition-delay: .3s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-cue,
    .floating-img,
    .floating-img-slow,
    .trend-icon,
    .service-icon-badge {
        animation: none;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-img {
    animation: float 6s ease-in-out infinite;
}

.floating-img-slow {
    animation: float 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 0 rgba(14, 165, 233, 0));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(14, 165, 233, 0.6));
    }

    100% {
        filter: drop-shadow(0 0 0 rgba(14, 165, 233, 0));
    }
}

/* USE CASE TIMELINE */
.usecase-timeline {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--border-color);
}

.timeline-line-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--blue), var(--blue-light));
    box-shadow: 0 0 10px rgba(56, 189, 248, .5);
    transition: height .2s ease-out;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 56px 1fr;
    align-items: center;
    gap: 28px;
    margin-bottom: 64px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-node {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--blue-light);
    z-index: 2;
}

.timeline-node::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, .35);
    animation: nodePulse 2.4s ease-out infinite;
}

@keyframes nodePulse {
    0% {
        transform: scale(.9);
        opacity: .8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.timeline-side {
    background: var(--bg-card);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 14px;
    padding: 18px 20px;
}

.timeline-side p {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.55;
    margin: 0;
}

.usecase-row-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: 8px;
}

.usecase-row-label--accent {
    color: var(--blue-light);
}

.timeline-answer {
    border-color: rgba(14, 165, 233, .35);
    background: var(--blue-pale);
}

.timeline-item--right {
    grid-template-columns: 1fr 56px 1fr;
}

.timeline-item--right .timeline-question {
    grid-column: 3;
    grid-row: 1;
}

.timeline-item--right .timeline-node {
    grid-column: 2;
    grid-row: 1;
}

.timeline-item--right .timeline-answer {
    grid-column: 1;
    grid-row: 1;
}

.timeline-tag {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--blue);
    white-space: nowrap;
    background: #ffffff;
    padding: 2px 12px;
    z-index: 2;
}

.timeline-item--left .timeline-side {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity .6s ease, transform .6s ease;
}

.timeline-item--right .timeline-side {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.timeline-item.in-view .timeline-side {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.in-view .timeline-question {
    transition-delay: .05s;
}

.timeline-item.in-view .timeline-answer {
    transition-delay: .2s;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 27px;
    }

    .timeline-item,
    .timeline-item--right {
        grid-template-columns: 56px 1fr;
        gap: 16px;
    }

    .timeline-item--right .timeline-question,
    .timeline-item .timeline-question {
        grid-column: 2;
        grid-row: 2;
        margin-top: 16px;
    }

    .timeline-item--right .timeline-node,
    .timeline-item .timeline-node {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .timeline-item--right .timeline-answer,
    .timeline-item .timeline-answer {
        grid-column: 2;
        grid-row: 1;
    }

    .timeline-tag {
        left: 76px;
        transform: none;
        top: -26px;
    }

    .timeline-item--left .timeline-side,
    .timeline-item--right .timeline-side {
        transform: translateY(12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-node::after {
        animation: none;
    }

    .timeline-item .timeline-side {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* HOLOGRAPHIC CARDS */
.holo-grid {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
}

.holo-card {
    position: relative;
    border-radius: 16px;
    padding: 1.5px;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .3s ease;
}

.holo-border {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: conic-gradient(from var(--angle, 0deg), transparent 0%, var(--blue-light) 8%, transparent 22%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorder 4s linear infinite;
}

@keyframes rotateBorder {
    to {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.holo-inner {
    position: relative;
    background: var(--bg-card);
    border-radius: 15px;
    padding: 26px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.holo-card:hover {
    transform: perspective(700px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) translateY(-4px);
    z-index: 10;
}

.holo-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 24px;
}

.holo-inner h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.holo-inner p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 0;
}

.holo-signal {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.holo-signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.holo-signal-bars span {
    width: 4px;
    background: var(--border-color);
    border-radius: 2px;
    height: 30%;
    transition: height .5s ease, background .5s ease;
}

.holo-card.in-view .holo-signal-bars span {
    background: var(--blue-light);
    animation: barPulse 1.6s ease-in-out infinite;
}

.holo-card.in-view .holo-signal-bars span:nth-child(1) {
    height: 40%;
    animation-delay: 0s;
}

.holo-card.in-view .holo-signal-bars span:nth-child(2) {
    height: 65%;
    animation-delay: .1s;
}

.holo-card.in-view .holo-signal-bars span:nth-child(3) {
    height: 90%;
    animation-delay: .2s;
}

.holo-card.in-view .holo-signal-bars span:nth-child(4) {
    height: 55%;
    animation-delay: .3s;
}

.holo-card.in-view .holo-signal-bars span:nth-child(5) {
    height: 75%;
    animation-delay: .4s;
}

@keyframes barPulse {

    0%,
    100% {
        opacity: .6;
    }

    50% {
        opacity: 1;
    }
}

.holo-signal-label {
    font-size: 12px;
    color: var(--muted);
}

.holo-signal-val {
    color: var(--blue-light);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .holo-border {
        animation: none;
    }

    .holo-signal-bars span {
        animation: none;
    }

    .holo-card:hover {
        transform: none;
    }
}

/* CHATBOT */
.chatbot-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

/* Hide scroll-to-top button on AI service page to avoid overlap with Chatbot */
.aiservice-page button[aria-label="Scroll to top"] {
    display: none !important;
}

.chatbot-window {
    width: 350px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.chatbot-window.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    background: var(--blue);
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chatbot-body {
    height: 320px;
    padding: 16px;
    overflow-y: auto;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 85%;
    display: flex;
    flex-direction: column;
}

.bot-msg {
    align-self: flex-start;
}

.user-msg {
    align-self: flex-end;
    align-items: flex-end;
}

.msg-content {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink);
}

.bot-msg .msg-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.user-msg .msg-content {
    background: var(--blue);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.msg-time {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    padding: 0 4px;
}

.chatbot-footer {
    padding: 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.chatbot-footer .form-control {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--ink);
    border-radius: 8px 0 0 8px;
}

.chatbot-footer .form-control:focus {
    box-shadow: none;
    border-color: var(--blue);
}

.chatbot-footer .btn {
    border-radius: 0 8px 8px 0;
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.chatbot-footer .btn:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}

/* VISA SECTION */
.section-visas {
    padding: 80px 0;
    background: #f8f9fc;
    /* Light gray matching the screenshot */
    position: relative;
    overflow: hidden;
}

.visa-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.visa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.visa-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    margin-bottom: 18px;
}

.visa-card h4 {
    font-size: 17.5px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}

.visa-card p {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.6;
}

.visa-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

@media (max-width: 991.98px) {
    .visa-img-wrap {
        min-height: 300px;
        margin-top: 40px;
    }
}

/* DIGITAL EXPERIENCES SECTION */
.experience-img-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.main-exp-img {
    width: 90%;
    border-radius: 16px;
    object-fit: cover;
}

.overlap-exp-img {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 55%;
    border-radius: 12px;
    border: 4px solid #ffffff;
    z-index: 3;
}

.floating-badge {
    position: absolute;
    background: #ffffff;
    border-radius: 30px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    z-index: 4;
}

.badge-top-right {
    top: 30%;
    right: -20px;
}

.badge-bottom-left {
    bottom: 20%;
    left: -30px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 12px;
    padding: 16px;
    gap: 5px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #34d399;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 16px;
    margin-top: 6px;
}

.mini-chart span {
    width: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    display: inline-block;
}

.mini-chart span:nth-child(1) {
    height: 40%;
}

.mini-chart span:nth-child(2) {
    height: 60%;
}

.mini-chart span:nth-child(3) {
    height: 30%;
}

.mini-chart span:nth-child(4) {
    height: 100%;
    background: var(--blue);
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #e0f2fe;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.experience-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}


@media (max-width: 991.98px) {
    .experience-img-wrap {
        margin-bottom: 60px;
    }
}

@media (max-width: 767.98px) {
    .experience-cards-grid {
        grid-template-columns: 1fr;
    }

    .badge-top-right,
    .badge-bottom-left {
        transform: scale(0.85);
    }

    .badge-top-right {
        right: 0;
    }

    .badge-bottom-left {
        left: 0;
    }
}