/* ==========================================================================
   Abdullrahman Mayhoub — Civil Engineer | Technical Office | BIM Specialist
   Architectural & Human-Crafted Portfolio Stylesheet
   Design Philosophy: Swiss Precision, Architectural Blueprint Grid, High Contrast,
   Surgical Orange Accent, Monospace Metric Figures, No AI Clichés.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ==========================================================================
   Design Tokens & System Variables
   ========================================================================== */
:root {
  /* ==========================================================================
     Official Architectural Executive Theme — Bespoke 5-Tone Organic Palette
     Color 1: #DBD8CD (Chalk Alabaster)
     Color 2: #A6B08B (Sage Khaki)
     Color 3: #568158 (Forest Jade)
     Color 4: #395B40 (Deep Pine)
     Color 5: #334E41 (Deep Forest Slate)
     ========================================================================== */
  --palette-c1: #DBD8CD;
  --palette-c2: #A6B08B;
  --palette-c3: #568158;
  --palette-c4: #395B40;
  --palette-c5: #334E41;

  /* Dark Theme Surfaces (Velvety, Soft, Deep Evergreen) */
  --bg-canvas: #1e2c24;
  --bg-surface: #26382e;
  --bg-surface-raised: #2f4539;
  --bg-surface-card: #25392f;
  --bg-subtle: rgba(219, 216, 205, 0.05);

  /* Signature Forest & Sage Colors */
  --abak-navy-dark: #17241d;
  --abak-navy: #23362c;
  --abak-teal: #334E41;
  --abak-teal-light: #395B40;
  --abak-gold: #A6B08B;
  --abak-gold-light: #DBD8CD;
  --abak-gold-dark: #568158;
  --abak-gold-glow: rgba(166, 176, 139, 0.22);
  --abak-gold-subtle: rgba(166, 176, 139, 0.12);

  /* Subtle Architectural Hairline Rules */
  --border-hairline: rgba(219, 216, 205, 0.1);
  --border-medium: rgba(166, 176, 139, 0.22);
  --border-focus: rgba(166, 176, 139, 0.6);
  --border-gold: rgba(166, 176, 139, 0.28);

  /* Accents */
  --accent-orange: #A6B08B;
  --accent-orange-hover: #DBD8CD;
  --accent-orange-subtle: rgba(166, 176, 139, 0.15);
  --accent-orange-glow: rgba(166, 176, 139, 0.25);
  --accent-cyan: #A6B08B;
  --accent-cyan-subtle: rgba(166, 176, 139, 0.12);

  /* Luxury Typography Contrast */
  --text-primary: #DBD8CD;
  --text-secondary: #c2c8b8;
  --text-tertiary: #92a088;
  --text-inverse: #1e2c24;
  --text-gold: #A6B08B;

  /* Card Surfaces */
  --card-bg: #25392f;
  --card-border: rgba(166, 176, 139, 0.18);
  --card-hover-border: rgba(166, 176, 139, 0.55);
  --card-shadow: 0 12px 32px rgba(12, 22, 17, 0.35);
  --card-shadow-hover: 0 20px 48px rgba(12, 22, 17, 0.5), 0 0 0 1px var(--abak-gold);

  /* Live Photo Dossier Cards */
  --dossier-bg: #23362c;
  --dossier-text: #DBD8CD;
  --dossier-desc: #c2c8b8;
  --dossier-border: rgba(166, 176, 139, 0.2);
  --dossier-shadow: 0 12px 35px rgba(12, 22, 17, 0.35);
  --dossier-shadow-hover: 0 24px 55px rgba(12, 22, 17, 0.5), 0 0 0 1px var(--abak-gold);

  /* Prestigious Luxury Architecture Typography Fonts */
  --font-arabic-display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-arabic-body: 'IBM Plex Sans Arabic', 'Alexandria', system-ui, sans-serif;
  --font-latin: 'Plus Jakarta Sans', 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Corners */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Easing */
  --ease-tactile: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.18s;
  --duration-normal: 0.3s;
}

/* Light Theme — Soft Warm Alabaster Vellum & Deep Forest */
[data-theme="light"] {
  --palette-c1: #17241d;
  --palette-c2: #2d4236;
  --palette-c3: #395B40;
  --palette-c4: #568158;
  --palette-c5: #1e2c24;

  --bg-canvas: #f6f5f0;
  --bg-surface: #ffffff;
  --bg-surface-raised: #edeae0;
  --bg-surface-card: #ffffff;
  --bg-subtle: rgba(51, 78, 65, 0.04);

  --abak-navy-dark: #23362c;
  --abak-navy: #334E41;
  --abak-teal: #395B40;
  --abak-teal-light: #568158;
  --abak-gold: #395B40;
  --abak-gold-light: #568158;
  --abak-gold-dark: #23362c;
  --abak-gold-glow: rgba(57, 91, 64, 0.18);
  --abak-gold-subtle: rgba(57, 91, 64, 0.08);

  --border-hairline: rgba(51, 78, 65, 0.1);
  --border-medium: rgba(51, 78, 65, 0.18);
  --border-focus: rgba(57, 91, 64, 0.45);
  --border-gold: rgba(57, 91, 64, 0.24);

  --accent-orange: #395B40;
  --accent-orange-hover: #23362c;
  --accent-orange-subtle: rgba(57, 91, 64, 0.08);
  --accent-orange-glow: rgba(57, 91, 64, 0.16);
  --accent-cyan: #568158;
  --accent-cyan-subtle: rgba(86, 129, 88, 0.1);

  --text-primary: #17241d;
  --text-secondary: #33483c;
  --text-tertiary: #52665b;
  --text-inverse: #ffffff;
  --text-gold: #395B40;

  --card-bg: #ffffff;
  --card-border: rgba(51, 78, 65, 0.14);
  --card-hover-border: rgba(57, 91, 64, 0.45);
  --card-shadow: 0 8px 24px rgba(51, 78, 65, 0.06);
  --card-shadow-hover: 0 16px 38px rgba(51, 78, 65, 0.14), 0 0 0 1px var(--abak-gold);

  --dossier-bg: #ffffff;
  --dossier-text: #17241d;
  --dossier-desc: #33483c;
  --dossier-border: rgba(51, 78, 65, 0.15);
  --dossier-shadow: 0 10px 30px rgba(51, 78, 65, 0.08);
  --dossier-shadow-hover: 0 18px 45px rgba(51, 78, 65, 0.16), 0 0 0 1px var(--abak-gold);
}

