/* ============================================================
   FenTec Mobility — Design System & Styles (Enhanced UI/UX)
   ============================================================ */

/* — Google Font — */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* — Design Tokens — */
:root {
    --primary: #FF7300;
    --primary-light: #FF9A40;
    --primary-dark: #CC5C00;
    --primary-glow: rgba(255, 115, 0, 0.15);
    --bg: #F8F8F8;
    --bg-dark: #1A1A1A;
    --text: #371712;
    --text-light: #5A3D38;
    --text-muted: #8B7A76;
    --white: #FFFFFF;
    --black: #000000;
    --glass: rgba(255, 255, 255, 0.78);
    --glass-strong: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-border-hover: rgba(255, 255, 255, 0.55);
    --shadow-sm: 0 2px 8px rgba(55, 23, 18, 0.06);
    --shadow-md: 0 8px 32px rgba(55, 23, 18, 0.10);
    --shadow-lg: 0 16px 48px rgba(55, 23, 18, 0.14);
    --shadow-glow: 0 8px 32px rgba(255, 115, 0, 0.18);
    --radius: 6px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    --radius-btn: 20px;
    --font: 'Outfit', sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

/* — Reset — */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: auto;
    /* JS controls scroll */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ============================================================
   CANVAS — FIXED BACKGROUND
   ============================================================ */
#scooter-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   FLOATING NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: var(--glass-strong);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal) var(--ease);
}

.navbar:hover {
    box-shadow: var(--shadow-lg);
}

.navbar .nav-logo {
    height: 32px;
    width: auto;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.navbar .nav-links a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    transition: all 0.25s var(--ease);
    cursor: pointer;
    white-space: nowrap;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    background: var(--primary);
    color: var(--white);
}

/* — Hamburger Toggle (mobile) — */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    gap: 5px;
    border-radius: 8px;
    transition: background var(--transition-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.hamburger:hover {
    background: rgba(255, 115, 0, 0.08);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition-normal) var(--ease);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* — Mobile Menu Overlay — */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 999;
    background: rgba(248, 248, 248, 0.97);
    backdrop-filter: blur(40px) saturate(1.6);
    -webkit-backdrop-filter: blur(40px) saturate(1.6);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-smooth),
                visibility 0.35s var(--ease-smooth);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu .mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
}

/* Staggered entrance animation for mobile menu links */
.mobile-menu .mobile-nav-links li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s var(--ease-smooth),
                transform 0.35s var(--ease-spring);
}

.mobile-menu.open .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-nav-links li:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-nav-links li:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.open .mobile-nav-links li:nth-child(3) { transition-delay: 0.11s; }
.mobile-menu.open .mobile-nav-links li:nth-child(4) { transition-delay: 0.14s; }
.mobile-menu.open .mobile-nav-links li:nth-child(5) { transition-delay: 0.17s; }
.mobile-menu.open .mobile-nav-links li:nth-child(6) { transition-delay: 0.20s; }
.mobile-menu.open .mobile-nav-links li:nth-child(7) { transition-delay: 0.23s; }

.mobile-menu .mobile-nav-links a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    padding: 14px 36px;
    border-radius: var(--radius-pill);
    transition: all 0.25s var(--ease);
    cursor: pointer;
    display: block;
    text-align: center;
    min-width: 220px;
    -webkit-tap-highlight-color: transparent;
    /* Better touch target size min 48px */
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu .mobile-nav-links a:hover,
.mobile-menu .mobile-nav-links a:active,
.mobile-menu .mobile-nav-links a.active {
    background: var(--primary);
    color: var(--white);
}

/* Active touch feedback */
.mobile-menu .mobile-nav-links a:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.mobile-menu .mobile-lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    background: #EFEFEF;
    border-radius: var(--radius-pill);
    padding: 4px;
    margin-top: 28px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s var(--ease-smooth) 0.28s,
                transform 0.35s var(--ease-spring) 0.28s;
}

.mobile-menu.open .mobile-lang-toggle {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu .mobile-lang-toggle button {
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    color: var(--text-muted);
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
}

.mobile-menu .mobile-lang-toggle button[data-lang="ar"] {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
}

.mobile-menu .mobile-lang-toggle button.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    background: #EFEFEF;
    border-radius: var(--radius-pill);
    padding: 3px;
    cursor: pointer;
}

.lang-toggle button {
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    color: var(--text-muted);
}

.lang-toggle button[data-lang="ar"] {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
}

