/* =========================================
   OCTOBOT LANDING PAGE Ã¢â‚¬â€ DESIGN SYSTEM
   ========================================= */

/* === CSS Custom Properties === */
:root {
    /* Background Ã¢â‚¬â€ Deep Navy */
    --bg-primary: #0B111E;
    --bg-secondary: #0F1729;
    --bg-tertiary: #152035;
    --bg-glass: rgba(11, 17, 30, 0.8);
    --bg-glass-light: rgba(15, 23, 41, 0.6);
    --bg-card-hover: rgba(15, 23, 41, 0.95);

    /* Accent Colors */
    --accent-blue: #00D1D1;
    /* Vibrant Teal Ã¢â‚¬â€ Primary */
    --accent-purple: #FDB813;
    /* Amber Gold Ã¢â‚¬â€ Accent */
    --accent-pink: #FDB813;
    /* Amber Gold for consistency */
    --accent-green: #00D1D1;
    /* Teal for success states */
    --accent-gradient: linear-gradient(135deg, #00D1D1 0%, #FDB813 100%);
    --accent-gradient-simple: linear-gradient(135deg, #00D1D1, #0fa5a5);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #E0E0E0;
    /* Soft Gray */
    --text-tertiary: #7A8BA8;

    /* Effects */
    --glow-blue: 0 0 30px rgba(0, 209, 209, 0.25);
    --glow-purple: 0 0 30px rgba(253, 184, 19, 0.2);
    --glow-pink: 0 0 30px rgba(253, 184, 19, 0.2);

    /* Ice Blue Glow */
    --glow-ice: 0 0 40px rgba(162, 233, 255, 0.15);
    --ice-blue: #A2E9FF;

    /* Border */
    --border-subtle: rgba(162, 233, 255, 0.06);
    --border-glow: rgba(0, 209, 209, 0.25);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Spacing */
    --section-padding: clamp(60px, 10vh, 120px) clamp(16px, 5vw, 80px);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-normal: 0.4s var(--ease-out-expo);
    --transition-slow: 0.8s var(--ease-out-expo);
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00D1D1, #0fa5a5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00D1D1, #FDB813);
}

html {
    overflow-x: clip;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.7;
    overflow-x: clip;
    max-width: 100vw;
}

/* When preloader is active, prevent scroll */
body.loading {
    overflow: hidden;
}

/* =========================================
   PRELOADER Ã¢â‚¬â€ PREMIUM PARALLAX
   ========================================= */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
    will-change: opacity, transform;
}

.preloader.preloader-done {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(10px);
    pointer-events: none;
}

/* Floating Background Orbs */
.preloader-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.preloader-float {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.preloader-float-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 209, 209, 0.08);
    top: -15%;
    right: -10%;
    animation: pre-drift-1 6s ease-in-out infinite;
}

.preloader-float-2 {
    width: 400px;
    height: 400px;
    background: rgba(253, 184, 19, 0.06);
    bottom: -10%;
    left: -10%;
    animation: pre-drift-2 8s ease-in-out infinite;
}

.preloader-float-3 {
    width: 300px;
    height: 300px;
    background: rgba(0, 209, 209, 0.05);
    top: 50%;
    left: 20%;
    animation: pre-drift-3 7s ease-in-out infinite;
}

.preloader-float-4 {
    width: 250px;
    height: 250px;
    background: rgba(162, 233, 255, 0.04);
    bottom: 30%;
    right: 15%;
    animation: pre-drift-1 9s ease-in-out infinite reverse;
}

@keyframes pre-drift-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes pre-drift-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, -40px) scale(1.15);
    }
}

@keyframes pre-drift-3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0);
    }

    33% {
        transform: translate(25px, -20px) scale(1.05) rotate(5deg);
    }

    66% {
        transform: translate(-15px, 30px) scale(0.95) rotate(-3deg);
    }
}

/* Preloader Content */
.preloader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: pre-float 3s ease-in-out infinite;
}

@keyframes pre-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Logo with rings */
.preloader-logo {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 0 20px rgba(0, 209, 209, 0.4));
    animation: pre-logo-pulse 2s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes pre-logo-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 209, 209, 0.4));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 35px rgba(0, 209, 209, 0.6));
    }
}

.preloader-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-blue);
    border-right-color: rgba(0, 209, 209, 0.3);
    animation: pre-spin 1.5s linear infinite;
}

.preloader-ring-2 {
    inset: -15px;
    border-top-color: rgba(253, 184, 19, 0.5);
    border-right-color: transparent;
    border-left-color: rgba(253, 184, 19, 0.2);
    animation: pre-spin 2.5s linear infinite reverse;
}

@keyframes pre-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Text */
.preloader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.preloader-brand {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--accent-gradient-simple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.preloader-tagline {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Progress Bar */
.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient-simple);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 209, 209, 0.5);
}

.preloader-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 209, 209, 0.8);
}

.preloader-percent {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Tajawal', sans-serif;
}

/* Floating micro particles in preloader */
.preloader-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.preloader-particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(0, 209, 209, 0.4);
    animation: pre-particle-float var(--dur) ease-in-out infinite;
    will-change: transform;
}

@keyframes pre-particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* === UTILITIES === */
.gradient-text {
    background: var(--accent-gradient-simple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 100px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vh, 80px);
    will-change: transform;
}

.section-title {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
}

.section-desc {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient-simple);
    color: #fff;
    box-shadow: var(--glow-blue), var(--glow-purple);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 209, 209, 0.4), 0 0 30px rgba(253, 184, 19, 0.2);
}

.btn-primary:hover::before {
    animation: shimmer 0.6s ease forwards;
}

@keyframes shimmer {
    from {
        left: -100%;
    }

    to {
        left: 100%;
    }
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--bg-glass);
    border-color: var(--accent-blue);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 44px;
    font-size: 1.15rem;
}

/* === PARTICLE CANVAS === */
#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(11, 17, 30, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
}

.navbar-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo img {
    height: 40px;
    width: auto;
    transition: all var(--transition-normal);
    mix-blend-mode: screen;
}

.navbar.scrolled .navbar-logo img {
    height: 32px;
}

.navbar-brand {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    background: var(--accent-gradient-simple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-links a {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.navbar-links a:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.navbar-links .nav-cta {
    background: var(--accent-gradient-simple);
    color: #fff !important;
    padding: 8px 24px;
}

.navbar-links .nav-cta:hover {
    box-shadow: var(--glow-blue);
}



/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding);
    padding-top: 100px;
    overflow: hidden;
    z-index: 1;
    perspective: 1000px;
}

/* Dark overlay that fades in as sections scroll over the hero */
.hero-scroll-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 5, 15, 0.7), rgba(0, 0, 0, 0.9));
    opacity: 0;
    z-index: 8;
    pointer-events: none;
    transition: opacity 0.05s linear;
}

.hero-split {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.hero-content {
    text-align: right;
    will-change: transform, opacity;
    transition: transform 0.1s linear, opacity 0.1s linear;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 209, 209, 0.5);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 8px rgba(0, 209, 209, 0);
    }
}

.hero-title {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 24px;
}

/* === WORD-BY-WORD REVEAL === */
.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) scale(0.7);
    filter: blur(8px);
    transition: all 0.6s var(--ease-out-expo);
    will-change: transform, opacity, filter;
    margin: 0 4px;
}

.title-word.word-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Glitch effect on rotating word Ã¢â‚¬â€ initial entrance */
.glitch-word.word-visible {
    animation: glitch-text 0.4s steps(2) 0.1s;
    position: relative;
}

@keyframes glitch-text {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 2px) skewX(-2deg);
    }

    40% {
        transform: translate(3px, -2px) skewX(3deg);
    }

    60% {
        transform: translate(-2px, 1px) skewX(-1deg);
    }

    80% {
        transform: translate(2px, -1px) skewX(2deg);
    }

    100% {
        transform: translate(0);
    }
}

/* ========== ROTATING WORDS SYSTEM ========== */
.rotating-words-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
}

