/* ============================================================
   RETAJ — Public Design System
   Production & Event Vibe • HR Global Design Language
   Version 3.0 — Cinematic Stage Experience
   ============================================================ */

/* ── Performance: AOS safety net for mobile & reduced-motion ──
   Ensures no content is ever invisible if AOS JS loads late.
   The JS initAOS() function removes data-aos attrs on mobile,
   but this CSS is the safety fallback (paint vs. JS execution).   */
@media (max-width: 767px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-aos], [data-aos].aos-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}


/* ─── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* ── Brand Palette — Emerald Edition (anchor: #1BCC96) ── */
  --color-primary:     #0D3528;   /* Deep forest green  — rich, dark, luxe       */
  --color-accent:      #1BCC96;   /* Vibrant emerald    — main highlight color    */
  --color-bg:          #FFFFFF;   /* Clean white                                  */
  --color-bg-alt:      #F0FBF7;   /* Emerald-tinted off-white for alt sections   */
  --color-text:        #091510;   /* Near-black with green undertone              */
  --color-subtext:     #4A7A65;   /* Muted sage-grey for secondary text           */
  height:400px!important;
  --color-white:       #FFFFFF;
  --color-border:      #B8E8D4;   /* Soft emerald-tinted border                   */

  /* ── Cinematic Glow Tokens — Emerald Edition ── */
  /* "gold-glow" → now emerald glow (names kept for zero code churn) */
  --gold-glow:         rgba(27, 204, 150, 0.42);
  --gold-glow-soft:    rgba(27, 204, 150, 0.20);
  --gold-glow-xs:      rgba(27, 204, 150, 0.09);
  /* "navy-glow" → now deep-forest glow */
  --navy-glow:         rgba(13,  53,  40, 0.30);
  --navy-glow-soft:    rgba(13,  53,  40, 0.15);
  /* Glass surfaces use deep forest with high opacity */
  --glass-bg:          rgba( 8,  28,  20, 0.90);
  --glass-border:      rgba(27, 204, 150, 0.15);
  /* Shimmer stays white — works on any palette */
  --shimmer-gradient:  linear-gradient(105deg, rgba(255,255,255,0) 35%, rgba(255,255,255,0.50) 50%, rgba(255,255,255,0) 65%);
  /* Hero overlay: deep forest → near-black with green tint */
  --hero-overlay:      radial-gradient(circle at 50% 35%, rgba(13, 53, 40, 0.58) 0%, rgba(3, 11, 8, 0.95) 100%);

  /* ── Typography ── */
  --font-main:   'Inter',  sans-serif;
  --font-arabic: 'Cairo',  sans-serif;
  --text-xs:   13px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  36px;
  --text-4xl:  48px;
  --text-hero: 64px;

  /* ── Layout ── */
  --section-py:    90px;
  --container-max: 1280px;
  --container-px:  80px;

  /* ── Elevation ── */
  --shadow-sm:   0 2px 8px  rgba(0, 0, 0, 0.06);
  --shadow-md:   0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg:   0 8px 40px rgba(13, 53, 40, 0.22);
  --shadow-gold: 0 8px 32px var(--gold-glow);
  --shadow-navy: 0 10px 30px var(--navy-glow);

  /* ── Shape ── */
  --radius-sm:  6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* ── Motion ── */
  --transition:        all 0.30s ease;
  --transition-slow:   all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);

  scroll-behavior: smooth;
}

/* ─── 2. GLOBAL BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }

body {
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-main);
  font-size: var(--text-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.rtl {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
}

a { color: var(--color-accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary); }
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: -0.015em;
}

/* Luxury gold metallic text shimmer */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--color-accent) 0%,
    #0D3528 25%,
    var(--color-accent) 50%,
    #0D3528 75%,
    var(--color-accent) 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 4.5s linear infinite;
  display: inline-block;
}
@keyframes shine {
  to { background-position: 200% center; }
}

section, .section {
  padding: var(--section-py) 0;
  scroll-margin-top: 100px;
}

.container { max-width: var(--container-max); }
.bg-alt, .light-background { background: var(--color-bg-alt) !important; }
.text-accent { color: var(--color-accent) !important; }

/* ─── 3. SECTION EYEBROW ─── neon-pulse glow ───────────────── */
@keyframes neon-pulse {
  0%, 100% { text-shadow: 0 0 6px rgba(27, 204, 150, 0.22); }
  50%       { text-shadow: 0 0 14px rgba(27, 204, 150, 0.65), 0 0 28px rgba(27, 204, 150, 0.22); }
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--text-xs);
  font-weight: 600;
  animation: neon-pulse 3.5s ease-in-out infinite;
}