.lang-toggle button.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   SCROLL CONTAINER
   ============================================================ */
.scroll-container {
    position: relative;
    z-index: 1;
    /* Total height = enough to create the scroll for 80 frames */
    height: 600vh;
}

/* ============================================================
   SECTION OVERLAYS
   ============================================================ */
.section-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s linear;
}

.section-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Content blocks inside overlays */
.overlay-content {
    padding: 40px 60px;
    max-width: 550px;
}

.overlay-content.left {
    margin-left: 5%;
}

.overlay-content.right {
    margin-left: auto;
    margin-right: 5%;
}

.overlay-content.center {
    margin: 0 auto;
    text-align: center;
    max-width: 800px;
}

.overlay-content.bottom-center {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 800px;
}

/* Glass card background for overlay content */
.overlay-content.glass-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(55, 23, 18, 0.08);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 115, 0, 0.08);
    border: 1px solid rgba(255, 115, 0, 0.2);
    border-radius: var(--radius-pill);
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
    animation: badgeFadeIn 0.8s var(--ease) both;
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

h1.hero-title {
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

h1.hero-title span.highlight {
    color: var(--primary);
    position: relative;
}

h2.section-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all var(--transition-normal) var(--ease);
    text-decoration: none;
    border: 2px solid var(--primary);
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: transparent;
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 115, 0, 0.3);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-normal) var(--ease);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-filled {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-filled:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 115, 0, 0.3);
}

/* ============================================================
   STORE BUTTONS — App Store & Google Play
   ============================================================ */
.store-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    pointer-events: auto;
}

.store-buttons-center {
    justify-content: center;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px 10px 16px;
    background: var(--bg-dark);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-btn);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal) var(--ease);
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.store-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.store-btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--white);
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.store-btn-label {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.3px;
    font-family: var(--font);
}

.store-btn-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
    font-family: var(--font);
}

/* Apple specific hover glow */
.store-btn-apple:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Google specific hover glow */
.store-btn-google:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Filled variant (for Contact section) — uses primary color */
.store-btn-filled {
    background: var(--primary);
    border-color: var(--primary);
}

.store-btn-filled:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(255, 115, 0, 0.35);
}

.store-btn-filled .store-btn-label {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   HOW IT WORKS — Steps
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.step-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 20px;
    transition: all var(--transition-normal) var(--ease);
    cursor: pointer;
    will-change: transform;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--glass-border-hover);
}

.step-card:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.step-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================================
   FEATURES — Cards
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.feature-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 22px;
    transition: all var(--transition-normal) var(--ease);
    cursor: pointer;
    will-change: transform;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 115, 0, 0.25);
}

.feature-card:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 115, 0, 0.08);
    margin-bottom: 12px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    stroke: var(--primary);
}

.feature-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    transition: all var(--transition-normal) var(--ease);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.contact-item:active {
    transform: translateY(0);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    stroke: var(--primary);
    flex-shrink: 0;
}

.contact-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    direction: ltr;
}

/* ============================================================
   SOCIAL MEDIA LINKS
   ============================================================ */
.social-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.social-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text);
    text-decoration: none;
    transition: all 0.35s var(--ease-spring);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.35s var(--ease-spring);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 24px rgba(255, 115, 0, 0.35);
}

.social-link:active {
    transform: translateY(-2px) scale(1.05);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* — Privacy Policy Link — */
.privacy-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(139, 122, 118, 0.15);
    transition: all var(--transition-normal) var(--ease);
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.privacy-link svg {
    width: 14px;
    height: 14px;
}

.privacy-link:hover {
    color: var(--primary);
    border-color: rgba(255, 115, 0, 0.3);
    background: rgba(255, 115, 0, 0.06);
    transform: translateY(-2px);
}

/* ============================================================
   SCROLL PROGRESS INDICATOR
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    z-index: 2000;
    transition: width 0.05s linear;
}

/* ============================================================
   SCROLL HINT
   ============================================================ */
.scroll-hint {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transition: opacity var(--transition-slow) var(--ease);
}

.scroll-hint.hide {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
    animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
    0% {
        top: 6px;
        opacity: 1;
    }

    50% {
        top: 18px;
        opacity: 0.3;
    }

    100% {
        top: 6px;
        opacity: 1;
    }
}

/* Mobile swipe hint — replaces mouse on touch devices */
.scroll-hint-finger {
    display: none;
    width: 28px;
    height: 28px;
    position: relative;
    animation: swipeUp 2s ease-in-out infinite;
}

.scroll-hint-finger svg {
    width: 28px;
    height: 28px;
    color: var(--text-muted);
}

@keyframes swipeUp {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-12px); opacity: 0.4; }
}

