/* Core Variables & Theming */
:root {
    --base-font-size: 16px;
    --bg-base: #030712;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --accent-main: #0057FF;
    --accent-glow: rgba(0, 87, 255, 0.4);
    --cyan: #00E5FF;
    --purple: #7000FF;
    --green: #10B981;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s var(--easing);
    --transition-slow: 0.8s var(--easing);
}

body.light-theme {
    --bg-base: #f8fafc;
    --bg-surface: rgba(0, 0, 0, 0.03);
    --border-glass: rgba(0, 0, 0, 0.1);
    --border-highlight: rgba(0, 0, 0, 0.2);
    --text-main: #0f172a;
    --text-muted: #475569;
}

/* Base Setup */
html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: none !important;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* Loading Experience */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-base);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.loader-tagline {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 1px;
}

.loader-progress {
    width: 250px;
    height: 4px;
    background: var(--bg-surface);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-main), var(--cyan));
    transition: width 0.3s ease;
}

.loader-percentage {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent-main);
    margin-top: 0.5rem;
}

/* Custom Cursor & Mouse Light */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background: var(--accent-main);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s, border-radius 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--accent-glow);
}

#custom-cursor.active {
    width: 80px;
    height: 80px;
    background: rgba(var(--bg-base), 0.9);
    border: 1px solid var(--accent-main);
    backdrop-filter: blur(4px);
}

#cursor-text {
    color: var(--text-main);
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
}

#custom-cursor.active #cursor-text {
    opacity: 1;
}

#mouse-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition: background var(--transition-slow);
}

body.light-theme #mouse-glow {
    mix-blend-mode: multiply;
}

.img-3 {
    background-image: url('your-image-3.png');
}

.img-4 {
    background-image: url('your-image-4.png');
}

/* Ambient */
.ambient-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -2;
    pointer-events: none;
    mix-blend-mode: screen;
}

.glow-blue {
    background: var(--accent-main);
    top: -20%;
    left: -10%;
    transition: background var(--transition-slow);
}

.glow-purple {
    background: var(--purple);
    bottom: -20%;
    right: -10%;
}

body.light-theme .ambient-glow {
    mix-blend-mode: multiply;
    opacity: 0.1;
}

/* Typography & Layout */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.subtext {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 50ch;
    margin-bottom: 2.5rem;
}

.text-accent {
    color: var(--accent-main);
    transition: color var(--transition-slow);
}

.text-purple {
    color: var(--purple);
}

.text-green {
    color: var(--green);
}

.text-muted {
    color: var(--text-muted);
}

.text-white {
    color: var(--text-main);
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.w-full {
    width: 100%;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.d-block {
    display: block;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-3xl {
    font-size: 2.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-sm {
    font-size: 0.875rem;
}

.font-bold {
    font-weight: 700;
}

.layout-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.layout-grid {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: center;
}

.section-padding {
    padding: 8rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 2rem;
}

/* Arabic RTL Support */
body[dir="rtl"] {
    text-align: right;
}

body[dir="rtl"] .nav-links a::after {
    transform-origin: bottom right;
}

body[dir="rtl"] .lang-picker .lang-arrow {
    margin-right: 0.5rem;
    margin-left: 0;
}

#content-wrapper {
    transition: opacity 0.4s ease;
}

#content-wrapper.fading {
    opacity: 0;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
}

header.scrolled {
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

body.light-theme header.scrolled {
    background: rgba(248, 250, 252, 0.7);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -4px;
    left: 0;
    background: var(--accent-main);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dropdowns & Arrows */
.lang-picker,
.color-picker {
    position: relative;
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.current-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-main);
    transition: background var(--transition-slow);
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.lang-picker:hover .lang-arrow {
    transform: rotate(180deg);
}

/* FIXED: dropdowns stay open longer + invisible hover bridge */
.lang-dropdown,
.color-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg-base);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    /* 0.3s delay before closing, so the mouse has time to reach the menu */
    transition: opacity 0.3s var(--easing) 0.3s,
        transform 0.3s var(--easing) 0.3s,
        visibility 0s linear 0.6s;
    z-index: 10;
}

/* invisible bridge covering the gap between button and menu */
.lang-dropdown::before,
.color-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.color-dropdown {
    flex-direction: row;
    min-width: auto;
    padding: 0.8rem;
}

.lang-picker:hover .lang-dropdown,
.color-picker:hover .color-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.lang-dropdown button {
    background: none;
    border: none;
    color: var(--text-main);
    text-align: left;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.lang-dropdown button:hover {
    background: var(--bg-surface);
    color: var(--accent-main);
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.color-dot:hover {
    transform: scale(1.2);
    border-color: var(--text-main);
}

/* Buttons */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-main), var(--cyan));
    border: none;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cyan), var(--accent-main));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    border: 1px solid var(--border-highlight);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--text-main);
    color: var(--bg-base);
}

