/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    /* Palette: ~40% black · ~35% grey · 10% gold · 10% light red · 5% light blue */
    --black-rich: #0a0a0a;
    --black-soft: #121212;
    --grey-deep: #1e1e1e;
    --grey-mid: #2d2d2d;
    --grey-muted: #6b6b6b;
    --grey-light: #a8a8a8;
    --grey-surface: #2a2a2a;
    --gold: #c9a227;
    --gold-bright: #e4c45c;
    --gold-dim: rgba(201, 162, 39, 0.35);
    --red-light: #e07a7a;
    --red-soft: rgba(224, 122, 122, 0.45);
    --blue-light: #7eb8e8;
    --blue-soft: rgba(126, 184, 232, 0.35);

    --primary-color: var(--grey-light);
    --secondary-color: var(--gold);
    --accent-color: var(--red-light);
    --hover-color: var(--grey-mid);
    --text-color: #d4d4d4;
    --text-muted: var(--grey-muted);
    --light-bg: var(--grey-deep);
    --white: #f5f5f5;
    --dark-overlay: rgba(0, 0, 0, 0.55);

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.55);
    --glow-gold: 0 0 24px var(--gold-dim);
    --dtbar-width: 560px;
    --dtbar-gap: 96px;

    /* Fluid layout (phones → ultrawide / 4K) */
    --container-max: 1200px;
    --container-pad-x: clamp(12px, 3.2vw, 56px);
    --section-pad-y: clamp(48px, 7vw, 110px);
    --touch-min: 44px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--black-rich);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.65;
    position: relative;
}

/* Subtle animated mesh (motion + depth, no extra markup) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, var(--red-soft) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 30%, var(--blue-soft) 0%, transparent 45%),
        radial-gradient(ellipse 50% 35% at 50% 100%, var(--gold-dim) 0%, transparent 40%);
    opacity: 0.55;
    animation: meshShift 18s ease-in-out infinite alternate;
}

@keyframes meshShift {
    0% {
        opacity: 0.45;
        transform: scale(1) translate(0, 0);
    }
    100% {
        opacity: 0.65;
        transform: scale(1.03) translate(-1%, 1%);
    }
}

ul {
    list-style: none;
}

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

img,
video {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad-x);
    box-sizing: border-box;
}

/* Typography Tools */
.section-title {
    text-align: center;
    margin-bottom: clamp(32px, 6vw, 50px);
    position: relative;
    padding-bottom: 20px;
}

.section-title h2 {
    font-size: clamp(1.4rem, 3.5vw + 0.6rem, 2.75rem);
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 0 0 40px rgba(201, 162, 39, 0.15);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.about .section-title h2,
.services .section-title h2,
.contact .section-title h2 {
    color: var(--white);
}

.section-title p {
    color: var(--text-muted);
}

.section-title .line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--red-light), var(--blue-light));
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: var(--glow-gold);
    animation: lineShimmer 4s ease-in-out infinite;
}

@keyframes lineShimmer {
    0%,
    100% {
        filter: brightness(1);
        box-shadow: 0 0 12px var(--gold-dim);
    }
    50% {
        filter: brightness(1.15);
        box-shadow: 0 0 20px var(--red-soft), 0 0 28px var(--blue-soft);
    }
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-dark {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--grey-mid), var(--black-soft));
    color: var(--white);
    border: 1px solid rgba(201, 162, 39, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-dark:hover {
    background: linear-gradient(135deg, var(--grey-surface), var(--grey-mid));
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 20px var(--gold-dim);
    border-color: rgba(201, 162, 39, 0.55);
}

.pill-btn-fix:active {
    transform: translateY(1px) scale(0.98);
    transition: transform 0.1s ease;
}

/* Hero button sizing and alignment */
.hero-btns .btn-primary,
.hero-btns .btn-secondary,
.hero-btns .btn-dark {
    text-align: center;
    font-size: clamp(0.75rem, 0.9vw, 1rem);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
    color: var(--black-rich);
    box-shadow: 0 4px 24px rgba(201, 162, 39, 0.45);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(201, 162, 39, 0.55);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(224, 122, 122, 0.2);
    border-color: var(--red-light);
    color: var(--white);
    box-shadow: 0 0 24px var(--red-soft);
}

/* Header */
.header {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.97) 0%, rgba(18, 18, 18, 0.92) 100%);
    padding: calc(20px + env(safe-area-inset-top, 0px)) 0 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-slow);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}

.header.header-scrolled {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 0 12px;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 1px rgba(126, 184, 232, 0.2);
    border-bottom-color: rgba(201, 162, 39, 0.22);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100% !important; /* Force full width on desktops so elements are pushed to edges */
    /* Increased from 1200px to fit all nav items and ensure elements stick exactly 20px to edges */
    width: 100%;
    margin: 0;
    padding: 0 20px !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    /* Add this to allow flex items to shrink below their content size */
}

.logo img {
    height: 80px;
    /* Reduced from 102px to save horizontal space and vertical height */
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

.logo-text h1 {
    font-size: clamp(1.2rem, 1.8vw, 2.2rem); /* Dynamic scale down to prevent text overlap */
    color: var(--white);
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    min-width: 0;
}

/* LTR specific layout to balance header and eliminate the gap */
html[dir="ltr"] .logo-text h1 {
    font-size: clamp(1rem, 1.4vw, 1.5rem);
    max-width: 350px;
    /* Give it a strict bounded width */
}

/* 3-second Pulse on Load - JS hook */
.logo-animate {
    animation: textPulse 3s ease-in-out forwards;
}

@keyframes textPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
        color: var(--gold-bright);
        text-shadow: 0 0 20px var(--gold-dim), 0 0 40px var(--red-soft);
    }

    100% {
        transform: scale(1);
    }
}