/* ============================================================
   HERO DECORATIONS — App Phone Mockups
   ============================================================ */
.hero-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hero-phones {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 480px;
    height: 480px;
}

.phone-mockup {
    position: absolute;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(55, 23, 18, 0.12), 0 4px 12px rgba(55, 23, 18, 0.06);
    border: 2.5px solid rgba(255, 255, 255, 0.8);
    background: #fff;
}

.phone-mockup img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Phone 1 — Welcome (center front, largest) */
.phone-1 {
    width: 190px;
    height: 390px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    box-shadow: 0 24px 64px rgba(255, 115, 0, 0.15), 0 8px 24px rgba(55, 23, 18, 0.1);
}

/* Phone 2 — Map (behind-left) */
.phone-2 {
    width: 160px;
    height: 340px;
    top: 50%;
    left: 50%;
    transform: translate(-130%, -52%) rotate(-10deg);
    z-index: 5;
    opacity: 0.9;
}

/* Phone 3 — QR Scan (behind-right) */
.phone-3 {
    width: 160px;
    height: 340px;
    top: 50%;
    left: 50%;
    transform: translate(30%, -48%) rotate(10deg);
    z-index: 5;
    opacity: 0.9;
}

/* Phone 4 — Home (far left) */
.phone-4 {
    width: 140px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-210%, -50%) rotate(-18deg);
    z-index: 4;
    opacity: 0.7;
}

/* Phone 5 — Sign Up (far right) */
.phone-5 {
    width: 140px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(110%, -50%) rotate(18deg);
    z-index: 4;
    opacity: 0.7;
}

/* Phone 6 — End Ride (very far left, peeking) */
.phone-6 {
    width: 120px;
    height: 260px;
    top: 50%;
    left: 50%;
    transform: translate(-280%, -48%) rotate(-25deg);
    z-index: 3;
    opacity: 0.5;
}

/* ============================================================
   JOIN US — Cards
   ============================================================ */
.join-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.join-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 28px 16px;
    transition: all var(--transition-normal) var(--ease);
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
}

.join-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 115, 0, 0.2);
}

.join-card:active {
    transform: translateY(-2px) scale(0.98);
    transition-duration: 0.1s;
}

.join-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 115, 0, 0.08);
    margin-bottom: 14px;
}

.join-icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
    stroke: var(--primary);
}

.join-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.join-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Highlighted Reservation card */
.join-card-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    color: var(--white);
}

.join-card-highlight h4,
.join-card-highlight p {
    color: var(--white);
}

.join-card-highlight .join-icon {
    background: rgba(255, 255, 255, 0.2);
}

.join-card-highlight .join-icon svg {
    color: var(--white);
    stroke: var(--white);
}

.join-card-highlight:hover {
    box-shadow: 0 12px 36px rgba(255, 115, 0, 0.35);
    border-color: var(--primary-dark);
}

/* ============================================================
   RTL SUPPORT
   ============================================================ */