.rotating-word {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    clip-path: inset(0 100% 0 0);
    transition: none;
    /* Gradient text appearance */
    background: var(--accent-gradient-simple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rotating-word.active {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    clip-path: inset(0 0 0 0);
}

/* --- Glitch Transition: Outgoing Word --- */
.rotating-word.glitch-out {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 1;
    visibility: visible;
    animation: rotateWordOut 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes rotateWordOut {
    0% {
        clip-path: inset(0 0 0 0);
        transform: skewX(0deg);
        opacity: 1;
        filter: blur(0);
    }

    15% {
        clip-path: inset(0 0 0 0);
        transform: skewX(8deg) translateX(-5px);
        opacity: 1;
        filter: blur(0);
    }

    30% {
        clip-path: inset(30% 0 40% 0);
        transform: skewX(-5deg) translateX(8px);
        opacity: 0.8;
        filter: blur(1px);
    }

    50% {
        clip-path: inset(10% 0 60% 0);
        transform: skewX(4deg) translateX(-3px);
        opacity: 0.5;
        filter: blur(2px);
    }

    100% {
        clip-path: inset(50% 0 50% 0);
        transform: skewX(0deg) translateX(0);
        opacity: 0;
        filter: blur(4px);
    }
}

/* --- Glitch Transition: Incoming Word --- */
.rotating-word.glitch-in {
    position: relative;
    top: auto;
    right: auto;
    opacity: 0;
    visibility: visible;
    animation: rotateWordIn 0.35s cubic-bezier(0.23, 1, 0.32, 1) 0.1s forwards;
}

@keyframes rotateWordIn {
    0% {
        clip-path: inset(50% 0 50% 0);
        transform: skewX(0deg);
        opacity: 0;
        filter: blur(4px);
    }

    20% {
        clip-path: inset(20% 0 50% 0);
        transform: skewX(-6deg) translateX(6px);
        opacity: 0.4;
        filter: blur(2px);
    }

    40% {
        clip-path: inset(0 0 30% 0);
        transform: skewX(4deg) translateX(-4px);
        opacity: 0.7;
        filter: blur(1px);
    }

    60% {
        clip-path: inset(0 0 0 0);
        transform: skewX(-2deg) translateX(2px);
        opacity: 0.9;
        filter: blur(0);
    }

    100% {
        clip-path: inset(0 0 0 0);
        transform: skewX(0deg) translateX(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* --- Glitch Scanline Flash --- */
.rotating-words-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    background: linear-gradient(0deg,
            transparent 0%,
            rgba(0, 209, 209, 0.06) 45%,
            rgba(0, 209, 209, 0.25) 50%,
            rgba(0, 209, 209, 0.06) 55%,
            transparent 100%);
    mix-blend-mode: screen;
}

.rotating-words-wrapper.glitching::after {
    animation: scanFlash 0.3s ease-out forwards;
}

@keyframes scanFlash {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

/* ========== TOUCH RIPPLE EFFECT ========== */
.touch-ripple {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 209, 209, 0.3) 0%, rgba(0, 209, 209, 0.1) 40%, transparent 70%);
    border: 1px solid rgba(0, 209, 209, 0.4);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 15;
    animation: touchRippleExpand 0.7s ease-out forwards;
}

@keyframes touchRippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        border-width: 2px;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
        border-width: 0.5px;
    }
}

/* 24/7 impact burst */
.hero-highlight.word-visible {
    animation: impact-24 0.8s 0.1s ease forwards;
}

@keyframes impact-24 {
    0% {
        text-shadow: 0 0 40px rgba(253, 184, 19, 0.4);
    }

    30% {
        text-shadow: 0 0 100px rgba(253, 184, 19, 1), 0 0 200px rgba(253, 184, 19, 0.5);
        transform: translateY(0) scale(1.3);
    }

    60% {
        transform: translateY(0) scale(0.95);
    }

    100% {
        text-shadow: 0 0 40px rgba(253, 184, 19, 0.4);
        transform: translateY(0) scale(1);
    }
}

.hero-highlight {
    position: relative;
    display: inline-block;
    color: #FDB813;
    text-shadow: 0 0 40px rgba(253, 184, 19, 0.4);
}

/* === CINEMATIC LETTERBOX BARS === */
.cine-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 15vh;
    background: #000;
    z-index: 50;
    transition: transform 1s var(--ease-out-expo);
    will-change: transform;
}

.cine-bar-top {
    top: 0;
    transform: translateY(0);
}

.cine-bar-bottom {
    bottom: 0;
    transform: translateY(0);
}

.cine-bar-top.bar-open {
    transform: translateY(-100%);
}

.cine-bar-bottom.bar-open {
    transform: translateY(100%);
}

/* === ENERGY BEAM SCANNER === */
.energy-beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            transparent 40%,
            rgba(0, 209, 209, 0.03) 45%,
            rgba(0, 209, 209, 0.15) 49%,
            rgba(0, 209, 209, 0.4) 50%,
            rgba(0, 209, 209, 0.15) 51%,
            rgba(0, 209, 209, 0.03) 55%,
            transparent 60%,
            transparent 100%);
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    will-change: transform;
}

.energy-beam.beam-go {
    opacity: 1;
    animation: beam-scan 0.8s ease-in-out forwards;
}

@keyframes beam-scan {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(200%);
    }
}

/* === HOLOGRAPHIC SCAN LINES === */
.holo-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 209, 0.8), transparent);
    box-shadow: 0 0 20px rgba(0, 209, 209, 0.5), 0 0 60px rgba(0, 209, 209, 0.2);
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    will-change: transform;
}

.holo-scan.scan-go {
    opacity: 1;
    animation: holo-sweep 1s ease-in-out forwards;
}

@keyframes holo-sweep {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* === IMPACT PARTICLES === */
.impact-particles {
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    overflow: hidden;
}

.impact-particles .spark {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    animation: spark-fly var(--spark-dur, 1s) ease-out forwards;
}

@keyframes spark-fly {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--spark-x, 100px), var(--spark-y, -100px)) scale(0);
        opacity: 0;
    }
}

/* === CAMERA SHAKE === */
@keyframes camera-shake {

    0%,
    100% {
        transform: translate(0, 0) rotate(0);
    }

    10% {
        transform: translate(-4px, 2px) rotate(-0.5deg);
    }

    20% {
        transform: translate(4px, -3px) rotate(0.5deg);
    }

    30% {
        transform: translate(-3px, 4px) rotate(-0.3deg);
    }

    40% {
        transform: translate(3px, -2px) rotate(0.3deg);
    }

    50% {
        transform: translate(-2px, 1px) rotate(-0.2deg);
    }

    60% {
        transform: translate(2px, -1px) rotate(0.2deg);
    }

    70% {
        transform: translate(-1px, 1px) rotate(0);
    }

    80% {
        transform: translate(1px, 0) rotate(0);
    }
}

.hero.camera-shake {
    animation: camera-shake 0.5s ease-out;
}

/* === HERO CONTENT ENTRANCE === */
.hero-content.epic-entrance {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.6s ease, transform 0.8s var(--ease-out-expo);
}

.hero-content.epic-go {
    opacity: 1;
    transform: translateX(0);
}

/* === CHARACTER ENTRANCE Ã¢â‚¬â€ HOLOGRAPHIC === */
.hero-character {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-character.epic-entrance {
    opacity: 0;
    transform: scale(0.3) translateY(80px);
    filter: blur(25px) brightness(2);
    transition: all 1s var(--ease-out-expo);
}

.hero-character.epic-go {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) brightness(1);
}

/* Character bounce on land */
.hero-character.epic-land {
    animation: epic-land 0.7s ease forwards;
}

@keyframes epic-land {
    0% {
        transform: scale(1) translateY(0);
    }

    25% {
        transform: scale(1.08, 0.94) translateY(5px);
    }

    50% {
        transform: scale(0.96, 1.04) translateY(-10px);
    }

    75% {
        transform: scale(1.02, 0.98) translateY(2px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

/* === SHOCKWAVE === */
.hero-shockwave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 209, 209, 0.6);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}

.hero-shockwave.shockwave-go {
    animation: shockwave-expand 1.2s ease-out forwards;
}

@keyframes shockwave-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.9;
        border-width: 4px;
        border-color: rgba(0, 209, 209, 0.8);
    }

    40% {
        opacity: 0.5;
    }

    100% {
        width: 250vmax;
        height: 250vmax;
        opacity: 0;
        border-width: 1px;
    }
}

/* === FLASH === */
.hero-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 209, 209, 0.4), rgba(255, 255, 255, 0.1) 40%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 9;
}

.hero-flash.flash-go {
    animation: flash-burst 0.5s ease-out forwards;
}

@keyframes flash-burst {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    25% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(2);
    }
}

/* === GLOW ORBS ENTRANCE === */
.hero-glow.epic-entrance {
    opacity: 0;
    transform: scale(0.2);
    transition: all 1.8s var(--ease-out-expo);
}

.hero-glow.epic-go {
    opacity: 0.15;
    transform: scale(1);
}

.character-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
    transition: transform 0.05s linear;
}

.character-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 209, 209, 0.2) 0%, rgba(0, 209, 209, 0.08) 40%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    opacity: 0;
    animation: glow-fade-in 1.5s 0.8s ease forwards;
    z-index: 1;
}

/* After fade-in completes, start breathing */
.hero-character.epic-go .character-glow {
    animation: glow-fade-in 1.5s ease forwards, character-breathe 3s 2s ease-in-out infinite;
}

@keyframes glow-fade-in {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes character-breathe {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
        filter: blur(50px);
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
        filter: blur(60px);
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
        filter: blur(50px);
    }
}

/* Secondary glow layer Ã¢â‚¬â€ teal pulse (offset timing) */
.character-glow::before {
    content: '';
    position: absolute;
    inset: -30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 209, 209, 0.12) 0%, transparent 60%);
    filter: blur(30px);
    animation: character-breathe-2 4s 2.5s ease-in-out infinite;
    opacity: 0;
}

@keyframes character-breathe-2 {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }

    100% {
        transform: scale(0.85);
        opacity: 0;
    }
}

/* Tertiary glow layer Ã¢â‚¬â€ warm accent pulse */
.character-glow::after {
    content: '';
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 184, 19, 0.08) 0%, transparent 55%);
    filter: blur(40px);
    animation: character-breathe-3 5s 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes character-breathe-3 {
    0% {
        transform: scale(1);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.character-img {
    width: clamp(500px, 48vw, 750px);
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 40px rgba(0, 209, 209, 0.15));
}

/* Pulsing glow on the character image itself */
.hero-character.epic-go .character-img {
    animation: img-glow-pulse 3s 2.5s ease-in-out infinite;
}

@keyframes img-glow-pulse {
    0% {
        filter: drop-shadow(0 10px 40px rgba(0, 209, 209, 0.15));
    }

    50% {
        filter: drop-shadow(0 10px 60px rgba(0, 209, 209, 0.35)) drop-shadow(0 0 20px rgba(0, 209, 209, 0.1));
    }

    100% {
        filter: drop-shadow(0 10px 40px rgba(0, 209, 209, 0.15));
    }
}

/* ========== EYE TRACKING GLOW ========== */
.eye-track-glow {
    position: absolute;
    width: 80px;
    height: 35px;
    top: 22%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse,
            rgba(0, 209, 209, 0.5) 0%,
            rgba(0, 209, 209, 0.2) 30%,
            rgba(0, 180, 220, 0.08) 60%,
            transparent 80%);
    border-radius: 50%;
    filter: blur(6px);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.8s ease;
    /* Custom properties for JS-driven tracking */
    --eye-x: 0px;
    --eye-y: 0px;
    will-change: transform;
}

/* Show after entrance */
.hero-character.epic-go .eye-track-glow {
    opacity: 1;
    animation: eye-idle-pulse 3s 3s ease-in-out infinite;
}