.section-eyebrow::after {
  content: "";
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-title { padding-bottom: 0; }
.section-title h2, .section-title p { margin: 0; }
.section-title p { font-size: 38px; color: var(--color-primary); }

/* ─── 4. BUTTONS ─── shimmer + sparkle-ready ────────────────── */
.btn-accent, .btn-outline-accent, .btn-outline-white, .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Diagonal shimmer sweep every 3.5s */
.btn-accent::after, .cta-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: var(--shimmer-gradient);
  transform: skewX(-20deg);
  animation: btn-shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shimmer {
  0%  { left: -100%; opacity: 0; }
  20% { opacity: 1; }
  50% { left: 150%; opacity: 1; }
  51% { opacity: 0; }
  100%{ left: 150%; opacity: 0; }
}

.btn-accent, .cta-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
  font-weight: 700;
}
.btn-accent:hover, .cta-btn:hover {
  background: #4A7A65;
  color: var(--color-primary);
  box-shadow: 0 6px 28px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-outline-accent {
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  background: transparent;
}
.btn-outline-accent:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 6px 24px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-outline-white {
  color: #fff;
  border: 2px solid rgba(255,255,255,0.85);
  background: transparent;
}
.btn-outline-white:hover {
  color: var(--color-primary);
  background: #fff;
  box-shadow: 0 6px 20px rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* ─── 5. FORM FEEDBACK ──────────────────────────────────────── */
.php-email-form .loading, .php-email-form .error-message, .php-email-form .sent-message {
  display: none; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px;
}
.php-email-form .loading       { background: var(--color-bg-alt); }
.php-email-form .error-message { background: #df1529; color: #fff; }
.php-email-form .sent-message  { background: #059652; color: #fff; }

/* ─── 6. NAVIGATION ─── glassmorphism ───────────────────────── */
.header {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
  z-index: 999;
}

body.index-page:not(.scrolled) .header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

body.scrolled .header, body.inner-page .header {
  background: var(--glass-bg);
  box-shadow: 0 4px 28px rgba(0,0,0,0.24);
}

.site-navbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark img, .footer-logo img {
  width: auto;
  max-height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.30));
}

/* Nav links */
.navmenu ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }

.navmenu a {
  color: #fff;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  letter-spacing: 0.01em;
}

/* Underline expands from center */
.navmenu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.32s cubic-bezier(0.4,0,0.2,1);
}
.navmenu a:hover::after, .navmenu a.active::after, .navmenu li:hover > a::after { width: 100%; }
.navmenu a:hover, .navmenu a.active { color: var(--color-accent); }

/* Dropdown */
.navmenu .dropdown { position: relative; }
.navmenu .dropdown > a { display: inline-flex; align-items: center; gap: 6px; }
.navmenu .dropdown .toggle-dropdown {
  transition: transform 0.3s ease;
}
.navmenu .dropdown > a.active .toggle-dropdown {
  transform: rotate(180deg);
}

/* ── Desktop-only dropdown popup (≥992px) ── */
@media (min-width: 992px) {
  .navmenu .dropdown ul {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    min-width: 260px;
    padding: 10px 0;
    border-radius: 14px;
    background: rgba(8, 28, 20, 0.97);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.36);
    opacity: 0;
    visibility: hidden;
    display: block;
    transform: translateY(10px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  }
  .navmenu .dropdown:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
  .navmenu .dropdown ul li { padding: 0; }
  .navmenu .dropdown ul a {
    display: block;
    padding: 10px 22px;
    font-size: 14px;
    border-left: 2px solid transparent;
    transition: var(--transition);
  }
  .navmenu .dropdown ul a:hover {
    border-left-color: var(--color-accent);
    color: var(--color-accent);
    padding-left: 28px;
  }
  .navmenu .dropdown ul a::after { display: none; }
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 18px; }

/* Language toggle */
.lang-switch {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lang-switch a {
  color: rgba(255,255,255,0.80);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: var(--transition);
}
.lang-switch a:hover, .lang-switch a.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(201,168,76,0.10);
}

/* Mobile toggle */
.mobile-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* WhatsApp */
.whatsapp-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37,211,102,0.38);
  transition: var(--transition-bounce);
}
.whatsapp-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 16px 36px rgba(37,211,102,0.54);
  color: #fff;
}
.whatsapp-btn i { font-size: 26px; }

/* ─── 7. HERO ─── canvas layer + cinematic animations ──────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

/* Viewport for 3D topo layers */
.hero-viewport {
  position: absolute;
  inset: 0;
  perspective: 2000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 0;
}

/* Rotated 3D Canvas (Covers entire screen background) */
.hero-canvas-3d {
  position: absolute;
  width: 115vw;
  height: 115vh;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease-in-out;
  transform: rotateX(90deg) rotateZ(0deg) scale(0.8);
  opacity: 0;
}

/* Individual layers */
.hero-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

/* ── Layer filters: layer-1 is the PRIMARY sharp image,
   layers 2 & 3 are ultra-subtle depth shaders only ── */
.hero-layer-1 {
  filter: brightness(0.78) contrast(1.12) saturate(1.05);
  z-index: 1;
}
.hero-layer-2 {
  /* Depth accent — barely visible so it never smears over layer-1 */
  filter: brightness(1.0) contrast(1.0);
  opacity: 0.08;
  mix-blend-mode: screen;
  z-index: 2;
}
.hero-layer-3 {
  /* Tonal overlay — kept at near-zero so image stays crisp */
  filter: brightness(1.0) contrast(1.0);
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: 3;
}