/* Subtitle removed, style kept minimal just in case */
.logo-text span {
    display: none;
}

/* Navigation Layout */
.navbar {
    flex: 1 1 auto;
    /* Allow shrink */
    display: flex;
    justify-content: flex-end; /* Push to the end edge */
    align-items: center;
    margin: 0; /* Removed hardcoded margins so it reaches edges perfectly */
    padding: 0;
    white-space: nowrap;
}

/* Push navigation links to the far edge for RTL */
html[dir="rtl"] .navbar {
    justify-content: flex-end; /* flex-end in RTL is the left edge */
}

/* Push to the far edge for LTR */
html[dir="ltr"] .navbar {
    justify-content: flex-end; /* flex-end in LTR is the right edge */
}


.nav-group-main {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Reduced to fit items */
}

.nav-group-side {
    display: flex;
    align-items: center;
    margin: 0 10px;
    flex: 0 1 auto;
    /* Allow shrink */
    min-width: 0;
}

.nav-links {
    display: flex;
    gap: 15px;
    /* Clean spacing */
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
    /* CRITICAL: Never wrap to prevent massive header height */
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
    /* Slightly smaller text */
    white-space: nowrap;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    margin: 0 10px;
}

.lang-drop-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    transition: var(--transition);
}

.lang-drop-btn:hover,
.lang-drop-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.lang-menu {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(160deg, var(--grey-surface), var(--grey-deep));
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.2);
    box-shadow: var(--shadow);
    padding: 8px;
    min-width: 110px;
    /* Slightly smaller */
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    top: 110%;
}

.lang-menu a {
    text-decoration: none;
    color: var(--white);
    padding: 6px 10px;
    /* Smaller padding */
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: background 0.2s;
    font-size: 0.9rem;
    /* Smaller font */
    white-space: nowrap;
}

.lang-menu a:hover {
    background: var(--grey-deep);
    color: var(--gold);
}

/* Date Time Box */
.date-time-box {
    background: linear-gradient(135deg, var(--grey-surface), var(--grey-deep));
    color: var(--gold-bright);
    padding: 6px 12px;
    /* Slightly smaller padding */
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Adjusted shadow for white bg */
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    border: 1px solid rgba(201, 162, 39, 0.35);
    white-space: nowrap;
    margin: 0 5px;
    /* Tighter margin */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    /* Prevent it from pushing nav */
}

/* Ensure no text selection on header elements */
.header * {
    user-select: none;
}

.section-separator {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--gold), var(--red-light), var(--blue-light), transparent);
    background-size: 200% 100%;
    box-shadow: 0 0 16px var(--gold-dim), 0 0 28px var(--red-soft);
    animation: flashLines 2.8s ease-in-out infinite alternate, separatorSweep 6s linear infinite;
    margin: 0;
    position: relative;
    z-index: 10;
}

@keyframes flashLines {
    0% {
        opacity: 0.55;
        filter: brightness(0.95);
    }

    100% {
        opacity: 1;
        filter: brightness(1.15);
    }
}

@keyframes separatorSweep {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    align-items: center;
    justify-content: center;
    /* Changed to White */
}

/* Hero Section — fill mobile browser chrome; safe on notched devices */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 0;
    overflow: hidden;
    background-color: var(--black-rich);
}