/* ==========================================================================
   Base & Organic Surface Reset (Clean, Soft, No Blueprint Grids)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14.5px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  transition: background-color var(--duration-normal), color var(--duration-normal);
}

body {
  font-family: var(--font-arabic-body);
  background-color: var(--bg-canvas);
  background-image: none; /* Smooth, soft, clean canvas without blueprint grids */
  color: var(--text-primary);
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--duration-normal), color var(--duration-normal);
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -80px;
  right: 20px;
  background: var(--accent-orange);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 700;
  text-decoration: none;
  transition: top var(--duration-fast) var(--ease-tactile);
}
.skip-link:focus {
  top: 20px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-tactile);
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  transition: all var(--duration-fast) var(--ease-tactile);
}

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

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Monospace Metric / Coordinate Chips */
.metric-num, .coord-tag {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

/* ==========================================================================
   Header Global Dock (الشريط العلوي المثبت الموحد لكافة الصفحات)
   ========================================================================== */
.header-global-dock {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(12, 22, 17, 0.28);
}

/* ==========================================================================
   Top Utility Bar (Compact & Sleek Bar — White text & SCE Associate)
   ========================================================================== */
.top-utility-bar {
  background: var(--palette-c5);
  border-bottom: 1px solid rgba(219, 216, 205, 0.12);
  font-size: 10px;
  color: #ffffff;
  padding: 3px 0;
  position: relative;
  z-index: 1002;
  transition: all var(--duration-fast);
}

[data-theme="light"] .top-utility-bar {
  background: var(--palette-c5);
  color: #ffffff;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar-contact-list {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  flex-wrap: wrap;
}

.top-bar-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 9.5px;
  transition: opacity var(--duration-fast);
}

.top-bar-contact-item:hover {
  opacity: 0.85;
  color: #ffffff;
}

.top-bar-contact-item svg {
  color: var(--palette-c2);
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.top-bar-text-white {
  color: #ffffff !important;
  font-weight: 600;
}

.top-bar-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* بادج مهندس مشارك معتمد بالهيئة السعودية للمهندسين */
.top-bar-accreditation {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(86, 129, 88, 0.3);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(166, 176, 139, 0.45);
  letter-spacing: -0.1px;
}

.pulse-dot-gold {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* زر ورابط لينكد إن الشهير باللون الأزرق الرسمي */
.top-bar-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0a66c2;
  color: #ffffff !important;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  font-family: var(--font-latin);
  text-decoration: none;
  transition: all var(--duration-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  border: 1px solid #005a9e;
}

.top-bar-linkedin svg {
  width: 10px;
  height: 10px;
  fill: #ffffff;
  flex-shrink: 0;
}

.top-bar-linkedin:hover {
  background: #004182;
  border-color: #004182;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(10, 102, 194, 0.45);
}

/* زر تبديل اللغة الأنيق (AR / EN) */
.top-bar-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(219, 216, 205, 0.12);
  color: #ffffff !important;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 9.5px;
  font-weight: 700;
  font-family: var(--font-latin);
  border: 1px solid rgba(219, 216, 205, 0.28);
  cursor: pointer;
  transition: all var(--duration-fast);
  text-decoration: none;
}

.top-bar-lang-btn:hover {
  background: var(--palette-c3);
  border-color: var(--abak-gold);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.top-bar-lang-btn svg {
  color: var(--palette-c2);
  flex-shrink: 0;
}

/* LTR Direction Overrides for English Mode */
[dir="ltr"] {
  font-family: var(--font-latin), system-ui, sans-serif;
}

[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

[dir="ltr"] .card-arrow svg,
[dir="ltr"] .hero-cta-row .btn-primary svg {
  transform: scaleX(1) !important;
}

[dir="ltr"] .top-bar-contact-list {
  flex-direction: row;
}

[dir="ltr"] .modal-bullet-list {
  padding-left: 20px;
  padding-right: 0;
}

[dir="ltr"] .breadcrumbs span {
  display: inline-block;
}

/* ==========================================================================
   Header & Sticky Luxury Navigation (Ultra-Compact, Sleek & Single-Line)
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 1001;
  background: rgba(30, 44, 36, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(166, 176, 139, 0.2);
  transition: background var(--duration-normal), border var(--duration-normal);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(51, 78, 65, 0.14);
}

.header-inner {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Brand Identity */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: auto;
  height: 25px;
  max-width: 65px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
  transition: transform var(--duration-fast) var(--ease-tactile);
}

[data-theme="dark"] .brand-logo-img {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6)) brightness(1.12);
}

[data-theme="light"] .brand-logo-img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.brand:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-names {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.brand-arabic {
  font-family: var(--font-arabic-display);
  font-size: 11.8px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  line-height: 1;
}

.brand-dot {
  color: var(--abak-gold);
}

.brand-english {
  font-family: var(--font-latin);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
  line-height: 1;
}

.brand-sub {
  display: none !important;
}

/* Nav Menu - Ultra Compact Luxury Capsule */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  flex-wrap: nowrap;
}

[data-theme="light"] .nav-menu {
  background: rgba(7, 37, 48, 0.04);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap !important;
  line-height: 1.2;
  transition: all var(--duration-fast) var(--ease-tactile);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-link:hover {
  background: rgba(7, 37, 48, 0.05);
}

.nav-link.active {
  color: #072530;
  background: linear-gradient(135deg, var(--abak-gold-light), var(--abak-gold));
  font-weight: 700;
  box-shadow: 0 1px 6px var(--abak-gold-glow);
  padding: 3px 9px;
  white-space: nowrap !important;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.header-actions .btn-primary {
  padding: 4px 9px;
  font-size: 10px;
  gap: 4px;
  height: 27px;
  box-shadow: 0 1px 6px var(--abak-gold-glow);
  white-space: nowrap;
}

.header-actions .btn-primary svg {
  width: 11px;
  height: 11px;
}

.header-actions .btn-secondary {
  padding: 4px 8px;
  font-size: 10px;
  gap: 4px;
  height: 27px;
  white-space: nowrap;
}

.header-actions .btn-secondary svg {
  width: 11px;
  height: 11px;
}

.header-actions .theme-toggle-btn {
  padding: 3px 7px;
  font-size: 9.5px;
  gap: 4px;
  height: 27px;
  white-space: nowrap;
}

.header-actions .theme-toggle-btn svg {
  width: 11px;
  height: 11px;
}

.footer-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(166, 176, 139, 0.08);
  border: 1px solid rgba(166, 176, 139, 0.25);
  color: var(--abak-gold-light);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration-fast);
}

.footer-portal-link:hover {
  background: var(--palette-c3);
  border-color: var(--abak-gold);
  color: #ffffff;
  box-shadow: 0 0 10px var(--abak-gold-glow);
  transform: translateY(-1px);
}

[data-theme="light"] .footer-portal-link {
  background: rgba(51, 78, 65, 0.05);
  border-color: rgba(51, 78, 65, 0.2);
  color: var(--palette-c1);
}

[data-theme="light"] .footer-portal-link:hover {
  background: var(--palette-c3);
  color: #ffffff;
}

/* ==========================================================================
   Refined Compact Luxury Buttons (متناسقة ومترتبة ومتصغرة)
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 16px;
  height: 34px;
  background: linear-gradient(135deg, var(--palette-c4) 0%, var(--palette-c5) 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 12px rgba(27, 43, 34, 0.3);
  transition: all var(--duration-fast) var(--ease-tactile);
  border: 1px solid rgba(166, 176, 139, 0.35);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--palette-c3) 0%, var(--palette-c4) 100%);
  color: #ffffff;
  border-color: rgba(219, 216, 205, 0.5);
  box-shadow: 0 5px 18px rgba(57, 91, 64, 0.4);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #2d4236 0%, #17241d 100%);
  color: #ffffff;
  border-color: rgba(23, 36, 29, 0.35);
  box-shadow: 0 3px 12px rgba(23, 36, 29, 0.2);
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #395B40 0%, #2d4236 100%);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 15px;
  height: 34px;
  background: rgba(166, 176, 139, 0.08);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(166, 176, 139, 0.24);
  backdrop-filter: blur(8px);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-tactile);
}

.btn-secondary:hover {
  background: rgba(166, 176, 139, 0.18);
  border-color: var(--abak-gold);
  color: #ffffff;
  transform: translateY(-1px);
}

[data-theme="light"] .btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(51, 78, 65, 0.24);
  color: #17241d;
  box-shadow: 0 2px 8px rgba(51, 78, 65, 0.06);
}

[data-theme="light"] .btn-secondary:hover {
  background: #17241d;
  border-color: #17241d;
  color: #ffffff;
}

/* ==========================================================================
   Executive Tactile Theme Switch Capsule (Dark / Light)
   ========================================================================== */