[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

[dir="rtl"] h1.hero-title,
[dir="rtl"] h2.section-title,
[dir="rtl"] .section-subtitle,
[dir="rtl"] .btn,
[dir="rtl"] .step-card,
[dir="rtl"] .feature-card,
[dir="rtl"] .join-card,
[dir="rtl"] .contact-item,
[dir="rtl"] .hero-badge,
[dir="rtl"] .navbar .nav-links a,
[dir="rtl"] .lang-toggle button,
[dir="rtl"] .mobile-menu .mobile-nav-links a,
[dir="rtl"] .mobile-menu .mobile-lang-toggle button {
    font-family: 'Tajawal', sans-serif;
}

[dir="rtl"] .hero-phones {
    right: auto;
    left: 8%;
}

[dir="rtl"] .overlay-content.left {
    margin-left: auto;
    margin-right: 5%;
}

[dir="rtl"] .overlay-content.right {
    margin-right: auto;
    margin-left: 5%;
}

[dir="rtl"] .btn-primary svg {
    transform: scaleX(-1);
}

[dir="rtl"] .btn-primary:hover svg {
    transform: scaleX(-1) translateX(4px);
}

[dir="rtl"] .contact-item span {
    direction: ltr;
    unicode-bidi: embed;
}

[dir="rtl"] .store-btn {
    flex-direction: row-reverse;
    padding: 10px 16px 10px 22px;
}

[dir="rtl"] .store-btn-text {
    text-align: right;
}

[dir="rtl"] .store-btn-label,
[dir="rtl"] .store-btn-title {
    font-family: 'Tajawal', sans-serif;
}

[dir="rtl"] .store-btn-title {
    font-family: var(--font);
}

/* ============================================================
   RESPONSIVE — TABLET (1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .overlay-content {
        padding: 30px 40px;
        max-width: 460px;
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .hero-phones {
        right: 2%;
        width: 380px;
        height: 400px;
    }

    .phone-1 {
        width: 150px;
        height: 310px;
    }

    .phone-2 {
        width: 130px;
        height: 280px;
    }

    .phone-3 {
        width: 130px;
        height: 280px;
    }

    .phone-4,
    .phone-5,
    .phone-6 {
        display: none;
    }

    .join-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (768px)
   ============================================================ */
@media (max-width: 768px) {
    /* — Navbar — */
    .navbar {
        top: 12px;
        left: 12px;
        right: 12px;
        transform: none;
        padding: 10px 16px;
        gap: 8px;
        width: auto;
        justify-content: space-between;
    }

    .navbar .nav-links {
        display: none;
    }

    .navbar .lang-toggle {
        display: none;
    }

    .navbar .nav-logo {
        height: 28px;
    }

    .hamburger {
        display: flex;
        /* Min 44px touch target */
        width: 44px;
        height: 44px;
    }

    .mobile-menu {
        display: flex;
    }

    /* — Hero Phones: position in the empty gap after store buttons — */
    .hero-phones {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 16%;
        transform: translateX(-50%);
        width: 300px;
        height: 220px;
    }

    .phone-1 {
        width: 120px;
        height: 240px;
        box-shadow: 0 12px 32px rgba(255, 115, 0, 0.12), 0 4px 12px rgba(55, 23, 18, 0.08);
    }

    .phone-2 {
        width: 100px;
        height: 210px;
        transform: translate(-125%, -52%) rotate(-8deg);
    }

    .phone-3 {
        width: 100px;
        height: 210px;
        transform: translate(25%, -48%) rotate(8deg);
    }

    .phone-4,
    .phone-5,
    .phone-6 {
        display: none;
    }

    /* — Section Overlays — */
    .section-overlay {
        align-items: flex-start;
        padding-top: 72px;
        /* Prevent overflow on mobile */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .overlay-content {
        padding: 24px 20px;
        max-width: 100%;
        margin: 0 16px !important;
        width: calc(100% - 32px);
    }

    .overlay-content.center,
    .overlay-content.bottom-center {
        margin: 0 16px !important;
        left: 0;
        right: 0;
        transform: none;
        width: calc(100% - 32px);
    }

    .overlay-content.glass-card {
        padding: 24px 20px;
    }

    /* — Typography — */
    h1.hero-title {
        font-size: 30px;
        letter-spacing: -0.5px;
        line-height: 1.15;
    }

    h2.section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 20px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 5px 14px;
        margin-bottom: 14px;
    }

    /* — Steps & Features — */
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .step-card {
        padding: 16px;
    }

    .step-card h4 {
        font-size: 14px;
    }

    .step-card p {
        font-size: 12.5px;
        line-height: 1.5;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 13px;
        margin-bottom: 8px;
    }

    .feature-card {
        padding: 16px;
    }

    .feature-card h4 {
        font-size: 14px;
    }

    .feature-card p {
        font-size: 12.5px;
        line-height: 1.5;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    /* — Contact — */
    .contact-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .contact-item {
        padding: 14px 16px;
        border-radius: 12px;
        min-height: 48px;
    }

    .contact-item span {
        font-size: 13px;
    }

    /* — Store Buttons — */
    .store-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .store-buttons-center {
        align-items: center;
    }

    .store-btn {
        justify-content: center;
        padding: 14px 20px 14px 16px;
        min-height: 52px;
    }

    .store-btn:active {
        transform: translateY(-1px) scale(0.98);
        transition-duration: 0.1s;
    }

    /* — Social — */
    .social-row {
        margin-top: 18px;
        gap: 10px;
    }

    .social-link {
        width: 48px;
        height: 48px;
    }

    .social-link:active {
        transform: scale(0.92);
        transition-duration: 0.1s;
    }

    /* — Join Grid — */
    .join-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .join-card {
        padding: 22px 14px;
    }

    .join-card h4 {
        font-size: 14px;
    }

    .join-card p {
        font-size: 11.5px;
    }

    .join-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .join-icon svg {
        width: 22px;
        height: 22px;
    }

    /* — Privacy Link — */
    .privacy-link {
        margin-top: 14px;
        font-size: 12px;
        padding: 8px 18px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    /* — Scroll Container: more height for mobile reading — */
    .scroll-container {
        height: 800vh;
    }

    /* — Scroll Hint (swap mouse for finger) — */
    .scroll-hint {
        bottom: 8px;
    }

    .scroll-mouse {
        display: none;
    }

    .scroll-hint-finger {
        display: block;
    }

    .scroll-hint span {
        font-size: 10px;
    }

    /* — RTL mobile fixes — */
    [dir="rtl"] .overlay-content.left,
    [dir="rtl"] .overlay-content.right {
        margin: 0 16px !important;
    }

    [dir="rtl"] .navbar {
        left: 12px;
        right: 12px;
    }

    [dir="rtl"] .hero-phones {
        left: 50%;
        right: auto;
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (480px)
   ============================================================ */
@media (max-width: 480px) {
    .overlay-content {
        padding: 20px 16px;
        margin: 0 12px !important;
        width: calc(100% - 24px);
    }

    .overlay-content.center,
    .overlay-content.bottom-center {
        margin: 0 12px !important;
        width: calc(100% - 24px);
    }

    h1.hero-title {
        font-size: 26px;
    }

    h2.section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
        line-height: 1.7;
    }

    .hero-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .store-btn {
        padding: 12px 16px 12px 14px;
        min-height: 52px;
    }

    .store-btn-title {
        font-size: 15px;
    }

    .store-btn-label {
        font-size: 9px;
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .step-card,
    .feature-card {
        padding: 16px;
        /* Horizontal card layout on single column */
        display: flex;
        flex-direction: column;
    }

    /* Horizontal step card on very small screens */
    .step-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
    }

    .step-card .step-number {
        flex-shrink: 0;
        margin-bottom: 0;
        margin-top: 2px;
    }

    .step-card-content {
        flex: 1;
    }

    .join-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .join-card {
        padding: 18px 12px;
    }

    .join-card h4 {
        font-size: 13px;
    }

    .join-card p {
        font-size: 11px;
    }

    .hero-phones {
        width: 240px;
        height: 180px;
        bottom: 14%;
    }

    .phone-1 {
        width: 100px;
        height: 200px;
    }

    .phone-2 {
        width: 85px;
        height: 175px;
    }

    .phone-3 {
        width: 85px;
        height: 175px;
    }

    /* Contact section tighter spacing */
    .contact-row {
        gap: 8px;
    }

    .contact-item {
        padding: 12px 14px;
    }

    .social-link {
        width: 46px;
        height: 46px;
    }

    /* Tighter scroll container */
    .scroll-container {
        height: 900vh;
    }
}

/* ============================================================
   RESPONSIVE — VERY SMALL (360px)
   ============================================================ */
@media (max-width: 360px) {
    h1.hero-title {
        font-size: 24px;
    }

    h2.section-title {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 12.5px;
    }

    .overlay-content {
        padding: 16px 14px;
        margin: 0 8px !important;
        width: calc(100% - 16px);
    }

    .overlay-content.center,
    .overlay-content.bottom-center {
        margin: 0 8px !important;
        width: calc(100% - 16px);
    }

    .hero-phones {
        display: none;
    }

    /* Join grid single column on very small screens */
    .join-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .join-card {
        flex-direction: row;
        text-align: left;
        gap: 14px;
        padding: 16px;
    }

    .join-icon {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .join-card h4 {
        font-size: 14px;
    }

    .join-card p {
        font-size: 12px;
    }

    [dir="rtl"] .join-card {
        text-align: right;
    }

    .scroll-container {
        height: 950vh;
    }
}

/* ============================================================
   SAFE AREA — iOS notch / Android punch-hole
   ============================================================ */
@supports (padding: env(safe-area-inset-top)) {
    .navbar {
        top: calc(12px + env(safe-area-inset-top));
    }

    .scroll-hint {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .section-overlay {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-menu {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}