.hero-slider {
    background-color: #0a0a0a;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Soft moving light over slides (Simpler for mobile stability) */
.hero-slider::before {
    content: '';
    position: absolute;
    inset: -15%;
    z-index: 5; /* Above slides */
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 20% 30%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 45% 35% at 85% 70%, rgba(126, 184, 232, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 90%, rgba(224, 122, 122, 0.05) 0%, transparent 45%);
    animation: heroAmbientDrift 20s ease-in-out infinite alternate;
    opacity: 0.8;
}

@keyframes heroAmbientDrift {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.88;
    }
    100% {
        transform: translate(2%, -2%) rotate(1deg);
        opacity: 1;
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate3d(0, 0, 0); /* Stabilize for mobile */
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2; /* Bring active slide above others */
}

.hero-slide:not(.active) {
    animation: none;
}

.hero-slide.active {
    opacity: 1;
}

/* Alternating Ken Burns / pan so each slide feels distinct */
.hero-slide:nth-child(3n + 1).active {
    animation: heroKBZoomOut 11s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.hero-slide:nth-child(3n + 2).active {
    animation: heroKBZoomPan 12s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.hero-slide:nth-child(3n).active {
    animation: heroKBZoomIn 10.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes heroKBZoomOut {
    0% {
        transform: scale(1.08) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1) translate3d(0, 0, 0);
    }
}

@keyframes heroKBZoomPan {
    0% {
        transform: scale(1.1) translate3d(2%, -1%, 0);
    }
    100% {
        transform: scale(1.02) translate3d(-1.5%, 0.5%, 0);
    }
}

@keyframes heroKBZoomIn {
    0% {
        transform: scale(1.04) translate3d(-1%, 1%, 0);
    }
    100% {
        transform: scale(1.1) translate3d(0.5%, -0.5%, 0);
    }
}

/* Ensure image is only 10% visible (solid fallback) */
/* Ensure image is only 10% visible (solid fallback) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(160deg, rgba(10, 10, 10, 0.82) 0%, rgba(30, 30, 30, 0.55) 45%, rgba(224, 122, 122, 0.18) 100%),
        linear-gradient(0deg, rgba(201, 162, 39, 0.12) 0%, transparent 40%);
    z-index: 1;
    display: block;
    animation: heroOverlayPulse 10s ease-in-out infinite alternate;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.04) 48%,
        rgba(126, 184, 232, 0.06) 50%,
        rgba(255, 255, 255, 0.03) 52%,
        transparent 65%
    );
    background-size: 220% 100%;
    animation: heroOverlayShimmer 7s ease-in-out infinite;
    mix-blend-mode: overlay;
}

@keyframes heroOverlayPulse {
    0% {
        opacity: 0.92;
    }
    100% {
        opacity: 1;
    }
}

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

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(800px, 100%);
    padding-top: calc(clamp(100px, 24vw, 220px) + env(safe-area-inset-top, 0px));
    padding-inline: clamp(10px, 3vw, 28px);
    box-sizing: border-box;
    animation: heroContentFloat 8s ease-in-out infinite;
}

@keyframes heroContentFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero h2 {
    font-size: clamp(1.65rem, 5vw + 0.5rem, 3.75rem);
    font-weight: 800;
    margin-bottom: clamp(12px, 2vw, 20px);
    line-height: 1.15;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    text-shadow:
        0 2px 24px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(201, 162, 39, 0.25);
    animation: heroTitleGlow 5s ease-in-out infinite alternate;
}

@keyframes heroTitleGlow {
    0% {
        text-shadow:
            0 2px 24px rgba(0, 0, 0, 0.8),
            0 0 32px rgba(201, 162, 39, 0.2);
    }
    100% {
        text-shadow:
            0 2px 28px rgba(0, 0, 0, 0.85),
            0 0 48px rgba(201, 162, 39, 0.35),
            0 0 72px rgba(126, 184, 232, 0.12);
    }
}

.hero p {
    font-size: clamp(0.95rem, 2.2vw + 0.4rem, 1.55rem);
    margin-bottom: clamp(24px, 4vw, 40px);
    color: var(--grey-light);
    animation: heroSubtitleFade 6s ease-in-out infinite alternate;
    line-height: 1.55;
    max-width: 55ch;
    margin-inline: auto;
}

@keyframes heroSubtitleFade {
    0% {
        opacity: 0.92;
    }
    100% {
        opacity: 1;
    }
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    animation: heroBtnsBob 5s ease-in-out infinite;
}

@keyframes heroBtnsBob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* About Section */
.section {
    padding: var(--section-pad-y) 0;
    scroll-margin-top: clamp(88px, 14vw, 120px);
}

.about {
    background: linear-gradient(180deg, var(--grey-deep) 0%, var(--black-soft) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--grey-light);
    font-weight: 500;
    transition: var(--transition);
}

.features-list li:hover {
    color: var(--white);
    transform: translateX(-4px);
}

html[dir="ltr"] .features-list li:hover {
    transform: translateX(4px);
}

.features-list i {
    color: var(--secondary-color);
}

/* About Section Image Replacement */
/* About Section Image Replacement */
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow), 0 0 0 1px rgba(201, 162, 39, 0.15);
    max-height: 500px;
    border: 1px solid rgba(126, 184, 232, 0.15);
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
}

.zoom-out-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: zoomOut 3s ease-out forwards;
}

@keyframes zoomOut {
    0% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Services Section */
.services {
    background: linear-gradient(180deg, var(--black-soft) 0%, var(--grey-deep) 50%, var(--black-rich) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(18px, 3vw, 32px);
}

.service-card {
    background: linear-gradient(145deg, var(--grey-surface) 0%, var(--grey-deep) 100%);
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 3px solid transparent;
    display: block;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-hover), 0 0 32px var(--gold-dim);
    border-bottom-color: var(--gold);
    border-color: rgba(201, 162, 39, 0.35);
}

/* Flash / shimmer on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), rgba(126, 184, 232, 0.08), transparent);
    transition: 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    left: 100%;
}

.service-card .icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    transition: var(--transition);
    filter: drop-shadow(0 0 12px var(--gold-dim));
}

.service-card:hover .icon {
    transform: scale(1.08) rotate(-3deg);
    color: var(--gold-bright);
}

.service-card h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

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

/* Info Banner */
.info-banner {
    background: linear-gradient(90deg, var(--black-rich) 0%, var(--grey-mid) 35%, var(--grey-deep) 65%, var(--black-rich) 100%);
    background-size: 200% 100%;
    animation: infoBannerFlow 12s ease infinite;
    padding: 48px 0;
    color: var(--white);
    border-top: 1px solid rgba(201, 162, 39, 0.2);
    border-bottom: 1px solid rgba(224, 122, 122, 0.15);
}

@keyframes infoBannerFlow {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.info-banner .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

a.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

a.info-item:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
}

a.info-item:active {
    transform: scale(0.95);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    font-size: 2.5rem;
    color: var(--gold);
    animation: iconPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--gold-dim));
}

.info-item:nth-child(2) i {
    animation-delay: 0.4s;
    color: var(--red-light);
    filter: drop-shadow(0 0 8px var(--red-soft));
}

.info-item:nth-child(3) i {
    animation-delay: 0.8s;
    color: var(--blue-light);
    filter: drop-shadow(0 0 8px var(--blue-soft));
}