.theme-toggle-capsule {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  position: relative;
  outline: none;
  user-select: none;
  flex-shrink: 0;
  height: 28px;
}

.capsule-track {
  position: relative;
  width: 54px;
  height: 26px;
  background: rgba(18, 30, 23, 0.95);
  border: 1px solid rgba(166, 176, 139, 0.35);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 3px;
  direction: ltr !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(255, 255, 255, 0.05);
  transition: all var(--duration-fast) var(--ease-tactile);
}

.theme-toggle-capsule:hover .capsule-track {
  border-color: var(--abak-gold);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 10px var(--abak-gold-glow);
}

.theme-toggle-capsule:focus-visible .capsule-track {
  outline: 2px solid var(--abak-gold);
  outline-offset: 2px;
}

.capsule-option {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
  pointer-events: none;
}

.capsule-option svg {
  width: 12px;
  height: 12px;
}

.capsule-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--palette-c3), var(--palette-c4));
  border: 1px solid rgba(219, 216, 205, 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s, box-shadow 0.25s;
  z-index: 1;
}

/* Dark Theme State: Thumb on the Moon (left side) */
[data-theme="dark"] .capsule-thumb {
  transform: translateX(0);
  background: linear-gradient(135deg, #334E41, #23362c);
  border-color: rgba(166, 176, 139, 0.45);
  box-shadow: 0 0 8px rgba(86, 129, 88, 0.55);
}

[data-theme="dark"] .option-dark {
  color: #DBD8CD;
}

[data-theme="dark"] .option-light {
  color: rgba(219, 216, 205, 0.35);
}

/* Light Theme State: Thumb on the Sun (right side) */
[data-theme="light"] .capsule-track {
  background: #e8ece2;
  border-color: rgba(51, 78, 65, 0.28);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .capsule-thumb {
  transform: translateX(26px);
  background: linear-gradient(135deg, #ffffff, #f4f6f0);
  border-color: rgba(51, 78, 65, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 10px rgba(166, 176, 139, 0.45);
}

[data-theme="light"] .option-dark {
  color: rgba(51, 78, 65, 0.4);
}

[data-theme="light"] .option-light {
  color: #395B40;
}

.theme-toggle-btn {
  display: none !important;
}

.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(35, 54, 44, 0.95);
  border: 1.5px solid var(--abak-gold);
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 10px var(--abak-gold-glow);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-tactile);
  flex-shrink: 0;
  padding: 0;
}

[data-theme="dark"] .menu-toggle {
  background: rgba(28, 44, 36, 0.96);
  border: 1.5px solid var(--abak-gold);
  color: #ffffff;
  box-shadow: 0 0 12px var(--abak-gold-glow), 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .menu-toggle:hover,
[data-theme="dark"] .menu-toggle:active,
[data-theme="dark"] .menu-toggle[aria-expanded="true"] {
  background: var(--palette-c3);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(166, 176, 139, 0.65);
  transform: scale(1.05);
}

[data-theme="light"] .menu-toggle {
  background: #ffffff;
  border: 1.5px solid var(--palette-c3);
  color: var(--palette-c1);
  box-shadow: 0 2px 8px rgba(27, 43, 34, 0.12);
}

[data-theme="light"] .menu-toggle:hover,
[data-theme="light"] .menu-toggle:active,
[data-theme="light"] .menu-toggle[aria-expanded="true"] {
  background: var(--palette-c5);
  color: #ffffff;
}

/* ==========================================================================
   ABAK-Style Cinematic Hero Section with Live Photography
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 44px 0 44px;
  background-image: 
    linear-gradient(135deg, rgba(23, 36, 29, 0.94) 0%, rgba(35, 54, 44, 0.86) 50%, rgba(23, 36, 29, 0.96) 100%),
    url('../images/arch_hero_landmark.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-gold);
  overflow: hidden;
}

[data-theme="light"] .hero-section {
  background-image: 
    linear-gradient(135deg, rgba(246, 245, 240, 0.95) 0%, rgba(237, 234, 224, 0.88) 50%, rgba(246, 245, 240, 0.96) 100%),
    url('../images/arch_hero_landmark.jpg');
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 48px;
  align-items: center;
}

/* Badges */
.badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(7, 37, 48, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

[data-theme="light"] .badge {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(51, 78, 65, 0.2);
  color: #17241d;
  box-shadow: 0 2px 8px rgba(51, 78, 65, 0.06);
}

.badge-sce {
  background: rgba(194, 155, 56, 0.12);
  border-color: rgba(194, 155, 56, 0.4);
  color: var(--abak-gold-light);
  font-family: var(--font-arabic-display);
  font-weight: 700;
}

[data-theme="light"] .badge-sce {
  background: rgba(86, 129, 88, 0.12);
  border-color: rgba(86, 129, 88, 0.35);
  color: #17241d;
}

.badge-sce .status-ping {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--abak-gold);
  box-shadow: 0 0 10px var(--abak-gold);
  animation: pulseGold 2s infinite;
}

/* Hero Typography */
.hero-title-group {
  margin-bottom: 22px;
}

.hero-name-arabic {
  font-family: var(--font-arabic-display);
  font-size: clamp(19px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--palette-c1);
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-bottom: 5px;
}

[data-theme="light"] .hero-name-arabic {
  color: #17241d;
}

.hero-name-english {
  font-family: var(--font-latin);
  font-size: clamp(11.5px, 1.3vw, 14px);
  font-weight: 600;
  color: var(--palette-c2);
  margin-bottom: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

[data-theme="light"] .hero-name-english {
  color: #2d4236;
}

.hero-subtitle-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(7, 37, 48, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--abak-gold-light);
  backdrop-filter: blur(8px);
}

[data-theme="light"] .hero-subtitle-bar {
  background: rgba(255, 255, 255, 0.95);
  color: var(--abak-gold-dark);
}

.hero-subtitle-bar .sep {
  color: var(--border-medium);
}

.hero-bio {
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 620px;
  margin-bottom: 30px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Left: Engineering Blueprint Console Card */
.blueprint-console {
  background: rgba(7, 37, 48, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 30px;
  position: relative;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

[data-theme="light"] .blueprint-console {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(51, 78, 65, 0.18);
  box-shadow: 0 16px 40px rgba(51, 78, 65, 0.12);
}

.blueprint-console::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--abak-gold), var(--abak-gold-light));
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-tertiary);
}

[data-theme="light"] .console-header {
  border-bottom-color: rgba(51, 78, 65, 0.12);
  color: #52665b;
}

.console-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--abak-gold-light);
  font-weight: 700;
}