/* Topographical repeating radial gradient overlay (Gold accents) */
.hero-contours {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 40px,
    rgba(27, 204, 150, 0.07) 41px,
    transparent 42px
  );
  transform: translateZ(90px);
  pointer-events: none;
}

/* Background Video elements */
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.hero-video-bg-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-video-bg-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 Aspect Ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 Aspect Ratio */
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

/* Film grain filter layer */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.07;
}

/* Interface Metadata Grid overlay */
.hero-interface-meta {
  color: rgba(255, 255, 255, 0.38);
  font-family: monospace;
  font-size: 0.70rem;
  letter-spacing: 0.12em;
  pointer-events: none;
}
.hero-interface-meta .meta-right {
  color: var(--color-accent);
}

/* Cinematic overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

/* Canvas layer — sits above overlay, bokeh floats in front of darkness */
.hero-canvas-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

/* Hero content */
.hero .container {
  position: relative;
  z-index: 3;
  padding-top: 140px;
  padding-bottom: 100px;
}

/* ── Hero H1: char reveal + subtle glow pulse ── */
@keyframes hero-char-in {
  0%   { opacity: 0; filter: blur(10px); transform: translateY(22px) scale(0.86); }
  60%  { filter: blur(0);  }
  100% { opacity: 1; filter: blur(0);  transform: translateY(0) scale(1); }
}

@keyframes hero-title-glow {
  0%, 100% { text-shadow: 0 4px 24px rgba(0,0,0,0.45); }
  50%       { text-shadow: 0 4px 30px rgba(0,0,0,0.45), 0 0 50px rgba(27,204,150,0.22); }
}

.hero h1, .hero h2 {
  color: #fff;
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.12;
  animation: hero-title-glow 5s 1.8s ease-in-out infinite alternate;
}

/* Each char span produced by JS */
.hero-reveal-char {
  display: inline-block;
  will-change: opacity, filter, transform;
}

.hero p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.80);
}

/* Hero scroll-arrow fade on scroll */
.hero a[aria-label="Scroll down"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  color: #fff;
  font-size: 22px;
  animation: hero-bounce 2.2s ease-in-out infinite;
  transition: opacity 0.45s ease, visibility 0.45s ease, border-color 0.3s, color 0.3s;
}
.hero a[aria-label="Scroll down"]:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.hero-scroll-hidden a[aria-label="Scroll down"] {
  opacity: 0;
  visibility: hidden;
}

@keyframes hero-bounce {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(10px); }
}

/* ─── 8. SPOTLIGHT CURSOR ── global mouse glow ──────────────── */
/*#retaj-spotlight-cursor {*/
/*  position: fixed;*/
/*  width: 560px;*/
/*  height: 560px;*/
/*  border-radius: 50%;*/
/*  pointer-events: none;*/
/*  z-index: 5;*/
/*  opacity: 0;*/
/*  transition: opacity 0.55s ease;*/
/*  background: radial-gradient(*/
/*    circle,*/
/*    rgba(27, 204, 150, 0.08) 0%,*/
/*    rgba(27, 204, 150, 0.03) 35%,*/
/*    transparent 65%*/
/*  );*/
/*  transform: translate(-50%, -50%);*/
/*  mix-blend-mode: screen;*/
/*  will-change: left, top;*/
/*}*/

/* ─── 9. CTA SPARKLE PARTICLES ─── (injected by JS) ─────────── */
/*.retaj-spark {*/
/*  position: fixed;*/
/*  border-radius: 50%;*/
/*  pointer-events: none;*/
/*  z-index: 99999;*/
/*  transform: translate(-50%, -50%);*/
/*  will-change: transform, opacity;*/
/*}*/

/* ─── 10. CARD SPOTLIGHT OVERLAY ─── (injected by JS) ──────── */
/*.card-spotlight-overlay {*/
/*  position: absolute;*/
/*  inset: 0;*/
/*  pointer-events: none;*/
/*  opacity: 0;*/
/*  transition: opacity 0.30s ease;*/
/*  border-radius: inherit;*/
/*  z-index: 5;*/
/*}*/

/* ─── 11. HOMEPAGE BANNERS ──────────────────────────────────── */
.homepage-banners { padding-top: 56px; padding-bottom: 56px; }

.homepage-banner-slide {
  min-height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.homepage-banner-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,20,50,0.85), rgba(10,20,50,0.30));
}
[dir="rtl"] .homepage-banner-slide::before {
  background: linear-gradient(270deg, rgba(10,20,50,0.85), rgba(10,20,50,0.30));
}

.homepage-banner-content {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 56px;
  color: #fff;
}
.homepage-banner-content h2 { color: #fff; font-size: 40px; line-height: 1.2; margin: 0; }
.homepage-banners .section-eyebrow { color: var(--color-accent); }
.homepage-banners .carousel-indicators { margin-bottom: 18px; }
.homepage-banners .carousel-indicators [data-bs-target] { width: 9px; height: 9px; border-radius: 50%; }

/* ─── 12. PAGE TITLE ─────────────────────────────────────────── */
.page-title {
  position: relative;
  background: linear-gradient(150deg, rgba(3,12,9,0.98) 0%, rgba(13,53,40,0.95) 100%);
  color: #fff;
  padding: 190px 0 90px;
  text-align: center;
  overflow: hidden;
}

.page-title-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(201,168,76,0.18) 0%, transparent 55%);
}