/* When actively tracking (JS adds this class) */
.eye-track-glow.tracking {
    animation: none !important;
    transform: translate(calc(-50% + var(--eye-x)), calc(-50% + var(--eye-y)));
    opacity: 1;
    transition: transform 0.15s ease-out, opacity 0.3s ease;
}

@keyframes eye-idle-pulse {
    0% {
        opacity: 0.5;
        filter: blur(6px);
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.9;
        filter: blur(4px);
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        opacity: 0.5;
        filter: blur(6px);
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ========== HEARTBEAT PULSE LINE ========== */
.heartbeat-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 5;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease 3s;
    pointer-events: none;
}

.hero-character.epic-go~.hero-glow~.hero-glow~.hero-glow~.heartbeat-container,
.heartbeat-container {
    opacity: 0;
}

/* Show after entrance via JS or simple delay */
.heartbeat-container.active {
    opacity: 1;
}

.heartbeat-svg {
    width: 200%;
    height: 100%;
    animation: heartbeat-scroll 4s linear infinite;
}

@keyframes heartbeat-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.heartbeat-line {
    fill: none;
    stroke: rgba(0, 209, 209, 0.4);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 8 4;
    animation: heartbeat-dash 2s linear infinite;
}

.heartbeat-line-glow {
    fill: none;
    stroke: rgba(0, 209, 209, 0.15);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: blur(3px);
}

@keyframes heartbeat-dash {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -24;
    }
}

/* Speech Bubble */
.character-speech {
    position: absolute;
    top: 8%;
    right: -20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: speech-appear 0.8s 1.4s var(--ease-out-expo) forwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), var(--glow-blue);
}

.character-speech::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 20px;
    height: 20px;
    background: var(--bg-glass);
    border-right: 1px solid var(--border-glow);
    border-bottom: 1px solid var(--border-glow);
    transform: rotate(45deg);
    backdrop-filter: blur(16px);
}

.character-speech span:first-child {
    font-weight: 800;
    font-size: 1rem;
    color: var(--accent-blue);
}

.character-speech span:last-child {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

@keyframes speech-appear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}




/* Hero Glow Orbs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    will-change: transform;
    transition: transform 0.15s linear;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    top: -200px;
    right: -200px;
    animation: glow-float 8s ease-in-out infinite;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    bottom: -150px;
    left: -150px;
    animation: glow-float 10s ease-in-out infinite reverse;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-pink);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glow-float 12s ease-in-out infinite;
    opacity: 0.08;
}

@keyframes glow-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border-radius: 14px;
    border: 2px solid var(--text-secondary);
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    border-radius: 4px;
    background: var(--accent-blue);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {

    0%,
    100% {
        top: 8px;
        opacity: 1;
    }

    50% {
        top: 18px;
        opacity: 0.3;
    }
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

.scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

/* =========================================
   STORY SCROLL Ã¢â‚¬â€ SCROLL-DRIVEN STORYTELLING
   ========================================= */
.story-scroll {
    position: relative;
    z-index: 10;
    height: 600vh;
    background: var(--bg-primary);
}

.story-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    z-index: 200;
    /* Hidden by default â€” JS activates when within scroll range */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    will-change: opacity;
}

/* Active state â€” JS adds this class when user is scrolling through the section */
.story-sticky.story-active {
    opacity: 1;
    pointer-events: auto;
}

/* ===================================================
   GLITCH TAKEOVER â€” Hero â†’ Story Transition
   =================================================== */

/* Full-screen glitch curtain */
.story-glitch-curtain {
    position: absolute;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.story-glitch-curtain.glitch-playing {
    visibility: visible;
    animation: glitch-master 1.2s ease-out forwards;
}

/* White flash layer */
.story-glitch-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
}

.glitch-playing .story-glitch-flash {
    animation: glitch-flash 1.2s ease-out forwards;
}

/* RGB split layers */
.story-glitch-rgb {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.story-glitch-rgb--r {
    background: rgba(255, 50, 50, 0.15);
    mix-blend-mode: screen;
}

.story-glitch-rgb--g {
    background: rgba(50, 255, 50, 0.1);
    mix-blend-mode: screen;
}

.story-glitch-rgb--b {
    background: rgba(50, 50, 255, 0.15);
    mix-blend-mode: screen;
}

.glitch-playing .story-glitch-rgb--r {
    animation: glitch-rgb-r 1.2s ease-out forwards;
}

.glitch-playing .story-glitch-rgb--g {
    animation: glitch-rgb-g 1.2s ease-out forwards;
}

.glitch-playing .story-glitch-rgb--b {
    animation: glitch-rgb-b 1.2s ease-out forwards;
}

/* Scanline sweep */
.story-glitch-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 80, 80, 0.4) 48%,
        rgba(255, 80, 80, 0.8) 50%,
        rgba(255, 80, 80, 0.4) 52%,
        transparent 100%
    );
    background-size: 100% 6px;
    opacity: 0;
    transform: translateY(-120%);
}

.glitch-playing .story-glitch-scan {
    animation: glitch-scan 1.2s ease-out forwards;
}

/* CRT noise overlay */
.story-glitch-noise {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.glitch-playing .story-glitch-noise {
    animation: glitch-noise 1.2s ease-out forwards;
}

/* Screen shake on the sticky container */
.story-sticky.glitch-shake {
    animation: glitch-screen-shake 0.6s ease-out;
}

/* === Keyframes === */

@keyframes glitch-master {
    0%   { opacity: 1; }
    85%  { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes glitch-flash {
    0%   { opacity: 0; }
    5%   { opacity: 0.9; }
    10%  { opacity: 0; }
    15%  { opacity: 0.4; }
    20%  { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes glitch-rgb-r {
    0%   { opacity: 0; transform: translate(0, 0); }
    8%   { opacity: 1; transform: translate(8px, -3px); }
    16%  { opacity: 1; transform: translate(-5px, 2px); }
    24%  { opacity: 0.7; transform: translate(3px, -1px); }
    35%  { opacity: 0.3; transform: translate(-2px, 1px); }
    50%  { opacity: 0; transform: translate(0, 0); }
    100% { opacity: 0; }
}

@keyframes glitch-rgb-g {
    0%   { opacity: 0; transform: translate(0, 0); }
    10%  { opacity: 0.8; transform: translate(-6px, 4px); }
    18%  { opacity: 1; transform: translate(4px, -2px); }
    26%  { opacity: 0.5; transform: translate(-3px, 1px); }
    40%  { opacity: 0.2; transform: translate(1px, 0); }
    55%  { opacity: 0; transform: translate(0, 0); }
    100% { opacity: 0; }
}

@keyframes glitch-rgb-b {
    0%   { opacity: 0; transform: translate(0, 0); }
    6%   { opacity: 0.9; transform: translate(-4px, 5px); }
    14%  { opacity: 1; transform: translate(7px, -3px); }
    22%  { opacity: 0.6; transform: translate(-2px, 2px); }
    32%  { opacity: 0.2; transform: translate(1px, -1px); }
    48%  { opacity: 0; transform: translate(0, 0); }
    100% { opacity: 0; }
}

@keyframes glitch-scan {
    0%   { opacity: 0; transform: translateY(-120%); }
    10%  { opacity: 1; }
    70%  { opacity: 0.6; transform: translateY(120%); }
    100% { opacity: 0; transform: translateY(120%); }
}

@keyframes glitch-noise {
    0%   { opacity: 0; }
    5%   { opacity: 0.6; }
    20%  { opacity: 0.4; }
    35%  { opacity: 0.2; }
    50%  { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes glitch-screen-shake {
    0%   { transform: translate(0, 0); }
    10%  { transform: translate(-4px, 3px); }
    20%  { transform: translate(3px, -4px); }
    30%  { transform: translate(-3px, 2px); }
    40%  { transform: translate(2px, -2px); }
    50%  { transform: translate(-1px, 1px); }
    60%  { transform: translate(1px, -1px); }
    70%  { transform: translate(0, 0); }
    100% { transform: translate(0, 0); }
}

/* === Background Layers === */
.story-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.story-bg-red {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 40, 40, 0.18) 0%, rgba(180, 20, 20, 0.08) 40%, rgba(11, 17, 30, 0.98) 80%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.story-bg-teal {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 209, 209, 0.14) 0%, rgba(0, 150, 150, 0.06) 40%, rgba(11, 17, 30, 0.98) 80%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.story-bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.story-bg-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 50, 50, 0.015) 2px, rgba(255, 50, 50, 0.015) 4px);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
    pointer-events: none;
}

/* Problem state */
.story-sticky.is-problem .story-bg-red { opacity: 1; }
.story-sticky.is-problem .story-bg-scanlines { opacity: 1; }

/* Solution state */
.story-sticky.is-solution .story-bg-teal { opacity: 1; }
.story-sticky.is-solution .story-bg-scanlines { opacity: 0; }

/* === Giant Question Mark === */
.story-qmark {
    position: absolute;
    font-size: clamp(180px, 28vw, 380px);
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    transition: all 0.7s var(--ease-out-expo);
    will-change: transform, opacity;
}

.story-sticky.is-problem .story-qmark {
    opacity: 0.07;
    color: #ff4444;
    text-shadow: 0 0 100px rgba(255, 50, 50, 0.4);
    animation: qmark-pulse 2.5s ease-in-out infinite;
}

.story-sticky.is-solution .story-qmark {
    opacity: 0;
    transform: scale(0.4) rotate(30deg);
}

@keyframes qmark-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.07; }
    50% { transform: scale(1.08) rotate(-4deg); opacity: 0.1; }
}

/* === Alert Notifications === */
.story-alerts {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.story-alert {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 14px;
    background: rgba(255, 40, 40, 0.1);
    border: 1px solid rgba(255, 70, 70, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ff8888;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.7s var(--ease-out-expo);
    will-change: transform, opacity;
    box-shadow: 0 4px 30px rgba(255, 40, 40, 0.12), inset 0 0 20px rgba(255, 40, 40, 0.03);
}

.story-alert.alert-visible {
    opacity: 1;
    transform: translateX(0) !important;
}

.story-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-alert-icon svg {
    width: 100%;
    height: 100%;
}

/* === Success Particles === */
.story-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.story-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    will-change: transform;
    animation: story-sparkle var(--dur, 2s) ease-out forwards;
}

@keyframes story-sparkle {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--dx, 50px), var(--dy, -100px)) scale(0); opacity: 0; }
}