[data-theme="light"] .console-title {
  color: #17241d;
}

.console-grid-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.metric-cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(194, 155, 56, 0.2);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all var(--duration-fast);
}

[data-theme="light"] .metric-cell {
  background: rgba(51, 78, 65, 0.03);
  border-color: rgba(51, 78, 65, 0.14);
}

.metric-cell:hover {
  border-color: var(--abak-gold);
  transform: translateY(-2px);
}

[data-theme="light"] .metric-cell:hover {
  border-color: #395B40;
  background: rgba(51, 78, 65, 0.06);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--abak-gold-light);
  line-height: 1.2;
  margin-bottom: 4px;
}

[data-theme="light"] .metric-value {
  color: #17241d;
}

.metric-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

[data-theme="light"] .metric-label {
  color: #33483c;
}

.console-status-box {
  background: rgba(194, 155, 56, 0.09);
  border: 1px solid rgba(194, 155, 56, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

[data-theme="light"] .console-status-box {
  background: rgba(86, 129, 88, 0.08);
  border-color: rgba(86, 129, 88, 0.25);
}

.status-dot-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--abak-gold);
  box-shadow: 0 0 10px var(--abak-gold);
  flex-shrink: 0;
  animation: pulseGold 2s infinite;
}

.status-text-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

[data-theme="light"] .status-text-title {
  color: #17241d;
}

.status-text-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

[data-theme="light"] .status-text-sub {
  color: #33483c;
}

/* ==========================================================================
   ABAK Milestone Counter Strip (Direct Reference)
   ========================================================================== */
.milestone-strip-section {
  padding: 40px 0;
  background: var(--abak-navy);
  border-bottom: 1px solid var(--border-hairline);
  position: relative;
}

[data-theme="light"] .milestone-strip-section {
  background: #ffffff;
  border-bottom-color: rgba(51, 78, 65, 0.12);
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(194, 155, 56, 0.16);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast);
}

[data-theme="light"] .milestone-item {
  background: #fbfbfa;
  border-color: rgba(51, 78, 65, 0.12);
}

.milestone-item:hover {
  border-color: var(--abak-gold);
  transform: translateY(-2px);
}

[data-theme="light"] .milestone-item:hover {
  border-color: #395B40;
  box-shadow: 0 4px 15px rgba(51, 78, 65, 0.08);
}

.milestone-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(194, 155, 56, 0.12);
  color: var(--abak-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .milestone-icon {
  background: rgba(57, 91, 64, 0.08);
  color: #395B40;
}

.milestone-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--abak-gold-light);
  line-height: 1.1;
  margin-bottom: 4px;
}

[data-theme="light"] .milestone-num {
  color: #17241d;
}

.milestone-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}

[data-theme="light"] .milestone-title {
  color: #33483c;
}

/* ==========================================================================
   Home Sections: The 4 Live Photography Dossiers (Cards)
   ========================================================================== */
.home-cards-section {
  padding: 80px 0;
}

.cards-section-heading {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  align-items: center;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--abak-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(194, 155, 56, 0.1);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(194, 155, 56, 0.25);
  display: inline-block;
}

.section-title-large {
  font-family: var(--font-arabic-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
}

[data-theme="light"] .section-kicker {
  background: rgba(57, 91, 64, 0.08);
  color: #2d4236;
  border-color: rgba(57, 91, 64, 0.22);
}

[data-theme="light"] .section-title-large {
  color: #17241d;
}

[data-theme="light"] .section-desc {
  color: #33483c;
}

/* 4 Cards Grid - Compact High-Density Architectural Dossiers */
.four-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 860px) {
  .four-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Compact Architectural Dossier Card with Dedicated Top Image */
.live-photo-card {
  background: var(--card-bg);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(12, 22, 17, 0.28);
  transition: transform 0.28s var(--ease-tactile), box-shadow 0.28s var(--ease-tactile), border-color 0.28s;
  position: relative;
}

.live-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--abak-gold);
  box-shadow: 0 12px 30px rgba(12, 22, 17, 0.45), 0 0 0 1px var(--abak-gold);
}

.live-photo-card::before,
.live-photo-card::after {
  display: none !important;
}

/* Dedicated Image Box on Top of the Card (Clear & Vibrant) */
.card-media-box {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  background: #0d1a13;
  border-bottom: 1px solid var(--border-hairline);
}

.card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.45s var(--ease-tactile);
}

.live-photo-card:hover .card-media-img {
  transform: scale(1.05);
}

.card-media-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12, 22, 17, 0.55) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Badges positioned inside the media box */
.card-media-box .card-top-row {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.card-num-stamp {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--palette-c1);
  background: rgba(18, 30, 23, 0.88);
  border: 1px solid rgba(166, 176, 139, 0.35);
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  letter-spacing: 0.8px;
}

.card-category-pill {
  font-size: 9.5px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(35, 54, 44, 0.88);
  border: 1px solid rgba(166, 176, 139, 0.35);
  padding: 2.5px 9px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

/* Card Body Wrap */
.card-body-wrap {
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-kicker-line {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--palette-c2);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
  display: block;
}

.card-title {
  font-family: var(--font-arabic-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.35;
  transition: color var(--duration-fast);
}

.live-photo-card:hover .card-title {
  color: #ffffff;
}

.card-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.card-deliverables {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dossier-chip {
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(166, 176, 139, 0.1);
  color: var(--palette-c1);
  border: 1px solid rgba(166, 176, 139, 0.22);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
  border-top: 1px solid var(--border-hairline);
  margin-top: auto;
}

.card-action-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--palette-c1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--duration-fast);
}

.live-photo-card:hover .card-action-text {
  color: #ffffff;
}

.card-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(166, 176, 139, 0.14);
  border: 1px solid rgba(166, 176, 139, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--palette-c1);
  transition: all 0.25s var(--ease-tactile);
}

.live-photo-card:hover .card-arrow {
  background: var(--palette-c3);
  color: #ffffff;
  transform: translateX(-3px);
}

[dir="ltr"] .live-photo-card:hover .card-arrow {
  transform: translateX(3px);
}

[dir="ltr"] .card-arrow svg {
  transform: rotate(180deg);
}

/* Light Theme Rules for Live Photography Dossier Cards */
[data-theme="light"] .live-photo-card {
  background: #ffffff;
  border-color: rgba(51, 78, 65, 0.16);
  box-shadow: 0 4px 18px rgba(51, 78, 65, 0.08);
}

[data-theme="light"] .live-photo-card:hover {
  border-color: #395B40;
  box-shadow: 0 12px 30px rgba(51, 78, 65, 0.16), 0 0 0 1px #395B40;
}

[data-theme="light"] .card-kicker-line {
  color: #395B40;
}

[data-theme="light"] .card-title {
  color: #17241d;
}

[data-theme="light"] .live-photo-card:hover .card-title {
  color: #395B40;
}

[data-theme="light"] .card-desc {
  color: #33483c;
}

[data-theme="light"] .dossier-chip {
  background: rgba(57, 91, 64, 0.08);
  color: #17241d;
  border-color: rgba(57, 91, 64, 0.22);
}

[data-theme="light"] .card-footer {
  border-top-color: rgba(51, 78, 65, 0.12);
}

[data-theme="light"] .card-action-text {
  color: #17241d;
}