/* Gold rotating light sweep behind page title */
.page-title::before {
  content: "";
  position: absolute;
  top: -120%;
  left: 50%;
  width: 300px;
  height: 300%;
  background: linear-gradient(180deg, rgba(201,168,76,0.08) 0%, transparent 70%);
  transform: translateX(-50%) rotate(-20deg);
  transform-origin: top center;
  animation: title-beam-sweep 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes title-beam-sweep {
  0%   { transform: translateX(-50%) rotate(-25deg); }
  100% { transform: translateX(-50%) rotate(25deg);  }
}

.page-title h1, .page-title p, .page-title a,
.page-title .current, .page-title .section-eyebrow { position: relative; z-index: 1; }

.page-title h1 { color: #fff; font-size: 48px; margin-bottom: 10px; text-shadow: 0 2px 14px rgba(0,0,0,0.30); }
.page-title p  { color: rgba(255,255,255,0.82); margin-bottom: 18px; }

.breadcrumbs ol {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0; margin: 0;
}
.breadcrumbs li, .breadcrumbs a { color: rgba(255,255,255,0.85); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 8px; color: rgba(255,255,255,0.40); }

/* ─── 13. STAT CARDS ─── glow badges ───────────────────────── */
.stats-card, .secondary-service-card, .testimonial-item,
.portfolio-info-card, .contact-card, .contact-form-card, .why-choose-panel {
  background: #fff;
  border: 1px solid rgba(208,213,221,0.60);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stats-card {
  padding: 34px 28px;
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
  box-shadow: 0 10px 30px var(--navy-glow-soft), var(--shadow-sm);
}

/* Ambient gold radial at top */
.stats-card::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 90px;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.stats-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,168,76,0.40);
  box-shadow: 0 20px 50px var(--navy-glow), 0 0 0 1px rgba(201,168,76,0.22);
}

.stats-card .icon {
  color: var(--color-accent);
  font-size: 38px;
  margin-bottom: 14px;
  display: block;
  transition: transform 0.42s cubic-bezier(0.34,1.56,0.64,1);
}
.stats-card:hover .icon { transform: scale(1.20) rotate(-8deg); }

.stats-card .purecounter, .stats-card .count-value {
  display: block;
  color: var(--color-primary);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ─── 14. SERVICE IMAGE CARDS ─── cinematic lens cards ──────── */
.service-image-card, .portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: box-shadow 0.45s ease, transform 0.45s ease;
  aspect-ratio: 4 / 3;
}

/* Cinematic reflection flare on hover */
.service-image-card::before, .portfolio-card::before {
  content: "";
  position: absolute;
  top: 0; left: -180%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.40) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-30deg);
  transition: left 0.75s ease-in-out;
  z-index: 3;
  pointer-events: none;
}
.service-image-card:hover::before, .portfolio-card:hover::before {
  left: 180%;
}

/* .service-image-card height defined by aspect-ratio */

.service-image-card img, .portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25,0.8,0.25,1);
  display: block;
}

.service-image-card:hover img, .portfolio-card:hover .portfolio-img { transform: scale(1.07); }

/* Multi-layer gold glow on hover */
.service-image-card:hover {
  box-shadow:
    0 0 0 2px var(--color-accent),
    0 0 0 4px rgba(201,168,76,0.28),
    0 20px 60px rgba(0,0,0,0.30);
  transform: translateY(-4px);
}

/* Overlay gradient */
.service-image-overlay, .portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(
    to top,
    rgba(13, 53, 40, 0.88) 0%,
    rgba(13, 53, 40, 0.38) 50%,
    transparent 100%
  );
  color: #fff;
  z-index: 2;
}
.service-image-overlay h3, .portfolio-card-content h4 { color: #fff; margin-bottom: 8px; }
.service-image-overlay i {
  transition: transform 0.42s cubic-bezier(0.34,1.56,0.64,1);
  display: inline-block;
}
.service-image-card:hover .service-image-overlay i { transform: rotate(18deg); }

/* ─── 15. SECONDARY SERVICE CARDS ───────────────────────────── */
.secondary-service-card {
  padding: 30px;
  height: 100%;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

/* Background orb */
.secondary-service-card::before {
  content: "";
  position: absolute;
  bottom: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
  transition: transform 0.55s ease;
}
.secondary-service-card:hover::before { transform: scale(1.7); }

.secondary-service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,168,76,0.42);
  box-shadow: var(--shadow-navy);
}

.secondary-service-card .icon {
  color: var(--color-accent);
  font-size: 34px;
  margin-bottom: 16px;
  display: block;
  transition: var(--transition-bounce);
}
.secondary-service-card:hover .icon { transform: scale(1.16) rotate(-8deg); }

/* ─── 16. FEATURE BLOCKS ─────────────────────────────────────── */
.feature-block { margin-bottom: 72px; }

.feature-number {
  display: inline-block;
  color: var(--color-accent);
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px var(--gold-glow-soft);
}