.btn-text {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    padding: 1rem;
    transition: var(--transition-fast);
}

.btn-text:hover {
    color: var(--accent-main);
}

.button-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
}

.hero-content {
    grid-column: 1 / 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-visuals {
    grid-column: 7 / 13;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    width: fit-content;
}

.metrics-row {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
}

.metrics-row strong {
    font-size: 1.5rem;
    display: block;
}

/* Glass Cards & Elements */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-top: 1px solid var(--border-highlight);
    border-left: 1px solid var(--border-highlight);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition-slow);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-highlight);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.glass-panel {
    background: rgba(var(--bg-base), 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: background var(--transition-slow);
}

/* Banner */
.glass-banner {
    background: linear-gradient(135deg, var(--accent-glow), rgba(112, 0, 255, 0.1));
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 0 5%;
    backdrop-filter: blur(10px);
    transition: background var(--transition-slow);
}

/* Sliders */
.styled-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--bg-surface);
    outline: none;
    transition: 0.2s;
}

.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-main);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.border-glass {
    border-color: var(--border-glass);
}

/* Process Timeline */
#process {
    position: relative;
    overflow: hidden;
}

#process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 100%;
    background:
        radial-gradient(ellipse 60% 50% at 15% 20%, var(--accent-glow) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 80%, rgba(112, 0, 255, 0.25) 0%, transparent 60%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    transition: opacity var(--transition-slow);
}

body.light-theme #process::before {
    opacity: 0.25;
}

#process .layout-container,
#process .section-header,
#process .timeline-container {
    position: relative;
    z-index: 1;
}

.timeline-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.timeline-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 25px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-glass) 10%, var(--border-glass) 90%, transparent);
    z-index: 0;
}

body[dir="rtl"] .timeline-line {
    left: 0;
    right: 0;
}

.timeline-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    z-index: 1;
    opacity: 0.5;
    transition: all 0.5s ease;
    transform: translateY(20px);
}

.timeline-step.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    width: 52px;
    height: 52px;
    background: var(--bg-base);
    border: 2px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.5s ease;
    flex-shrink: 0;
}

.timeline-step.active .timeline-dot {
    border-color: var(--accent-main);
    color: var(--accent-main);
    box-shadow: 0 0 24px var(--accent-glow);
    background: var(--bg-base);
}

.timeline-content {
    flex: 1;
    margin: 0;
    padding: 2rem;
    width: 100%;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.timeline-content h3 {
    font-size: 1.25rem;
}

@media (max-width: 900px) {
    .timeline-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline-line {
        left: 25px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, transparent, var(--border-glass) 10%, var(--border-glass) 90%, transparent);
    }

    .timeline-step {
        flex-direction: row;
        align-items: flex-start;
    }

    body[dir="rtl"] .timeline-line {
        left: auto;
        right: 25px;
    }

    .timeline-content {
        min-height: 0;
    }
}

/* Packs */
.pack-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--accent-main), var(--cyan));
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: background var(--transition-slow);
}