[data-theme="light"] .live-photo-card:hover .card-action-text {
  color: #395B40;
}

[data-theme="light"] .card-arrow {
  background: rgba(57, 91, 64, 0.08);
  border-color: rgba(57, 91, 64, 0.22);
  color: #17241d;
}

[data-theme="light"] .live-photo-card:hover .card-arrow {
  background: #395B40;
  color: #ffffff;
}

/* ==========================================================================
   Internal Pages Standard Header & Breadcrumbs
   ========================================================================== */
.page-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 36px;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  height: 32px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--duration-fast);
  text-decoration: none;
}

.btn-back-home:hover {
  background: rgba(166, 176, 139, 0.15);
  border-color: var(--palette-c2);
  color: var(--palette-c1);
  transform: translateX(2px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent-orange);
}

.breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 700;
}

.page-header {
  margin-bottom: 40px;
}

.page-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.page-title {
  font-family: var(--font-arabic-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 820px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  margin-bottom: 36px;
}

.filter-btn {
  padding: 6px 14px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
  border: 1px solid transparent;
}

.filter-btn:hover {
  color: var(--palette-c1);
  background: rgba(166, 176, 139, 0.12);
  border-color: rgba(166, 176, 139, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--palette-c4) 0%, var(--palette-c5) 100%);
  color: var(--palette-c1);
  border: 1px solid rgba(166, 176, 139, 0.35);
  box-shadow: 0 2px 8px rgba(30, 44, 36, 0.3);
  font-weight: 700;
}

/* ==========================================================================
   Projects & BIM Grids & Editorial Cards (Refined High-Density Display)
   ========================================================================== */
.projects-grid, .models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

.project-card, .model-card {
  background: var(--card-bg);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.28s var(--ease-tactile);
}

.project-card:hover, .model-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border);
  box-shadow: var(--card-shadow-hover);
}

.project-media,
.project-media-wrap,
.model-media-wrap {
  position: relative;
  width: 100%;
  height: 120px;
  background: #07130e;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--border-hairline);
}

.project-media img,
.project-media-wrap img,
.model-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.4s var(--ease-tactile);
}

.project-card:hover .project-media img,
.project-card:hover .project-media-wrap img,
.model-card:hover .model-media-wrap img {
  transform: scale(1.04);
}

.project-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(9, 12, 16, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
}

[dir="ltr"] .project-tag {
  right: auto;
  left: 8px;
}

.zoom-hint {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(9, 12, 16, 0.88);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5px 7px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.9;
}

[dir="ltr"] .zoom-hint {
  left: auto;
  right: 8px;
}

.project-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-orange);
  margin-bottom: 4px;
  font-weight: 700;
}

.project-title {
  font-family: var(--font-arabic-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.35;
}

.project-excerpt {
  font-size: 11.8px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.project-tools {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tool-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-raised);
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
}

.project-btn-details {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--palette-c1);
  transition: color var(--duration-fast);
}

.project-card:hover .project-btn-details {
  color: #ffffff;
}

.project-card:hover .project-btn-details svg {
  transform: translateX(-3px);
}

[dir="ltr"] .project-btn-details svg {
  transform: rotate(180deg);
}

[dir="ltr"] .project-card:hover .project-btn-details svg {
  transform: translateX(3px) rotate(180deg);
}

/* Light Theme Rules for Projects & Models Cards */
[data-theme="light"] .project-card,
[data-theme="light"] .model-card {
  background: #ffffff;
  border-color: rgba(51, 78, 65, 0.14);
  box-shadow: 0 4px 18px rgba(51, 78, 65, 0.06);
}

[data-theme="light"] .project-card:hover,
[data-theme="light"] .model-card:hover {
  border-color: #395B40;
  box-shadow: 0 12px 30px rgba(51, 78, 65, 0.14);
}

[data-theme="light"] .project-meta {
  color: #395B40;
}

[data-theme="light"] .project-title {
  color: #17241d;
}

[data-theme="light"] .project-excerpt {
  color: #33483c;
}

[data-theme="light"] .tool-badge {
  background: #f4f3ed;
  color: #23362c;
  border-color: rgba(51, 78, 65, 0.15);
}

[data-theme="light"] .project-btn-details {
  color: #17241d;
  border-top-color: rgba(51, 78, 65, 0.12);
}

[data-theme="light"] .project-card:hover .project-btn-details {
  color: #395B40;
}

/* ==========================================================================
   Architectural Drone Aerial Survey Console (drone.html)
   ========================================================================== */
.aerial-console-banner {
  background: var(--card-bg);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.aerial-console-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-orange));
}

.aerial-telemetry-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 12px;
}

.telemetry-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.telemetry-rec {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.rec-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: recBlink 1s infinite alternate;
}

@keyframes recBlink {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.aerial-console-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.aerial-statement-title {
  font-family: var(--font-arabic-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.aerial-statement-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.aerial-viewfinder-box {
  background: #020617;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aerial-viewfinder-box:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.aerial-viewfinder-box:hover img {
  transform: scale(1.04);
}

.aerial-viewfinder-box .viewfinder-play-cta > div {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aerial-viewfinder-box:hover .viewfinder-play-cta > div {
  transform: scale(1.1);
  box-shadow: 0 0 28px rgba(219, 216, 205, 0.85);
}

/* CAD Crosshair overlay */
.viewfinder-crosshair {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.viewfinder-crosshair::before,
.viewfinder-crosshair::after {
  content: '';
  position: absolute;
  background: var(--accent-orange);
}
.viewfinder-crosshair::before {
  top: 50%;
  left: calc(50% - 12px);
  width: 24px;
  height: 1px;
}
.viewfinder-crosshair::after {
  top: calc(50% - 12px);
  left: 50%;
  width: 1px;
  height: 24px;
}

.viewfinder-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-orange);
  letter-spacing: 1px;
  margin-top: 10px;
}

/* Drone Works Grid */
.drone-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 45px;
}

.drone-card {
  background: var(--card-bg);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.28s var(--ease-tactile);
}

.drone-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border);
  box-shadow: var(--card-shadow-hover);
}

.drone-media-container {
  position: relative;
  width: 100%;
  height: 165px;
  background: #07130e;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--border-hairline);
}

.drone-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transition: transform 0.4s var(--ease-tactile);
}

.drone-card:hover .drone-media-container img {
  transform: scale(1.04);
}

.drone-type-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(9, 12, 16, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
}

[dir="ltr"] .drone-type-badge {
  right: auto;
  left: 8px;
}

.play-badge-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s;
}

.drone-media-container:hover .play-badge-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.play-button-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.95);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: all 0.25s var(--ease-tactile);
}

.drone-media-container:hover .play-button-circle {
  transform: scale(1.08);
  background: var(--accent-orange);
}