.feature-block ul { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-block li { position: relative; padding-inline-start: 28px; margin-bottom: 12px; }
.feature-block li i { position: absolute; inset-inline-start: 0; top: 3px; color: var(--color-accent); }

.feature-block img {
  width: 100%;
  height:400px!important;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  transition: box-shadow 0.45s ease, transform 0.45s ease;
}
.feature-block:hover img {
  box-shadow: 0 14px 48px rgba(0,0,0,0.20), 0 0 0 2px rgba(201,168,76,0.20);
  transform: translateY(-5px);
}

/* ─── 17. CLIENT LOGOS ──────────────────────────────────────── */
.clients-marquee-container { overflow: hidden; padding: 32px 0; }
.clients-marquee-content { display: flex; align-items: center; justify-content: space-between; gap: 36px; }

.client-logo img {
  max-height: 52px; width: auto;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.36s ease, transform 0.36s ease;
}
.client-logo img:hover { filter: grayscale(0) opacity(1); transform: scale(1.10); }

/* ─── 18. TESTIMONIALS ──────────────────────────────────────── */
.testimonials .swiper { overflow: hidden; }

.testimonial-item { padding: 40px 36px; text-align: center; transition: var(--transition); }

/* Gold portrait ring */
.testimonial-item img.rounded-circle, .testimonial-item .rounded-circle {
  border: 3px solid var(--color-accent) !important;
  box-shadow: 0 4px 20px var(--gold-glow-soft) !important;
  transition: box-shadow 0.36s ease, transform 0.36s ease;
}
.testimonial-item:hover img.rounded-circle, .testimonial-item:hover .rounded-circle {
  box-shadow: 0 8px 32px var(--gold-glow) !important;
  transform: scale(1.06);
}

.testimonials .swiper-pagination-bullet { background: rgba(13,53,40,0.25); opacity: 1; transition: var(--transition); }
.testimonials .swiper-pagination-bullet-active {
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--gold-glow);
  transform: scale(1.30);
}

/* ─── 19. MARQUEE TAGLINE ───────────────────────────────────── */
.marquee-container {
  overflow: hidden;
  background: var(--color-bg);
  border-top: 1px solid rgba(208,213,221,0.65);
  border-bottom: 1px solid rgba(208,213,221,0.65);
  padding: 24px 0;
  direction: ltr;
  contain: layout paint;
}

.marquee-content {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  min-width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: marquee-scroll-ltr 32s linear infinite;
  backface-visibility: hidden;
}

.marquee-container:hover .marquee-content,
.marquee-container:focus-within .marquee-content {
  animation-play-state: paused;
}

.marquee-text {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  text-rendering: optimizeLegibility;
}
.marquee-text .accent { color: var(--color-accent); }
.marquee-text .word-gold { color: var(--color-accent); }
.marquee-text .word-navy { color: var(--color-primary); }

/* Spinning star accent */
.marquee-text .accent.star {
  display: inline-block;
  animation: spin-star 5s linear infinite;
  font-size: 0.85em;
  vertical-align: middle;
  text-shadow: 0 0 14px var(--gold-glow);
}

@keyframes spin-star   { 100% { transform: rotate(360deg); } }
@keyframes marquee-scroll-ltr {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes marquee-scroll-rtl {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

body.rtl .marquee-container {
  direction: ltr;
}
body.rtl .marquee-content {
  animation-name: marquee-scroll-ltr;
  animation-direction: reverse;
}
body.rtl .marquee-text {
  direction: rtl;
  unicode-bidi: isolate;
}

/* ─── 20. PRE-FOOTER STRIP ──────────────────────────────────── */
.pre-footer {
  background: linear-gradient(135deg, #0a1428 0%, var(--color-primary) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* Ambient orb */
.pre-footer::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.12) 0%, transparent 65%);
  pointer-events: none;
}

/* Sweeping beam */
.pre-footer::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 30%;
  width: 180px;
  height: 200%;
  background: linear-gradient(180deg, rgba(201,168,76,0.06) 0%, transparent 80%);
  transform: rotate(-20deg);
  animation: prefooter-beam 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes prefooter-beam {
  0%   { left: 25%; transform: rotate(-22deg); }
  100% { left: 55%; transform: rotate(15deg); }
}

.pre-footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.pre-footer h2 { color: #fff; font-size: 38px; font-weight: 800; margin: 0; max-width: 780px; line-height: 1.25; }

/* ─── 21. FOOTER ─────────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, #040e0a 0%, #0D3528 100%);
  color: #fff;
  padding-top: 70px;
}

.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr 1fr; gap: 32px; }

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}
.footer h4::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}
body.rtl .footer h4::after { left: auto; right: 0; }

.footer p, .footer li, .footer a, .footer span { color: rgba(255,255,255,0.72); }
.footer a:hover { color: var(--color-accent); }

.footer-links ul, .footer-contact ul { list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: 12px; }

.footer-links a { display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.footer-links a::before {
  content: "›";
  color: var(--color-accent);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-6px);
  transition: var(--transition);
}
.footer-links a:hover::before { opacity: 1; transform: translateX(0); }

.footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact i { color: var(--color-accent); margin-top: 4px; flex-shrink: 0; }

/* Social icons */
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: var(--transition-bounce);
}
.social-links a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary) !important;
  transform: translateY(-4px) scale(1.14);
  box-shadow: 0 8px 22px var(--gold-glow-soft);
}