@keyframes iconPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

.info-item h3 {
    font-size: 1.5rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, var(--grey-deep) 0%, var(--black-soft) 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.info-box {
    margin-bottom: 30px;
}

.info-box i,
.custom-contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
}

.custom-contact-icon {
    width: 35px;
    height: auto;
    margin-bottom: 10px;
    display: inline-block;
    /* Aligns with text-align (Right in RTL) */
    /* Filter removed to show original image */
}

.info-box h4 {
    color: var(--gold-bright);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-box p {
    color: var(--text-muted);
    margin-bottom: 5px;
}

.info-box a {
    color: var(--blue-light);
    transition: var(--transition);
}

.info-box a:hover {
    color: var(--gold-bright);
    text-shadow: 0 0 12px var(--gold-dim);
}

.contact-form {
    background: linear-gradient(160deg, var(--grey-surface), var(--grey-deep));
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.45);
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
    font-size: max(1rem, 16px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--grey-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px var(--blue-soft);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--black-rich) 0%, #050505 100%);
    color: var(--white);
    padding: 60px 0 20px;
    text-align: center;
    border-top: 1px solid rgba(201, 162, 39, 0.15);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo h2 {
    color: var(--white);
}

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

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

.social-links a:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: var(--black-rich);
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 24px var(--gold-dim);
}

/* Animations Classes (Controlled by JS IntersectionObserver) */
.animate-up:not(.show-animate),
.animate-fade-right:not(.show-animate),
.animate-fade-left:not(.show-animate) {
    opacity: 0;
}

.animate-up,
.animate-fade-right,
.animate-fade-left {
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-up {
    transform: translateY(40px);
}

/* Organizational Structure */
.org-structure {
    background: linear-gradient(180deg, var(--grey-mid) 0%, var(--black-rich) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.org-structure::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

.org-structure .section-title h2 {
    color: var(--white);
}

.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.org-node-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.person-card {
    background: linear-gradient(160deg, var(--grey-surface), var(--grey-deep));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 35px 25px;
    width: 360px;
    max-width: 100%;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 5px solid var(--gold);
}

.person-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover), 0 0 28px var(--gold-dim);
    border-bottom-color: var(--red-light);
}

.person-img {
    width: 170px;
    height: 170px;
    max-width: 170px;
    max-height: 170px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    padding: 5px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.person-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.person-info h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 5px;
    font-weight: 800;
}

.person-info p {
    color: var(--red-light);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Connectors */
.connector-line {
    width: 3px;
    height: 35px;
    background: linear-gradient(180deg, var(--gold), var(--red-light));
    border-radius: 2px;
    box-shadow: 0 0 12px var(--gold-dim);
}

.org-branches {
    display: flex;
    justify-content: center;
    gap: 30px; /* Reduced gap to fit 3 cards in 1200px container */
    position: relative;
    padding-top: 40px;
    flex-wrap: wrap;
}

/* Horizontal Line */
.org-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 360px); /* Spans from center of first to center of last card */
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--blue-light), var(--gold));
    box-shadow: 0 0 10px var(--gold-dim);
}

/* Vertical Drops */
.org-branches .org-node-wrapper::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, var(--blue-light), var(--gold));
}

/* Responsive */
@media (max-width: 1200px) {
    .person-card {
        width: 300px;
    }
    .org-branches::before {
        width: calc(100% - 300px);
    }
}
@media (max-width: 992px) {
    .org-branches {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding-top: 0;
    }
    .org-branches::before {
        display: none;
    }
    .org-branches .org-node-wrapper {
        margin-top: 40px;
    }
    .org-branches .org-node-wrapper::before {
        height: 40px;
        top: -40px;
    }
}

/* Extra Small Phones & Mobile Scaling */
@media (max-width: 576px) {
    .person-card {
        width: 280px; /* More compact for mobile */
        padding: 25px 15px;
    }
    
    .person-img {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }
    
    .person-info h3 {
        font-size: 1rem;
    }
    
    .person-info p {
        font-size: 0.85rem;
    }

    .org-branches .org-node-wrapper {
        margin-top: 30px;
    }

    .org-branches .org-node-wrapper::before {
        height: 30px;
        top: -30px;
    }

    .connector-line {
        height: 30px;
    }
}

.animate-fade-right {
    transform: translateX(30px);
    /* RTL: moves from left visually if translate positive? transform origins confusing in RTL sometimes, sticking to X axis shifts */
}

.animate-fade-left {
    transform: translateX(-30px);
}