/* === Content Area === */
.story-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-step {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.88);
    width: 100%;
    max-width: 780px;
    padding: 0 clamp(24px, 5vw, 60px);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity, filter;
    filter: blur(8px);
}

/* === Question step entering (crashing in from below with shake) === */
.story-step.story-q.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
    animation: step-q-enter 0.7s var(--ease-out-expo) forwards;
}

/* === Answer step entering (rising from center with glow) === */
.story-step.story-a.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
    animation: step-a-enter 0.8s var(--ease-out-expo) forwards;
}

/* === Question exiting (dissolve with red distortion) === */
.story-step.story-q.exit-up {
    opacity: 0;
    filter: blur(6px);
    animation: step-q-exit 0.5s ease-in forwards;
}

/* === Answer exiting (fade with scale-down) === */
.story-step.story-a.exit-up {
    opacity: 0;
    filter: blur(4px);
    animation: step-a-exit 0.4s ease-in forwards;
}

/* Fallback exit for generic steps */
.story-step.exit-up {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.88);
    filter: blur(6px);
}

/* ===================================================
   KINETIC WORDS â€” Phase Transition (Qâ†”A)
   Each word scatters/assembles independently
   =================================================== */

.kinetic-container {
    position: absolute;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    overflow: hidden;
}

.kinetic-word {
    position: absolute;
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    white-space: nowrap;
    pointer-events: none;
    will-change: transform, opacity;
    text-shadow: 0 0 20px currentColor;
}

.kinetic-word-out {
    animation: kinetic-fly-out var(--kw-dur, 0.5s) var(--kw-delay, 0s) cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.kinetic-word-in {
    opacity: 0;
    animation: kinetic-fly-in var(--kw-dur, 0.6s) var(--kw-delay, 0s) cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.kinetic-word::after {
    content: '';
    position: absolute;
    inset: -4px -8px;
    background: currentColor;
    opacity: 0.08;
    border-radius: 6px;
    filter: blur(8px);
    z-index: -1;
}

.kinetic-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 59;
    pointer-events: none;
    animation: kinetic-burst-expand 0.7s ease-out forwards;
}

.kinetic-burst-q {
    background: radial-gradient(circle, rgba(255, 70, 70, 0.9), rgba(255, 50, 50, 0.3), transparent);
    box-shadow: 0 0 80px rgba(255, 50, 50, 0.6);
}

.kinetic-burst-a {
    background: radial-gradient(circle, rgba(0, 220, 220, 0.9), rgba(0, 200, 200, 0.3), transparent);
    box-shadow: 0 0 80px rgba(0, 209, 209, 0.6);
}

@keyframes kinetic-fly-out {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--kw-x, 300px), var(--kw-y, -400px)) rotate(var(--kw-rot, 90deg)) scale(0.3);
        opacity: 0;
    }
}

@keyframes kinetic-fly-in {
    0% {
        transform: translate(var(--kw-x, -300px), var(--kw-y, 400px)) rotate(var(--kw-rot, -90deg)) scale(0.3);
        opacity: 0;
    }
    40% { opacity: 0.8; }
    70% {
        transform: translate(0, 0) rotate(0deg) scale(1.06);
        opacity: 1;
    }
    85% {
        transform: translate(0, 0) rotate(0deg) scale(0.98);
        opacity: 0.5;
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
}

@keyframes kinetic-burst-expand {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    40%  { opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(80); opacity: 0; }
}

@keyframes step-q-enter {
    0%   { opacity: 0; transform: translate(-50%, -45%) scale(0.9); filter: blur(6px); }
    60%  { opacity: 0.8; filter: blur(1px); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}

@keyframes step-a-enter {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); filter: blur(12px); }
    50%  { opacity: 0.7; transform: translate(-50%, -50%) scale(1.04); filter: blur(1px); }
    75%  { transform: translate(-50%, -50%) scale(0.98); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}

@keyframes step-q-exit {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
    100% { opacity: 0; transform: translate(-50%, -55%) scale(0.85); filter: blur(8px); }
}

@keyframes step-a-exit {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); filter: blur(10px); }
}



/* ===================================================
   CTA STEP — Final Call to Action
   =================================================== */

.story-cta.active {
    animation: step-cta-enter 1s var(--ease-out-expo) forwards !important;
}

/* Logo watermark background — behind every answer */
.story-step.story-a::before,
.story-step.story-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(280px, 50vw, 500px);
    height: clamp(280px, 50vw, 500px);
    transform: translate(-50%, -50%);
    background: url('../assets/images/Logo.png') center / contain no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    animation: cta-logo-breathe 4s ease-in-out infinite;
}

.story-cta-title {
    background: linear-gradient(135deg, #ffffff, #00d1d1, #00e6e6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: clamp(2.2rem, 5vw, 4rem) !important;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.story-cta-text {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.story-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    border-radius: 60px;
    background: linear-gradient(135deg, #00d1d1, #00b4b4);
    color: #0a0e17;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 0 0 30px rgba(0, 209, 209, 0.3), 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: cta-glow-pulse 2s ease-in-out infinite;
    z-index: 1;
}

.story-cta-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 50px rgba(0, 209, 209, 0.5), 0 12px 40px rgba(0, 0, 0, 0.4);
}

.story-cta-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 60%;
    height: calc(100% + 4px);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    animation: cta-shimmer 3s ease-in-out infinite;
}

.story-cta-btn svg {
    transition: transform 0.3s ease;
}

.story-cta-btn:hover svg {
    transform: translateX(-6px);
}

/* Pulse ring behind CTA button */
.story-cta.active .story-cta-btn::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 60px;
    border: 2px solid rgba(0, 209, 209, 0.4);
    animation: cta-ring-pulse 2s ease-out infinite;
}

@keyframes cta-glow-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 209, 209, 0.3), 0 8px 32px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 0 50px rgba(0, 209, 209, 0.5), 0 8px 32px rgba(0, 0, 0, 0.3); }
}

@keyframes cta-shimmer {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

@keyframes cta-ring-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes step-cta-enter {
    0%   { opacity: 0; transform: translate(-50%, -40%) scale(0.7); filter: blur(10px); }
    50%  { opacity: 0.8; transform: translate(-50%, -50%) scale(1.03); filter: blur(1px); }
    70%  { transform: translate(-50%, -50%) scale(0.99); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}

@keyframes cta-logo-breathe {
    0%, 100% { opacity: 0.04; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.07; transform: translate(-50%, -50%) scale(1.05); }
}


.story-label {
    display: inline-block;
    padding: 6px 22px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 22px;
}

.story-q .story-label {
    background: rgba(255, 50, 50, 0.12);
    border: 1px solid rgba(255, 70, 70, 0.3);
    color: #ff6b6b;
}

.story-a .story-label {
    background: rgba(0, 209, 209, 0.12);
    border: 1px solid rgba(0, 209, 209, 0.3);
    color: var(--accent-blue);
}

/* === Step Title === */
.story-title {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.4;
}

.story-q .story-title {
    background: linear-gradient(135deg, #ff6b6b, #ff3333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Step Text === */
.story-text {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* === Highlight === */
.story-hl {
    background: var(--accent-gradient-simple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* === Punchline === */
.story-punch {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 24px;
    opacity: 0;
    transform: scale(0.8) translateY(15px);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s;
}

.story-step.active .story-punch {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* === Progress Dots === */
.story-dots {
    position: absolute;
    left: clamp(16px, 3vw, 35px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10;
}

.story-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
}

.story-dot.active {
    transform: scale(1.4);
}

.story-dot.is-q {
    background: #ff4444;
    border-color: #ff6b6b;
    box-shadow: 0 0 14px rgba(255, 50, 50, 0.5);
}

.story-dot.is-a {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 14px rgba(0, 209, 209, 0.5);
}

/* === Scroll Hint === */
.story-hint {
    position: absolute;
    bottom: clamp(20px, 4vh, 40px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.5s ease;
    animation: story-hint-bob 2s ease-in-out infinite;
}

.story-hint.hidden { opacity: 0; pointer-events: none; }

.story-hint svg {
    width: 22px;
    height: 22px;
    color: var(--accent-blue);
}

.story-hint span {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes story-hint-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* === Red Pulse Animation (for problem bg) === */
.story-sticky.is-problem .story-bg-red {
    animation: red-breathe 3s ease-in-out infinite;
}

@keyframes red-breathe {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* === Mobile responsive === */
@media (max-width: 768px) {
    .story-scroll { height: 500vh; }
    .story-dots { left: 10px; gap: 10px; }
    .story-dot { width: 8px; height: 8px; }
    .story-alert { font-size: 0.75rem; padding: 8px 14px; }
    .story-qmark { font-size: clamp(120px, 40vw, 200px); }
}



/* All sections after hero scroll over it */
.services,
.integrations,
.ai-features,
.stats,
.clients,
.final-cta,
.footer {
    position: relative;
    z-index: 10;
    background: var(--bg-primary);
}


/* =========================================
   CINEMATIC HOOK Ã¢â‚¬â€ DECODE REVEAL
   ========================================= */
.section-hook {
    position: relative;
    z-index: 10;
    background: #020810;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 20px;
}

/* Matrix Rain Canvas */
.hook-matrix-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: 0;
}

.section-hook.hook-visible .hook-matrix-canvas {
    opacity: 0.2;
}

/* ===== DECODE REVEAL ===== */
.hook-decode-reveal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 15;
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    transition: all 1s var(--ease-out-expo);
}

.section-hook.hook-visible .hook-decode-reveal {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.hook-decode-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 209, 209, 0.1) 0%, transparent 70%);
    border: 1px solid rgba(0, 209, 209, 0.2);
    color: var(--accent-blue);
    margin-bottom: 28px;
    animation: hook-decode-spin 8s linear infinite;
    box-shadow: 0 0 40px rgba(0, 209, 209, 0.15);
}

.hook-decode-icon svg {
    width: 42px;
    height: 42px;
}

@keyframes hook-decode-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hook-decode-title {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
    direction: rtl;
    letter-spacing: 2px;
    min-height: 1.4em;
}

.hook-decode-sub {
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    color: var(--text-tertiary);
    text-align: center;
    direction: rtl;
    min-height: 1.4em;
}

/* =========================================
   SERVICES — FULL-SCREEN STICKY SCROLL
   ========================================= */
.srv-scroll {
    position: relative;
    z-index: 10;
    height: 900vh;
    background: var(--bg-primary);
}

.srv-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: clip;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    will-change: opacity;
}

.srv-sticky.srv-active {
    opacity: 1;
    pointer-events: auto;
}

/* Background */
.srv-scroll-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.srv-scroll-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.srv-scroll-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}

.srv-scroll-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 209, 209, 0.08);
    top: -10%;
    right: -10%;
    animation: srv-orb-float 14s ease-in-out infinite;
}

.srv-scroll-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(253, 184, 19, 0.05);
    bottom: -10%;
    left: -10%;
    animation: srv-orb-float 18s ease-in-out infinite reverse;
}

@keyframes srv-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-25px, 20px) scale(0.9); }
}