/* Newsletter */
.newsletter-row { display: flex; gap: 10px; }
.newsletter-row input, .newsletter-row button,
.contact .form-control, .contact textarea, .contact select { border-radius: var(--radius-sm); }

.newsletter-row input {
  flex: 1; min-height: 48px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: #fff; padding: 12px 14px;
  transition: var(--transition);
}
.newsletter-row input:focus {
  outline: none;
  border-color: rgba(201,168,76,0.55);
  background: rgba(255,255,255,0.12);
}
.newsletter-row input::placeholder { color: rgba(255,255,255,0.50); }

.newsletter-row button {
  min-width: 110px; border: 0;
  background: var(--color-accent);
  color: var(--color-primary); font-weight: 700;
  transition: var(--transition); position: relative; overflow: hidden;
}
.newsletter-row button:hover { background: #4A7A65; box-shadow: 0 6px 20px var(--gold-glow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 48px; padding: 18px 0 24px; text-align: center;
}
.footer-bottom p { margin: 4px 0; font-size: 13px; }
.footer-bottom a:hover { color: var(--color-accent); }

/* ─── 22. SCROLL TOP ─────────────────────────────────────────── */
.scroll-top {
  position: fixed; right: 18px; bottom: 92px; z-index: 998;
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--color-accent);
  color: var(--color-primary);
  visibility: hidden; opacity: 0;
  transition: opacity 0.30s ease, visibility 0.30s ease, transform 0.30s ease, box-shadow 0.30s ease;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.scroll-top.active { visibility: visible; opacity: 1; }
.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px var(--gold-glow);
  color: var(--color-primary);
}

/* ─── 23. PRELOADER ─── theatrical dark curtain ─────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: #05090f;  /* Near-black stage */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.85s cubic-bezier(0.70, 0, 0.20, 1);
}

/* Emerald outer ring */
#preloader::before {
  content: "";
  position: absolute;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 4px solid rgba(27, 204, 150, 0.20);
  border-top-color: #1BCC96;
  animation: spin 0.9s linear infinite;
}

/* Forest inner counter-ring */
#preloader::after {
  content: "";
  position: absolute;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(27, 204, 150, 0.65);
  animation: spin 1.4s linear infinite reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Curtain rises upward */
#preloader.curtain-rising {
  transform: translateY(-100%);
}

/* ─── 24. PLAY BUTTON ───────────────────────────────────────── */
.pulsating-play-btn {
  width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(var(--color-accent) 52%, rgba(201,168,76,0.28) 54%);
  position: absolute; inset: 50% auto auto 50%;
  transform: translate(-50%,-50%);
  animation: pulsate 2.2s ease infinite;
}
@keyframes pulsate {
  0%   { box-shadow: 0 0 0 0  rgba(201,168,76,0.55); }
  70%  { box-shadow: 0 0 0 24px rgba(201,168,76,0);   }
  100% { box-shadow: 0 0 0 0  rgba(201,168,76,0);     }
}
.pulsating-play-btn::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-35%,-50%);
  border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #fff;
}

/* ─── 25. CONTACT FORM ──────────────────────────────────────── */
.contact .form-control, .contact select, .contact textarea {
  min-height: 50px;
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  transition: var(--transition);
}
.contact .form-control:focus, .contact select:focus, .contact textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.14);
  outline: none;
}
.contact textarea { min-height: 160px; }

.contact .php-email-form button[type=submit] {
  background: var(--color-primary); color: #fff; border: 0;
  width: 100%; padding: 14px 24px; border-radius: var(--radius-sm);
  font-weight: 600; transition: var(--transition); position: relative; overflow: hidden;
}
.contact .php-email-form button[type=submit]:hover {
  background: var(--color-accent); color: var(--color-primary);
  box-shadow: 0 6px 22px var(--gold-glow); transform: translateY(-2px);
}

.contact-card, .contact-form-card { transition: var(--transition); }
.contact-card:hover {
  border-color: rgba(201,168,76,0.38);
  box-shadow: var(--shadow-navy);
  transform: translateY(-3px);
}

/* ─── 26. PORTFOLIO ─────────────────────────────────────────── */
.portfolio-info-card { padding: 32px; }

