:root {
    --primary: #1E88E5;
    --secondary: #64B5F6;
    --dark: #2F3A45;
    --white: #FFFFFF;
    --light: #F2F4F7;
}

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Navbar Hover Effects */
nav a {
    position: relative;
}

nav a:not(.bg-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover:not(.bg-primary)::after {
    width: 100%;
}

/* Mobile Menu Transition */
#mobile-menu.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

/* Hero Section Overlay refinement */
header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, transparent 0%, rgba(47, 58, 69, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Text Gradient Utility */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}




/* Animations (2026 Premium Soft Feel) */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flipDown {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateX(-30deg);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg);
    }
}

@keyframes drawLine {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Background Image Zoom (Ken Burns) */
@keyframes kenBurns {
    0% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1.05);
    }
}

.animate-ken-burns {
    animation: kenBurns 20s ease-in-out infinite;
}

/* Floating Animation */
@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-floating {
    animation: floating 4s ease-in-out infinite;
}

/* Shimmer Effect for Badges */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer-badge {
    background: linear-gradient(90deg,
            rgba(30, 136, 229, 0.1) 25%,
            rgba(30, 136, 229, 0.3) 50%,
            rgba(30, 136, 229, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

/* Base states - Hidden by default for scroll reveal */
.animate-zoom-in,
.animate-slide-up,
.animate-slide-left,
.animate-slide-right,
.animate-slide-bottom,
.animate-flip-down,
.animate-skew-in {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

/* Triggered states - Run animation when .is-visible is added */
.is-visible.animate-zoom-in {
    animation: zoomIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.is-visible.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.is-visible.animate-slide-left {
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.is-visible.animate-slide-right {
    animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.is-visible.animate-slide-bottom {
    animation: slideInBottom 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

.is-visible.animate-flip-down {
    animation: flipDown 1s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.is-visible.animate-skew-in {
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    /* Fallback skew */
}

.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

/* Marquee Animations */
@keyframes marquee-ltr {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-ltr {
    display: flex;
    width: max-content;
    animation: marquee-ltr 25s linear infinite;
}

.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

section {
    scroll-margin-top: 90px;
}

@media (min-width: 1024px) {
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Hero Typing Cursor */
.typing-cursor {
    box-shadow: 0 0 15px var(--color-secondary, #3b82f6);
}

/* Ensure font weights are punchy */
h1 {
    letter-spacing: -0.02em;
}

/* --- CONTINUOUS LOOP PROCESS TIMELINE --- */

/* 1. Van Driving (Loop) */
/* 1. Van Driving (Loop) - 8s Total: 1s stop at each step */
/* 
   0s-1s (0-12.5%): Stop at 0%
   1s-2s (12.5-25%): Move to 33.3%
   2s-3s (25-37.5%): Stop at 33.3%
   3s-4s (37.5-50%): Move to 66.6%
   4s-5s (50-62.5%): Stop at 66.6%
   5s-6s (62.5-75%): Move to 100%
   6s-8s (75-100%): Stop at 100% (then reset)
*/
@keyframes driveLoop {

    0%,
    12.5% {
        left: 0%;
        transform: translateX(-50%);
    }

    25%,
    37.5% {
        left: 33.33%;
        transform: translateX(-50%);
    }

    50%,
    62.5% {
        left: 66.66%;
        transform: translateX(-50%);
    }

    75%,
    100% {
        left: 100%;
        transform: translateX(-50%);
    }
}

/* 2. Van Bounce */
@keyframes vanBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* 3. Progress Line Filling (Loop) - Matches Drive Loop */
@keyframes fillLineLoop {

    0%,
    12.5% {
        width: 0%;
    }

    25%,
    37.5% {
        width: 33.33%;
    }

    50%,
    62.5% {
        width: 66.66%;
    }

    75%,
    100% {
        width: 100%;
    }
}

/* 4. Step Activation/Tick Loops */
/* Step 2 turns on at 25% implies 2s mark */
@keyframes step2Loop {

    0%,
    24% {
        background: rgba(47, 58, 69, 0.5);
        color: rgba(255, 255, 255, 0.4);
        transform: scale(1);
        border-color: rgba(255, 255, 255, 0.05);
    }

    25%,
    100% {
        background: linear-gradient(135deg, #1E88E5 0%, #64B5F6 100%);
        color: white;
        transform: scale(1.1);
        border-color: transparent;
    }
}

@keyframes tick2Loop {

    0%,
    24% {
        opacity: 0;
        transform: scale(0);
    }

    25%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Step 3 turns on at 50% implies 4s mark */
@keyframes step3Loop {

    0%,
    49% {
        background: rgba(47, 58, 69, 0.5);
        color: rgba(255, 255, 255, 0.4);
        transform: scale(1);
        border-color: rgba(255, 255, 255, 0.05);
    }

    50%,
    100% {
        background: linear-gradient(135deg, #1E88E5 0%, #64B5F6 100%);
        color: white;
        transform: scale(1.1);
        border-color: transparent;
    }
}

@keyframes tick3Loop {

    0%,
    49% {
        opacity: 0;
        transform: scale(0);
    }

    50%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Step 4 turns on at 75% implies 6s mark */
@keyframes step4Loop {

    0%,
    74% {
        background: rgba(47, 58, 69, 0.5);
        color: rgba(255, 255, 255, 0.4);
        transform: scale(1);
        border-color: rgba(255, 255, 255, 0.05);
    }

    75%,
    100% {
        background: linear-gradient(135deg, #1E88E5 0%, #64B5F6 100%);
        color: white;
        transform: scale(1.1);
        border-color: transparent;
    }
}

@keyframes tick4Loop {

    0%,
    74% {
        opacity: 0;
        transform: scale(0);
    }

    75%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Step 1 and Tick 1 (Always Active) */
@keyframes activateStepLoop {

    0%,
    100% {
        background: linear-gradient(135deg, #1E88E5 0%, #64B5F6 100%);
        color: white;
    }
}

@keyframes tickLoop {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
/* Animation Classes */
.van-animate {
    animation: driveLoop 8s linear infinite;
}

.van-suspension {
    animation: vanBounce 0.5s infinite ease-in-out;
}

.line-animate {
    animation: fillLineLoop 8s linear infinite;
}

.step-1-anim {
    /* Step 1 is static active now */
    animation: activateStepLoop 8s infinite;
}

.tick-1-anim {
    animation: tickLoop 8s infinite;
}

.step-2-anim {
    animation: step2Loop 8s infinite;
}

.tick-2-anim {
    animation: tick2Loop 8s infinite;
}

.step-3-anim {
    animation: step3Loop 8s infinite;
}

.tick-3-anim {
    animation: tick3Loop 8s infinite;
}

.step-4-anim {
    animation: step4Loop 8s infinite;
}

.tick-4-anim {
    animation: tick4Loop 8s infinite;
}

.node-icon-active {
    color: white;
}



/* Footer Bubbles Animation - Realistic & High Visibility */
.bubble {
    position: absolute;
    bottom: -120px;
    background: radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.4) 5%, rgba(255, 255, 255, 0.1) 20%, transparent 60%);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    width: var(--size);
    height: var(--size);
    left: var(--left);
    animation: bubble-up var(--duration) linear infinite;
    animation-delay: var(--delay);
    z-index: 0;
    box-shadow: inset -5px -5px 15px rgba(255, 255, 255, 0.1),
        inset 5px 5px 15px rgba(255, 255, 255, 0.1),
        0 0 12px rgba(255, 255, 255, 0.2);
}

.bubble::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 25%;
    height: 20%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(1px);
    transform: rotate(-30deg);
}

@keyframes bubble-up {
    0% {
        transform: translateY(0) scale(0.8) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.85;
    }

    90% {
        opacity: 0.85;
    }

    100% {
        transform: translateY(-130vh) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

/* Force clean icons in process steps to prevent unwanted boxes */
.step-1-anim i,
.step-2-anim i,
.step-3-anim i,
.step-4-anim i {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* Core Values Section Custom Animations */
@keyframes rotate-360 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbit-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes counter-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.animate-rotate-360 {
    animation: rotate-360 40s linear infinite;
}

.animate-orbit {
    animation: orbit-rotate 25s linear infinite;
}

.animate-counter-rotate {
    animation: counter-rotate 25s linear infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 5s ease-in-out infinite;
}

.dotted-border {
    border: 2px dashed rgba(30, 136, 229, 0.3);
}