.drone-content {
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.drone-title {
  font-family: var(--font-arabic-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.35;
}

.drone-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ==========================================================================
   About Page Layout & Executive CV Ledger
   ========================================================================== */
.about-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  margin-bottom: 70px;
}

.panel-card, .about-card {
  background: var(--card-bg);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}

.panel-title, .about-card-title {
  font-family: var(--font-arabic-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title svg {
  color: var(--accent-orange);
}

/* ==========================================================================
   Executive Live Profile Card (About Page)
   ========================================================================== */
.executive-profile-card {
  background: var(--abak-navy);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 36px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .executive-profile-card {
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(7, 37, 48, 0.1);
}

.profile-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 2px solid var(--border-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.profile-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-tactile);
}

.profile-photo-frame:hover img {
  transform: scale(1.05);
}

.profile-photo-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  left: 12px;
  background: rgba(7, 37, 48, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--abak-gold-light);
}

.profile-meta-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-name-arabic {
  font-family: var(--font-arabic-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.profile-name-english {
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 600;
  color: var(--abak-gold-light);
}

.profile-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-bio-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.profile-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

@media (max-width: 800px) {
  .executive-profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .profile-photo-frame {
    max-width: 240px;
    margin: 0 auto;
  }
  .profile-badge-row, .profile-cta-buttons {
    justify-content: center;
  }
}

.sce-box {
  background: rgba(194, 155, 56, 0.08);
  border: 1px solid rgba(194, 155, 56, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.sce-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sce-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sce-num {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.sce-num strong {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 15px;
}

.timeline, .career-timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  margin-top: 10px;
}

.timeline::before, .career-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 15px;
  width: 2px;
  background: var(--border-hairline);
}

.timeline-item {
  position: relative;
  padding-right: 44px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 0 4px var(--card-bg);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-orange);
  font-weight: 700;
  margin-bottom: 4px;
  display: inline-block;
}

.timeline-role {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: block;
}

.timeline-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.skills-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skill-cat-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-cat-title svg {
  color: var(--accent-orange);
  width: 16px;
  height: 16px;
}

.skill-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.skill-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-raised);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);
}

.skill-tag.featured {
  background: var(--accent-orange-subtle);
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--accent-orange);
  font-weight: 700;
}

.cv-box {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(15, 20, 28, 0.6) 100%);
  border: 1px solid var(--accent-orange);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-top: 24px;
  text-align: center;
}

/* ==========================================================================
   Modals & Lightbox (<dialog>)
   ========================================================================== */
dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  max-width: 840px;
  width: 92vw;
  margin: auto;
  border: 1px solid var(--border-medium);
}

/* Expansive Cinema-Scale Media Modal (تكبير وتوسيع شاشة تشغيل الفيديو واستعراض الصور) */
dialog#mediaModal {
  max-width: min(1480px, 97vw);
  width: 97vw;
  max-height: 96vh;
}

dialog#mediaModal .modal-body {
  max-height: calc(96vh - 75px);
  padding: 16px 24px 22px;
}

dialog#mediaModal .modal-media-wrap {
  max-height: none;
  height: auto;
  background: transparent;
}

dialog#mediaModal .modal-media-wrap img {
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}

[data-theme="light"] dialog {
  background: #ffffff;
  border-color: #cbd5e1;
}

dialog::backdrop {
  background: rgba(9, 12, 16, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-hairline);
}

.modal-title {
  font-family: var(--font-arabic-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.modal-close-btn:hover {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
}

.modal-body {
  padding: 28px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-media-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: #000000;
  max-height: 220px;
}

.modal-media-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 35%;
}

.modal-section-title {
  font-family: var(--font-arabic-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-bullet-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-right: 18px;
  position: relative;
}

.modal-bullet-list li::before {
  content: '▪';
  position: absolute;
  right: 0;
  color: var(--accent-orange);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
  padding: 50px 0 30px;
}

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

.footer-brand-title {
  font-family: var(--font-arabic-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.footer-brand-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 380px;
}

.footer-nav-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
  font-size: 13px;
  color: var(--text-tertiary);
}

[data-theme="light"] .site-footer {
  background: #edeae0;
  border-top-color: rgba(51, 78, 65, 0.15);
}

[data-theme="light"] .footer-brand-title {
  color: #17241d;
}

[data-theme="light"] .footer-brand-sub {
  color: #33483c;
}

[data-theme="light"] .footer-nav-title {
  color: #17241d;
}

[data-theme="light"] .footer-links a {
  color: #33483c;
}

[data-theme="light"] .footer-links a:hover {
  color: #17241d;
}

[data-theme="light"] .footer-portal-link {
  background: rgba(51, 78, 65, 0.06);
  border-color: rgba(51, 78, 65, 0.22);
  color: #17241d;
}

[data-theme="light"] .footer-portal-link:hover {
  background: #17241d;
  color: #ffffff;
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(51, 78, 65, 0.12);
  color: #52665b;
}

/* Floating Controls (Theme Switcher Removed for Executive Header Switch) */
.floating-theme-switch {
  display: none !important;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media (max-width: 1040px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .milestone-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  header.site-header nav {
    display: contents;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(18, 32, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--abak-gold);
    border-top: 1px solid rgba(166, 176, 139, 0.2);
    border-radius: 0;
    flex-direction: column;
    padding: 16px 20px;
    gap: 8px;
    display: none;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
    z-index: 1000;
  }
  [data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 2px solid var(--palette-c3);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
  }
  [data-theme="dark"] .nav-link {
    color: #e5e3db;
    border-bottom: 1px solid rgba(219, 216, 205, 0.08);
  }
  [data-theme="dark"] .nav-link:hover,
  [data-theme="dark"] .nav-link.active {
    background: rgba(57, 91, 64, 0.35);
    color: #ffffff;
    border: 1px solid rgba(166, 176, 139, 0.4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  .menu-toggle {
    display: inline-flex;
  }
  .four-cards-grid {
    grid-template-columns: 1fr;
  }
  .about-grid-layout {
    grid-template-columns: 1fr;
  }
  .aerial-console-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }
  .top-bar-contact-list {
    gap: 10px;
    font-size: 10px;
  }
  .top-bar-accreditation {
    font-size: 9.5px;
    padding: 2px 7px;
  }

  /* Compact Luxury Header for iPhone & Mobile Screens */
  .header-inner {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }
  .brand-english {
    display: none;
  }
  .brand-arabic {
    font-size: 13px;
    white-space: nowrap;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  /* On iPhone: Hide text labels to leave plenty of breathing room */
  .header-actions .theme-toggle-btn .theme-label {
    display: none !important;
  }
  .header-actions .theme-toggle-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  .header-actions .theme-toggle-btn svg {
    width: 14px;
    height: 14px;
  }
  .header-actions .btn-primary span {
    display: none !important;
  }
  .header-actions .btn-primary {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  .header-actions .btn-primary svg {
    width: 14px;
    height: 14px;
  }
  /* Anchor Three Dots (Menu Toggle) firmly on the far LEFT edge */
  .menu-toggle {
    display: inline-flex !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    order: 10;
    margin-right: 2px;
  }
}

@media (max-width: 600px) {
  .top-bar-contact-list li:nth-child(3) {
    display: none;
  }
  .top-bar-accreditation span:last-child {
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .milestone-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid, .models-grid, .drone-gallery-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-name-arabic {
    font-size: 28px;
  }
  .console-grid-metrics {
    grid-template-columns: 1fr;
  }
  .floating-theme-switch {
    bottom: 16px;
    left: 16px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ==========================================================================
   WELCOMING DRONE SYSTEM (نظام ترحيب الدرون الطائر عالي التقنية)
   ========================================================================== */

/* طبقة الترحيب الشاملة - غير معطلة لتصفح الموقع ومتمركزة في المنتصف */
.drone-welcome-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.drone-welcome-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* وحدة الدرون الطائرة الحرة - متمركزة تماماً في منتصف الشاشة */
.drone-flyer-unit {
  position: relative;
  width: 500px;
  max-width: min(500px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  pointer-events: none;
}

/* طائرة الدرون وحركتها الفيزيائية */
.drone-craft-wrapper {
  position: relative;
  width: 220px;
  height: 140px;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.65));
}

/* مسار المرور الترحيبي للدرون عبر الموقع (Fly-by Sweep) */
.drone-flyer-unit.is-flyby {
  animation: droneFlyBySweep 4.6s cubic-bezier(0.25, 1, 0.4, 1) forwards;
}

/* إخفاء أي رسائل أو نوافذ ترحيبية كما طلب المستخدم بدقة */
.drone-hud-speech {
  display: none !important;
}

/* شعاع كشاف الرصد والمسح (Searchlight / Scanner Cone) */
.drone-searchlight-beam {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 240px;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, rgba(166, 176, 139, 0.35) 0%, rgba(86, 129, 88, 0.1) 60%, transparent 100%);
  pointer-events: none;
  filter: blur(3px);
  opacity: 0.8;
  animation: searchlightPulseSweep 3.2s ease-in-out infinite alternate;
}

/* مراوح الدرون ودورانها فائق السرعة */
.drone-rotor-spinning {
  transform-origin: 0 0;
}
.drone-rotor-spinning.rotor-cw {
  animation: rotorSpinCW 0.08s linear infinite;
}
.drone-rotor-spinning.rotor-ccw {
  animation: rotorSpinCCW 0.08s linear infinite;
}

/* أضواء الملاحة البحرية والجوية (Port Red & Starboard Green) */
.nav-led.led-red {
  animation: navLedPulseRed 1.2s ease-in-out infinite alternate;
}
.nav-led.led-green {
  animation: navLedPulseGreen 1.2s ease-in-out infinite alternate;
}
.nav-strobe {
  animation: navStrobeFlash 0.7s infinite;
}
.drone-camera-glow {
  animation: cameraPulseGlow 1.8s ease-in-out infinite alternate;
}

/* بطاقة المحادثة واستقبال الزوار (Engineering Telemetry HUD) */
.drone-hud-speech {
  position: relative;
  width: 100%;
  margin-top: 10px;
  background: rgba(7, 37, 48, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--abak-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 25px rgba(194, 155, 56, 0.25);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.5s ease 0.6s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
  overflow: hidden;
}

.drone-flyer-unit.is-hovering .drone-hud-speech {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* رأس بطاقة HUD */
.drone-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(4, 22, 29, 0.85);
  border-bottom: 1px solid rgba(194, 155, 56, 0.25);
}

.drone-hud-telemetry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--abak-gold-light);
  letter-spacing: 0.5px;
}

.hud-live-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: navStrobeFlash 0.9s infinite;
}

.hud-tag {
  font-weight: 700;
  color: #fff;
}

.hud-metric {
  color: var(--text-tertiary);
  font-size: 9.5px;
}

.drone-hud-close {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.drone-hud-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* محتوى بطاقة الترحيب */
.drone-hud-body {
  padding: 14px 16px 12px;
}

.drone-hud-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--abak-gold);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.drone-hud-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.4;
}

.drone-hud-message {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.drone-hud-signature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--abak-gold-light);
  border-top: 1px dashed rgba(194, 155, 56, 0.2);
  padding-top: 8px;
}

.drone-hud-signature .signature-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--abak-gold);
}

/* أزرار الإجراء في بطاقة الدرون */
.drone-hud-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
}