.portfolio-masonry {
  column-count: 3;
  column-gap: 24px;
}
.portfolio-masonry [data-aos],
#portfolio-filters[data-aos],
#gallery-filters[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
.portfolio-masonry .portfolio-item {
  display: inline-block;
  width: 100%;
  min-width: 0;
  margin: 0 0 24px;
  break-inside: avoid;
  page-break-inside: avoid;
}
.portfolio-masonry .portfolio-card {
  display: block;
  width: 100%;
  background: transparent;
}
.portfolio-masonry .portfolio-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: transparent;
}
.portfolio-masonry .portfolio-card-placeholder {
  min-height: 260px;
}
.portfolio-masonry .portfolio-img-placeholder {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  background:
    radial-gradient(circle at 50% 35%, rgba(27,204,150,0.20), transparent 42%),
    linear-gradient(135deg, #0d3528 0%, #051610 100%);
}
.portfolio-masonry .portfolio-img-placeholder i {
  font-size: 44px;
}
.portfolio-masonry .portfolio-overlay {
  min-height: 46%;
  padding: 24px;
}
.portfolio-masonry .portfolio-empty {
  display: block;
  column-span: all;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  transition: var(--transition-bounce);
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 16px var(--gold-glow-soft);
}
.portfolio-link {
  color: var(--color-accent) !important; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 4px;
}
.portfolio-link:hover { gap: 10px; }

/* ─── 27. RTL OVERRIDES ─────────────────────────────────────── */
.bi-arrow-right { transition: var(--transition); }

body.rtl .site-navbar, body.rtl .header-actions,
body.rtl .pre-footer-content, body.rtl .footer-contact li,
body.rtl .newsletter-row { direction: rtl; }

body.rtl .feature-block li { padding-inline-start: 0; padding-inline-end: 28px; }
body.rtl .feature-block li i { inset-inline-start: auto; inset-inline-end: 0; }
body.rtl .bi-arrow-right { transform: scaleX(-1); }

body.rtl .navmenu .dropdown ul a { border-left: none; border-right: 2px solid transparent; }
body.rtl .navmenu .dropdown ul a:hover {
  border-right-color: var(--color-accent);
  padding-left: 22px; padding-right: 28px;
}

body.rtl .footer-links a::before { content: "‹"; }
body.rtl .footer h4::after { left: auto; right: 0; }

/* ─── 28. SECTION FADE (Intersection Observer) ───────────────── */
.observe-section {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.observe-section.section-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.marquee-container.observe-section {
  transform: translate3d(0, 14px, 0);
}
.marquee-container.observe-section.section-visible {
  transform: translate3d(0, 0, 0);
}

/* ─── 29. REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-content {
    animation: none !important;
    transform: translate3d(0, 0, 0) !important;
  }
  .observe-section,
  .marquee-container.observe-section {
    opacity: 1;
    transform: none;
  }
}

/* ─── 30. RESPONSIVE — Tablet ≤ 1199px ─────────────────────── */
@media (max-width: 1199px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ─── 31. RESPONSIVE — Mobile ≤ 991.98px ───────────────────── */
@media (max-width: 991.98px) {
  :root { --section-py: 70px; }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
    width: 44px;
    height: 44px;
  }

  .header {
    overflow: hidden;
  }
  .mobile-nav-active .header {
    height: 100vh;
    height: 100dvh;
    background: rgba(5, 18, 12, 0.98);
    border-bottom-color: transparent;
  }
  .site-navbar {
    position: relative;
    z-index: 1002;
    min-height: 86px;
  }
  .brand-mark img {
    max-height: 46px;
  }
  .header-actions {
    gap: 10px;
  }
  .lang-switch {
    gap: 6px;
  }
  .lang-switch a {
    padding: 4px 8px;
  }

  .navmenu {
    position: absolute;
    inset: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(18px);
    padding: 148px clamp(20px, 5vw, 40px) 32px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s ease, visibility 0.32s ease;
    overflow-y: visible;
    overscroll-behavior: contain;
  }
  .navmenu > ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 14px;
    border: 1px solid rgba(27, 204, 150, 0.12);
    border-radius: 8px;
    background: rgba(8, 28, 20, 0.58);
  }
  .navmenu li { width: 100%; margin: 0; }
  .navmenu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
  }
  .navmenu a:hover,
  .navmenu a.active {
    background: rgba(27, 204, 150, 0.10);
  }
  .navmenu a::after { display: none; }
  .navmenu .dropdown > a {
    justify-content: space-between;
    gap: 16px;
  }
  .navmenu .dropdown .toggle-dropdown {
    flex: 0 0 auto;
    font-size: 16px;
  }

  /* ── Mobile: dropdown list hidden by default ── */
  .navmenu .dropdown ul {
    position: static;
    width: 100%;
    min-width: 0;
    display: none;           /* Hidden until .dropdown-active is added   */
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    transform: none;
    border: none;
    backdrop-filter: none;
    margin-top: 8px;
    margin-bottom: 4px;
    padding: 6px 0 6px 18px;
    border-left: 2px solid rgba(27, 204, 150, 0.38);
  }

  /* Show submenu when JS adds .dropdown-active to the <ul> */
  .navmenu .dropdown ul.dropdown-active {
    display: block !important;
    animation: mobileSubIn 0.22s ease forwards;
  }

  @keyframes mobileSubIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Visual cue: tint the parent link gold when dropdown is open */
  .navmenu .dropdown > a.active {
    color: var(--color-accent);
  }
  .navmenu .dropdown > a.active .toggle-dropdown {
    transform: rotate(180deg);
    color: var(--color-accent);
  }

  /* Style submenu links */
  .navmenu .dropdown ul li { margin-bottom: 4px; }
  .navmenu .dropdown ul a {
    font-size: 15px;
    font-weight: 600;
    min-height: 42px;
    padding: 8px 12px;
    color: rgba(255,255,255,0.78);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
  }
  .navmenu .dropdown ul a:hover {
    color: var(--color-accent);
    background: rgba(27,204,150,0.10);
  }
  .navmenu .dropdown ul a::after { display: none; }

  body.rtl .navmenu .dropdown ul {
    padding: 6px 18px 6px 0;
    border-left: 0;
    border-right: 2px solid rgba(27, 204, 150, 0.38);
  }
  body.rtl .navmenu .dropdown ul a,
  body.rtl .navmenu .dropdown ul a:hover {
    border-right: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .mobile-nav-active .navmenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.mobile-nav-active {
    overflow: hidden;
  }

  .header-actions .cta-btn { display: none; }
  .hero h1, .hero h2 { font-size: 42px; }
  .homepage-banner-slide { min-height: 300px; }
  .homepage-banner-content { padding: 36px 28px; }
  .homepage-banner-content h2 { font-size: 30px; }

  .pre-footer-content, .newsletter-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ─── 32. RESPONSIVE — Small Mobile ≤ 767.98px ─────────────── */
@media (max-width: 767.98px) {
  :root {
    --section-py: 60px;
    --text-hero:  38px;
    --text-3xl:   30px;
    --text-4xl:   40px;
  }

  .site-navbar  { min-height: 76px; }
  .page-title   { padding: 160px 0 70px; }
  .page-title h1 { font-size: 32px; }
  .section-title p, .pre-footer h2 { font-size: 26px; }
  .footer-grid  { grid-template-columns: 1fr; }
  .marquee-text { font-size: 26px; }
  .scroll-top   { bottom: 84px; }
  .stats-card .purecounter, .stats-card .count-value { font-size: 42px; }
  .feature-number { font-size: 32px; }
  /*#retaj-spotlight-cursor { display: none; }*/
  #rc-dot, #rc-ring { display: none; }
}

/* ─── 33. CUSTOM MOUSE TRACKER ──────────────────────────────── */

/* Suppress system cursor on true pointer devices only */
@media (hover: hover) and (pointer: fine) {
  html, html *, html *::before, html *::after {
    /*cursor: none !important;*/
  }

  /* ── Restore system cursor inside GLightbox overlay ── */
  /* The custom cursor tracker JS cannot reach the lightbox layer,
     so we must show the native cursor there to avoid invisibility. */
  .glightbox-container,
  .glightbox-container *,
  .glightbox-container *::before,
  .glightbox-container *::after {
    cursor: auto !important;
  }
  .glightbox-container .gbtn,
  .glightbox-container .gnext,
  .glightbox-container .gprev,
  .glightbox-container .gclose {
    cursor: pointer !important;
  }
}

/* ── Inner dot — follows mouse exactly ── */
#rc-dot {
  position: fixed;
  top: 0; left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: left, top;
  transition:
    width    0.18s cubic-bezier(0.34,1.56,0.64,1),
    height   0.18s cubic-bezier(0.34,1.56,0.64,1),
    background 0.20s ease,
    opacity  0.25s ease,
    transform 0.12s ease;
}

/* ── Outer ring — follows with lerp lag ── */
#rc-ring {
  position: fixed;
  top: 0; left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(27, 204, 150, 0.70);
  background: transparent;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: left, top;
  transition:
    width    0.38s cubic-bezier(0.25,0.82,0.25,1),
    height   0.38s cubic-bezier(0.25,0.82,0.25,1),
    border-color 0.32s ease,
    background   0.32s ease,
    opacity  0.28s ease,
    transform 0.15s ease;
}