/* Header */
.srv-scroll-header {
    position: absolute;
    top: clamp(50px, 8vh, 80px);
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.srv-sticky.srv-active .srv-scroll-header {
    opacity: 1;
    transform: translateY(0);
}

.srv-scroll-header.header-hidden {
    opacity: 0 !important;
    transform: translateY(-30px) !important;
    pointer-events: none;
}

.srv-scroll-title {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    margin-top: 12px;
}

/* Cards Container */
.srv-scroll-content {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual Card */
.srv-scroll-card {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(110%);
    width: min(90vw, 700px);
    max-width: 700px;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.srv-scroll-card .srv-scroll-card-inner {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, opacity 1s ease, filter 1s ease, border-color 0.4s ease;
    will-change: transform, opacity, filter;
}

/* Active card — centered */
.srv-scroll-card.active {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
    pointer-events: auto;
    z-index: 3;
}

/* Card exiting UP — slides back into a 3D stack */
.srv-scroll-card.exit-up {
    /* We keep it active and centered so JS can handle the inner 3D stack */
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
    pointer-events: none;
}

.srv-scroll-card.exit-up .srv-scroll-card-inner {
    /* Base fallback, JS overrides this for dynamic depth */
    transform: translateY(-40px) scale(0.9);
    opacity: 0.5;
    filter: blur(4px);
}

/* Card below (waiting to enter) — sits below */
.srv-scroll-card.queue-below {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(110%);
    pointer-events: none;
}

.srv-scroll-card.queue-below .srv-scroll-card-inner {
    filter: blur(10px);
}

/* Card Inner */
.srv-scroll-card-inner {
    position: relative;
    padding: clamp(24px, 4vw, 44px);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(15, 23, 41, 0.95), rgba(11, 17, 30, 0.98));
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.srv-scroll-card.active .srv-scroll-card-inner {
    border-color: rgba(0, 209, 209, 0.4);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 209, 209, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: active-card-pulse 3s ease-in-out infinite;
}

@keyframes active-card-pulse {
    0%, 100% { border-color: rgba(0, 209, 209, 0.2); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 209, 209, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
    50% { border-color: rgba(0, 209, 209, 0.6); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 209, 209, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
}

/* Card Number */
.srv-scroll-card-num {
    position: absolute;
    top: -10px;
    right: 20px;
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(5rem, 10vw, 8rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 209, 209, 0.08);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

/* Card Icon */
.srv-scroll-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 209, 209, 0.12), rgba(253, 184, 19, 0.06));
    border: 1px solid rgba(0, 209, 209, 0.15);
    color: var(--accent-blue);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.srv-scroll-card-icon svg {
    width: 26px;
    height: 26px;
}

/* Card Title */
.srv-scroll-card-title {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
}

.srv-scroll-card-sub {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* Two Column Layout */
.srv-scroll-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    position: relative;
    z-index: 2;
}

/* Features List */
.srv-scroll-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.srv-scroll-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(0, 209, 209, 0.02);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
}

.srv-scroll-card.active .srv-scroll-features li {
    opacity: 1;
    transform: translateX(0);
}

.srv-scroll-card.active .srv-scroll-features li:nth-child(1) { transition-delay: 0.1s; }
.srv-scroll-card.active .srv-scroll-features li:nth-child(2) { transition-delay: 0.15s; }
.srv-scroll-card.active .srv-scroll-features li:nth-child(3) { transition-delay: 0.2s; }
.srv-scroll-card.active .srv-scroll-features li:nth-child(4) { transition-delay: 0.25s; }
.srv-scroll-card.active .srv-scroll-features li:nth-child(5) { transition-delay: 0.3s; }
.srv-scroll-card.active .srv-scroll-features li:nth-child(6) { transition-delay: 0.35s; }

.srv-scroll-features li:hover {
    background: rgba(0, 209, 209, 0.06);
    border-color: rgba(0, 209, 209, 0.1);
}

/* Bullet Dot */
.srv-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-blue);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(0, 209, 209, 0.5);
}

/* CTA Button */
.srv-scroll-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 100px;
    background: var(--accent-gradient-simple);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    z-index: 2;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 0 0 30px rgba(0, 209, 209, 0.3), 0 0 60px rgba(0, 209, 209, 0.1);
    margin-top: 16px;
    animation: srv-cta-pulse 2.5s ease-in-out infinite;
    letter-spacing: 0.3px;
    margin-left: auto;
    margin-right: auto;
}

.srv-scroll-cta svg {
    display: none;
}

@keyframes srv-cta-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 209, 209, 0.3), 0 0 60px rgba(0, 209, 209, 0.1); }
    50% { box-shadow: 0 0 40px rgba(0, 209, 209, 0.5), 0 0 80px rgba(0, 209, 209, 0.2), 0 0 120px rgba(0, 209, 209, 0.05); }
}

.srv-scroll-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.srv-scroll-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 209, 209, 0.5), 0 0 100px rgba(0, 209, 209, 0.2);
    animation: none;
}

.srv-scroll-cta:hover::before {
    animation: shimmer 0.6s ease forwards;
}

/* Progress Dots */
.srv-scroll-dots {
    position: absolute;
    left: clamp(16px, 3vw, 40px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
}

.srv-scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.srv-scroll-dot.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(0, 209, 209, 0.5);
    transform: scale(1.3);
}

.srv-scroll-dot.passed {
    background: rgba(0, 209, 209, 0.4);
    border-color: rgba(0, 209, 209, 0.3);
}

/* Scroll Hint */
.srv-scroll-hint {
    position: absolute;
    bottom: clamp(20px, 4vh, 40px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    z-index: 20;
    animation: srv-hint-bounce 2s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.srv-scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.srv-scroll-hint svg {
    width: 18px;
    height: 18px;
}

@keyframes srv-hint-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* === Scanline on active card === */
.srv-scroll-card.active .srv-scroll-card-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 209, 209, 0.4) 30%,
        rgba(253, 184, 19, 0.3) 50%,
        rgba(0, 209, 209, 0.4) 70%,
        transparent 100%);
    animation: srv-scanline 3s ease-in-out infinite;
    z-index: 5;
}

@keyframes srv-scanline {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .srv-scroll { height: 700vh; }
    .srv-scroll-card-inner { padding: 20px; }
    .srv-scroll-two-col { grid-template-columns: 1fr; gap: 4px; }
    .srv-scroll-card-num { font-size: 5rem; }
    .srv-scroll-dots { left: 10px; gap: 8px; }
    .srv-scroll-dot { width: 8px; height: 8px; }
    .srv-scroll-features li { font-size: 0.82rem; padding: 5px 8px; }
    .srv-scroll-cta { padding: 10px 22px; font-size: 0.85rem; }
}



/* =========================================
   SERVICES Ã¢â€ â€™ INTEGRATIONS PARALLAX TRANSITION
   ========================================= */

/* Dark overlay on services as integrations slides over */
.services-scroll-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 5, 15, 0.7), rgba(0, 0, 0, 0.9));
    opacity: 0;
    z-index: 20;
    pointer-events: none;
    transition: opacity 0.05s linear;
    border-radius: 0;
}

/* Energy divider line between sections */
.parallax-energy-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 209, 209, 0.1) 15%,
        rgba(0, 209, 209, 0.6) 40%,
        rgba(253, 184, 19, 0.8) 50%,
        rgba(0, 209, 209, 0.6) 60%,
        rgba(0, 209, 209, 0.1) 85%,
        transparent 100%);
    z-index: 30;
    opacity: 0;
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    box-shadow: 0 0 20px rgba(0, 209, 209, 0.4), 0 0 60px rgba(0, 209, 209, 0.15);
}

.parallax-energy-divider.divider-visible {
    opacity: 1;
    transform: scaleX(1);
}

/* Parallax background layer - moves slowest */
.parallax-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.parallax-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    will-change: transform;
}

.parallax-bg-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 209, 209, 0.06);
    top: -15%;
    right: -10%;
    animation: parallax-orb-drift-1 12s ease-in-out infinite;
}

.parallax-bg-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(253, 184, 19, 0.04);
    bottom: -10%;
    left: -8%;
    animation: parallax-orb-drift-2 15s ease-in-out infinite;
}

