@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   PROFESSIONAL SCROLL ANIMATION SYSTEM
   8 animation types + stagger + micro-interactions
   Controlled by IntersectionObserver via .anim-visible
   ============================================================ */

/* --- Base State: hidden before animation --- */
[class*="anim-"] {
    opacity: 0;
    will-change: transform, opacity;
}

/* --- Trigger: add .anim-visible to activate --- */
.anim-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

/* 1. Fade Up */
.anim-fade-up {
    transform: translateY(50px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 2. Fade Down */
.anim-fade-down {
    transform: translateY(-50px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 3. Slide from Right */
.anim-slide-right {
    transform: translateX(80px);
    transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 4. Slide from Left */
.anim-slide-left {
    transform: translateX(-80px);
    transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 5. Scale In (Pop) */
.anim-scale-in {
    transform: scale(0.85);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 6. Flip from Right (3D card flip) */
.anim-flip-right {
    transform: perspective(800px) rotateY(-40deg) translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 7. Flip from Left */
.anim-flip-left {
    transform: perspective(800px) rotateY(40deg) translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 8. Rotate In (slight tilt) */
.anim-rotate-in {
    transform: rotate(-6deg) translateY(40px) scale(0.9);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Stagger Delays for child elements --- */
.anim-stagger>*:nth-child(1) {
    transition-delay: 0s;
}

.anim-stagger>*:nth-child(2) {
    transition-delay: 0.12s;
}

.anim-stagger>*:nth-child(3) {
    transition-delay: 0.24s;
}

.anim-stagger>*:nth-child(4) {
    transition-delay: 0.36s;
}

.anim-stagger>*:nth-child(5) {
    transition-delay: 0.48s;
}

.anim-stagger>*:nth-child(6) {
    transition-delay: 0.6s;
}

/* --- Standalone delay helpers --- */
.anim-delay-1 {
    transition-delay: 0.1s !important;
}

.anim-delay-2 {
    transition-delay: 0.2s !important;
}

.anim-delay-3 {
    transition-delay: 0.3s !important;
}

.anim-delay-4 {
    transition-delay: 0.5s !important;
}

/* --- Shimmer on highlighted text (runs continuously) --- */
.anim-shimmer-text {
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-green) 40%, var(--accent-blue) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nlp-text-shimmer 3.5s linear infinite;
    opacity: 1 !important;
    /* always visible, shimmer is CSS only */
}

@keyframes nlp-text-shimmer {
    to {
        background-position: 200% center;
    }
}

/* --- Floating micro-animation (for images) --- */
.anim-float {
    animation: nlp-float 5s ease-in-out infinite;
    opacity: 1 !important;
}

@keyframes nlp-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* --- Pulse border (for CTA cards/buttons) --- */
.anim-pulse-border {
    animation: nlp-pulse-border 2.5s ease-in-out infinite;
    opacity: 1 !important;
}

@keyframes nlp-pulse-border {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(116, 211, 125, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(116, 211, 125, 0);
    }
}

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    [class*="anim-"] {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}



:root {
    --bg-dark: #F8FAFC;
    --text-white: #0F172A;
    --text-grey: #475569;
    --accent-red: #B22234;
    --accent-blue: #0a1755;
    --accent-green: #74d37d;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(10, 23, 85, 0.1);
    --glass-blur: blur(12px);
    --grid-color: rgba(10, 23, 85, 0.05);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Semantic Font Sizes */
    --fs-h1: clamp(40px, 8vw, 84px);
    --fs-h2: clamp(32px, 5vw, 48px);
    --fs-h3: clamp(24px, 3vw, 32px);
    --fs-p: 1.1rem;
    --fs-p-small: 0.95rem;
}

.brand-logo,
.footer-logo {
    height: 40px;
    width: auto;
    filter: none !important;
    background: transparent !important;
}

.footer-logo {
    height: 50px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 700;
}

p {
    font-family: var(--font-body);
    font-size: var(--fs-p);
    color: var(--text-grey);
}

@media (max-width: 991px) {

    p,
    .section-title {
        text-align: center !important;
    }
}

.section-title {
    font-size: var(--fs-h2);
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
}

/* 4K / Ultra-wide Scaling */
@media (min-width: 2560px) {
    .container {
        max-width: 1800px !important;
    }

    :root {
        --fs-h1: 120px;
        --fs-h2: 64px;
        --fs-p: 1.4rem;
    }
}

/* Background Grid */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px); */
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Glow Elements */
.glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.glow-blue {
    background: var(--accent-blue);
    top: 10%;
    left: 5%;
}

.glow-red {
    background: var(--accent-red);
    top: 40%;
    right: 5%;
}

.glow-green {
    background: var(--accent-green);
    bottom: 10%;
    left: 15%;
}

/* Top Bar with Language Selector */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    z-index: 1100;
    padding: 6px 0;
}

.top-bar .btn {
    font-size: 11px;
    padding: 2px 8px;
    opacity: 0.8;
}

.top-bar .btn.active {
    opacity: 1;
    background: var(--accent-blue);
    color: #fff;
}

/* Navigation */
.navbar-custom {
    position: fixed;
    top: 65px;
    /* Adjusted to be below top-bar */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 40px;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-toggle {
    display: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-white);
}

@media (max-width: 991px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        display: flex !important;
        padding: 10px !important;
    }

    .navbar-custom.scrolled {

        top: 60px !important;

    }
}

/* Added missing closing brace for @media (max-width: 991px) */

.navbar-custom.scrolled {
    width: 100%;
    max-width: 100%;
    top: 36px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.95);
    overflow: visible !important;
    /* Ensure mega menu works when scrolled */
}

.nav-links a:hover {
    color: var(--text-white);
}

.nav-cta {
    display: flex;
    gap: 15px;
}

.btn-pill {
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-white {
    background: var(--accent-blue);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-white:hover {
    transform: translateY(-2px);
    background: #081244;
    box-shadow: 0 10px 20px rgba(10, 23, 85, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 180px 20px 60px;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    /* background-image:
        linear-gradient(rgba(10, 23, 85, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 23, 85, 0.03) 1px, transparent 1px); */
    background-size: 40px 40px;

    /* background: linear-gradient(transparent,
            #3b82f6,
            #22c55e,
            transparent 100%); */
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.25;
    pointer-events: none;
    animation: floating-glow 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.hero::before {
    background: #74d37d;
    /* Logo Green */
    /* top: -300px; */
    top: 100px;

    left: -200px;
    animation-delay: -5s;
}

.hero::after {
    background: #0a1755;
    /* Logo Navy */
    /* bottom: -300px; */
    bottom: 200px;

    right: -200px;
}

@keyframes floating-glow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

.hero h1 {
    font-size: clamp(40px, 8vw, 84px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
    max-width: 900px;
}

.hero p {
    color: var(--text-grey);
    font-size: clamp(16px, 2vw, 20px);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Floating Mockups */
.mockup-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin-top: 60px;
}

.mockup-main {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    background: var(--bg-dark);
    /* Image from user: desktop_dashboard.png */
}

/* Feature Sections */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.feature-content p {
    color: var(--text-grey);
    margin-bottom: 30px;
}

.feature-image {
    width: 100%;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card i {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-grey);
    font-size: 14px;
    margin-bottom: 0;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 991px) {
    .feature-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-grid.reverse {
        direction: rtl;
        /* This is a bit tricky, but simple for stack */
    }

    .feature-grid.reverse>* {
        direction: ltr;
    }
}

/* ==========================================================================
   Language Selector
   ========================================================================== */
.lang-selector-section {
    position: relative;
    z-index: 10;
    padding: 1rem 0;
    background: rgba(13, 13, 13, 0.5);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-grey);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 12px;
    padding: 4px 12px;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
}

/* ==========================================================================
   YouTube Intro Section
   ========================================================================== */
.video-intro-section {
    padding: 100px 0;
    position: relative;
}

.video-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.video-container:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-button-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.video-container:hover .play-button-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-container:hover .play-icon {
    transform: scale(1.15);
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.5);
}

/* ==========================================================================
   Sticky Feature Scroll (Champion Products)
   ========================================================================== */
.sticky-scroll-section {
    position: relative;
    padding: 120px 0;
    background: radial-gradient(circle at 15% 15%, rgba(10, 23, 85, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(116, 211, 125, 0.05) 0%, transparent 40%),
        #f8fafc;
    border-top: 1px solid rgba(10, 23, 85, 0.03);
    border-bottom: 1px solid rgba(10, 23, 85, 0.03);
    overflow: hidden;
}

.sticky-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 80px;
}

.sticky-left {
    flex: 0.8;
    min-width: 300px;
    position: sticky;
    top: 150px;
    padding-bottom: 50px;
}

.sticky-right {
    flex: 1.5;
}

.static-section-title {
    font-size: var(--fs-h2);
    text-transform: capitalize;
    letter-spacing: -1px;
    color: var(--accent-blue);
    font-weight: 800;
    margin-bottom: 2rem;
}

.sticky-title {
    font-size: var(--fs-h3);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #0a1755, #74d37d, #0a1755);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-gradient-shimmer 3s linear infinite;
    display: block;
    min-height: 1.4em;
    /* Prevent layout shift */
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 60px;
    backdrop-filter: var(--glass-blur);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(50px) scale(0.98);
    will-change: transform, opacity;
}

.product-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    box-shadow: 0 30px 60px rgba(10, 17, 85, 0.08);
}

.product-card.exiting {
    opacity: 0;
    transform: translateX(-50px) scale(0.98);
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 30px;
}

.product-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-card p {
    color: var(--text-grey);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ==========================================================================
   Counters (Professional Support)
   ========================================================================== */
.counters-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #E2E8F0 100%);
}

.counter-box {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.counter-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 102, 255, 0.2);
    transform: translateY(-5px);
}

.counter-value {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-grey);
}

/* ==========================================================================
   Knowledge Bank
   ========================================================================== */
.knowledge-bank-section {
    padding: 100px 0;
}

.knowledge-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.knowledge-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.knowledge-img-wrapper {
    overflow: hidden;
    height: 180px;
    flex-shrink: 0;
}

.knowledge-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.knowledge-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--accent-blue);
}

.knowledge-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more-btn {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 100px 0;
}

.contact-info-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.product-card.active-card {
    background: #fff;
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    padding: 100px 0 50px;
    background: #F1F5F9;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-white);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-grey);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-grey);
    font-size: 14px;
}

/* Modal Styling */
.modal-content {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    color: var(--text-white);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header .btn-close {
    filter: none;
}

@media (max-width: 991px) {
    .sticky-left {
        position: relative;
        top: 0;
        margin-bottom: 60px;
    }
}

/* ==========================================================================
   Social Icon Animations (Flip-up)
   ========================================================================== */
.social-card-v2 {
    width: fit-content;
    height: fit-content;
    background-color: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    gap: 8px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(10, 23, 85, 0.05);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
}

.social-link-v2 {
    width: 38px;
    height: 38px;
    background-color: rgba(117, 117, 117, 0);
    display: flex;
    align-items: center;
    border-radius: 10px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.15, 0.83, 0.66, 1);
    text-decoration: none;
}

.social-link-v2:hover {
    transform: scale(1.1);
    border-radius: 10px;
}

/* Platform Colors */
.social-link-v2.facebook:hover {
    background-color: #1877F2;
}

.social-link-v2.twitter:hover {
    background-color: #000000;
}

/* Updated X black */
.social-link-v2.instagram:hover {
    background-color: #d62976;
}

.social-link-v2.linkedin:hover {
    background-color: #0072b1;
}

.social-link-v2.youtube:hover {
    background-color: #FF0000;
}

.social-link-v2.whatsapp:hover {
    background-color: #25d366;
}

.social-link-v2:active {
    transform: scale(1.1);
    transition-duration: 0.3s;
}

.socialSvg {
    width: 20px;
    height: 20px;
    transition: all 0.4s cubic-bezier(0.15, 0.83, 0.66, 1);
}

.socialSvg path {
    fill: var(--text-grey);
    transition: fill 0.3s ease;
}

.social-link-v2:hover .socialSvg path {
    fill: white;
}

/* First SVG: Normal State (Moves Up) */
.social-link-v2 .socialSvg:first-child {
    position: absolute;
    transform: translateY(0px);
    opacity: 1;
}

.social-link-v2:hover .socialSvg:first-child {
    transform: translateY(-40px);
    opacity: 0;
}

/* Last SVG: Hover State (Slides in from Bottom) */
.social-link-v2 .socialSvg:last-child {
    position: absolute;
    transform: translateY(40px);
    opacity: 0;
}

.social-link-v2:hover .socialSvg:last-child {
    opacity: 1;
    transform: translateY(0px);
}

/* ==========================================================================
   WhatsApp Chat Animation
   ========================================================================== */
/* --- WhatsApp Chat Animation (15s Loop) --- */
.phone-mockup {
    width: 320px;
    height: 600px;
    background: #000;
    border-radius: 45px;
    border: 12px solid #1a1a1a;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #1a1a1a;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

.chat-container {
    height: 100%;
    background: #f0f2f5;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: contain;
    padding: 60px 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.chat-message {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    line-height: 1.4;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
}

.chat-message.user {
    align-self: flex-end;
    background: #dcf8c6;
    color: #303030;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-message.bot {
    align-self: flex-start;
    background: #fff;
    color: #303030;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.typing-indicator {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 15px;
    display: flex;
    gap: 4px;
    opacity: 0;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #919191;
    border-radius: 50%;
    animation: typing-bounce 1s infinite alternate;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    from {
        opacity: 0.4;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* --- Real-Time Synchronized Animation Classes (20s Cycle) --- */
.m-1 {
    animation: chat-msg-1 20s infinite;
}

.t-1 {
    animation: chat-type-1 20s infinite;
}

.m-2 {
    animation: chat-msg-2 20s infinite;
}

.m-3 {
    animation: chat-msg-3 20s infinite;
}

.t-2 {
    animation: chat-type-2 20s infinite;
}

.m-4 {
    animation: chat-msg-4 20s infinite;
}

.m-5 {
    animation: chat-msg-5 20s infinite;
}

/* USER 1: "I need help with a legal notice." (Starts 1s) */
@keyframes chat-msg-1 {

    0%,
    4% {
        opacity: 0;
        transform: translateY(10px);
    }

    5%,
    92% {
        opacity: 1;
        transform: translateY(0);
    }

    94%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* BOT TYPING (3s to 5s) */
@keyframes chat-type-1 {

    0%,
    14% {
        opacity: 0;
        visibility: hidden;
    }

    15%,
    24% {
        opacity: 1;
        visibility: visible;
    }

    25%,
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* BOT 1: "I can help with that! Please share the details." (Starts 5s) */
@keyframes chat-msg-2 {

    0%,
    24% {
        opacity: 0;
        transform: translateY(10px);
    }

    25%,
    92% {
        opacity: 1;
        transform: translateY(0);
    }

    94%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* USER 2: "Is my data secure?" (Starts 8s) */
@keyframes chat-msg-3 {

    0%,
    39% {
        opacity: 0;
        transform: translateY(10px);
    }

    40%,
    92% {
        opacity: 1;
        transform: translateY(0);
    }

    94%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* BOT TYPING (10s to 12.5s) */
@keyframes chat-type-2 {

    0%,
    49% {
        opacity: 0;
        visibility: hidden;
    }

    50%,
    62% {
        opacity: 1;
        visibility: visible;
    }

    63%,
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* BOT 2: "Absolutely! Our platform is end-to-end encrypted." (Starts 12.5s) */
@keyframes chat-msg-4 {

    0%,
    62% {
        opacity: 0;
        transform: translateY(10px);
    }

    63%,
    92% {
        opacity: 1;
        transform: translateY(0);
    }

    94%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Optional BOT 3 (Hidden until 15s) */
@keyframes chat-msg-5 {

    0%,
    74% {
        opacity: 0;
        transform: translateY(10px);
    }

    75%,
    92% {
        opacity: 1;
        transform: translateY(0);
    }

    94%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* --- Modernized Footer Styles --- */
footer.section {
    background: #0a1755 !important;
    /* Deep Navy */
    color: rgba(255, 255, 255, 0.8) !important;
    position: relative;
    overflow: hidden;

    /* Override .section constraints for full-width background */
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

footer.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 200, 83, 0.05), transparent 70%);
    pointer-events: none;
}

footer h6 {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    margin-bottom: 1.25rem !important;
    border-left: 3px solid var(--accent-green);
    padding-left: 12px;
    letter-spacing: 0.5px;
}

/* Redefine text-grey and text-black for dark footer */
footer .text-grey,
footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

footer .text-black,
footer .fw-bold {
    color: #ffffff !important;
}

footer a.text-decoration-none {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 0;
}

footer a.text-decoration-none:hover {
    color: var(--accent-green) !important;
    transform: translateX(5px);
}

footer .bg-light {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-bottom-bar {
    background: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.socialSvg {
    fill: #ffffff !important;
}

/* Scrollbar for disclosure */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* ============================================================ 
   NEW: Support Hub (Modernized Contact Section)
   Features glassmorphism, 3D icons, and interactive tiles.
   ============================================================ */

.support-hub-wrapper {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

/* Background Glowing Blobs */
.contact-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-blue-light) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.contact-glow-1 {
    top: -100px;
    right: -100px;
}

.contact-glow-2 {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--accent-green-light) 0%, transparent 70%);
}

.support-hub-glass {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 40px;
    padding: 60px;
    box-shadow:
        0 4px 24px -1px rgba(0, 0, 0, 0.04),
        0 40px 120px -10px rgba(10, 23, 85, 0.12);
    position: relative;
    z-index: 1;
}

body.dark-theme .support-hub-glass {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 40px 120px -10px rgba(0, 0, 0, 0.3);
}

/* Contact Info Side */
.contact-method-v3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping on very small screens */
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.contact-method-v3:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(10, 23, 85, 0.1);
}

body.dark-theme .contact-method-v3 {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .contact-method-v3:hover {
    background: rgba(255, 255, 255, 0.08);
}

.method-icon-v3 {
    width: 64px;
    height: 64px;
    min-width: 64px;
    /* Ensure it doesn't shrink */
    border-radius: 20px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(10, 23, 85, 0.08);
    transition: all 0.4s ease;
}

.contact-method-v3:hover .method-icon-v3 {
    transform: scale(1.1) rotate(-8deg);
    background: #0a1755 !important;
    color: #ffffff !important;
}

.method-details-v3 h4 {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-grey);
    margin-bottom: 4px;
    opacity: 0.8;
}

.method-details-v3 p {
    font-size: 19px;
    font-weight: 800;
    color: var(--accent-blue);
    margin: 0;
    letter-spacing: -0.5px;
}

body.dark-theme .method-details-v3 p {
    color: #ffffff;
}

/* Action Tiles Side */
.support-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.action-tile-v3 {
    background: #ffffff;
    border: 1px solid rgba(10, 23, 85, 0.08);
    border-radius: 32px;
    padding: 40px;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
}

body.dark-theme .action-tile-v3 {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

.action-tile-v3:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px rgba(10, 23, 85, 0.1);
    background: #ffffff;
    border-color: var(--accent-blue);
}

body.dark-theme .action-tile-v3:hover {
    background: rgba(30, 41, 59, 0.8);
}

.action-tile-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.action-tile-v3:hover::before {
    opacity: 1;
}

.action-tile-icon {
    font-size: 36px;
    width: 72px;
    height: 72px;
    background: rgba(10, 23, 85, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 25px;
    color: var(--accent-blue);
    transition: all 0.4s ease;
}

.action-tile-v3:hover .action-tile-icon {
    transform: translateY(-8px);
    background: #0a1755 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(10, 23, 85, 0.25);
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
}

.action-tile-v3:hover .action-tile-icon i {
    color: #ffffff !important;
    background: transparent !important;
    -webkit-text-fill-color: #ffffff !important;
}

.action-tile-v3 h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--accent-blue);
}

body.dark-theme .action-tile-v3 h3 {
    color: #ffffff;
}

.action-tile-v3 p {
    font-size: 15px;
    color: var(--text-grey);
    margin-bottom: 25px;
    line-height: 1.6;
}

.action-tile-btn {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

body.dark-theme .action-tile-btn {
    color: var(--accent-green);
}

.action-tile-v3:hover .action-tile-btn {
    gap: 15px;
}

/* WhatsApp Specific Glow */
.action-tile-v3.whatsapp-tile:hover {
    box-shadow: 0 40px 80px rgba(37, 211, 102, 0.15);
    border-color: #25d366;
}

.action-tile-v3.whatsapp-tile:hover .action-tile-icon {
    background: #25d366;
}


/* Action Icons Animations */
.method-icon-v3 i,
.action-tile-icon i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-method-v3:hover .method-icon-v3 i {
    animation: nlp-float-icon 2s ease-in-out infinite;
}

.action-tile-v3:hover .action-tile-icon i {
    transform: scale(1.2);
    color: #ffffff !important;
}

/* Specific for "Book a Consult" */
.action-tile-v3.consult-tile-v3:hover .action-tile-icon i {
    animation: nlp-shake-icon 0.5s ease-in-out infinite;
}

@keyframes nlp-float-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes nlp-shake-icon {

    0%,
    100% {
        transform: rotate(0deg) scale(1.2);
    }

    25% {
        transform: rotate(-5deg) scale(1.2);
    }

    75% {
        transform: rotate(5deg) scale(1.2);
    }
}

/* RESPONSIVE OVERHAUL (320px to 4k) */
@media (max-width: 991px) {
    .support-hub-glass {
        padding: 40px 25px;
        border-radius: 30px;
    }

    .support-actions-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .action-tile-v3 {
        padding: 30px 25px;
    }
}

/* Specific for 4K */
@media (min-width: 2560px) {
    .support-hub-glass {
        max-width: 1600px;
        margin: 0 auto;
        padding: 100px;
    }

    .action-tile-v3 h3 {
        font-size: 32px;
    }
}

/* ============================================================ 
   HERO DESKTOP DASHBOARD MOCKUP
   Features a browser-chrome frame with auto-cycling views:
   Login -> Dashboard -> Services -> Profile
   ============================================================ */

.hero-browser-frame {
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(10, 23, 85, 0.2);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin: 0 auto;
}

body.dark-theme .hero-browser-frame {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}

.hero-browser-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

body.dark-theme .hero-browser-bar {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

/* --- Hero Dashboard Modernization (High-Fidelity) --- */

.mockup-container {
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: none !important;
    border: none !important;
    border-radius: 12px;
    background: transparent !important;
}

.hero-browser-frame {
    width: 100%;
    position: relative;
    background: transparent !important;
    box-shadow: 0 40px 100px rgba(10, 23, 85, 0.15);
    border: 1.5px solid rgba(43, 51, 94, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

body.dark-theme .hero-browser-frame {
    border-color: rgba(255, 255, 255, 0.08);
}

.hero-browser-content {
    height: 480px;
    display: flex;
    overflow: hidden;
    position: relative;
    background: transparent;
    justify-content: center;
    border: 1px solid rgba(43, 51, 94, 0.1);
    border-radius: 12px;
}

.hero-browser-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
}

.hero-view-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: transparent;
}

body.dark-theme .hero-view-viewport {
    background: transparent;
}

body.dark-theme .hero-browser-content,
body.dark-theme .hero-browser-frame,
body.dark-theme .hero-browser-main {
    background: transparent;
}

/* The Slider: 500% wide for 5 screens */
.hero-view-slider {
    display: flex;
    width: 500%;
    height: 100%;
    animation: hero-view-cycle-v3 30s infinite linear;
}

/* Global Sub-Nav */
.hero-browser-global-subnav {
    display: flex;
    gap: 15px;
    padding: 8px 20px;
    background: transparent;
    border-bottom: 1px solid #0f0f0f;
    font-size: 8.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    animation: dashboard-reveal-cycle 30s infinite linear;
    flex-shrink: 0;
}

.hero-browser-global-subnav span {
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-browser-global-subnav span:hover,
.hero-browser-global-subnav span.active {
    color: #2b335e;
    font-weight: 600;
}

@keyframes hero-cursor-path-v3 {

    /* Step 1: Login */
    0% {
        transform: translate(450px, 400px);
        opacity: 0;
    }

    5% {
        transform: translate(450px, 300px);
        opacity: 1;
    }

    /* Hover Login */
    10% {
        transform: translate(450px, 350px);
    }

    /* Click Sign In */

    /* Step 2: Dashboard */
    20% {
        transform: translate(80px, 150px);
    }

    /* Hover Dashboard item */
    25% {
        transform: translate(80px, 230px);
    }

    /* Hover Create Case */
    30% {
        transform: translate(80px, 230px) scale(0.9);
    }

    /* Click Create Case */

    /* Step 3: Order Creation */
    40% {
        transform: translate(400px, 200px);
    }

    /* Hover Dropdown */
    45% {
        transform: translate(400px, 260px);
    }

    /* Hover Select lawyer */
    50% {
        transform: translate(400px, 350px);
    }

    /* Hover Pay Button */
    55% {
        transform: translate(400px, 350px) scale(0.9);
    }

    /* Click Pay */

    /* Step 4: Dash Success */
    60% {
        transform: translate(400px, 250px);
    }

    /* Hover Success Order Card */
    70% {
        transform: translate(400px, 250px) scale(0.9);
    }

    /* Click Active Order */

    /* Step 5: Chat */
    80% {
        transform: translate(600px, 420px);
    }

    /* Hover Chat input */
    90% {
        transform: translate(850px, 425px);
    }

    /* Hover Send button */

    100% {
        transform: translate(450px, 400px);
        opacity: 0;
    }
}

@keyframes hero-view-cycle-v3 {

    0%,
    19.9% {
        transform: translateX(0);
    }

    20%,
    39.9% {
        transform: translateX(-20%);
    }

    40%,
    59.9% {
        transform: translateX(-40%);
    }

    60%,
    79.9% {
        transform: translateX(-60%);
    }

    80%,
    99.9% {
        transform: translateX(-80%);
    }

    100% {
        transform: translateX(0);
    }
}

.hero-view-panel {
    width: 20%;
    flex-shrink: 0;
    padding: 30px;
    background: transparent;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.hero-browser-topbar {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* border-bottom: 1px solid #f1f5f9; */
    background: transparent;
    flex-shrink: 0;
}

body.dark-theme .hero-browser-topbar {
    border-color: rgba(255, 255, 255, 0.05);
}

/* --- Consolidated Dashboard Animations --- */

@keyframes dashboard-reveal-cycle {

    0%,
    19.9% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    20%,
    99.5% {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.hero-browser-sidebar,
.hero-browser-topbar {
    animation: dashboard-reveal-cycle 30s infinite linear;
    opacity: 0;
    visibility: hidden;
}

.hero-browser-sidebar {
    width: 155px !important;
    background: #2b335e !important;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    align-items: stretch !important;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.side-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    margin: 0 8px 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    color: #94a3b8;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.side-nav-item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
}

/* Sidebar Highlights (Synchronized with 30s cycle) */
@keyframes sidebar-dash-cycle {

    0%,
    19.9% {
        background: transparent;
        color: #94a3b8;
    }

    20%,
    39.9% {
        background: #f4efe8;
        color: #2b335e;
    }

    40%,
    100% {
        background: transparent;
        color: #94a3b8;
    }
}

.sidebar-dash-anim {
    animation: sidebar-dash-cycle 30s infinite linear;
}

@keyframes sidebar-create-cycle {

    0%,
    39.9% {
        background: transparent;
        color: #94a3b8;
    }

    40%,
    59.9% {
        background: #f4efe8;
        color: #2b335e;
    }

    60%,
    100% {
        background: transparent;
        color: #94a3b8;
    }
}

.sidebar-create-anim {
    animation: sidebar-create-cycle 30s infinite linear;
}

@keyframes sidebar-pay-cycle {

    0%,
    59.9% {
        background: transparent;
        color: #94a3b8;
    }

    60%,
    79.9% {
        background: #f4efe8;
        color: #2b335e;
    }

    80%,
    100% {
        background: transparent;
        color: #94a3b8;
    }
}

.sidebar-pay-anim {
    animation: sidebar-pay-cycle 30s infinite linear;
}

@keyframes sidebar-chat-cycle {

    0%,
    79.9% {
        background: transparent;
        color: #94a3b8;
    }

    80%,
    97.9% {
        background: #f4efe8;
        color: #2b335e;
    }

    100% {
        background: transparent;
        color: #94a3b8;
    }
}

.sidebar-chat-anim {
    animation: sidebar-chat-cycle 30s infinite linear;
}

/* Login Typing Animations */
@keyframes login-text-1 {

    0%,
    5% {
        content: "";
    }

    8%,
    100% {
        content: "john@gmail.com";
    }
}

.login-text-1::after {
    content: "";
    animation: login-text-1 30s infinite;
}

@keyframes login-text-2 {

    0%,
    12% {
        content: "";
    }

    15%,
    100% {
        content: "********";
    }
}

.login-text-2::after {
    content: "";
    animation: login-text-2 30s infinite;
}

/* Dashboard Login Card & Components */
.hero-login-card {
    z-index: 20;
    transition: transform 0.5s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

.form-floating-custom {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 10px 4px 10px;
    background: #fff;
}

.form-floating-custom label {
    position: absolute;
    top: 4px;
    left: 10px;
    font-size: 7px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.form-floating-custom .form-control {
    border: none !important;
    padding: 0 !important;
    height: 20px !important;
    font-size: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1e293b !important;
}

.typing-content {
    position: absolute;
    left: 10px;
    top: 16px;
    font-size: 10px;
    color: #1e293b;
    pointer-events: none;
}

/* Order Creation Typing */
@keyframes type-order-v2 {

    0%,
    42% {
        content: "";
    }

    45%,
    100% {
        content: "Talk to a lawyer";
    }
}

.dropdown-typing-content::after {
    content: "";
    animation: type-order-v2 30s infinite;
}

/* Messenger Bubbles Polish */
.chat-bubble-received,
.chat-bubble-sent {
    font-size: 9px;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 85%;
    margin-bottom: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    animation: chat-msg-reveal 30s infinite linear;
    opacity: 0;
}

.chat-bubble-received {
    background: #fff;
    color: #334155;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-bubble-sent {
    background: #2b335e;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Messenger Animation Delays (relative to 30s cycle) */
.hero-view-panel:nth-child(5) .chat-bubble-received:nth-child(1) {
    animation-delay: 24.5s;
}

.hero-view-panel:nth-child(5) .chat-bubble-sent:nth-child(2) {
    animation-delay: 26s;
}

.hero-view-panel:nth-child(5) .chat-bubble-received:nth-child(3) {
    animation-delay: 27.5s;
}

@keyframes chat-msg-reveal {

    0%,
    82% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    84%,
    98% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
    }
}

.chat-bubble-received,
.chat-bubble-sent {
    font-size: 9px;
    padding: 8px 12px;
    border-radius: 14px;
    max-width: 85%;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    animation: chat-msg-reveal 30s infinite cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

/* Vertical Centering Shift for Login Panel */
@keyframes login-panel-center-shift {

    0%,
    19.9% {
        transform: translateY(-32px);
    }

    20%,
    100% {
        transform: translateY(0);
    }
}

.hero-view-panel:first-child {
    animation: login-panel-center-shift 30s infinite linear;
}

/* Sidebar & Global Sub-nav Visibility During Login */
@keyframes login-hide-globals {

    0%,
    19.9% {
        opacity: 0;
        visibility: hidden;
    }

    20%,
    99.5% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.hero-browser-sidebar,
.hero-browser-topbar,
.hero-browser-global-subnav {
    animation: login-hide-globals 30s infinite linear;
}

/* Redundant Mockup Style Cleanup */
.hero-dash-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

body.dark-theme .hero-dash-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}


/* ============================================================ 
   FINAL RESPONSIVE & OVERFLOW FIXES (Consolidated)
   Ensures pixel-perfect scaling and NO horizontal scroll.
   ============================================================ */

/* Global overflow safety */
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Containment for sections that might leak width */
.hero,
.top-bar,
.mockup-container,
.support-hub-wrapper {
    max-width: 100vw !important;
}

/* Navbar pill overflow must be visible to show Mega Menu */
.navbar-custom {
    overflow: visible !important;
    max-width: 100vw !important;
    z-index: 1050;
}

/* Correcting the Hero Slider overflowing parents */
.hero-browser-viewport,
.hero-browser-content {
    overflow: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Hero Centering & Styling for Mobile/Tablet */
@media (max-width: 1199px) {
    .hero {
        text-align: center !important;
    }

    .hero-title {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .nlp-search-wrapper {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .support-hub-glass {
        padding: 30px 15px !important;
        text-align: center !important;
    }

    .support-actions-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .action-tile-v3 {
        padding: 30px 20px !important;
        text-align: center !important;
    }

    .action-tile-btn {
        justify-content: center !important;
    }

    .contact-method-v3 {
        flex-direction: column !important;
        text-align: center !important;
        padding: 25px 15px !important;
        gap: 10px !important;
    }

    .method-icon-v3 {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        font-size: 20px !important;
        margin: 0 auto 15px auto !important;
    }

    .method-details-v3 p {
        font-size: 14px !important;
        word-break: break-all !important;
        text-align: center !important;
    }

    .support-hub-wrapper .col-lg-5 {
        margin-bottom: 40px !important;
    }

    .navbar-custom {
        width: calc(100% - 20px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .nav-links {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box;
    }
}

/* Hero Dashboard Scaling for Mobiles */
@media (max-width: 767px) {
    .hero-browser-frame {
        transform: scale(0.9);
        transform-origin: top center;
    }

    .hero-browser-sidebar {
        width: 55px !important;
        align-items: center !important;
        padding: 15px 0 !important;
    }

    .sidebar-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .side-nav-item {
        padding: 10px 0 !important;
        margin: 4px 0 !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .hero-browser-sidebar .side-nav-item span {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
    }

    .side-nav-item i {
        margin: 0 !important;
        font-size: 16px !important;
        display: block !important;
        text-align: center !important;
        width: auto !important;
    }

    .sidebar-logo {
        text-align: center !important;
        margin-bottom: 20px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .sidebar-logo img {
        height: 18px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .hero-browser-content {
        height: 400px !important;
    }
}

@media (max-width: 480px) {
    .hero-browser-frame {
        transform: scale(0.85);
        margin-bottom: -50px;
    }

    .hero-browser-content {
        height: 350px !important;
    }

    .hero-browser-sidebar {
        width: 45px !important;
    }

    .side-nav-item i {
        font-size: 14px !important;
    }

    .hero-view-panel {
        padding: 15px !important;
    }
}

@media (max-width: 350px) {
    .hero-browser-sidebar {
        display: none !important;
    }

    .hero-browser-frame {
        transform: scale(0.75);
        margin-bottom: -80px;
    }
}

/* Language Selector Mobile Accessibility */
@media (max-width: 500px) {
    .top-bar .container>div {
        justify-content: flex-start !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* 4K Container Capping */
@media (min-width: 2560px) {
    .container {
        max-width: 1800px !important;
    }

    :root {
        --fs-h1: 100px;
        --fs-h2: 56px;
        --fs-p: 1.3rem;
    }
}

/* ====== Hero & Global Dark Mode Polish ====== */
body.dark-theme .hero {
    background-color: #0f172a !important;
}

body.dark-theme .hero p {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-theme .grid-overlay {
    opacity: 0.05 !important;
    filter: invert(1) brightness(2);
}

body.dark-theme .nlp-search-wrapper .search-icon {
    color: #ffffff !important;
}