/* Active (mouse is on page) */
#rc-dot.rc-active  { opacity: 1; }
#rc-ring.rc-active { opacity: 1; }

/* Hover: links / buttons — ring expands, dot shrinks */
#rc-dot.rc-link  { width: 4px; height: 4px; }
#rc-ring.rc-link {
  width: 54px;
  height: 54px;
  border-color: rgba(27, 204, 150, 0.50);
  background: rgba(27, 204, 150, 0.07);
}

/* Hover: image cards / media — ring grows large, turns white tint */
#rc-dot.rc-card  { width: 5px; height: 5px; background: #fff; }
#rc-ring.rc-card {
  width: 68px;
  height: 68px;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(27, 204, 150, 0.04);
}

/* Click snap */
#rc-dot.rc-click  { transform: translate(-50%,-50%) scale(0.45); }
#rc-ring.rc-click {
  transform: translate(-50%,-50%) scale(0.82);
  border-color: rgba(27, 204, 150, 1);
  box-shadow: 0 0 12px rgba(27, 204, 150, 0.55);
}

/* ─── 34. LUXURY MOUSE SPARKLE TRAIL ────────────────────────── */
.mouse-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 999997;
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold-glow);
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.75s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .portfolio-masonry {
    column-count: 2;
    column-gap: 20px;
  }
  .portfolio-masonry .portfolio-item {
    margin-bottom: 20px;
  }
}

@media (max-width: 575.98px) {
  .portfolio-masonry {
    column-count: 1;
  }
}