.parallax-bg-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(162, 233, 255, 0.03);
    top: 40%;
    left: 30%;
    animation: parallax-orb-drift-1 10s ease-in-out infinite reverse;
}

@keyframes parallax-orb-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.15); }
    66% { transform: translate(-25px, 20px) scale(0.9); }
}

@keyframes parallax-orb-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-35px, -25px) scale(1.1); }
}

/* Scan grid pattern for depth */
.parallax-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: 
        linear-gradient(rgba(0, 209, 209, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 209, 209, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    will-change: transform;
}

.parallax-grid.grid-visible {
    opacity: 1;
}

/* =========================================
   INTEGRATION ORBIT
   ========================================= */
.integrations {
    position: relative;
    padding: var(--section-padding);
    z-index: 1;
    overflow: hidden;
}

.orbit-container {
    max-width: 700px;
    margin: 0 auto;
    aspect-ratio: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-center {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 2px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    box-shadow: var(--glow-blue);
    animation: core-pulse 2s ease-in-out infinite;
}

@keyframes core-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 209, 209, 0.4), inset 0 0 10px rgba(0, 209, 209, 0.2); transform: scale(1); border-color: rgba(0, 209, 209, 0.4); }
    50% { box-shadow: 0 0 40px rgba(0, 209, 209, 0.8), 0 0 80px rgba(0, 209, 209, 0.2), inset 0 0 20px rgba(0, 209, 209, 0.5); transform: scale(1.05); border-color: rgba(0, 209, 209, 0.8); }
}

.orbit-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    mix-blend-mode: screen;
}

/* Orbit Rings */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(0, 209, 209, 0.12);
}

.orbit-ring-1 {
    width: 65%;
    height: 65%;
    animation: orbit-spin 40s linear infinite;
}

.orbit-ring-2 {
    width: 95%;
    height: 95%;
    border-color: rgba(253, 184, 19, 0.1);
    animation: orbit-spin 60s linear infinite reverse;
}

@keyframes orbit-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin: -28px;
    transform: rotate(var(--angle)) translateX(0) rotate(calc(-1 * var(--angle))) scale(0);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease-out;
}

.orbit-container.revealed .orbit-item {
    opacity: 1;
    transform: rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle))) scale(1);
}

.orbit-ring-1 .orbit-item {
    transform: rotate(var(--angle)) translate(calc(65% / 2 * 3.5)) rotate(calc(-1 * var(--angle)));
}

.orbit-ring-2 .orbit-item {
    transform: rotate(var(--angle)) translate(calc(95% / 2 * 2.4)) rotate(calc(-1 * var(--angle)));
}

/* Counter-rotate items so they stay upright */
.orbit-ring-1 .orbit-item {
    animation: counter-rotate 40s linear infinite reverse;
}

.orbit-ring-2 .orbit-item {
    animation: counter-rotate 60s linear infinite;
}

@keyframes counter-rotate {
    from {
        transform: rotate(var(--angle)) translate(170px) rotate(calc(-1 * var(--angle) + 0deg));
    }

    to {
        transform: rotate(var(--angle)) translate(170px) rotate(calc(-1 * var(--angle) + 360deg));
    }
}

/* Simplified orbit positioning */
.orbit-ring-1 .orbit-item,
.orbit-ring-2 .orbit-item {
    animation: none;
}

.orbit-ring-1 .orbit-item:nth-child(1) {
    top: 0%;
    left: 50%;
}

.orbit-ring-1 .orbit-item:nth-child(2) {
    top: 20.6%;
    left: 97.5%;
}

.orbit-ring-1 .orbit-item:nth-child(3) {
    top: 79.4%;
    left: 97.5%;
}

.orbit-ring-1 .orbit-item:nth-child(4) {
    top: 100%;
    left: 50%;
}

.orbit-ring-1 .orbit-item:nth-child(5) {
    top: 20.6%;
    left: 2.5%;
}

.orbit-ring-2 .orbit-item:nth-child(1) {
    top: 6.7%;
    left: 93.3%;
}

.orbit-ring-2 .orbit-item:nth-child(2) {
    top: 75%;
    left: 100%;
}

.orbit-ring-2 .orbit-item:nth-child(3) {
    top: 100%;
    left: 50%;
}

.orbit-ring-2 .orbit-item:nth-child(4) {
    top: 75%;
    left: 0%;
}

.orbit-ring-2 .orbit-item:nth-child(5) {
    top: 6.7%;
    left: 6.7%;
}

.orbit-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.orbit-icon svg {
    width: 28px;
    height: 28px;
}

.orbit-icon:hover {
    transform: scale(1.3);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
    z-index: 20;
}

.orbit-item::after {
    content: attr(data-label);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.orbit-item:hover::after {
    opacity: 1;
}

/* Pulse Rings */
.orbit-pulses {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 209, 209, 0.1);
    animation: pulse-expand 4s ease-out infinite;
}

.pulse-1 {
    animation-delay: 0s;
}

.pulse-2 {
    animation-delay: 1.3s;
}

.pulse-3 {
    animation-delay: 2.6s;
}

@keyframes pulse-expand {
    0% {
        width: 100px;
        height: 100px;
        opacity: 0.6;
    }

    100% {
        width: 700px;
        height: 700px;
        opacity: 0;
    }
}

/* =========================================
   AI FEATURES Ã¢â‚¬â€ STICKY SCROLL
   ========================================= */
.ai-features {
    position: relative;
    padding: var(--section-padding);
    padding-bottom: 0;
    z-index: 1;
}

.ai-sticky-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    height: 200vh; /* Creates the scroll track */
    position: relative;
}

.ai-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(40px, 6vw, 80px);
    overflow: hidden;
}

/* Phone Mockup */
.ai-phone-mockup {
    position: relative;
    width: 100%;
    max-width: 380px;
    z-index: 2;
}

.phone-frame {
    width: 100%;
    margin: 0 auto;
    background: #000;
    border-radius: 46px;
    border: 2px solid #3f3f46;
    padding: 10px;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.8), 
        inset 0 0 0 4px #18181b,
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    position: relative;
    max-width: 320px;
    aspect-ratio: 9 / 19;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Side Buttons */
.phone-frame::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 120px;
    width: 4px;
    height: 60px;
    background: #3f3f46;
    border-radius: 4px 0 0 4px;
}
.phone-frame::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 150px;
    width: 4px;
    height: 80px;
    background: #3f3f46;
    border-radius: 0 4px 4px 0;
}

.phone-notch {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 32px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

.phone-screen {
    background: #050b14;
    border-radius: 36px;
    flex: 1; /* Takes remaining height dynamically */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.03);
}

/* Screen Glare */
.phone-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 40%);
    pointer-events: none;
    z-index: 10;
}

.ai-glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    background: var(--accent-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
    transition: background 0.8s ease;
}

.phone-content {
    position: absolute;
    inset: 0;
    padding: 70px 20px 20px; /* Clear the dynamic island */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    z-index: 5;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

.phone-header-bar {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.phone-chat {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.p-msg {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.75rem;
    line-height: 1.5;
    max-width: 90%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.voice-msg {
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: flex-end;
}

.voice-wave {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 24px;
}

.voice-wave span {
    width: 3px;
    background: var(--accent-blue);
    border-radius: 3px;
    animation: wave-bar 1.2s ease-in-out infinite;
}

.voice-wave span:nth-child(1) {
    height: 8px;
    animation-delay: 0s;
}

.voice-wave span:nth-child(2) {
    height: 16px;
    animation-delay: 0.1s;
}

.voice-wave span:nth-child(3) {
    height: 10px;
    animation-delay: 0.2s;
}

.voice-wave span:nth-child(4) {
    height: 20px;
    animation-delay: 0.3s;
}

.voice-wave span:nth-child(5) {
    height: 14px;
    animation-delay: 0.4s;
}

.voice-wave span:nth-child(6) {
    height: 22px;
    animation-delay: 0.5s;
}

.voice-wave span:nth-child(7) {
    height: 12px;
    animation-delay: 0.6s;
}

.voice-wave span:nth-child(8) {
    height: 6px;
    animation-delay: 0.7s;
}

@keyframes wave-bar {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.4);
    }
}

.voice-dur {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.bot-reply {
    background: rgba(0, 209, 209, 0.08);
    border: 1px solid rgba(0, 209, 209, 0.15);
    color: var(--text-secondary);
    align-self: flex-start;
}

.image-msg {
    background: rgba(255, 255, 255, 0.03);
    align-self: flex-end;
    padding: 6px;
    border-radius: 16px;
    width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.receipt-image-mock {
    width: 100%;
    height: 120px;
    background: #000;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.receipt-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.receipt-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(0, 209, 209, 0.4), transparent);
    border-bottom: 1px solid #00D1D1;
    animation: scanReceipt 2s infinite linear;
}

@keyframes scanReceipt {
    0% { transform: translateY(-20px); }
    100% { transform: translateY(140px); }
}

.receipt-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px 4px 4px;
    font-size: 0.7rem;
}

.receipt-caption .live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ff3b30;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
    animation: pulseRed 1.5s infinite;
}
@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { box-shadow: 0 0 0 4px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.phone-dashboard-premium {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.dash-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dash-stat-glass {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-title {
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.stat-value-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.stat-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Tajawal', sans-serif;
}

.stat-trend {
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    gap: 2px;
}
.stat-trend.positive {
    color: #34c759;
}
.stat-trend svg {
    width: 10px;
    height: 10px;
}

.dash-chart-glass {
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-tertiary);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chart-header span:first-child {
    font-size: 0.65rem;
    color: var(--text-secondary);
}
.chart-amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.chart-area-container {
    height: 60px;
    width: 100%;
    position: relative;
}

.animated-area-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-line {
    filter: drop-shadow(0 0 4px rgba(0, 209, 209, 0.5));
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 3s ease-out forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.chart-pulse-point {
    position: absolute;
    right: 0; 
    top: 25px; 
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
    opacity: 0;
    animation: pulsePoint 2s infinite, fadeInPoint 0.5s 2.5s forwards;
}

@keyframes pulsePoint {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 209, 209, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(0, 209, 209, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 209, 209, 0); }
}

@keyframes fadeInPoint {
    to { opacity: 1; }
}

.dash-activity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.03);
}

.activity-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.activity-icon.success {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}
.activity-icon svg { width: 14px; height: 14px; }

.activity-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.activity-text span { font-size: 0.65rem; color: var(--text-primary); }
.activity-text small { font-size: 0.55rem; color: var(--text-tertiary); }
/* Feature Cards */
.ai-features-list {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 350px;
}

.ai-feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) translateX(30px);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    /* transition removed for manual scrubbing */
}

.ai-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: 0 4px 4px 0;
}

