:root {
    /* Brand Colors */
    --color-orange: #ff8a0b;
    --color-ivory: #ffebcc;
    --color-gray: #798589;

    /* Dark Theme Core */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: rgba(30, 30, 30, 0.6);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-orange: rgba(255, 138, 11, 0.3);

    /* Text Colors */
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;

    /* Typography */
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;

    /* Mobile-First Spacing & Layout */
    --nav-height: 56px;
    --section-pad: 40px 0;
    --border-radius: 4px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Responsive Typography Base (mobile first) */
    --font-h1: clamp(1.75rem, 7vw + 0.5rem, 4rem);
    --font-h2: clamp(1.5rem, 6vw + 0.5rem, 2.5rem);
    --font-h3: clamp(1.25rem, 5vw + 0.25rem, 2rem);
    --font-body: clamp(0.9375rem, 1.5vw, 1.125rem);
    --font-small: clamp(0.8125rem, 1.2vw, 0.95rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-en);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ambient Moving Gradient for Light Sections */
.hero,
.light-theme {
    background: linear-gradient(135deg, #fdfbf7 0%, #fff6e5 25%, #fff0d4 50%, rgba(255, 138, 11, 0.03) 75%, #fdfbf7 100%);
    background-size: 400% 400%;
    animation: ambientShift 25s ease-in-out infinite;
}

@keyframes ambientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Base Arabic support */
body.lang-ar {
    font-family: var(--font-ar);
    direction: rtl;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
.highlight {
    color: var(--color-orange);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    z-index: -1;
}

.btn:hover::after {
    animation: btnShine 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes btnShine {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

.btn-primary {
    background-color: var(--color-orange);
    color: #000;
}

.btn-primary:hover {
    background-color: #ff9d33;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 138, 11, 0.3), 0 0 15px rgba(255, 138, 11, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-orange);
    border: 1px solid var(--color-orange);
}

.btn-outline:hover {
    background-color: var(--color-orange);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 138, 11, 0.3), 0 0 15px rgba(255, 138, 11, 0.15);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-outline-light:hover {
    background-color: var(--text-main);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.btn i {
    margin-right: 8px;
}

body.lang-ar .btn i {
    margin-right: 0;
    margin-left: 8px;
}

/* Luxurious Light Reflection Effect */
.lux-reflect {
    position: relative;
    overflow: hidden;
}

.lux-reflect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: luxSweep 8s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 5;
}

@keyframes luxSweep {
    0% {
        left: -150%;
    }

    15% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Headers */
.section-subtitle {
    display: block;
    color: var(--color-orange);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(2rem, 5vw + 0.5rem, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    overflow-wrap: break-word;
    word-break: break-word;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 40px;
}

/* 1. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

/* White text for header when over dark hero (unscrolled state) */
.header:not(.scrolled) .nav-link,
.header:not(.scrolled) .mobile-toggle,
.header:not(.scrolled) .lang-toggle {
    color: var(--text-main);
}

.header.scrolled {
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-orange);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-orange);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-ar);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    /* Ensure tappable on mobile */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
}

.lang-toggle:hover {
    color: var(--color-orange);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* 2. Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--color-ivory);
    overflow: hidden;
    padding-top: var(--nav-height);
}

.light-hero {
    color: #333;
}

/* Global Cinematic Loader */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background-color: #0a0a0a;
    pointer-events: none;
    transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1) 2.2s;
}

.intro-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-logo {
    position: relative;
    z-index: 1;
    width: clamp(160px, 52vw, 240px);
    height: auto;
    opacity: 0;
    transform: scale(0.86) translateY(12px);
    animation: logoReveal 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
    transition: transform 1.1s cubic-bezier(0.25, 0.8, 0.25, 1) 2.1s,
                opacity 0.75s ease 2.15s;
    user-select: none;
    -webkit-user-drag: none;
}

.intro-logo-glow {
    position: absolute;
    width: clamp(200px, 65vw, 300px);
    height: clamp(200px, 65vw, 300px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 138, 11, 0.22) 0%, rgba(255, 138, 11, 0.06) 45%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    animation: glowExpand 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
    pointer-events: none;
}

@keyframes logoReveal {
    0%   { opacity: 0; transform: scale(0.86) translateY(12px); filter: drop-shadow(0 0 0px rgba(255, 138, 11, 0)); }
    55%  { opacity: 1; filter: drop-shadow(0 0 22px rgba(255, 138, 11, 0.55)); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: drop-shadow(0 0 14px rgba(255, 138, 11, 0.3)); }
}

@keyframes glowExpand {
    0%   { opacity: 0; transform: scale(0.5); }
    40%  { opacity: 1; }
    100% { opacity: 0.65; transform: scale(1); }
}

/* Hide hero contents initially for reveal effect */
.hero-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease 2.4s, transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 2.4s;
}

.hero-bg-shapes {
    opacity: 0;
    transition: opacity 1.2s ease 2.2s;
}

/* States when animation is complete */
body.loaded .global-loader {
    opacity: 0;
}

body.loaded .intro-logo {
    transform: scale(1.1) translateY(-8px);
    opacity: 0;
}

body.loaded .intro-logo-glow {
    opacity: 0;
    transform: scale(1.4);
    transition: opacity 0.6s ease 2.1s, transform 1s ease 2.1s;
}

body.loaded .hero-container {
    opacity: 1;
    transform: translateY(0);
}

body.loaded .hero-bg-shapes {
    opacity: 1;
}