.show-animate {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* Responsive Design System */

/* Large Screens (27" QHD / small 4K) */
@media (min-width: 1441px) {
    :root {
        --container-max: 1520px;
    }

    html {
        font-size: 17px;
    }

    .section {
        padding: clamp(90px, 8vw, 130px) 0;
    }
}

/* Desktop Scaling Fixes (< 1300px) to prevent overlap */
@media (max-width: 1300px) {
    .nav-group-main {
        gap: 10px;
    }
    .nav-links {
        gap: 12px;
    }
    .logo img {
        height: 70px;
    }
    .logo-text h1 {
        font-size: 1.4rem;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    .date-time-box {
        font-size: 0.70rem;
        padding: 4px 6px;
    }
}

/* Tablets & Small Laptops (968px - 1024px) */
@media (max-width: 1024px) {
    .navbar {
        justify-content: space-between;
    }

    .logo img {
        height: 65px;
        /* Smaller to prevent overlap */
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }
}

/* Mobile & Small Tablets / Landscape (Max 1200px) */
@media (max-width: 1200px) {
    .header .container {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content max-content;
        align-items: center;
        column-gap: 15px;
        padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
    }

    .hero h2 {
        font-size: clamp(1.3rem, 4vw + 0.5rem, 2.1rem);
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px; /* Reduced gap for compact mobile view */
    }

    .about-image {
        max-height: 300px !important; /* Cap height on phones to save space */
        order: 2; /* Ensure image is below text on mobile */
    }

    .about-text {
        order: 1;
    }

    .nav-links {
        display: none !important;
    }

    .nav-group-side {
        display: none !important; /* Hide date/time on all mobile/landscape/tablets */
    }

    .hamburger {
        display: flex !important;
        margin: 0;
        padding: 10px;
        border-radius: 12px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        order: 3;
        color: #fff;
        cursor: pointer;
        align-items: center;
        justify-content: center;
    }

    .hamburger i {
        font-size: 24px;
    }

    .contact-btn-wrapper {
        display: none;
    }
    
    .navbar {
        margin: 0;
        order: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-width: 0;
    }

    /* Language Switcher in Mobile Header */
    .lang-dropdown {
        display: flex !important;
        margin: 0 10px;
        flex-shrink: 0;
        position: static !important;
        transform: none !important;
        z-index: 1002 !important;
    }

    .lang-drop-btn {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .logo {
        gap: 8px;
        max-width: 55%; /* Allow space for branding */
        order: 1;
        min-width: 0;
        flex: 0 1 auto;
    }

    .logo img {
        height: 55px; /* Shorter for landscape */
        flex-shrink: 0;
    }

    .logo-text h1 {
        font-size: clamp(0.85rem, 2.8vw, 1.25rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Mobile Drawer Menu */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Right under header */
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(12px);
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        text-align: center;
        gap: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 1001;
    }

    .nav-links.active a {
        font-size: 1.2rem;
        padding: 12px 16px;
        min-height: var(--touch-min);
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Center contact texts on mobile */
    .contact-info,
    .contact .info-box {
        text-align: center;
    }

    .contact .custom-contact-icon {
        display: block;
        margin: 0 auto 10px;
    }
}

/* Tablets / Large Pads (min 768px but less than desktop) */
@media (min-width: 768px) and (max-width: 1199px) {
    .nav-group-side {
        display: none !important; /* Still hide date on tablets to prevent overlap */
    }
}

/* Ensure Date/Time visible ONLY on iPad Pro, laptops & desktops (>1200px) */
@media (min-width: 1201px) {
    .header .container {
        position: relative;
        padding-left: 0;
        display: flex;
        justify-content: space-between;
    }

    .nav-group-main {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .nav-group-side {
        display: flex !important;
        align-items: center;
        margin-inline-end: 15px;
    }

    .date-time-box {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}

/* Small Phones (< 480px) */
@media (max-width: 480px) {
    .logo-text h1 {
        font-size: clamp(0.75rem, 3.5vw, 0.95rem); /* Extra small for long names (شركة...) */
    }
    
    .logo img {
        height: 45px; /* Shorter to save horizontal space */
    }

    .header .container {
        column-gap: 10px; /* Tighter gap */
    }
    
    .lang-drop-btn {
        font-size: 0.58rem;
        padding: 3px 6px;
    }
}

@media (max-width: 968px) {
    .animate-fade-right,
    .animate-fade-left {
        transform: none !important;
    }
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* Landscape Mode Constraint Fixes */
@media (max-width: 968px) and (orientation: landscape) {
    .header .container {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .logo img {
        height: 60px; /* ensure logo fits in short landscape header */
    }
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        min-height: 100svh;
        align-items: center;
        padding-bottom: max(50px, env(safe-area-inset-bottom, 0px));
    }
    .hero-content {
        padding-top: calc(96px + env(safe-area-inset-top, 0px));
    }
    .hero h2 {
        font-size: clamp(1.35rem, 4vw + 0.5rem, 2.1rem);
        margin-bottom: 15px;
    }
    .hero p {
        font-size: clamp(0.9rem, 2vw + 0.5rem, 1.15rem);
        margin-bottom: 20px;
    }
}

/* Real Estate Separate Container */
.real-estate-separate {
    background: linear-gradient(180deg, var(--black-soft), var(--grey-deep));
    padding: 100px 0;
    margin: 40px 0;
    position: relative;
}

.real-estate-box {
    background: linear-gradient(160deg, var(--grey-surface), var(--grey-deep));
    border: 2px solid rgba(201, 162, 39, 0.35);
    padding: 60px;
    border-radius: 30px;
    box-shadow: var(--shadow), 0 0 40px rgba(201, 162, 39, 0.08);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.real-estate-box .icon-large {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 30px;
    filter: drop-shadow(0 0 16px var(--gold-dim));
}

.real-estate-box h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 40px;
    font-weight: 800;
}

.real-estate-content .activities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: right;
    padding: 0;
    list-style: none;
}

html[dir="ltr"] .real-estate-content .activities-list {
    text-align: left;
}

.activities-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--grey-light);
    padding: 12px;
    border-radius: 12px;
    transition: var(--transition);
}

.activities-list li:hover {
    background: rgba(201, 162, 39, 0.08);
}

.activities-list i {
    color: var(--secondary-color);
    margin-top: 5px;
    font-size: 1.2rem;
}

/* Optimize page: align inline legacy colors with dark theme */
.page-optimize [data-i18n="optimizeIntroText"],
.page-optimize [data-i18n="optimize5Note"] {
    color: var(--text-muted) !important;
}

.page-optimize [data-i18n="optimizeIntroTitle"] {
    color: var(--gold-bright) !important;
}

.page-optimize [data-i18n="optimizeClosing"] {
    color: var(--gold-bright) !important;
}

.page-optimize .section-title h2 {
    color: var(--white);
}

.page-optimize .section .animate-up h3 {
    color: var(--gold-bright);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-optimize .section .animate-up:first-of-type h3 {
    margin-top: 0;
}

.about-text strong {
    color: var(--gold-bright);
    font-weight: 800;
}

#form-success-message {
    background: rgba(126, 184, 232, 0.12) !important;
    border: 1px solid rgba(126, 184, 232, 0.35) !important;
    color: var(--grey-light) !important;
}

#form-error-message {
    background: rgba(224, 122, 122, 0.12) !important;
    border: 1px solid rgba(224, 122, 122, 0.35) !important;
    color: var(--red-light) !important;
}

/* Margin Improvements */
.section-separator {
    margin: 60px 0;
}

@media (max-width: 1024px) {
    .real-estate-box {
        padding: 40px;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .real-estate-box {
        padding: 30px;
    }

    .activities-list {
        grid-template-columns: 1fr;
    }
}

/* Footer Bottom Bar (Vision 2030 & Copyright) */
.footer-bottom {
    background: var(--grey-deep);
    padding: 12px 0 max(12px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(201, 162, 39, 0.12);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-vision-logo img {
    height: 40.5px; /* Increased by 35% from 30px */
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-copyright {
    color: var(--grey-light);
}

.footer-copyright p {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/* Full responsive scale: tablets / laptops / desktops / ultrawide / 4K TV    */
/* -------------------------------------------------------------------------- */

/* Tablet portrait & small landscape (600–900px) */
@media (min-width: 600px) and (max-width: 899px) {
    .contact-container {
        gap: clamp(28px, 4vw, 40px);
    }

    .info-item {
        flex: 1 1 min(280px, 100%);
        justify-content: center;
    }
}

/* iPad / tablet landscape & small laptops */
@media (min-width: 900px) and (max-width: 1200px) {
    :root {
        --container-max: 1100px;
    }

    .about-grid {
        gap: clamp(28px, 4vw, 44px);
    }
}

/* Full HD laptops & 24" monitors */
@media (min-width: 1600px) and (max-width: 1919px) {
    :root {
        --container-max: 1480px;
    }

    html {
        font-size: 17px;
    }
}

/* 1080p–1440p desktops, 27" typical */
@media (min-width: 1920px) and (max-width: 2559px) {
    :root {
        --container-max: 1680px;
    }

    html {
        font-size: 17.5px;
    }
}

/* QHD / ultrawide / large 32" */
@media (min-width: 2560px) and (max-width: 3839px) {
    :root {
        --container-max: 1920px;
    }

    html {
        font-size: 18px;
    }

    .section-title h2 {
        font-size: clamp(1.75rem, 2.2vw + 1rem, 3rem);
    }
}

/* 4K / 8K / 100" displays — cap line length, avoid oversized type */
@media (min-width: 3840px) {
    :root {
        --container-max: min(2240px, 88vw);
        --container-pad-x: clamp(48px, 3vw, 120px);
    }

    html {
        font-size: 19px;
    }

    body {
        font-size: 1.05rem;
    }

    .hero h2 {
        font-size: clamp(2.25rem, 2.5vw + 1rem, 4rem);
    }

    .section {
        padding: clamp(100px, 6vw, 140px) 0;
    }
}

/* Coarse pointer / touch: larger tap targets */
@media (pointer: coarse) {
    .lang-drop-btn {
        min-height: var(--touch-min);
        padding-inline: 14px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-dark {
        min-height: var(--touch-min);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .social-links a {
        min-width: var(--touch-min);
        min-height: var(--touch-min);
    }
}

/* Mobile Responsive Footer Bottom */
@media (max-width: 768px) {
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-vision-logo {
        order: 1;
    }

    .footer-copyright {
        order: 2;
    }

    .footer-vision-logo img {
        height: 33.75px; /* Increased by 35% from 25px */
        margin: 0 auto;
    }
}

/* Splash Screen Component (Best of the Best - Minimal Redesign) */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #050505; /* Deep luxury black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
    overflow: hidden;
}

#splash-screen.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

/* Naked Logo Style (No borders, no containers) */
.splash-logo-naked {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-logo-naked img {
    height: clamp(120px, 20vw, 180px);
    width: auto;
    opacity: 0;
    transform: scale(0.95);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.05));
    animation: splashRevealSimple 1.5s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    position: relative;
    z-index: 2;
}

/* Subtle Glowing Halo behind the logo */
.splash-logo-naked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.2), rgba(224, 122, 122, 0.08), transparent 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(40px);
    opacity: 0;
    animation: splashHaloPulse 4s ease-in-out infinite;
}

@keyframes splashHaloPulse {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    30% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
    60% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.95); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.splash-text-minimal h1 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    margin: 0;
    opacity: 0;
    letter-spacing: 2px;
    animation: splashRevealSimple 1.5s cubic-bezier(0.2, 1, 0.3, 1) 0.4s forwards;
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.15);
}

/* Minimal Pulse Bar (Soft fade in/out) */
.splash-pulse-bar {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 20px auto 0;
    opacity: 0;
    animation: splashPulseEffect 2.5s ease-in-out infinite;
}

@keyframes splashRevealSimple {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes splashPulseEffect {
    0%, 100% {
        opacity: 0;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scaleX(1.2);
    }
}

body.splash-active {
    overflow: hidden !important;
    height: 100vh;
}

.splash-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 25%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: splashLogoShimmer 2s infinite;
}

@keyframes splashLogoShimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Default for RTL */
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: var(--black-rich);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.6);
}

html[dir="rtl"] .back-to-top {
    left: 30px;
    right: auto;
}

html[dir="ltr"] .back-to-top {
    right: 30px;
    left: auto;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    html[dir="rtl"] .back-to-top { left: 20px; }
    html[dir="ltr"] .back-to-top { right: 20px; left: auto; }
}


/* --- Inflatable Hall Refinements --- */
.product-contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.primary-contact.person-card {
    margin: 0;
    flex-shrink: 0;
}

.corporate-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 400px;
    align-self: stretch;
}

.info-box-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--grey-light);
}