.ai-feature-card.active {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
    border-color: var(--border-glow);
    background: linear-gradient(135deg, rgba(0, 209, 209, 0.04), rgba(253, 184, 19, 0.02));
}

.ai-feature-card.active::before {
    opacity: 1;
}

.ai-feature-card.active::before {
    opacity: 1;
}

.ai-feature-card:hover {
    border-color: var(--border-glow);
}

.feature-num {
    font-family: 'Tajawal', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: var(--accent-gradient-simple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    position: absolute;
    top: 12px;
    left: 20px;
    line-height: 1;
}

.ai-feature-card.active .feature-num {
    opacity: 0.3;
}

.ai-feature-card h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.ai-feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* =========================================
   STATS SECTION
   ========================================= */
.stats {
    position: relative;
    padding: var(--section-padding);
    z-index: 1;
}

.stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 209, 209, 0.1), rgba(253, 184, 19, 0.06));
    border: 1px solid rgba(0, 209, 209, 0.12);
    color: var(--accent-blue);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-number {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 8px;
    direction: ltr;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.stat-bar {
    height: 4px;
    border-radius: 4px;
    background: var(--bg-glass);
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--accent-gradient-simple);
    width: 0;
    transition: width 1.5s var(--ease-out-expo);
}

/* =========================================
   CLIENT LOGOS
   ========================================= */
.clients {
    position: relative;
    padding: clamp(30px, 5vh, 60px) clamp(16px, 5vw, 80px);
    z-index: 1;
    overflow: hidden;
}

.clients-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.marquee-row {
    display: flex;
    width: max-content;
}

.marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
}

.marquee-content {
    display: flex;
    gap: 14px;
}

.marquee-row.right .marquee-track {
    animation: marquee-scroll-right var(--duration, 30s) linear infinite;
}

.marquee-row.left .marquee-track {
    animation: marquee-scroll-left var(--duration, 30s) linear infinite;
}