.drone-hud-actions .drone-btn-explore {
  flex: 1;
  padding: 8px 14px;
  font-size: 12.5px;
  justify-content: center;
}

.drone-hud-actions .drone-btn-dismiss {
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
}

/* الزر العائم لإعادة استدعاء الدرون الترحيبي (Floating Launcher Dock) */
.floating-drone-launcher {
  position: fixed;
  bottom: 20px;
  left: 110px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--palette-c4) 0%, var(--palette-c5) 100%);
  color: var(--palette-c1);
  border: 1px solid rgba(166, 176, 139, 0.4);
  padding: 6px 14px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-drone-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(57, 91, 64, 0.45);
  background: linear-gradient(135deg, var(--palette-c3) 0%, var(--palette-c4) 100%);
  border-color: var(--palette-c1);
  color: #fff;
}

.floating-drone-launcher .launcher-drone-icon {
  display: flex;
  align-items: center;
  color: var(--abak-gold);
  animation: droneGentleHover 2s infinite ease-in-out;
}

/* ==========================================================================
   DRONE ANIMATION KEYFRAMES
   ========================================================================== */

/* حركة المرور السينمائي الترحيبي للدرون عبر الصفحة ثم الاختفاء الهادئ في الأفق */
@keyframes droneFlyBySweep {
  0% {
    transform: translate3d(95vw, -120px, 0) rotate(18deg) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translate3d(45vw, -10px, 0) rotate(10deg) scale(0.85);
  }
  45% {
    opacity: 1;
    transform: translate3d(0, 35px, 0) rotate(-2deg) scale(1.05);
  }
  70% {
    opacity: 0.95;
    transform: translate3d(-40vw, 10px, 0) rotate(-10deg) scale(0.85);
  }
  92% {
    opacity: 0.5;
    transform: translate3d(-85vw, -80px, 0) rotate(-18deg) scale(0.45);
  }
  100% {
    opacity: 0;
    transform: translate3d(-105vw, -140px, 0) rotate(-24deg) scale(0.2);
  }
}