.pack-card.popular {
    border-color: var(--accent-main);
}

.pack-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0 2rem;
}

.pack-card .price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pack-features {
    list-style: none;
    flex: 1;
}

.pack-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
}

.pack-features li i {
    flex-shrink: 0;
}

.pack-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pack-note i {
    color: var(--accent-main);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.care-plan-card {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 2.5rem;
    align-items: center;
}

.care-plan-info .price {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0.75rem 0 1rem;
}

.care-plan-info .price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.care-plan-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem 1.5rem;
}

.care-plan-features li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.care-plan-features li i {
    color: var(--green);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .care-plan-card {
        grid-template-columns: 1fr;
    }

    .care-plan-features {
        grid-template-columns: 1fr;
    }
}

.border-accent {
    border-color: var(--accent-glow);
}

.toggle-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    font-size: 1rem;
    user-select: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

body[dir="rtl"] .toggle-container {
    padding-left: 0;
    padding-right: 35px;
}

.toggle-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    transition: 0.3s;
}

body[dir="rtl"] .checkmark {
    left: auto;
    right: 0;
}

.toggle-container:hover .checkmark {
    background-color: rgba(255, 255, 255, 0.1);
}

.toggle-container input:checked~.checkmark {
    background-color: var(--accent-main);
    border-color: var(--accent-main);
    box-shadow: 0 0 10px var(--accent-glow);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.toggle-container input:checked~.checkmark:after {
    display: block;
}

.toggle-container input:checked~span,
.toggle-container input:checked {
    color: var(--text-main);
}

/* Portfolio & Slider */
.portfolio-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-glass);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s var(--easing);
}

.portfolio-card .glass-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 1.5rem;
    transform: translateY(10px);
    opacity: 0.9;
    transition: all 0.4s var(--easing);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-card:hover .glass-panel {
    transform: translateY(0);
    opacity: 1;
    border-color: var(--accent-main);
}

.ba-wrapper {
    position: relative;
    width: 100%;
    padding: 1rem;
}

.ba-container {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .ba-container {
        aspect-ratio: 16/9;
    }
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    pointer-events: none;
}

.ba-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 2px solid var(--accent-main);
    z-index: 2;
    transition: border-color var(--transition-slow);
}

.filter-grayscale {
    filter: grayscale(100%) contrast(1.2);
}

.ba-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 3;
}

.ba-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent-main);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: background var(--transition-slow);
}

/* Real World Map Styling */
.world-map-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2/1;
    overflow: hidden;
    border-radius: 24px;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 87, 255, 0.06), transparent 70%), rgba(var(--bg-base), 0.5);
    transition: background var(--transition-slow);
}

.map-bg {
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    height: 90%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/ec/World_map_blank_without_borders.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    filter: invert(1) brightness(1.5);
    transition: filter var(--transition-slow), opacity var(--transition-slow);
}

body.light-theme .map-bg {
    filter: invert(0) brightness(0) saturate(100%);
    opacity: 0.14;
}

body.light-theme .world-map-container {
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 87, 255, 0.05), transparent 70%), #eef2f8;
    border: 1px solid var(--border-glass);
}

.map-pin {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-main);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: none;
    z-index: 5;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

body.light-theme .map-pin {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(15, 23, 42, 0.25);
}

.pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--accent-main);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: mapPulse 2s infinite ease-out;
}

@keyframes mapPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

.pin-tooltip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: max-content;
    padding: 0.8rem 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    text-align: center;
    background: var(--bg-base);
}

body.light-theme .pin-tooltip {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.map-pin:hover .pin-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    z-index: 10;
}

/* Forms & FAQ */
.testimonial-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.8;
}

.testimonial-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.bg-accent {
    background: var(--accent-main);
    transition: background var(--transition-slow);
}

.bg-purple {
    background: var(--purple);
}

.accordion-item {
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
}