/* Background composition */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.shape-roof {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60%;
    height: 120%;
    background-color: #f7e3c1;
    transform: skewX(-20deg) translate(calc(var(--mouse-x, 0) * 30px), calc(var(--mouse-y, 0) * 30px));
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.shape-shield {
    position: absolute;
    bottom: -20%;
    right: 10%;
    width: 40vw;
    height: 40vw;
    border: 2px solid rgba(255, 138, 11, 0.1);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    z-index: 2;
    transform: rotate(15deg) translate(calc(var(--mouse-x, 0) * -45px), calc(var(--mouse-y, 0) * -45px));
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(255, 138, 11, 0.15);
    color: var(--color-orange);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.light-hero .hero-title {
    font-size: clamp(2.5rem, 6vw + 1rem, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #2a2e30;
    /* Charcoal gray */
}

.light-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #5a6468;
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-socials {
    margin-top: 35px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.socials-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(5px);
}

.social-btn:hover {
    background: rgba(255, 138, 11, 0.15);
    border-color: var(--color-orange);
    color: var(--color-orange);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 138, 11, 0.2);
}

.social-btn:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

/* Hero Location Card */
.hero-location-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUpIn 1s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 450px;
    margin-left: auto;
}

@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-icon {
    font-size: 1.6rem;
    color: var(--color-orange);
    background: rgba(255, 138, 11, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 138, 11, 0.2);
}

.location-title-wrap {
    display: flex;
    flex-direction: column;
}

.location-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.location-subtitle {
    color: var(--color-orange);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.location-map-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #111, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.map-link-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

/* Map Grid Pattern */
.map-visual {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.map-pin {
    font-size: 2rem;
    color: var(--color-orange);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 5px 10px rgba(255, 138, 11, 0.4));
}

.radar-ping {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--color-orange);
    border-radius: 50%;
    opacity: 0;
    animation: radarPing 2s infinite ease-out;
}

@keyframes radarPing {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

.map-hover-text {
    position: absolute;
    inset: 0;
    background: rgba(255, 138, 11, 0.9);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}

.location-map-wrapper:hover .map-hover-text {
    opacity: 1;
}

.location-map-wrapper:hover .map-visual {
    transform: scale(1.1);
}

.location-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-desc {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-location-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-location-cta i {
    color: var(--color-orange);
    transition: transform 0.3s ease;
}

.btn-location-cta:hover {
    background: rgba(255, 138, 11, 0.1);
    border-color: rgba(255, 138, 11, 0.3);
    box-shadow: 0 10px 20px rgba(255, 138, 11, 0.1);
}

.btn-location-cta:hover i {
    transform: translateX(5px);
}

/* Hero Visual Composition */
.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.image-wrapper {
    position: relative;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    padding: 10px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.trust-card {
    position: absolute;
    bottom: -20px;
    left: -40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    color: #2a2e30;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 10;
}

.trust-card i {
    color: var(--color-orange);
    font-size: 1.2rem;
}

.btn-outline-dark {
    background-color: transparent;
    color: #2a2e30;
    border: 1px solid #2a2e30;
}

.btn-outline-dark:hover {
    background-color: #2a2e30;
    color: #fff;
}

.justify-center {
    justify-content: center;
}



/* 4. Services Section */
.section {
    padding: var(--section-pad);
}

.services.light-theme {
    background-color: #fdfbf7;
}

.centered-desc {
    margin-left: auto;
    margin-right: auto;
    color: #5a6468;
    width: 100%;
    box-sizing: border-box;
}

.dark-text {
    color: #2a2e30;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.premium-card {
    background: #ffffff;
    border: 1px solid rgba(121, 133, 137, 0.2);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    --card-x: 0;
    --card-y: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: var(--transition);
}

.premium-card:hover {
    transform: translateY(-8px) translate(calc(var(--card-x) * 6px), calc(var(--card-y) * 6px));
    box-shadow: calc(var(--card-x) * -8px) calc(var(--card-y) * -8px + 20px) 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 138, 11, 0.3);
}

.premium-card:hover::before {
    background-color: var(--color-orange);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 138, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-orange);
    margin-bottom: 25px;
    transition: var(--transition);
}

.premium-card:hover .card-icon {
    background-color: var(--color-orange);
    color: #fff;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2a2e30;
    margin-bottom: 12px;
}

.card-desc {
    color: #5a6468;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-action {
    align-self: flex-start;
    color: var(--color-orange);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.premium-card:hover .card-action {
    opacity: 1;
    transform: translateX(0);
}

/* 5. Why Choose Us */
.dark-section {
    background-color: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.precision-grid-bg {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-image:
        linear-gradient(rgba(255, 138, 11, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 138, 11, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMotion 25s infinite linear;
    transform: translate(calc(var(--mouse-x, 0) * 30px), calc(var(--mouse-y, 0) * 30px));
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
    pointer-events: none;
}

.precision-grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 138, 11, 0.15);
    box-shadow: 0 0 15px rgba(255, 138, 11, 0.3);
    animation: scanVertical 12s infinite ease-in-out;
}

.precision-grid-bg::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: rgba(255, 138, 11, 0.15);
    box-shadow: 0 0 15px rgba(255, 138, 11, 0.3);
    animation: scanHorizontal 18s infinite ease-in-out;
    animation-delay: 3s;
}

@keyframes gridMotion {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

@keyframes scanVertical {
    0% {
        top: 0%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes scanHorizontal {
    0% {
        left: 0%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.relative-z {
    position: relative;
    z-index: 2;
}

.light-desc {
    color: var(--text-muted);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 50px;
    margin-top: 60px;
    align-items: center;
}

.benefits-center-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px 0;
}

.shield-outline {
    width: 140px;
    height: 160px;
    border: 2px solid rgba(255, 138, 11, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    z-index: 3;
    clip-path: polygon(50% 0%, 100% 20%, 100% 80%, 50% 100%, 0% 80%, 0% 20%);
    box-shadow: 0 0 30px rgba(255, 138, 11, 0.1);
    transform: translate(calc(var(--mouse-x, 0) * 20px), calc(var(--mouse-y, 0) * 20px));
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.shield-outline::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(255, 138, 11, 0.15);
    clip-path: polygon(50% 0%, 100% 20%, 100% 80%, 50% 100%, 0% 80%, 0% 20%);
}

.car-silhouette {
    font-size: 3.5rem;
    color: var(--color-orange);
    opacity: 0.9;
}

.vertical-separator {
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 138, 11, 0.5), transparent);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.vertical-separator.top {
    top: -100px;
}

.vertical-separator.bottom {
    bottom: -100px;
}

.benefits-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.benefit-block {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.benefit-block:hover {
    transform: translateY(-3px);
}

.benefit-content {
    flex-grow: 1;
}

.benefit-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benefit-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.benefit-line {
    width: 40px;
    height: 1px;
    background-color: var(--border-subtle);
    transition: var(--transition);
}

.benefit-block:hover .benefit-line {
    background-color: var(--color-orange);
    width: 60px;
}

.text-right {
    text-align: right;
    justify-content: flex-end;
}

.text-left {
    text-align: left;
    justify-content: flex-start;
}

/* 6. Process Section */
.process.light-theme {
    background-color: #ffffff;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 80px;
    position: relative;
}

.timeline-track {
    position: absolute;
    top: 40px;
    left: 12%;
    right: 12%;
    height: 2px;
    background-color: rgba(121, 133, 137, 0.2);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 20px;
    row-gap: 8px;
    text-align: left;
    align-items: start;
}

.timeline-step .step-icon {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border: 2px solid rgba(121, 133, 137, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #5a6468;
    margin: 0;
    grid-row: 1 / span 2;
    align-self: center;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.timeline-step:hover .step-icon {
    border-color: var(--color-orange);
    color: var(--color-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 138, 11, 0.1);
}

.timeline-step .step-title {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: #2a2e30;
    font-weight: 700;
    align-self: end;
}

.timeline-step .step-desc {
    color: #5a6468;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 7. Gallery Section */
.portfolio {
    background-color: #0d0d0d;
}

.header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.gallery-item {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-item.item-top-row {
    grid-column: span 4;
    aspect-ratio: 1 / 1;
}

.gallery-item.item-bottom-row {
    grid-column: span 3;
    aspect-ratio: 1 / 1;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-text {
    transform: translateY(20px);
    transition: transform 0.4s ease;
    text-align: center;
}

.gallery-item:hover .overlay-text {
    transform: translateY(0);
}

.overlay-text h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* 8. Testimonials Section */
.testimonials.light-theme {
    background-color: #fdfbf7;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    margin-top: 0;
    padding: 6px 2px 20px;
    cursor: grab;
    align-items: stretch;
    overscroll-behavior-x: contain;
    will-change: scroll-position;
}

.testimonials-track:active { cursor: grabbing; }
.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial-card {
    background: #fff;
    border: 1px solid rgba(121, 133, 137, 0.15);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.rating {
    color: var(--color-orange);
    font-size: 1rem;
    letter-spacing: 2px;
}

.quote-icon {
    color: rgba(255, 138, 11, 0.2);
    font-size: 2.5rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 30px;
    color: #5a6468;
    flex-grow: 1;
}

.testimonial-author {
    border-top: 1px solid rgba(121, 133, 137, 0.15);
    padding-top: 20px;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--color-orange);
    font-weight: 600;
}

/* 9. FAQ Section */
.faq {
    background-color: #0d0d0d;
}

.faq-container {
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

.faq-content {
    text-align: center;
    margin-bottom: 50px;
}

.accordion-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.accordion-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.accordion-header i {
    color: var(--color-orange);
    transition: var(--transition);
}

.accordion-item.active .accordion-header i {
    transform: rotate(45deg);
}

.accordion-body {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-body {
    padding: 0 25px 25px;
    max-height: 600px; /* was 300px — Arabic content is 2-3× longer on mobile */
}

.accordion-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 10. CTA Section */
.cta-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 138, 11, 0.2);
    border-bottom: 1px solid var(--border-subtle);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

/* 11. Footer */
.footer {
    background-color: #050505;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--color-ivory);
}

.social-links a:hover {
    background-color: var(--color-orange);
    color: #000;
}

.footer h3 {
    color: var(--color-ivory);
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--color-orange);
    padding-left: 5px;
}

.footer-contact ul li,
.footer-hours ul li {
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--color-orange);
    margin-top: 5px;
}

.footer-hours span {
    color: var(--color-ivory);
    font-weight: 600;
    display: inline-block;
    width: 80px;
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-gray);
    font-size: 0.85rem;
}

.legal-links a {
    margin-left: 20px;
}

.legal-links a:hover {
    color: var(--color-ivory);
}

/* Luxury Shield Hero Redesign */
.dark-hero.luxury-shield-hero {
    background-color: #050505;
    color: #fff;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Cancel the ambientShift animation inherited from .hero selector —
       the gradient is invisible under the dark overlay, so it's pure waste. */
    animation: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 138, 11, 0.15) 0%, transparent 60%),
        linear-gradient(to bottom, #050505 0%, #0a0a0a 100%);
    z-index: 1;
    overflow: hidden;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(to bottom, transparent, rgba(255, 138, 11, 0.4), rgba(255, 255, 255, 0.8));
    box-shadow: 0 0 20px rgba(255, 138, 11, 0.5), 0 0 40px rgba(255, 138, 11, 0.2);
    animation: scannerSweep 6s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes scannerSweep {
    0% {
        top: -10%;
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

.glass-card-content {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glass-badge {
    background: rgba(255, 138, 11, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 138, 11, 0.3);
    box-shadow: 0 0 15px rgba(255, 138, 11, 0.1);
}

.dark-hero .hero-title {
    font-size: clamp(2.3rem, 6vw + 1rem, 4.5rem);
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: 1px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.dark-hero .hero-subtitle {
    color: #c0c0c0;
    font-size: 1.15rem;
    line-height: 1.7;
}

.dark-hero .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-glow {
    box-shadow: 0 0 15px rgba(255, 138, 11, 0.4);
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 15px rgba(255, 138, 11, 0.4);
    }

    100% {
        box-shadow: 0 0 25px rgba(255, 138, 11, 0.7), 0 0 40px rgba(255, 138, 11, 0.2);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollWheel 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

.arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(-10px) rotate(45deg);
    }

    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* 12. Interactive Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--color-orange);
    color: #000;
    transform: rotate(90deg);
}

.modal-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 0;
    width: 90vw;
    height: 85vh;
    max-height: 100vh;
    max-width: 1600px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Custom Scrollbar for Modal Content */
.modal-content-wrapper::-webkit-scrollbar {
    width: 8px;
}
.modal-content-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.modal-content-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--color-orange);
    border-radius: 4px;
}

.gallery-modal.active .modal-content-wrapper {
    transform: scale(1) translateY(0);
}

/* Image Viewer Column */
.modal-viewer {
    display: flex;
    flex-direction: column;
    background: #000;
    position: sticky;
    top: 0;
    height: 100%;
    max-height: 85vh; /* Desktop height */
    z-index: 5;
}

.modal-image-container {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.98);
}

.modal-main-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-btn:hover {
    background: var(--color-orange);
    color: #000;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.image-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-thumbnails {
    height: 120px;
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
    scrollbar-color: var(--color-orange) #111;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.modal-thumbnails::-webkit-scrollbar {
    height: 6px;
}
.modal-thumbnails::-webkit-scrollbar-track {
    background: #111;
}
.modal-thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--color-orange);
    border-radius: 10px;
}

.thumb-img {
    height: 100%;
    width: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    opacity: 0.4;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumb-img:hover {
    opacity: 0.8;
}

.thumb-img.active {
    opacity: 1;
    border-color: var(--color-orange);
}

/* Details Column */
.modal-details {
    padding: 40px;
    background: rgba(15, 15, 15, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-car-title {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid var(--color-orange);
    padding-left: 15px;
}

.services-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.service-tag {
    background: rgba(255, 138, 11, 0.1);
    border: 1px solid rgba(255, 138, 11, 0.3);
    color: var(--color-orange);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(255, 138, 11, 0.05);
    transition: all 0.3s ease;
}

.service-tag:hover {
    background: rgba(255, 138, 11, 0.2);
    box-shadow: 0 0 15px rgba(255, 138, 11, 0.15);
    transform: translateY(-2px);
}

.modal-description p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Gallery Items Clickable Styling */
.gallery-item[data-car-id] {
    cursor: pointer;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid transparent;
}

.gallery-item[data-car-id]:hover {
    box-shadow: 0 15px 40px rgba(255, 138, 11, 0.2);
    border-color: rgba(255, 138, 11, 0.3);
    z-index: 2;
}

body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none; /* Prevents scroll chaining on touch devices */
}

/* CTA Specific Fixes for Mobile */
.cta-specific-title {
    font-size: clamp(2.2rem, 5vw + 1rem, 3.5rem);
    /* Was inline style="margin-bottom:20px" — moved here so mobile breakpoints can override */
    margin-bottom: 20px;
}
.cta-specific-desc {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.1rem);
    /* Was inline style="max-width:700px;margin-bottom:40px" — moved here */
    max-width: 700px;
    margin-bottom: 40px;
}
.cta-specific-btn {
    padding: clamp(12px, 3vw, 16px) clamp(24px, 5vw, 36px);
    font-size: clamp(1rem, 2vw + 0.5rem, 1.1rem);
}

/* Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 138, 11, 0.3);
    color: var(--color-orange);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(255, 138, 11, 0.2);
    z-index: 999;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.floating-wa:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 138, 11, 0.4);
    background: rgba(255, 138, 11, 0.1);
    border-color: var(--color-orange);
}

.wa-tooltip {
    position: absolute;
    right: 85px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 138, 11, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(255, 138, 11, 0.5);
}

.floating-wa:hover .wa-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ============================================================
   MOBILE-FIRST RESPONSIVE SYSTEM
   Base styles = mobile (320px+)
   Progressive enhancement up to desktop
   ============================================================ */

/* ---- Base mobile resets applied globally (mobile first) ---- */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

/* Prevent all horizontal overflow at root level */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ============================================================
   320px – 479px  (Extra-small phones: iPhone SE, Moto G)
   ============================================================ */
@media (max-width: 479px) {
    :root {
        --section-pad: 52px 0;
        --nav-height: 64px;
    }

    .container {
        padding: 0 16px;
    }

    /* --- NAV --- */
    .header {
        height: var(--nav-height);
    }

    .nav-list,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
    }

    .logo-text {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .logo-img {
        height: 32px;
    }

    /* Prevent logo from pushing nav-actions off-screen on narrow phones */
    .logo {
        min-width: 0;
        flex-shrink: 1;
    }

    .logo-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-actions {
        flex-shrink: 0;
        gap: 8px;
    }

    .lang-toggle {
        font-size: 0.9rem;
    }

    /* Mobile menu dropdown */
    .nav-menu.active {
        display: block;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        padding: 12px 0 20px;
        z-index: 999;
    }

    .nav-menu.active .nav-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 0;
    }

    .nav-menu.active .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-menu.active .nav-link {
        display: block;
        padding: 13px 20px;
        font-size: 0.95rem;
        color: var(--text-main);
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .nav-menu.active .nav-link:last-child {
        border-bottom: none;
    }

    /* --- HERO --- */
    .hero {
        height: auto;
        min-height: 100svh;
        min-height: 100vh;
        padding-top: calc(var(--nav-height) + 24px);
        padding-bottom: 60px;
        align-items: flex-start;
        overflow: hidden;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
        padding-top: 0;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 1.2s ease 2.4s, transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 2.4s;
    }

    body.loaded .hero-container {
        opacity: 1;
        transform: translateY(0);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.72rem;
        letter-spacing: 1px;
        padding: 5px 14px;
        margin-bottom: 8px;
        display: inline-block;
        max-width: 90%;
        white-space: normal;
        text-align: center;
    }

    .dark-hero .hero-title {
        font-size: clamp(1.85rem, 8vw, 2.4rem);
        line-height: 1.15;
        letter-spacing: 0;
        margin-bottom: 8px;
    }

    .dark-hero .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        line-height: 1.5;
        margin-bottom: 14px;
        color: #c0c0c0;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 0.9rem;
        justify-content: center;
        min-height: 50px;
    }

    .hero-btns .btn-primary {
        min-height: 56px;
        font-size: 0.97rem;
        font-weight: 700;
        letter-spacing: 0.8px;
    }

    .hero-btns .btn-secondary {
        min-height: 46px;
        font-size: 0.88rem;
        border-color: rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.75);
    }

    .hero-socials {
        margin-top: 14px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .socials-label {
        font-size: 0.75rem;
        width: 100%;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        gap: 10px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    /* Hero location card */
    .hero-location-card {
        max-width: 100%;
        margin: 0;
        padding: 18px;
        gap: 14px;
        border-radius: 16px;
    }

    .location-map-wrapper {
        height: 140px;
    }

    .location-title {
        font-size: 1.05rem;
    }

    .location-subtitle {
        font-size: 0.7rem;
    }

    .location-desc {
        font-size: 0.88rem;
    }

    .btn-location-cta {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* --- SECTION HEADERS --- */
    .section-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .section-title {
        font-size: clamp(1.55rem, 7vw, 1.9rem);
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .section-desc {
        font-size: 0.92rem;
        line-height: 1.65;
        margin-bottom: 28px;
    }

    /* --- SERVICES --- */
    .section {
        padding: var(--section-pad);
    }

    .premium-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 28px;
    }

    .premium-card {
        padding: 24px 20px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .card-desc {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    /* Show arrow always on touch — no hover state */
    .card-action {
        opacity: 0.5;
        transform: translateX(0);
    }

    /* --- WHY US --- */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 32px;
    }

    .benefits-center-visual {
        order: -1;
        padding: 20px 0 30px;
    }

    .shield-outline {
        width: 100px;
        height: 115px;
    }

    .car-silhouette {
        font-size: 2.4rem;
    }

    .vertical-separator {
        display: none;
    }

    .benefits-column {
        gap: 20px;
    }

    .benefit-block {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 14px;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    body.lang-ar .benefit-block {
        text-align: right;
    }

    .benefit-block:last-child {
        border-bottom: none;
    }

    .benefit-line {
        display: none;
    }

    .benefit-title {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .benefit-desc {
        font-size: 0.84rem;
    }

    .text-right,
    .text-left {
        text-align: left;
        justify-content: flex-start;
        flex-direction: row;
    }

    body.lang-ar .text-right,
    body.lang-ar .text-left {
        text-align: right;
        justify-content: flex-end;
        flex-direction: row-reverse;
    }

    /* --- PROCESS --- */
    .timeline-container {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 32px;
    }

    .timeline-track {
        display: none;
    }

    .timeline-step {
        display: grid;
        grid-template-columns: 52px 1fr;
        column-gap: 14px;
        row-gap: 4px;
        text-align: left;
        padding: 0;
    }

    body.lang-ar .timeline-step {
        text-align: right;
    }

    .timeline-step .step-icon {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
        margin: 0;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .timeline-step .step-title {
        font-size: 1rem;
        margin-bottom: 0;
        align-self: end;
    }

    .timeline-step .step-desc {
        font-size: 0.87rem;
    }

    /* --- GALLERY --- */
    .header-split {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .gallery-item.item-top-row {
        grid-column: span 1;
        aspect-ratio: 1 / 1;
    }

    .gallery-item.item-bottom-row {
        grid-column: span 1;
        aspect-ratio: 1 / 1;
    }

    .overlay-text h4 {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    /* --- TESTIMONIALS --- */
    .testimonials-track {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 28px;
    }

    .testimonial-card {
        padding: 22px 18px;
    }

    .testimonial-text {
        font-size: 0.92rem;
        line-height: 1.65;
        margin-bottom: 18px;
    }

    .author-info h4 {
        font-size: 0.95rem;
    }

    .quote-icon {
        font-size: 1.8rem;
    }

    /* --- FAQ --- */
    .faq-container {
        max-width: 100%;
    }

    .faq-content {
        margin-bottom: 28px;
    }

    .accordion-header {
        padding: 16px 18px;
        gap: 12px;
    }

    .accordion-header h3 {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .accordion-body {
        padding: 0 18px;
    }

    .accordion-item.active .accordion-body {
        padding: 0 18px 18px;
    }

    .accordion-body p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    /* --- CTA --- */
    .cta-section {
        padding: 52px 0;
    }

    .cta-specific-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 12px;
    }

    .cta-specific-desc {
        font-size: 0.92rem;
        margin-bottom: 24px;
    }

    .cta-specific-btn {
        padding: 16px 28px;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.8px;
        width: 100%;
        min-height: 56px;
    }

    /* --- FOOTER --- */
    .footer {
        padding: 44px 0 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 32px;
    }

    .footer-desc {
        font-size: 0.88rem;
        max-width: 100%;
        margin-bottom: 16px;
    }

    .footer h3 {
        font-size: 1rem;
        margin-bottom: 14px;
    }

    .footer-links ul li {
        margin-bottom: 10px;
    }

    .footer-contact ul li,
    .footer-hours ul li {
        font-size: 0.88rem;
        margin-bottom: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        font-size: 0.8rem;
        padding-top: 16px;
    }

    .legal-links {
        display: flex;
        gap: 16px;
    }

    .legal-links a {
        margin-left: 0;
    }

    /* --- FLOATING WA (pill with CTA label on small phones) --- */
    .floating-wa {
        width: auto;
        height: 50px;
        bottom: 16px;
        right: 12px;
        font-size: 1.45rem;
        border-radius: 28px;
        padding: 0 14px 0 12px;
        gap: 8px;
    }

    .wa-tooltip {
        display: flex;
        align-items: center;
        position: static;
        top: auto;
        right: auto;
        transform: none;
        background: transparent;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        color: var(--color-orange);
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.3px;
        padding: 0;
        opacity: 1;
        pointer-events: none;
        white-space: nowrap;
        transition: none;
    }

    .wa-tooltip::after {
        display: none;
    }

    .floating-wa:hover .wa-tooltip {
        transform: none;
        opacity: 1;
    }

    /* --- MODAL --- */
    .modal-close {
        top: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .modal-content-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: 100svh;
        height: 100vh;
        max-height: 100svh;
        max-height: 100vh;
        width: 100vw;
        border-radius: 0;
        overflow-y: auto;
    }

    .modal-viewer {
        height: 45svh;
        height: 45vh;
        max-height: 45svh;
        max-height: 45vh;
        position: relative;
        top: auto;
    }

    .modal-thumbnails {
        height: 80px;
        padding: 10px;
    }

    .modal-details {
        padding: 18px 16px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .modal-car-title {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }

    /* --- GLASS CARD HERO CONTENT --- */
    .glass-card-content {
        padding: 16px;
        border-radius: 10px;
    }
}

/* ============================================================
   480px – 599px  (Large phones: iPhone Plus, Pixel XL)
   ============================================================ */
@media (min-width: 480px) and (max-width: 599px) {
    :root {
        --section-pad: 60px 0;
        --nav-height: 68px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-list,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }

    .nav-menu.active {
        display: block;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        padding: 12px 0 20px;
        z-index: 999;
    }

    .nav-menu.active .nav-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .nav-menu.active .nav-link {
        display: block;
        padding: 13px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .hero {
        height: auto;
        min-height: 100svh;
        min-height: 100vh;
        padding-top: calc(var(--nav-height) + 28px);
        padding-bottom: 64px;
        align-items: flex-start;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .dark-hero .hero-title {
        font-size: clamp(2rem, 7vw, 2.6rem);
    }

    .dark-hero .hero-subtitle {
        font-size: clamp(0.95rem, 3vw, 1.05rem);
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        min-height: 50px;
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-location-card {
        max-width: 100%;
        margin: 0;
        padding: 20px;
    }

    .location-map-wrapper {
        height: 155px;
    }

    .premium-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 32px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 36px;
    }

    .benefits-center-visual {
        order: -1;
        padding-bottom: 30px;
    }

    .benefit-block {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        text-align: left;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    body.lang-ar .benefit-block {
        text-align: right;
        flex-direction: row-reverse;
    }

    .benefit-line {
        display: none;
    }

    .text-right,
    .text-left {
        text-align: left;
        justify-content: flex-start;
        flex-direction: row;
    }

    .timeline-container {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 36px;
    }

    .timeline-track { display: none; }

    .timeline-step {
        display: grid;
        grid-template-columns: 54px 1fr;
        column-gap: 14px;
        row-gap: 4px;
        text-align: left;
    }

    .timeline-step .step-icon {
        width: 54px;
        height: 54px;
        margin: 0;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gallery-item.item-top-row,
    .gallery-item.item-bottom-row {
        grid-column: span 1;
        aspect-ratio: 1 / 1;
    }

    .testimonials-track {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .modal-content-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: 100svh;
        height: 100vh;
        width: 100vw;
        border-radius: 0;
        overflow-y: auto;
    }

    .modal-viewer {
        height: 48svh;
        height: 48vh;
        max-height: 48svh;
        max-height: 48vh;
        position: relative;
        top: auto;
    }

    .modal-details {
        padding: 22px 20px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .floating-wa {
        width: 52px;
        height: 52px;
        bottom: 18px;
        right: 18px;
        font-size: 1.7rem;
    }

    .wa-tooltip { display: none; }
    .scroll-indicator { display: none; }
}

/* ============================================================
   600px – 767px  (Small tablets / large phones landscape)
   ============================================================ */
@media (min-width: 600px) and (max-width: 767px) {
    :root {
        --section-pad: 64px 0;
        --nav-height: 70px;
    }

    .container {
        padding: 0 24px;
    }

    .nav-list,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }

    .nav-menu.active {
        display: block;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        padding: 12px 0 20px;
        z-index: 999;
    }

    .nav-menu.active .nav-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .nav-menu.active .nav-link {
        display: block;
        padding: 13px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .hero {
        height: auto;
        min-height: 100svh;
        min-height: 100vh;
        padding-top: calc(var(--nav-height) + 32px);
        padding-bottom: 64px;
        align-items: flex-start;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .dark-hero .hero-title {
        font-size: clamp(2.2rem, 6vw, 3rem);
    }

    .hero-btns {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-btns .btn {
        min-width: 180px;
        min-height: 50px;
        flex: 1;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-location-card {
        max-width: 520px;
        margin: 0 auto;
        padding: 24px;
    }

    .location-map-wrapper {
        height: 165px;
    }

    .premium-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 36px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 40px;
    }

    .benefits-center-visual {
        order: -1;
        padding-bottom: 30px;
    }

    .benefit-block {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        text-align: left;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .benefit-line { display: none; }

    .text-right,
    .text-left {
        text-align: left;
        justify-content: flex-start;
        flex-direction: row;
    }

    .timeline-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        margin-top: 40px;
    }

    .timeline-track { display: none; }

    .timeline-step {
        text-align: left;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .gallery-item.item-top-row,
    .gallery-item.item-bottom-row {
        grid-column: span 1;
        aspect-ratio: 1 / 1;
    }

    .testimonials-track {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        margin-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .modal-content-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: 100svh;
        height: 100vh;
        width: 100vw;
        border-radius: 0;
        overflow-y: auto;
    }

    .modal-viewer {
        height: 50svh;
        height: 50vh;
        max-height: 50svh;
        max-height: 50vh;
        position: relative;
        top: auto;
    }

    .modal-details {
        padding: 24px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .floating-wa {
        width: 54px;
        height: 54px;
        bottom: 20px;
        right: 20px;
        font-size: 1.8rem;
    }

    .wa-tooltip { display: none; }
}

/* ============================================================
   768px – 1023px  (Tablets)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --section-pad: 80px 0;
        --nav-height: 76px;
    }

    .container {
        padding: 0 28px;
    }

    .nav-list,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }

    .nav-menu.active {
        display: block;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        padding: 16px 0 24px;
        z-index: 999;
    }

    .nav-menu.active .nav-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .nav-menu.active .nav-link {
        display: block;
        padding: 14px 24px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .hero {
        height: auto;
        min-height: 100svh;
        min-height: 100vh;
        padding-top: calc(var(--nav-height) + 40px);
        padding-bottom: 80px;
        align-items: flex-start;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .dark-hero .hero-title {
        font-size: clamp(2.5rem, 5.5vw, 3.5rem);
    }

    .hero-btns {
        flex-direction: row;
        justify-content: center;
        gap: 14px;
    }

    .hero-location-card {
        max-width: 600px;
        margin: 0 auto;
    }

    .location-map-wrapper {
        height: 180px;
    }

    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 44px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 44px;
    }

    .benefits-center-visual {
        order: -1;
        padding-bottom: 36px;
    }

    .benefit-block {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    body.lang-ar .benefit-block {
        text-align: right;
        flex-direction: row-reverse;
    }

    .benefit-line { display: none; }

    .text-right,
    .text-left {
        text-align: left;
        justify-content: flex-start;
        flex-direction: row;
    }

    .timeline-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        margin-top: 50px;
    }

    .timeline-track { display: none; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .gallery-item.item-top-row,
    .gallery-item.item-bottom-row {
        grid-column: span 1;
        aspect-ratio: 1 / 1;
    }

    .testimonials-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        margin-bottom: 48px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .modal-content-wrapper {
        grid-template-columns: 1.5fr 1fr;
        height: 90vh;
        max-height: 90vh;
        width: 95vw;
    }

    .modal-viewer {
        height: 100%;
        max-height: 90vh;
    }

    .floating-wa {
        width: 58px;
        height: 58px;
        bottom: 24px;
        right: 24px;
        font-size: 2rem;
    }

    .wa-tooltip { display: none; }
}

/* ============================================================
   1024px+  (Desktop — progressive enhancement)
   ============================================================ */
@media (min-width: 1024px) {
    :root {
        --section-pad: 100px 0;
        --nav-height: 80px;
    }

    .container {
        padding: 0 20px;
    }

    /* Nav fully shown */
    .nav-list {
        display: flex;
    }

    .nav-cta {
        display: inline-flex;
    }

    .mobile-toggle {
        display: none;
    }

    /* Hero two-column */
    .hero {
        height: 100vh;
        min-height: 800px;
        padding-top: var(--nav-height);
        padding-bottom: 0;
        align-items: center;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        text-align: left;
    }

    body.lang-ar .hero-container {
        text-align: right;
    }

    .hero-btns {
        flex-direction: row;
        width: auto;
    }

    .hero-btns .btn {
        width: auto;
    }

    .hero-socials {
        justify-content: flex-start;
    }

    body.lang-ar .hero-socials {
        justify-content: flex-end;
    }

    .hero-location-card {
        max-width: 450px;
        margin-left: auto;
    }

    body.lang-ar .hero-location-card {
        margin-left: 0;
        margin-right: auto;
    }

    .scroll-indicator {
        display: flex;
    }

    /* Services 3-col grid */
    .premium-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-top: 50px;
    }

    /* Benefits 3-col grid */
    .benefits-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 50px;
        margin-top: 60px;
    }

    .benefits-center-visual {
        order: 0;
        padding: 20px 0;
    }

    .benefits-column {
        gap: 40px;
    }

    .benefit-block {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 0;
        border-bottom: none;
    }

    .benefit-line {
        display: block;
    }

    .text-right {
        text-align: right;
        justify-content: flex-end;
        flex-direction: row;
    }

    .text-left {
        text-align: left;
        justify-content: flex-start;
        flex-direction: row;
    }

    .vertical-separator {
        display: block;
    }

    /* Process 4-col */
    .timeline-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-top: 80px;
    }

    .timeline-track {
        display: block;
    }

    .timeline-step {
        text-align: left;
    }

    .timeline-step .step-icon {
        margin: 0;
    }

    /* Gallery 12-col grid */
    .gallery-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 20px;
    }

    .gallery-item.item-top-row {
        grid-column: span 4;
        aspect-ratio: 1 / 1;
    }

    .gallery-item.item-bottom-row {
        grid-column: span 3;
        aspect-ratio: 1 / 1;
    }

    /* Testimonials 3-col */
    .testimonials-track {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-top: 50px;
    }

    /* Footer 4-col */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Modal desktop layout */
    .modal-content-wrapper {
        grid-template-columns: 2.5fr 1fr;
        height: 85vh;
        max-height: 100vh;
        width: 90vw;
        max-width: 1600px;
        border-radius: 20px;
        overflow-y: auto;
    }

    .modal-viewer {
        height: 100%;
        max-height: 85vh;
        position: sticky;
        top: 0;
    }

    .modal-details {
        padding: 40px;
    }

    /* WhatsApp button desktop */
    .floating-wa {
        width: 65px;
        height: 65px;
        bottom: 30px;
        right: 30px;
        font-size: 2.2rem;
    }

    .wa-tooltip {
        display: block;
    }
}

/* ============================================================
   Mobile performance — disable decorative animations ≤767px
   16+ simultaneous CSS animations (luxSweep, ambientShift,
   gridMotion, scannerSweep, radarPing) kill frame rate on
   mid-range Android. Only functional animations are kept.
   ============================================================ */
@media (max-width: 767px) {
    /* Kill the shimmer sweep on all lux-reflect cards/items */
    .lux-reflect::after {
        animation: none;
        display: none;
    }

    /* Kill moving grid backgrounds */
    .precision-grid-bg {
        animation: none;
    }

    .precision-grid-bg::before,
    .precision-grid-bg::after {
        animation: none;
    }

    /* Kill the hero scanner sweep line */
    .hero-overlay::after {
        animation: none;
    }

    /* Reduce radar ping to single pop instead of looping */
    .radar-ping {
        animation: none;
    }

    /* Gallery overlay: always visible on touch (no :hover state on touch) */
    .gallery-item[data-car-id] .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
        align-items: flex-end;
        padding: 12px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .gallery-item[data-car-id] .overlay-text {
        transform: translateY(0);
    }

    .overlay-text h4 {
        font-size: 0.78rem;
        letter-spacing: 1px;
    }
}

/* ============================================================
   PREMIUM MOBILE POLISH — spacing rhythm, card balance,
   visual breathing room, section transitions
   ============================================================ */

/* --- Section transition separators (≤767px) --- */
@media (max-width: 767px) {
    /* FAQ and CTA are both dark — without a line they blur into each other */
    .section.faq {
        border-top: 1px solid rgba(255, 255, 255, 0.055);
    }

    /* Orange rule above CTA creates a deliberate pause before the final CTA */
    .cta-section {
        border-top: 2px solid rgba(255, 138, 11, 0.22);
    }
}

/* --- Card balance, breathing room & aesthetics (≤479px) --- */
@media (max-width: 479px) {
    /* Service cards: proportionally balanced + softer mobile corners */
    .premium-card {
        padding: 26px 22px;
        border-radius: 14px;
    }

    /* Icon: extra breathing room before card text block */
    .card-icon {
        margin-bottom: 18px;
    }

    /* Testimonial cards: match service card proportion */
    .testimonial-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    /* Testimonial text: premium line-height for readability */
    .testimonial-text {
        line-height: 1.72;
        margin-bottom: 20px;
    }

    /* Section description: max-width prevents over-wide text lines on mobile */
    .section-desc {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 32px;
    }

    /* Gallery: extra breathing room between grid cells */
    .gallery-grid {
        gap: 10px;
    }

    /* Process timeline steps: subtle card on white background (light-appropriate values) */
    .timeline-step {
        background: rgba(0, 0, 0, 0.028);
        border: 1px solid rgba(0, 0, 0, 0.085);
        border-radius: 14px;
        padding: 18px 16px;
        column-gap: 14px;
        row-gap: 5px;
    }

    /* Timeline container: tighter gap now that each step has its own card frame */
    .timeline-container {
        gap: 12px;
    }

    /* Benefits: refined separator opacity + slight horizontal inset */
    .benefit-block {
        padding: 18px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Gallery items: rounded corners to match card aesthetic (was 4px — too sharp next to 14px cards) */
    .gallery-item {
        border-radius: 10px;
    }

    /* Footer hours: fixed 80px span width was designed for desktop and truncates "Saturday - Thursday:" on mobile */
    .footer-hours span {
        width: auto;
        min-width: 0;
        flex-shrink: 0;
    }

    /* Map widget: show tap-to-open label at 70% opacity so touch users know it's interactive */
    .location-map-wrapper .map-hover-text {
        opacity: 0.72;
        font-size: 0.9rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* FAQ description: constrain width so centered text doesn't span full 430px at large phones */
    .faq-desc {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================================
   ≤360px  (Extreme-small: iPhone SE 1st gen, Moto E, Galaxy A03)
   Tighten only the pieces that break at this width.
   ============================================================ */
@media (max-width: 360px) {
    /* Hero badge: reduce letter-spacing so long badge text stays on one line */
    .hero-badge {
        font-size: 0.65rem;
        letter-spacing: 0;
        padding: 4px 10px;
        margin-bottom: 6px;
    }

    .logo {
        gap: 6px;
    }

    .logo-img {
        height: 26px;
    }

    .logo-text {
        font-size: 0.78rem;
        letter-spacing: 0;
    }

    .lang-toggle {
        font-size: 0.8rem;
    }

    /* Tighter button padding so stacked CTAs breathe */
    .hero-btns .btn {
        padding: 13px 16px;
        font-size: 0.85rem;
    }

    /* Slightly reduced glass-card padding */
    .glass-card-content {
        padding: 18px 14px;
    }

    /* Service cards */
    .premium-card {
        padding: 20px 16px;
    }

    /* Testimonial cards */
    .testimonial-card {
        padding: 18px 14px;
    }

    /* FAQ accordion */
    .accordion-header {
        padding: 14px 14px;
        gap: 10px;
    }

    .accordion-header h3 {
        font-size: 0.88rem;
    }

    .accordion-body,
    .accordion-item.active .accordion-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Footer contact/hours text won't clip */
    .footer-contact ul li,
    .footer-hours ul li {
        font-size: 0.82rem;
        gap: 8px;
    }
}

/* ============================================================
   TESTIMONIALS CAROUSEL — card flex sizing, controls, dots
   ============================================================ */

/* Outer wrapper: provides margin-top and shadow bleed room */
.testimonials-carousel-outer {
    margin-top: 40px;
    position: relative;
}

/* Cards: 3-per-view on desktop (default) */
.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
    scroll-snap-align: start;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Author row: flex with avatar */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid rgba(121, 133, 137, 0.12);
    padding-top: 18px;
    margin-top: auto;
}

/* Avatar initials circle */
.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 138, 11, 0.14), rgba(255, 138, 11, 0.06));
    border: 1px solid rgba(255, 138, 11, 0.22);
    color: var(--color-orange);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-en);
}

/* Controls row: prev | dots | next */
.tcarousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

/* Prev/Next arrow buttons */
.tcarousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(121, 133, 137, 0.18);
    color: #2a2e30;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0;
}

.tcarousel-btn:hover:not(:disabled) {
    background: var(--color-orange);
    color: #ffffff;
    border-color: var(--color-orange);
    box-shadow: 0 6px 20px rgba(255, 138, 11, 0.28);
    transform: scale(1.08);
}

.tcarousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Navigation dots container */
.tcarousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Individual dot */
.tcarousel-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: rgba(121, 133, 137, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0;
}

/* Active dot: pill shape */
.tcarousel-dot.active {
    width: 24px;
    min-width: 24px;
    border-radius: 4px;
    background: var(--color-orange);
}

/* ---- Responsive card widths ---- */

/* Tablet (600-1023px): 2 per view */
@media (max-width: 1023px) {
    .testimonials-track { gap: 20px; }
    .testimonial-card { flex: 0 0 calc(50% - 10px); }
    .testimonials-carousel-outer { margin-top: 36px; }
}

/* Large phones + small tablets (≤599px): 1 per view */
@media (max-width: 599px) {
    .testimonials-track { gap: 16px; }
    .testimonial-card { flex: 0 0 100%; scroll-snap-align: center; }
    .testimonials-carousel-outer { margin-top: 28px; }
}

/* Small phones (≤479px): 1 per view, tighter controls */
@media (max-width: 479px) {
    .testimonials-track { gap: 14px; }
    .testimonial-card { flex: 0 0 100%; scroll-snap-align: center; }
    .tcarousel-btn { width: 40px; height: 40px; font-size: 0.82rem; }
    .testimonials-carousel-outer { margin-top: 24px; }
    .tcarousel-controls { gap: 12px; margin-top: 22px; }
}

/* ============================================================
   RTL (Arabic) global corrections — all breakpoints
   ============================================================ */
body.lang-ar .nav-link::after {
    left: auto;
    right: 0;
}

body.lang-ar .legal-links a {
    margin-left: 0;
    margin-right: 20px;
}

body.lang-ar .footer-links ul li a:hover {
    padding-left: 0;
    padding-right: 5px;
}

body.lang-ar .btn i {
    margin-right: 0;
    margin-left: 8px;
}

body.lang-ar .modal-car-title {
    border-left: none;
    border-right: 4px solid var(--color-orange);
    padding-left: 0;
    padding-right: 15px;
}

body.lang-ar .footer-hours span {
    width: auto;
}

/* Ensure RTL mobile menu mirrors correctly */
body.lang-ar .nav-menu.active .nav-list {
    direction: rtl;
}

/* Process section — RTL grid & text alignment */
body.lang-ar .timeline-step {
    text-align: right;
}

body.lang-ar .timeline-step .step-title,
body.lang-ar .timeline-step .step-desc {
    direction: rtl;
}

/* Location card RTL corrections */
body.lang-ar .location-title {
    letter-spacing: 0;
}

body.lang-ar .location-subtitle {
    text-transform: none;
    letter-spacing: 0;
}

body.lang-ar .btn-location-cta i.fa-arrow-right {
    transform: scaleX(-1);
}

body.lang-ar .btn-location-cta:hover i.fa-arrow-right {
    transform: scaleX(-1) translateX(-5px);
}

/* ============================================================
   Arabic RTL — Section header hierarchy inversion
   In Arabic, the small orange label becomes the dominant heading
   and the large h2 becomes the secondary subtitle line.
   ============================================================ */
body.lang-ar .section-subtitle {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
    line-height: 1.2;
}

body.lang-ar .section-title {
    font-size: clamp(0.95rem, 3.5vw, 1.25rem);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* ============================================================
   Arabic RTL — Service card text & animation direction
   ============================================================ */
body.lang-ar .card-title,
body.lang-ar .card-desc {
    text-align: right;
}

/* In RTL column-flex, align-self: flex-start = right edge (auto via direction) */
body.lang-ar .card-action {
    align-self: flex-start;
    transform: translateX(10px); /* initial offset: from the right */
}

body.lang-ar .premium-card:hover .card-action {
    transform: translateX(0);
}

body.lang-ar .card-action i {
    display: inline-block;
    transform: scaleX(-1); /* flip fa-arrow-right to point left */
}

/* ============================================================
   Arabic RTL — Testimonials carousel track
   Force LTR on the scroll container itself so that scrollLeft
   is always in the standard [0, max] positive range across
   Chrome, Firefox, and Safari. (RTL browsers use negative or
   inverted scrollLeft which breaks programmatic scrollTo.)
   Cards inherit RTL text direction from body.lang-ar.
   The controls sibling stays RTL so prev/next swap sides.
   ============================================================ */
body.lang-ar .testimonials-track { direction: ltr; }

/* ============================================================
   Arabic RTL — Testimonials carousel chevrons
   direction:rtl on .tcarousel-controls moves tPrev to the
   right and tNext to the left; flip icons so arrows visually
   match the RTL navigation direction.
   ============================================================ */
body.lang-ar .tcarousel-prev i,
body.lang-ar .tcarousel-next i {
    display: inline-block;
    transform: scaleX(-1);
}

/* ============================================================
   Accessibility & performance — reduce motion for all
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}