.info-box-mini i {
    color: var(--gold);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.contact-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--black-rich);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 15px;
    transition: var(--transition);
    text-decoration: none;
}

.contact-action-btn:hover {
    background: var(--gold-bright);
    transform: scale(1.05);
}

/* --- Inflatable Hall Hero Styles --- */
.hall-hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Fixed causes issues on mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    margin-top: -80px;
}

.hall-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hall-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    padding: 40px 20px;
}

.hero-right-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.85);
    color: #0a0a0a;
    padding: 10px 18px;
    font-weight: 700;
    border-radius: 40px;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hall-hero h2 {
    font-size: clamp(1rem, 3.5vw, 2.7rem);
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    color: var(--white);
    line-height: 1.4;
    white-space: nowrap; /* Prevent wrapping on larger screens */
    overflow: hidden;
    text-overflow: ellipsis;
}

.hall-hero p {
    font-size: clamp(0.85rem, 2.5vw, 1.6rem);
    color: var(--gold-bright);
    font-weight: 500;
    max-width: 850px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Pill Badge Style for Hall Hero Subtitle */
.hero-pill-label {
    display: inline-block !important;
    background: rgba(0, 0, 0, 0.72) !important;
    color: var(--gold-bright) !important;
    border: 1px solid rgba(201, 162, 39, 0.4) !important;
    border-radius: 999px !important; /* Full pill shape */
    padding: 10px 28px !important;
    font-size: clamp(0.8rem, 1.8vw, 1.1rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    text-shadow: none !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 20px !important;
    pointer-events: none; /* Not clickable */
    user-select: none;
    max-width: 90%;
    white-space: normal;
    text-align: center;
}

/* Mobile: Allow wrapping on very small screens */
@media (max-width: 600px) {
    .hall-hero {
        height: auto;
        min-height: 100svh;
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .hall-hero h2 {
        white-space: normal; /* Allow wrap only on small mobile */
        font-size: clamp(1.05rem, 5vw, 1.5rem);
        line-height: 1.5;
    }
    .hall-hero p {
        font-size: 0.9rem;
    }
    .hall-hero-content {
        padding: 20px 12px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .hall-hero {
        height: 70vh;
        min-height: 400px;
    }
    .hall-hero h2 {
        font-size: clamp(1.1rem, 3vw, 1.9rem);
        white-space: nowrap;
    }
}

/* PDF / Print Optimization - FORCED LANDSCAPE */
@page {
    size: A4 landscape; /* FORCED LANDSCAPE BY DEFAULT */
    margin: 10mm;
}

@media print {
    /* Set print properties to allow background colors and images */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .header, .footer, .back-to-top, #splash-screen, .section-separator, .social-links, .btn-primary, .btn-secondary, .btn-dark, .lang-dropdown {
        display: none !important;
    }

    .print-header-only {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        align-items: center;
        gap: 15px;
        padding: 5px 20px;
        border-bottom: 2px solid var(--gold);
        background: var(--black-rich);
    }
    
    .print-header-only img {
        height: 45px;
    }
    
    .print-header-only h2 {
        color: var(--gold-bright);
        margin: 0;
        font-size: 1.8rem;
    }

    body {
        background-color: var(--black-rich) !important;
        color: var(--white) !important;
        width: 100%;
        margin: 0;
        padding: 0;
        padding-top: 80px !important; /* Make room for the fixed repeating header */
    }

    .section {
        padding: 20px 0 !important;
    }

    /* Force Hero to fill first print page correctly */
    .hall-hero {
        min-height: 300px !important;
        height: auto !important;
        margin-top: 0 !important;
        background-attachment: scroll !important;
        page-break-after: always;
        break-after: page;
        padding: 30px 20px !important;
    }

    .hall-hero h2 {
        white-space: normal !important;
        font-size: 1.3rem !important;
        margin-bottom: 12px !important;
        line-height: 1.5 !important;
    }
    
    .hero-company-text {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 0 !important;
    }

    /* Force 1-Column for Spec Row */
    .brochure-spec-row {
        flex-direction: column !important;
        height: auto !important;
        page-break-after: always;
        break-after: page;
        margin-top: 0 !important;
    }
    
    .pdf-page-group {
        page-break-inside: avoid;
        break-inside: avoid;
        page-break-after: always;
        break-after: page;
        padding-bottom: 20px;
    }

    .spec-side-img {
        width: 100% !important;
        max-height: 220px !important;
    }
    
    .spec-side-img img {
        object-fit: cover !important;
        height: 220px !important;
    }
    
    .spec-side-content {
        width: 100% !important;
        padding: 15px !important;
    }

    /* Contact wrapper stacks vertically in print */
    .product-contact-wrapper {
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .product-contact-wrapper .person-card,
    .product-contact-wrapper .corporate-contact-info {
        max-width: 100% !important;
        width: 100% !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .hall-card, .person-card, .corporate-contact-info, .gallery-section-wrapper {
        page-break-inside: avoid;
        break-inside: avoid;
        box-shadow: none !important;
        margin-bottom: 15px !important;
        width: 100% !important;
    }
    
    /* Force 1-Column for all grids */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .hall-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .gallery-item {
        height: 150px !important;
    }
    
    .main-project-gallery {
        grid-template-columns: 1fr !important;
    }
    
    .main-project-gallery .gallery-item.featured {
        height: 220px !important;
    }

    /* Hide interactive elements not needed in PDF */
    .nav-back-buttons,
    .lightbox,
    .back-to-top,
    .hamburger {
        display: none !important;
    }
}


/* --- Main Project Gallery Styles --- */
.main-project-gallery {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.gallery-item.featured {
    height: 400px;
    border-width: 2px;
    border-color: var(--gold);
}

@media (max-width: 768px) {
    .main-project-gallery {
        grid-template-columns: 1fr;
    }
    .gallery-item.featured {
        height: 300px;
    }
}


/* --- Robust Gallery Fixes --- */
.hall-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
    gap: 25px !important;
    margin-bottom: 50px !important;
    overflow: hidden;
}

.main-project-gallery {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)) !important;
    gap: 35px !important;
    margin-bottom: 60px !important;
}

.gallery-section-wrapper {
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item {
    position: relative !important;
    transform: none !important; /* Prevent unintended offsets from parent transitions */
    width: 100% !important;
        min-height: 260px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: hidden !important;
    }

    .gallery-item img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    cursor: zoom-in;
}

.lightbox-enabled .gallery-item img:hover {
    transform: scale(1.05) !important;
    filter: brightness(1.1);
}

/* --- Fullscreen Lightbox Styles --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border: 2px solid var(--gold);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--white);
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

html[dir="ltr"] .lightbox-close {
    right: auto;
    left: 35px;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--gold-bright);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -50px;
    color: var(--white);
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
}

.lightbox-next {
    left: 20px;
}

.lightbox-prev {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--gold);
    color: var(--black-rich);
}

@media print {
    .lightbox {
        display: none !important;
    }
}

/* --- Inflatable Hall Contact Section --- */
.product-contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 0 auto;
    max-width: 1200px;
}

.product-contact-wrapper .person-card {
    margin: 0 !important; /* Cancel global auto margins */
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.product-contact-wrapper .corporate-contact-info {
    margin: 0 !important;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.corporate-contact-info .info-box-mini {
    display: flex;
    align-items: center;
    gap: 15px;
}

.corporate-contact-info .info-box-mini i {
    color: var(--gold);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.corporate-contact-info .info-box-mini p,
.corporate-contact-info .info-box-mini a {
    color: var(--white);
    margin: 0;
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.6;
    }

    .corporate-contact-info .info-box-mini span[dir="ltr"] {
        direction: ltr;
        unicode-bidi: embed;
        display: inline-block;
    }
    .product-contact-wrapper .corporate-contact-info {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .main-project-gallery, .hall-gallery {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .gallery-item.featured {
        height: 250px !important;
    }
    .gallery-item {
        height: 220px !important;
    }
    .contact-footer-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .contact-footer-row .address-card,
    .contact-footer-row .email-card {
        min-width: 100% !important;
        max-width: 100% !important;
        text-align: right !important;
    }
}


/* --- PDF Consistency & Design Perfection --- */
@page {
    size: A4 landscape;
    margin: 10mm;
}

@media print {
    .section-title {
        margin-top: 30px !important;
        margin-bottom: 20px !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .service-card {
        padding: 15px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .hall-hero h2 {
        font-size: 2.5rem !important;
    }
    
    .hall-hero p {
        font-size: 1.1rem !important;
    }

    .person-card {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }
}

.hall-card p {
    line-height: 1.8;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}


/* --- Brochure Specific Layouts --- */
.brochure-spec-row {
    display: flex;
    align-items: stretch;
    gap: 40px;
    margin-top: 60px;
    background: var(--grey-deep);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-side-img {
    flex: 1;
    min-height: 500px;
}

.spec-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spec-side-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Print Orientations */
@media print {
    .header, .footer, .back-to-top, #splash-screen {
        display: none !important;
    }
    
    .brochure-spec-row {
        flex-direction: row !important;
        background: white !important;
        border: 1px solid #ccc !important;
        color: black !important;
        height: auto !important;
    }
    
    .spec-side-content {
        padding: 30px !important;
        color: black !important;
    }

    .spec-side-content h3, .spec-side-content .spec-label {
        color: black !important;
    }
}

/* Unused JS print classes removed */
@media screen and (max-width: 968px) {
    .brochure-spec-row {
        flex-direction: column;
    }
    .spec-side-img {
        min-height: 300px;
    }
    .spec-side-content {
        padding: 30px;
    }
}