.accordion-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body[dir="rtl"] .accordion-btn {
    text-align: right;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--easing);
    color: var(--text-muted);
}

.accordion-content p {
    padding-bottom: 1.5rem;
}

.form-container {
    padding: 3rem;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-highlight);
    color: var(--text-main);
    padding: 0.5rem 0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    resize: none;
}

.input-group label {
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s ease;
}

body[dir="rtl"] .input-group label {
    left: auto;
    right: 0;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--accent-main);
}

.input-group input:focus~label,
.input-group textarea:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--accent-main);
}

.social-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-node {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 600;
}

.social-node:hover {
    border-color: var(--accent-main);
    color: var(--accent-main);
}

.social-node.whatsapp-node:hover {
    border-color: #25D366;
    color: #25D366;
}

.glass-footer {
    border-top: 1px solid var(--border-glass);
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Mockups & Animations */
.floating-mockup {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-highlight);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.5);
    position: absolute;
    transition: transform 0.1s ease-out;
}

.desktop-mockup {
    width: 110%;
    aspect-ratio: 16/10;
    border-radius: 16px;
    top: 10%;
    right: -10%;
    z-index: 1;
    animation: floatUpDn 6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.mockup-header .title {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 auto;
    padding-right: 2rem;
}

.mockup-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-line {
    height: 100px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1));
    border-bottom: 2px solid var(--green);
    border-radius: 8px 8px 0 0;
    position: relative;
}

.chart-line::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
}

.stats-grid-mini {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: 8px;
    flex: 1;
}

.phone-frame {
    width: 45%;
    aspect-ratio: 9/19;
    border-radius: 24px;
    bottom: 5%;
    left: 10%;
    z-index: 2;
    animation: floatUpDn 5s ease-in-out infinite reverse;
    overflow: hidden;
    border: 4px solid #222;
    background: #000;
    display: flex;
    flex-direction: column;
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 20px;
    background: #222;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 10;
}

.screen-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #111;
    position: relative;
    border-radius: 20px;
}

.feed-scroll {
    padding: 30px 10px 10px;
    animation: scrollFeed 15s linear infinite;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feed-item {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.img-1 {
    background-image: url('https://images.unsplash.com/photo-1611162616305-c69b3fa7fbe0?q=80&w=400&auto=format&fit=crop');
}

.img-2 {
    background-image: url('https://images.unsplash.com/photo-1616469829941-c7200edec809?q=80&w=400&auto=format&fit=crop');
}

.skeleton {
    background: linear-gradient(90deg, #222 25%, #333 50%, #222 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes floatUpDn {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes scrollFeed {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--easing);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-reveal>* {
    opacity: 0;
    transform: translateY(30px);
    animation: staggerUp 0.8s var(--easing) forwards;
}

.stagger-reveal>*:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-reveal>*:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-reveal>*:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-reveal>*:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes staggerUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }

    .hero-visuals {
        display: none;
    }

    .button-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .hidden-mobile {
        display: none;
    }

    .section-padding {
        padding: 4rem 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .timeline-container {
        gap: 1.5rem;
    }
}

/* Desktop Helpers */
.hidden-desktop {
    display: none;
}

/* Mobile Menu Styles */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(var(--bg-base), 0.95);
    backdrop-filter: blur(20px);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
    transform: translateY(-20px);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
    padding: 0 10%;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
}

/* Tablet Adjustments */
@media (max-width: 1024px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
        padding-top: 2rem;
    }

    .hero-visuals {
        display: none;
    }

    .subtext {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .nav-links,
    .hidden-mobile {
        display: none;
    }

    .hidden-desktop {
        display: flex;
    }

    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .glass-card,
    .form-container {
        padding: 1.5rem;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 2rem auto;
    }

    .button-group a {
        width: 100%;
        justify-content: center;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .world-map-container {
        aspect-ratio: 1 / 1;
    }

    .metrics-row {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .roi-info {
        text-align: center;
        margin-bottom: 1.5rem;
    }
}