﻿/* ========== BASE RESET ========== */

/* ========== CROSS-BROWSER and MOBILE OPTIMIZATIONS ========== */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
img, video {
    max-width: 100%;
    height: auto;
}
/* Fix for iOS 100vh issue */
.h-screen {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}
.min-h-screen {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}
/* Touch scrolling */
.overflow-y-auto {
    -webkit-overflow-scrolling: touch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body { height: 100%; margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; }

/* ========== TYPOGRAPHY ========== */
.font-serif-luxury { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 300; letter-spacing: 0.02em; }
.font-body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }

/* ========== GLASSMORPHISM ========== */
.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.glass-card {
    background: rgba(10, 77, 74, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(200, 169, 110, 0.15);
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
    opacity: 0; transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
    opacity: 0; transform: translateX(-80px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
    opacity: 0; transform: translateX(80px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
    opacity: 0; transform: scale(0.9);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.25s; }
.stagger-3 { transition-delay: 0.4s; }
.stagger-4 { transition-delay: 0.55s; }

/* ========== KEYFRAMES ========== */
@keyframes shimmer { 0%, 100% { opacity: 0.3 } 50% { opacity: 0.7 } }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes pulse-gold { 0%, 100% { box-shadow: 0 0 20px rgba(200, 169, 110, 0.2) } 50% { box-shadow: 0 0 40px rgba(200, 169, 110, 0.4) } }
@keyframes grain {
    0% { transform: translate(0, 0) } 10% { transform: translate(-2%, -2%) }
    20% { transform: translate(2%, 2%) } 30% { transform: translate(-1%, 1%) }
    40% { transform: translate(1%, -1%) } 50% { transform: translate(-2%, 2%) }
    60% { transform: translate(2%, -2%) } 70% { transform: translate(-1%, -1%) }
    80% { transform: translate(1%, 1%) } 90% { transform: translate(-2%, -1%) }
    100% { transform: translate(0, 0) }
}
@keyframes scroll-bounce { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(8px) } }
@keyframes glow-pulse {
    from { text-shadow: 0 0 10px rgba(200, 169, 110, 0.2), 0 2px 10px rgba(0, 0, 0, 0.4); }
    to { text-shadow: 0 0 20px rgba(200, 169, 110, 0.6), 0 0 30px rgba(200, 169, 110, 0.3), 0 2px 10px rgba(0, 0, 0, 0.4); }
}
@keyframes scroll-horizontal { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes timelineProgress { to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-shimmer { animation: shimmer 3s ease-in-out infinite; }
.pulse-gold { animation: pulse-gold 3s ease-in-out infinite; }
.scroll-indicator { animation: scroll-bounce 2s ease-in-out infinite; }
.luxury-glow { animation: glow-pulse 4s ease-in-out infinite alternate; }
.animate-scroll-horizontal { animation: scroll-horizontal 80s linear infinite; width: max-content; }
.animate-scroll-horizontal:hover { animation-play-state: paused; }

/* ========== FILM GRAIN ========== */
.film-grain::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite; pointer-events: none; opacity: 0.4; z-index: 1;
}

/* ========== HERO ========== */
.hero-scene {
    background-image: url('home.png'); background-size: cover;
    background-position: center; background-repeat: no-repeat;
    position: relative; overflow: hidden;
}
.hero-scene::before { content: ''; position: absolute; inset: 0; background: transparent; z-index: 1; }
.hero-content-shadow { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.text-shadow-dark { text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5); }
.hero-grid-layout {
    display: grid; grid-template-columns: 1fr; gap: 4rem;
    align-items: center; width: 100%; max-width: 85rem;
    margin: 0 auto; position: relative; z-index: 10;
}
@media (min-width: 1024px) { .hero-grid-layout { grid-template-columns: 1.2fr 0.8fr; } }
.hero-diagonal-slope { display: none; }

.glass-panel {
    background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08); padding: 3.5rem; border-radius: 2.5rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2); max-width: 42rem;
}
.luxury-interior {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}
.luxury-interior .window-light {
    position: absolute; top: 0; right: 10%; width: 40%; height: 100%;
    background: linear-gradient(180deg, rgba(200, 169, 110, 0.15) 0%, rgba(245, 230, 211, 0.08) 40%, transparent 70%);
    filter: blur(30px);
}

/* ========== NAV ========== */
.nav-glass {
    background: transparent !important; backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important; border: none !important;
    box-shadow: none !important; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-scrolled {
    background: transparent !important; backdrop-filter: none !important;
    border: none !important; box-shadow: none !important;
    padding-top: 0.75rem !important; padding-bottom: 0.75rem !important;
}
.nav-hidden { transform: translateY(-100%); }

/* ========== SNAP/IMMERSIVE SCROLL ========== */
.snap-container { scroll-behavior: smooth; scroll-padding-top: 0; scroll-snap-type: y mandatory; }
.snap-section {
    min-height: 100svh; width: 100%; display: flex; flex-direction: column;
    justify-content: center; position: relative; overflow: hidden;
    scroll-snap-align: start; scroll-snap-stop: always;
}
.snap-section .section-inner { opacity: 1; }
.snap-section .slide-from-left {
    opacity: 0; transform: translateX(-100px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.snap-section .slide-from-right {
    opacity: 0; transform: translateX(100px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.15s;
}
.snap-section.in-view .slide-from-left,
.snap-section.in-view .slide-from-right { opacity: 1; transform: translateX(0); }
.snap-section::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(15, 15, 15, 0.6));
    pointer-events: none; z-index: 2;
}

/* ========== VERTICAL DOTS NAV ========== */
.vertical-dots-nav {
    position: fixed; right: 2rem; top: 50%; transform: translateY(-50%);
    display: none; flex-direction: column; gap: 1.5rem; z-index: 100;
}
.vertical-dots-nav.visible { display: flex; }
@media (max-width: 1024px) { .vertical-dots-nav { right: 1rem; gap: 1rem; } }
@media (max-width: 640px) { .vertical-dots-nav { display: none !important; } }
.dot-item {
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid rgba(200, 169, 110, 0.4); background: transparent;
    cursor: pointer; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative;
}
.dot-item:hover { border-color: #c8a96e; transform: scale(1.4); }
.dot-item.active {
    background: #c8a96e; border-color: #c8a96e;
    box-shadow: 0 0 20px rgba(200, 169, 110, 0.6); transform: scale(1.6);
}
.dot-item::after {
    content: attr(data-label); position: absolute; right: 2rem; top: 50%;
    transform: translateY(-50%); white-space: nowrap; color: #c8a96e;
    font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
    font-weight: 600; opacity: 0; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.dot-item:hover::after, .dot-item.active::after { opacity: 1; right: 2.8rem; }
@media (max-width: 768px) {
    .dot-item::after { display: none; }
    .vertical-dots-nav { right: 1.5rem; gap: 1.2rem; }
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: linear-gradient(135deg, #0a4d4a, #0d6b66); color: #f5e6d3;
    border: 1px solid rgba(200, 169, 110, 0.3); transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #0d6b66, #1a8f89);
    box-shadow: 0 8px 32px rgba(10, 77, 74, 0.4); transform: translateY(-2px);
}
.btn-secondary {
    background: transparent; color: #f5e6d3;
    border: 1px solid rgba(200, 169, 110, 0.4); transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-secondary:hover {
    background: rgba(200, 169, 110, 0.1); border-color: #c8a96e; transform: translateY(-2px);
}

/* ========== DECORATIVE ========== */
.gold-line { width: 60px; height: 2px; background: linear-gradient(90deg, #c8a96e, #d4af37); }
.gold-line-long { width: 120px; height: 1px; background: linear-gradient(90deg, transparent, #c8a96e, transparent); }
.deco-circle { border: 1px solid rgba(200, 169, 110, 0.08); }

/* ========== SERVICE ICON ========== */
.service-icon-wrap {
    width: 80px; height: 80px; border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10, 10, 10, 0.6); backdrop-filter: blur(10px);
    border: 2px solid rgba(200, 169, 110, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(200, 169, 110, 0.15);
    position: relative;
}
.service-icon-wrap::after {
    content: ''; position: absolute; inset: -2px; border-radius: 24px;
    background: linear-gradient(135deg, rgba(200, 169, 110, 0.8), transparent);
    z-index: -1; opacity: 0.5; filter: blur(8px);
}

/* ========== FORM INPUTS ========== */
.input-luxury {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(200, 169, 110, 0.2);
    color: #f5e6d3; transition: all 0.3s ease;
}
.input-luxury:focus {
    outline: none; border-color: #c8a96e;
    box-shadow: 0 0 20px rgba(200, 169, 110, 0.1); background: rgba(255, 255, 255, 0.08);
}
.input-luxury::placeholder { color: rgba(245, 230, 211, 0.3); }

/* ========== CALENDAR ========== */
.cal-day {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; cursor: pointer; transition: all 0.2s ease; color: #f5e6d3; font-size: 14px;
}
.cal-day:hover { background: rgba(10, 77, 74, 0.4); }
.cal-day.selected { background: linear-gradient(135deg, #0a4d4a, #0d6b66); border: 1px solid rgba(200, 169, 110, 0.3); }
.cal-day.disabled { opacity: 0.2; cursor: default; }
.cal-day.disabled:hover { background: transparent; }
.time-slot {
    padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(200, 169, 110, 0.15);
    color: #d4b896; cursor: pointer; transition: all 0.2s ease; text-align: center; font-size: 14px;
}
.time-slot:hover { border-color: #c8a96e; background: rgba(10, 77, 74, 0.2); }
.time-slot.selected { background: linear-gradient(135deg, #0a4d4a, #0d6b66); border-color: rgba(200, 169, 110, 0.3); color: #f5e6d3; }
@media (max-width: 640px) {
    .time-slot { padding: 12px 10px; font-size: 13px; }
    .cal-day { width: 36px; height: 36px; font-size: 13px; }
    #calGrid { gap: 0.5rem; }
}

/* ========== CUSTOM SELECT ========== */
.custom-select-wrapper { position: relative; user-select: none; }
.custom-select-trigger { cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.custom-select-options {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1000;
    background: rgba(15, 15, 15, 0.9); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(200, 169, 110, 0.2); border-radius: 1.2rem; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-select-options.open { opacity: 1; visibility: visible; transform: translateY(0); }
.custom-select-option { padding: 12px 20px; color: #d4b896; cursor: pointer; transition: all 0.2s ease; }
.custom-select-option:hover { background: rgba(200, 169, 110, 0.1); color: #f5e6d3; }
.custom-select-option.selected { background: rgba(200, 169, 110, 0.2); color: #c8a96e; font-weight: 600; }

/* ========== MOBILE MENU ========== */
.mobile-menu-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(15, 15, 15, 0.98); backdrop-filter: blur(20px);
    transform: translateX(100%); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; padding: 2rem;
}
.mobile-menu-overlay.open { transform: translateX(0); }

/* ========== PAGE TRANSITIONS ========== */
.page { display: none; opacity: 0; transition: opacity 0.5s ease; }
.page.active { display: block; opacity: 1; }

/* ========== RTL SUPPORT ========== */
[dir="rtl"] { font-family: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans Arabic', sans-serif; }
[dir="rtl"] .font-serif-luxury { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 300; }

/* ========== TOAST ========== */
.toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(100px); opacity: 0;
    transition: all 0.4s ease; z-index: 9999;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f0f0f; }
::-webkit-scrollbar-thumb { background: rgba(200, 169, 110, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200, 169, 110, 0.5); }

/* ========== LOGO FILTER ========== */
img[src="logo.png"] { filter: brightness(0) invert(1); }

/* ========== 3D TIMELINE CARDS ========== */
.perspective-1500 { perspective: 1500px; }
.transform-3d { transform-style: preserve-3d; }
.card-3d-base {
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 1px 1px 1px rgba(255, 255, 255, 0.05);
}
@media (min-width: 1280px) {
    .card-3d-1 { transform: rotateY(25deg) translateZ(-30px); box-shadow: -20px 20px 30px rgba(0, 0, 0, 0.7); }
    .card-3d-2 { transform: rotateY(10deg) translateZ(20px); box-shadow: -10px 20px 30px rgba(0, 0, 0, 0.6); }
    .card-3d-3 { transform: rotateY(-10deg) translateZ(20px); box-shadow: 10px 20px 30px rgba(0, 0, 0, 0.6); }
    .card-3d-4 { transform: rotateY(-25deg) translateZ(-30px); box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.7); }
    .card-3d-base:hover {
        transform: rotateY(0deg) rotateX(5deg) translateZ(80px) translateY(-20px) !important;
        box-shadow: 0 40px 60px rgba(0, 0, 0, 0.9), inset 1px 1px 2px rgba(255, 255, 255, 0.2), 0 0 50px rgba(200, 169, 110, 0.15) !important;
        z-index: 50;
    }
}
@media (min-width: 768px) and (max-width: 1279px) {
    .card-3d-1, .card-3d-3 { transform: rotateY(15deg) translateZ(-10px); box-shadow: -15px 20px 30px rgba(0, 0, 0, 0.6); }
    .card-3d-2, .card-3d-4 { transform: rotateY(-15deg) translateZ(-10px); box-shadow: 15px 20px 30px rgba(0, 0, 0, 0.6); }
    .card-3d-base:hover {
        transform: rotateY(0deg) translateZ(50px) translateY(-10px) !important;
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.8), inset 1px 1px 2px rgba(255, 255, 255, 0.2), 0 0 30px rgba(200, 169, 110, 0.1) !important;
        z-index: 50;
    }
}
@media (max-width: 767px) {
    .card-3d-base:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), inset 1px 1px 2px rgba(255, 255, 255, 0.1);
    }
}
.node-3d { transform: translateZ(40px); box-shadow: 0 15px 25px rgba(0, 0, 0, 0.8); }

/* ========== SERVICES PAGE GYRO RINGS ========== */
.ring-container { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 0; pointer-events: none; }
.gyro-ring { position: absolute; border-radius: 50%; transform-style: preserve-3d; border: 1px solid rgba(200, 169, 110, 0.15); box-shadow: 0 0 40px rgba(200, 169, 110, 0.05), inset 0 0 30px rgba(200, 169, 110, 0.05); }
.ring-1 { width: 50vw; height: 50vw; min-width: 500px; min-height: 500px; animation: rotate-gyro-1 25s linear infinite; }
.ring-2 { width: 75vw; height: 75vw; min-width: 700px; min-height: 700px; animation: rotate-gyro-2 35s linear infinite; border-color: rgba(10, 77, 74, 0.3); border-width: 2px; }
.ring-3 { width: 100vw; height: 100vw; min-width: 900px; min-height: 900px; animation: rotate-gyro-3 45s linear infinite; border-color: rgba(200, 169, 110, 0.08); }
@keyframes rotate-gyro-1 { 0% { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); } 100% { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); } }
@keyframes rotate-gyro-2 { 0% { transform: rotateX(45deg) rotateY(180deg) rotateZ(360deg); } 100% { transform: rotateX(45deg) rotateY(540deg) rotateZ(0deg); } }
@keyframes rotate-gyro-3 { 0% { transform: rotateX(75deg) rotateY(360deg) rotateZ(180deg); } 100% { transform: rotateX(75deg) rotateY(0deg) rotateZ(540deg); } }

/* ========== IMMERSIVE STATUS ========== */
.immersive-status {
    position: fixed; bottom: 3.5rem; width: 100%; padding: 0 3.5rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 40; pointer-events: none; opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.immersive-status.visible { opacity: 1; }
@media (max-width: 640px) { .immersive-status { display: none !important; } }
@media (max-width: 768px) { .immersive-status { padding: 0 1.5rem; bottom: 2rem; } }

/* ========== VALUES TIMELINE ========== */
.values-timeline {
    position: relative;
    max-width: 1000px;
    margin: 6rem auto;
    padding: 2rem 0;
}

.values-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(200, 169, 110, 0.4) 15%, rgba(200, 169, 110, 0.4) 85%, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #0a0a0a;
    border: 2px solid #c8a96e;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 15px rgba(200, 169, 110, 0.2);
}

.timeline-item.reveal-visible .timeline-dot {
    background: #c8a96e;
    box-shadow: 0 0 25px rgba(200, 169, 110, 0.5);
}

.timeline-content {
    width: 45%;
    padding: 2.5rem;
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
    text-align: right;
    transform: translateX(-50px);
    opacity: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
    text-align: left;
    transform: translateX(50px);
    opacity: 0;
}

.timeline-item.reveal-visible .timeline-content {
    transform: translateX(0);
    opacity: 1;
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(200, 169, 110, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #c8a96e;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-icon {
    margin-left: auto;
}

.timeline-item:hover .timeline-icon {
    background: #c8a96e;
    color: #0a0a0a;
    transform: rotate(5deg) scale(1.1);
}

.timeline-number {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: rgba(200, 169, 110, 0.05);
    position: absolute;
    top: -1rem;
    z-index: -1;
    pointer-events: none;
}

.timeline-item:nth-child(odd) .timeline-number {
    right: 2rem;
}

.timeline-item:nth-child(even) .timeline-number {
    left: 2rem;
}

@media (max-width: 768px) {
    .values-timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
        text-align: left !important;
        transform: translateX(30px) !important;
        padding: 1.5rem;
    }
    
    .timeline-item {
        margin-bottom: 4rem;
    }

    .timeline-item:nth-child(odd) .timeline-icon {
        margin-left: 0;
    }
    
    .timeline-number {
        font-size: 3.5rem;
        left: 1rem !important;
        right: auto !important;
    }
}


/* ========== HORIZONTAL VALUES TIMELINE ========== */
.values-horizontal-timeline {
    position: relative;
    max-width: 1200px;
    margin: 8rem auto;
    padding: 12rem 0;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for clean look */
    -ms-overflow-style: none;
}

.values-horizontal-timeline::-webkit-scrollbar {
    display: none;
}

.timeline-horizontal-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-width: 1000px; /* Ensure enough space for 5 items */
    padding: 0 50px;
}

.timeline-horizontal-container::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(200, 169, 110, 0.4) 15%, rgba(200, 169, 110, 0.4) 85%, transparent);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-h-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-h-dot {
    width: 20px;
    height: 20px;
    background: #0a0a0a;
    border: 2px solid #c8a96e;
    border-radius: 50%;
    z-index: 3;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 15px rgba(200, 169, 110, 0.2);
    margin: 20px 0;
}

.timeline-h-item.reveal-visible .timeline-h-dot {
    background: #c8a96e;
    box-shadow: 0 0 25px rgba(200, 169, 110, 0.5);
    transform: scale(1.2);
}

.timeline-h-content {
    position: absolute;
    width: 240px;
    padding: 1.5rem;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 20px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
}

/* Alternate above and below */
.timeline-h-item:nth-child(odd) .timeline-h-content {
    bottom: 50px;
    transform: translateY(30px);
}

.timeline-h-item:nth-child(even) .timeline-h-content {
    top: 50px;
    transform: translateY(-30px);
}

.timeline-h-item.reveal-visible .timeline-h-content {
    opacity: 1;
    transform: translateY(0);
}

.timeline-h-item:hover .timeline-h-content {
    background: transparent;
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.timeline-h-icon {
    width: 40px;
    height: 40px;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #c8a96e;
    transition: all 0.3s ease;
}

.timeline-h-item:hover .timeline-h-icon {
    background: #c8a96e;
    color: #0a0a0a;
}

.timeline-h-number {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(200, 169, 110, 0.05);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .values-horizontal-timeline {
        padding: 4rem 1rem;
        overflow-x: hidden;
    }
    
    .timeline-horizontal-container {
        flex-direction: column;
        min-width: auto;
        padding: 0;
    }
    
    .timeline-horizontal-container::before {
        left: 20px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: 100%;
        transform: none;
    }
    
    .timeline-h-item {
        flex-direction: row;
        width: 100%;
        margin-bottom: 3rem;
        justify-content: flex-start;
        padding-left: 50px;
    }
    
    .timeline-h-dot {
        position: absolute;
        left: 11px;
        margin: 0;
    }
    
    .timeline-h-content {
        position: relative;
        width: 100%;
        top: auto !important;
        bottom: auto !important;
        transform: translateX(30px) !important;
        text-align: left;
    }
    
    .timeline-h-item.reveal-visible .timeline-h-content {
        transform: translateX(0) !important;
    }

    .timeline-h-icon {
        margin: 0 0 1rem 0;
    }
}


/* ========== WHITE HERO TEXT WITH SHADOW ========== */
#heroHeading {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: initial !important;
    color: #ffffff !important;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 5px 15px rgba(0,0,0,0.9);
    display: block;
    font-weight: 700;
    line-height: 1.1;
}


/* ========== ABOUT PAGE STYLE ========== */
#page-about, #page-about p, #page-about span, #page-about div:not(.timeline-h-icon) {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}


/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ============================================================ */

/* Touch targets */
@media (max-width: 1023px) {
    button, a, [onclick] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
    .btn-primary, .btn-secondary { min-height: 48px; }
}

/* Hero on small screens */
@media (max-width: 767px) {
    #heroHeading { font-size: clamp(2rem, 9vw, 3.2rem) !important; line-height: 1.12 !important; }
}

/* Global section padding on mobile */
@media (max-width: 767px) {
    section.py-20 { padding-top: 3rem; padding-bottom: 3rem; }
    section.py-16 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    section.py-32 { padding-top: 4.5rem; padding-bottom: 3.5rem; }
    h1.text-6xl, h1.text-5xl { font-size: clamp(2rem, 8vw, 3rem) !important; }
    h2.text-4xl, h2.text-5xl { font-size: clamp(1.5rem, 6vw, 2rem) !important; }
    h2.text-3xl { font-size: clamp(1.3rem, 5.5vw, 1.75rem) !important; }
}

/* Prevent iOS zoom on inputs */
@media (max-width: 767px) {
    input, textarea, select { font-size: 16px !important; }
    textarea { min-height: 110px; }
}

/* Calendar on mobile */
@media (max-width: 640px) {
    .cal-day { width: 34px; height: 34px; font-size: 12px; }
    #calGrid { gap: 4px; }
    #timeSlotsGrid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .time-slot { padding: 9px 5px; font-size: 11px; }
}

/* News / service cards */
@media (max-width: 767px) {
    .glass-card .h-64 { height: 200px; }
    .glass-card .p-8 { padding: 1.25rem; }
}

/* Prevent horizontal overflow */
#app, .page { overflow-x: hidden; max-width: 100vw; }
/* ========== RTL LAYOUT STABILITY FIXES ========== */

/* Prevent RTL from causing horizontal scroll */
body { overflow-x: hidden !important; max-width: 100vw; }

/* Nav and mobile menu always LTR */
#mainNav, #mobileMenu { direction: ltr !important; }

/* Mobile menu always slides from right, regardless of body dir */
.mobile-menu-overlay { transform: translateX(100%) !important; }
.mobile-menu-overlay.open { transform: translateX(0) !important; }

/* Hero section stays LTR */
#page-home section:first-child,
#page-home .relative.z-20 { direction: ltr !important; overflow-x: hidden; }

/* Fixed UI chrome always LTR */
.toast, #verticalDots, #immersiveStatus { direction: ltr !important; }

/* All pages clamped to viewport width */
#app, .page { overflow-x: hidden; max-width: 100%; }