/* حركة التحليق الواقعية المستقرة في الهواء */
@keyframes droneNaturalHover {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(-1.5deg);
  }
  50% {
    transform: translateY(3px) rotate(0.8deg);
  }
  75% {
    transform: translateY(-5px) rotate(1.2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* حركة المغادرة والركون */
@keyframes droneFlyAwayToDock {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  30% {
    transform: translate3d(-40px, -30px, 0) scale(0.9) rotate(-12deg);
  }
  100% {
    transform: translate3d(-70vw, 85vh, 0) scale(0.2) rotate(-25deg);
    opacity: 0;
  }
}

/* دوران شفرات المروحة */
@keyframes rotorSpinCW {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotorSpinCCW {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

/* وميض أضواء الملاحة */
@keyframes navLedPulseRed {
  0% {
    filter: drop-shadow(0 0 2px #ef4444);
    opacity: 0.6;
  }
  100% {
    filter: drop-shadow(0 0 10px #ef4444);
    opacity: 1;
  }
}

@keyframes navLedPulseGreen {
  0% {
    filter: drop-shadow(0 0 2px #22c55e);
    opacity: 0.6;
  }
  100% {
    filter: drop-shadow(0 0 10px #22c55e);
    opacity: 1;
  }
}

@keyframes navStrobeFlash {
  0%, 85%, 100% {
    opacity: 0.2;
    filter: none;
  }
  90%, 95% {
    opacity: 1;
    filter: drop-shadow(0 0 14px #ffffff);
  }
}

@keyframes cameraPulseGlow {
  0% {
    filter: drop-shadow(0 0 3px #38bdf8);
  }
  100% {
    filter: drop-shadow(0 0 12px #38bdf8);
  }
}

@keyframes searchlightPulseSweep {
  0% {
    transform: translateX(-50%) rotate(-4deg);
    opacity: 0.35;
  }
  100% {
    transform: translateX(-50%) rotate(4deg);
    opacity: 0.7;
  }
}

@keyframes droneGentleHover {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-1.5deg);
  }
  100% {
    transform: translateY(2px) rotate(1.5deg);
  }
}

/* ملاءمة الشاشات الصغيرة والهواتف - تمركز الدرون */
@media (max-width: 640px) {
  .drone-welcome-layer {
    padding-top: 60px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .drone-flyer-unit {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }

  .drone-craft-wrapper {
    width: 190px;
    height: 120px;
  }

  .drone-hud-title {
    font-size: 14.5px;
  }

  .drone-hud-message {
    font-size: 12px;
  }

  .floating-drone-launcher {
    bottom: 20px;
    left: 95px;
    padding: 7px 11px;
    font-size: 11.5px;
  }
}

/* ==========================================================================
   Full-Width Engineering Panoramic Showcase (الصورة الهندسية البانورامية المدمجة)
   ========================================================================== */
.panoramic-showcase-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--palette-c5);
  border-bottom: 1px solid rgba(166, 176, 139, 0.2);
}

.panoramic-slider-wrapper {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .panoramic-slider-wrapper {
    height: 205px;
  }
}

@media (max-width: 768px) {
  .panoramic-slider-wrapper {
    height: 185px;
  }
}

@media (max-width: 480px) {
  .panoramic-slider-wrapper {
    height: 165px;
  }
}

.panoramic-slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.panoramic-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  z-index: 1;
}

.panoramic-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.panoramic-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.03);
  transition: transform 3.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.panoramic-slide.active .panoramic-slide-img {
  transform: scale(1);
}

/* Subtle Architectural Vignette & Gradient Overlays */
.panoramic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 22, 17, 0.45) 0%,
    rgba(12, 22, 17, 0.1) 35%,
    rgba(12, 22, 17, 0.45) 70%,
    rgba(12, 22, 17, 0.85) 100%
  ),
  radial-gradient(
    circle at 50% 50%,
    transparent 50%,
    rgba(12, 22, 17, 0.5) 100%
  );
  pointer-events: none;
}

[data-theme="light"] .panoramic-overlay {
  background: linear-gradient(
    180deg,
    rgba(12, 22, 17, 0.35) 0%,
    rgba(12, 22, 17, 0.08) 40%,
    rgba(12, 22, 17, 0.5) 80%,
    rgba(7, 37, 48, 0.8) 100%
  );
}

/* Glassmorphism Floating HUD Information Card (Comfortably Raised Above Controls) */
.panoramic-content-container {
  position: absolute;
  bottom: 54px;
  right: 0;
  left: 0;
  z-index: 8;
  pointer-events: none;
}

.panoramic-hud-card {
  pointer-events: auto;
  max-width: 480px;
  background: rgba(18, 32, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(166, 176, 139, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: hudCardSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hudCardSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panoramic-hud-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--abak-gold-light);
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}

.hud-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulseGold 2s infinite;
}

.panoramic-hud-title {
  font-family: var(--font-arabic-display);
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px 0;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.panoramic-hud-desc {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  margin: 0 0 4px 0;
}

.panoramic-chips {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.panoramic-chip {
  display: inline-block;
  background: rgba(86, 129, 88, 0.35);
  border: 1px solid rgba(166, 176, 139, 0.3);
  color: var(--abak-gold-light);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 600;
}

/* Controls & 3-Second Progress Bar */
.panoramic-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 22, 17, 0.95) 100%);
  padding-bottom: 8px;
}

/* 3-Second Countdown Timer Track */
.panoramic-timer-track {
  width: 100%;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.panoramic-timer-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--abak-gold), #22c55e);
  box-shadow: 0 0 6px var(--abak-gold-glow);
  transition: width 0.05s linear;
}

.panoramic-controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panoramic-nav-arrows {
  display: flex;
  align-items: center;
  gap: 5px;
}

.panoramic-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(18, 32, 25, 0.85);
  border: 1px solid rgba(166, 176, 139, 0.35);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.panoramic-nav-btn:hover {
  background: var(--palette-c3);
  border-color: var(--abak-gold);
  color: var(--abak-gold-light);
  transform: scale(1.08);
}

.panoramic-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.panoramic-dot {
  width: 22px;
  height: 5px;
  border-radius: 2.5px;
  background: rgba(219, 216, 205, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all var(--duration-normal);
  padding: 0;
}

.panoramic-dot:hover {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.08);
}

.panoramic-dot.active {
  width: 34px;
  background: linear-gradient(90deg, #22c55e, #10b981);
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.95), 0 0 4px #ffffff;
}

[data-theme="dark"] .panoramic-dot {
  background: rgba(219, 216, 205, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .panoramic-dot.active {
  background: linear-gradient(90deg, #4ade80, #22c55e);
  border-color: #ffffff;
  box-shadow: 0 0 14px #22c55e, 0 0 4px #ffffff;
}

/* Light Theme Rules for Panoramic Showcase HUD & Controls */
[data-theme="light"] .panoramic-hud-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(51, 78, 65, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .panoramic-hud-tag {
  color: #2d4236;
}

[data-theme="light"] .panoramic-hud-title {
  color: #17241d;
}

[data-theme="light"] .panoramic-hud-desc {
  color: #33483c;
}

[data-theme="light"] .panoramic-chip {
  background: rgba(57, 91, 64, 0.08);
  border-color: rgba(57, 91, 64, 0.22);
  color: #17241d;
}

[data-theme="light"] .panoramic-controls-bar {
  background: linear-gradient(180deg, transparent 0%, rgba(246, 245, 240, 0.95) 100%);
}

[data-theme="light"] .panoramic-timer-track {
  background: rgba(51, 78, 65, 0.15);
}

[data-theme="light"] .panoramic-timer-bar {
  background: linear-gradient(90deg, #395B40, #22c55e);
}

[data-theme="light"] .panoramic-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(51, 78, 65, 0.2);
  color: #17241d;
}

[data-theme="light"] .panoramic-nav-btn:hover {
  background: #17241d;
  color: #ffffff;
}

[data-theme="light"] .panoramic-dot {
  background: rgba(51, 78, 65, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .panoramic-dot.active {
  background: linear-gradient(90deg, #395B40, #22c55e);
  border-color: #ffffff;
}

@media (max-width: 640px) {
  .panoramic-content-container {
    bottom: 30px;
    padding: 0 10px;
  }
  .panoramic-hud-card {
    padding: 8px 10px;
    max-width: 100%;
  }
  .panoramic-hud-title {
    font-size: 12px;
  }
  .panoramic-hud-desc {
    display: none;
  }
  .panoramic-chips {
    display: none;
  }
  .panoramic-controls-inner {
    padding: 0 12px;
    justify-content: space-between;
  }
  .panoramic-dots {
    order: 2;
    margin-left: 0;
    gap: 6px;
  }
  .panoramic-nav-arrows {
    order: 1;
  }
  .panoramic-dot {
    width: 18px;
    height: 5px;
    border-radius: 2.5px;
  }
  .panoramic-dot.active {
    width: 28px;
  }
}