.clients-marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll-right {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes marquee-scroll-left {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.client-logo-item {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(0, 209, 209, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(5px);
    overflow: hidden;
    cursor: pointer;
}

.client-logo-item img.client-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    transition: all 0.4s ease;
}

.clients-marquee:hover .client-logo-item {
    opacity: 0.7;
}

.clients-marquee .client-logo-item:hover {
    opacity: 1;
    background: rgba(0, 209, 209, 0.1);
    border-color: rgba(0, 209, 209, 0.5);
    box-shadow: 0 0 20px rgba(0, 209, 209, 0.25), 0 0 0 3px rgba(0, 209, 209, 0.1);
    transform: translateY(-5px) scale(1.1);
    z-index: 2;
}

.client-logo-item:hover img.client-img {
    filter: none;
    transform: scale(1.05);
}

.client-placeholder {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 600;
}

/* =========================================
   FINAL CTA
   ========================================= */
.final-cta {
    position: relative;
    padding: clamp(80px, 15vh, 160px) clamp(16px, 5vw, 80px);
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

#ctaParticles {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cta-note {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
    padding: 60px clamp(16px, 5vw, 80px) 24px;
    background: var(--bg-secondary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 12px;
    mix-blend-mode: screen;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent-blue);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--text-tertiary);
}

.social-link:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: var(--glow-blue);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

.reveal-card {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.7s var(--ease-out-expo);
}

.reveal-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================================
   RESPONSIVE Ã¢â‚¬â€ ALL DEVICES
   ========================================= */

/* ===== Large Tablets & Small Laptops (Ã¢â€°Â¤1200px) ===== */
@media (max-width: 1200px) {
    .navbar-links {
        gap: 4px;
    }

    .navbar-links a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .hero-split {
        gap: clamp(24px, 4vw, 60px);
    }

    .character-img {
        width: clamp(340px, 34vw, 500px);
    }

    .comparison-container {
        max-width: 100%;
    }

    .srv-stack {
        max-width: 800px;
    }

    .orbit-container {
        max-width: 600px;
    }
}

/* ===== Tablets (Ã¢â€°Â¤1024px) ===== */
@media (max-width: 1024px) {

    /* --- Navbar --- */
    .navbar-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .navbar-links a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* --- Hero --- */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-character {
        order: 1;
    }

    .character-img {
        width: clamp(320px, 55vw, 480px);
    }

    .character-speech {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        top: -10px;
        white-space: nowrap;
    }

    .character-speech::after {
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
    }

    .scroll-indicator {
        display: none;
    }

    /* --- Comparison Flip --- */
    .comparison-container {
        max-width: 100%;
        perspective: 800px;
    }

    .comparison-side {
        min-height: clamp(380px, 55vh, 550px);
        padding: clamp(24px, 4vw, 36px);
    }

    /* --- Service Cards --- */
    .srv-stack {
        max-width: 700px;
    }

    .srv-two-col {
        gap: 12px 24px;
    }

    /* --- AI Features --- */
    .ai-sticky-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ai-phone-mockup {
        position: relative;
        top: 0;
        order: -1;
        display: flex;
        justify-content: center;
    }

    .ai-sticky-container {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 30px;
    }

    .phone-frame {
        max-width: 260px;
        height: auto;
    }

    .ai-features-list {
        max-width: 320px;
        margin: 0 auto;
        height: 250px;
    }

    .ai-feature-card {
        top: 0;
        transform: translateY(20px) translateX(0);
    }

    .ai-feature-card.active {
        transform: translateY(0) translateX(0);
    }

    /* --- Stats --- */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- Orbit --- */
    .orbit-container {
        max-width: 480px;
    }

    .orbit-center {
        width: 80px;
        height: 80px;
    }

    .orbit-logo {
        width: 48px;
        height: 48px;
    }

    .orbit-icon {
        width: 48px;
        height: 48px;
        padding: 10px;
    }

    .orbit-icon svg {
        width: 24px;
        height: 24px;
    }

    /* --- Footer --- */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ===== Mobile (Ã¢â€°Â¤768px) ===== */
@media (max-width: 768px) {

    /* --- Hero --- */
    .hero {
        padding-top: 90px;
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        margin-bottom: 28px;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 6px 16px;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .character-img {
        width: clamp(300px, 75vw, 380px);
    }

    .character-speech {
        display: flex;
        position: absolute;
        top: 2%;
        right: -10px;
        left: auto;
        transform: none;
        padding: 10px 16px;
        max-width: 200px;
        white-space: normal;
        opacity: 0;
        animation: speech-appear 0.8s 1.4s var(--ease-out-expo) forwards;
        border-radius: 14px;
        z-index: 10;
    }

    .character-speech::after {
        content: '';
        display: block;
        position: absolute;
        bottom: -8px;
        right: 24px;
        left: auto;
        width: 16px;
        height: 16px;
        transform: rotate(45deg);
    }

    .character-speech span:first-child {
        font-size: 0.85rem;
    }

    .character-speech span:last-child {
        white-space: normal;
        font-size: 0.75rem;
        line-height: 1.5;
    }

    /* --- Section Headers --- */
    .section-title {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem);
    }

    .section-desc {
        font-size: 0.9rem;
        padding: 0 8px;
    }

    .section-header {
        margin-bottom: clamp(28px, 5vh, 50px);
    }

    /* --- Comparison --- */
    .comparison-side {
        padding: clamp(20px, 4vw, 32px);
    }

    .comparison-header h3 {
        font-size: 1.2rem;
    }

    .comparison-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .comparison-icon svg {
        width: 22px;
        height: 22px;
    }

    .comparison-list li {
        font-size: 0.88rem;
        padding: 10px 0;
    }

    /* --- Service Cards --- */
    .srv-stack {
        gap: 24px;
    }

    .srv-card-inner {
        padding: clamp(20px, 4vw, 32px);
    }

    .srv-two-col {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .srv-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .srv-icon svg {
        width: 24px;
        height: 24px;
    }

    .srv-title {
        font-size: 1.15rem;
    }

    .srv-subtitle {
        font-size: 0.82rem;
    }

    .srv-features li {
        font-size: 0.85rem;
        padding: 7px 10px;
    }

    .srv-card-bg-num {
        font-size: 5rem;
    }

    /* --- Orbit --- */
    .orbit-container {
        max-width: 320px;
    }

    .orbit-center {
        width: 64px;
        height: 64px;
    }

    .orbit-logo {
        width: 38px;
        height: 38px;
    }

    .orbit-icon {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .orbit-icon svg {
        width: 20px;
        height: 20px;
    }

    .orbit-item::after {
        font-size: 0.6rem;
        bottom: -22px;
    }

    @keyframes pulse-expand {
        0% {
            width: 60px;
            height: 60px;
            opacity: 0.6;
        }

        100% {
            width: 400px;
            height: 400px;
            opacity: 0;
        }
    }

    /* --- AI Features --- */
    .ai-feature-card {
        padding: 24px;
    }

    .ai-feature-card h3 {
        font-size: 1.15rem;
    }

    .ai-feature-card p {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .feature-num {
        font-size: 2.2rem;
    }

    .phone-frame {
        width: 260px;
    }

    .phone-screen {
        min-height: 380px;
    }

    /* --- Stats --- */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 8px;
        border-radius: 12px;
    }

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .stat-number {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

    .stat-label {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    /* --- Clients Marquee --- */
    .client-placeholder {
        width: 120px;
        height: 60px;
        font-size: 0.75rem;
    }

    .marquee-track {
        gap: 20px;
    }

    /* --- CTA --- */
    .final-cta {
        padding: clamp(60px, 10vh, 100px) clamp(16px, 5vw, 40px);
    }

    .cta-title {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    .cta-subtitle {
        font-size: clamp(1rem, 3.5vw, 1.5rem);
        margin-bottom: 28px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
    }

    /* --- Footer --- */
    .footer {
        padding: 40px clamp(16px, 5vw, 40px) 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 28px;
        align-items: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-logo {
        height: 40px;
    }

    .footer-bottom {
        margin-top: 28px;
    }

    .footer-bottom p {
        font-size: 0.72rem;
    }

    /* --- Glow Orbs --- */
    .hero-glow {
        opacity: 0.08;
    }

    .glow-1 {
        width: 300px;
        height: 300px;
    }

    .glow-2 {
        width: 250px;
        height: 250px;
    }

    .glow-3 {
        display: none;
    }
}

/* ===== Large Phones (Ã¢â€°Â¤480px) ===== */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.6rem, 6.5vw, 2.2rem);
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 5px 14px;
    }

    .character-img {
        width: clamp(280px, 72vw, 350px);
    }

    /* --- Section Headers --- */
    .section-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .section-tag {
        font-size: 0.78rem;
        padding: 5px 16px;
    }

    /* --- Phone Mockup --- */
    .phone-frame {
        width: 240px;
    }

    .phone-screen {
        min-height: 350px;
    }

    .phone-notch {
        width: 100px;
        height: 20px;
        margin-bottom: 8px;
    }

    .p-msg {
        font-size: 0.7rem;
        padding: 8px 12px;
    }

    .phone-header-bar {
        font-size: 0.72rem;
        padding: 8px 12px;
    }

    .dash-num {
        font-size: 1.1rem;
    }

    .dash-label {
        font-size: 0.6rem;
    }

    .dash-chart {
        height: 100px;
    }

    /* --- Stats (single column on small phones) --- */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .stat-number {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    /* --- Orbit --- */
    .orbit-container {
        max-width: 280px;
    }

    .orbit-center {
        width: 52px;
        height: 52px;
    }

    .orbit-logo {
        width: 32px;
        height: 32px;
    }

    .orbit-icon {
        width: 34px;
        height: 34px;
        padding: 6px;
    }

    .orbit-icon svg {
        width: 16px;
        height: 16px;
    }

    .orbit-item::after {
        display: none;
    }

    @keyframes pulse-expand {
        0% {
            width: 50px;
            height: 50px;
            opacity: 0.6;
        }

        100% {
            width: 300px;
            height: 300px;
            opacity: 0;
        }
    }

    /* --- AI Feature Cards --- */
    .ai-feature-card {
        padding: 20px;
    }

    .ai-feature-card h3 {
        font-size: 1.05rem;
    }

    .ai-feature-card p {
        font-size: 0.82rem;
    }

    .feature-num {
        font-size: 1.8rem;
        top: 8px;
        left: 14px;
    }

    .ai-features-list {
        gap: 16px;
    }

    /* --- Comparison --- */
    .comparison-side {
        padding: 18px;
    }

    .comparison-header h3 {
        font-size: 1.05rem;
    }

    .comparison-list li {
        font-size: 0.82rem;
        gap: 8px;
    }

    .list-icon {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    /* --- Service Cards --- */
    .srv-card-inner {
        padding: 20px;
    }

    .srv-title {
        font-size: 1.1rem;
    }

    .srv-subtitle {
        font-size: 0.8rem;
    }

    .srv-two-col {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .srv-features li {
        font-size: 0.82rem;
        padding: 6px 10px;
    }

    .srv-card-bg-num {
        font-size: 5rem;
    }

    .srv-icon {
        width: 44px;
        height: 44px;
    }

    .srv-icon svg {
        width: 22px;
        height: 22px;
    }

    /* --- CTA --- */
    .cta-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .cta-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    }

    .cta-note {
        font-size: 0.75rem;
    }

    /* --- Buttons --- */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    /* --- Client Logos --- */
    .client-placeholder {
        width: 100px;
        height: 50px;
        font-size: 0.65rem;
        border-radius: var(--radius-sm);
    }

    .marquee-track {
        gap: 14px;
    }
}

/* ===== Small Phones (Ã¢â€°Â¤360px) ===== */
@media (max-width: 360px) {
    :root {
        --section-padding: clamp(40px, 8vh, 80px) 12px;
    }

    .hero {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.82rem;
    }

    .character-img {
        width: 290px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .section-desc {
        font-size: 0.82rem;
    }

    /* Navbar */
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-logo img {
        height: 32px;
    }

    .navbar-links {
        gap: 2px;
    }

    .navbar-links a {
        padding: 6px 8px;
        font-size: 0.75rem;
    }

    /* Phone Mockup */
    .phone-frame {
        width: 220px;
    }

    .phone-screen {
        min-height: 320px;
    }

    /* Orbit */
    .orbit-container {
        max-width: 240px;
    }

    .orbit-center {
        width: 44px;
        height: 44px;
    }

    .orbit-logo {
        width: 28px;
        height: 28px;
    }

    .orbit-icon {
        width: 28px;
        height: 28px;
        padding: 5px;
    }

    .orbit-icon svg {
        width: 14px;
        height: 14px;
    }

    /* Stats */
    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    /* Footer */
    .footer-tagline {
        font-size: 0.78rem;
    }

    .footer-col a {
        font-size: 0.82rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }
}

/* ===== Landscape Phone Fix ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-split {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        text-align: right;
        order: 1;
    }

    .hero-character {
        order: 2;
    }

    .character-img {
        width: 200px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) and (pointer: coarse) {

    /* Disable hover effects on touch devices for better performance */
    .srv-card-inner:hover {
        border-color: var(--border-subtle);
        box-shadow: none;
    }

    .srv-card-inner:hover .srv-icon {
        transform: none;
    }

    .stat-card:hover {
        transform: none;
    }

    .stat-card:hover::after {
        transform: scaleX(0);
    }

    .orbit-icon:hover {
        transform: none;
    }

    /* Make tap targets comfortable (min 44px) */
    .navbar-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn {
        min-height: 48px;
    }

    .social-link {
        min-width: 44px;
        min-height: 44px;
    }

    /* Active states for touch */
    .srv-card-inner:active {
        border-color: var(--border-glow);
        box-shadow: 0 0 20px rgba(0, 209, 209, 0.1);
    }

    .btn:active {
        transform: scale(0.97);
    }

    .ai-feature-card:active {
        border-color: var(--border-glow);
        background: rgba(0, 209, 209, 0.04);
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-up,
    .reveal-card {
        opacity: 1;
        transform: none;
    }

    .marquee-track {
        animation: none;
    }
}

/* =========================================
   SRV FILM SCENE Ã¢â‚¬â€ SCROLL-DRIVEN FRAME STRIP
   ========================================= */

/* Outer tall container Ã¢â‚¬â€ creates the scrollable height for frame scrubbing */
.srv-film-scene {
    position: relative;
    height: 300vh;
    background: var(--bg-primary);
    z-index: 10;
}

/* Inner sticky viewport Ã¢â‚¬â€ pins to top while user scrolls through scene */
.srv-film-sticky {
    /* Fixed: always covers the full visual viewport regardless of z-index stacking */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--bg-primary);
    z-index: 200;
    /* Hidden by default Ã¢â‚¬â€ JS activates when within scroll range */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

/* Active state Ã¢â‚¬â€ JS adds this class when within scroll range */
.srv-film-sticky.film-active {
    opacity: 1;
    pointer-events: auto;
}

/* Canvas Ã¢â‚¬â€ covers entire viewport */
.srv-scroll-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

/* Semi-transparent dark gradient overlay for text contrast */
.srv-film-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11, 17, 30, 0.72) 0%,
        rgba(11, 17, 30, 0.25) 40%,
        rgba(11, 17, 30, 0.10) 70%,
        rgba(11, 17, 30, 0.55) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Title block Ã¢â‚¬â€ pinned to the top of the sticky viewport */
.srv-film-header {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: clamp(80px, 12vh, 120px) clamp(16px, 5vw, 60px) 32px;
    animation: srv-header-in 0.9s var(--ease-out-expo) both;
}

@keyframes srv-header-in {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.srv-film-header .section-tag {
    margin-bottom: 20px;
}

.srv-film-title {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 900;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 14px;
}

.srv-film-subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.3px;
}

/* Scroll hint badge Ã¢â‚¬â€ bottom center */
.srv-film-badge {
    position: absolute;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 100px;
    background: rgba(11, 17, 30, 0.65);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(12px);
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: srv-badge-bob 2.2s ease-in-out infinite;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.srv-film-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.srv-film-badge.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}

@keyframes srv-badge-bob {
    0%, 100% { transform: translateX(-50%) translateY(0);   }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* Progress bar Ã¢â‚¬â€ very bottom edge */
.srv-film-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.08);
    z-index: 3;
}

.srv-film-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient-simple);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px rgba(0, 209, 209, 0.6);
    transition: width 0.1s linear;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Responsive Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 768px) {
    .srv-film-scene {
        /* Slightly less on mobile Ã¢â‚¬â€ frames still complete cleanly */
        height: 250vh;
    }
    .srv-film-title {
        font-size: clamp(1.6rem, 6vw, 2.8rem);
    }
    .srv-film-header {
        padding-top: clamp(70px, 10vh, 100px);
    }
    .srv-film-badge {
        bottom: 48px;
        font-size: 0.78rem;
        padding: 8px 16px;
    }
}