:root {
  --nav-bg: #ffffff;
  --bg-light: #0B192C;
  --bg-alt: #081220; /* Darker navy */
  --primary-navy: #081220;
  --secondary-teal: #128277;
  --accent-gold: #C5A059;
  --gold-glow: rgba(197, 160, 89, 0.4);
  --text-dark: #F4F5F8; /* In dark mode, text-dark is actually light */
  --text-light: #FFFFFF;
  --text-muted: #A0AAB5;
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --font-en: 'Montserrat', sans-serif;
  --font-ar: 'Sakkal Majalla', 'Cairo', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body[dir="rtl"] {
  font-family: var(--font-ar);
  font-size: 1.25rem;
}

/* Make headings larger in Arabic because Sakkal Majalla is naturally smaller */
body[dir="rtl"] h1 { font-size: 1.3em; }
body[dir="rtl"] h2 { font-size: 1.25em; }
body[dir="rtl"] h3 { font-size: 1.2em; }
body[dir="rtl"] .nav-links a { font-size: 1.15rem; }
body[dir="rtl"] .btn-primary, body[dir="rtl"] .btn-secondary { font-size: 1.15rem; }

body[dir="rtl"] .hero-headline {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 1.2;
}

.gold-text {
  color: var(--accent-gold);
}

/* -----------------------
   Main Content Layout 
   ----------------------- */
#main-content {
  opacity: 1;
}

html, body {
  background-color: var(--primary-navy) !important;
  background: var(--primary-navy);
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-container {
  padding: 100px 5%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
}

p {
  color: var(--text-dark);
  opacity: 0.8;
  margin-bottom: 20px;
}

/* Buttons */
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  outline: none;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-gold);
  color: var(--primary-navy);
  padding: 16px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #d1b170;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--accent-gold);
  padding: 15px 35px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(11, 25, 44, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 2px;
}

.logo span {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  opacity: 0.8;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.lang-btn {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 20px;
}

body[dir="rtl"] .lang-btn {
  border-left: none;
  border-right: 1px solid rgba(255,255,255,0.2);
  padding-left: 0;
  padding-right: 20px;
}

/* Mobile Nav Controls */
.mobile-controls {
  display: none;
  align-items: center;
  gap: 15px;
}

.mobile-menu-btn {
  color: var(--text-light);
  font-size: 1.8rem;
  display: none;
}

.close-menu-btn {
  display: none;
}

.mobile-only {
  display: none;
}

/* -----------------------
   Premium Hero Section 
   ----------------------- */
.premium-hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  background-color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.global-continuous-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  background: var(--primary-navy);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  animation: floatOrb 20s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
  transition: transform 0.2s ease-out; /* For mouse move JS */
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  background: var(--secondary-teal);
  top: -20%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  background: var(--accent-gold);
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}

.orb-3 {
  width: 40vw;
  height: 40vw;
  background: #1e3a8a; /* Deep blue highlight */
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5vw, -5vh) scale(1.1); }
  66% { transform: translate(-5vw, 5vh) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

.hero-grid {
  position: absolute;
  bottom: -50%;
  left: -50%;
  right: -50%;
  height: 150%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(75deg);
  transform-origin: top;
  animation: gridMove 15s linear infinite;
  z-index: 2;
  transition: transform 0.2s ease-out; /* For mouse move JS */
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 60px; }
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--primary-navy) 100%);
  backdrop-filter: blur(20px);
  opacity: 0.9;
}

.cinematic-content {
  position: relative;
  width: 100%;
  padding-top: 80px; /* Offset for navbar */
  text-align: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 900px;
  width: 100%;
  position: relative;
}

/* --- Hero Animation Sequences --- */
.intro-sequence {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}
.intro-words-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  height: 100px;
}
.intro-words-inline h1 {
  position: absolute;
  font-family: inherit;
  font-weight: 300;
  letter-spacing: 12px;
  color: var(--text-light);
  font-size: clamp(1.2rem, 4vw, 3rem);
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.word-left {
  left: 0%;
  opacity: 0;
  transform: translateX(-20px);
}
.word-right {
  right: 0%;
  opacity: 0;
  transform: translateX(20px);
}
.word-left.enter, .word-right.enter {
  opacity: 1;
  transform: translateX(0);
}
.word-left.merge {
  left: 50%;
  transform: translateX(-50%) scale(1.1);
  filter: blur(8px);
  opacity: 0;
  letter-spacing: 4px;
}
.word-right.merge {
  right: 50%;
  transform: translateX(50%) scale(1.1);
  filter: blur(8px);
  opacity: 0;
  letter-spacing: 4px;
}

.merged-glow-inline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 20vw;
  height: 20vw;
  max-width: 200px;
  max-height: 200px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.5s ease-out;
}
.merged-glow-inline.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.5);
}

.final-hero-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.5s ease-out;
  position: relative;
  z-index: 10;
}
.final-hero-content.show {
  opacity: 1;
  transform: translateY(0);
}

.brand-title {
  font-weight: 600;
  letter-spacing: 12px;
  color: var(--text-light);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 25px;
  text-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 25px;
  color: var(--text-light);
}

body[dir="rtl"] .hero-headline {
  line-height: 1.3;
}

.hero-subtext {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  color: rgba(244, 245, 248, 0.9);
  margin: 0 auto 40px auto;
  max-width: 700px;
  line-height: 1.8;
}



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

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-light);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* -----------------------
   Shared Section Styles 
   ----------------------- */
section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
  background-color: transparent; /* Changed for scroll continuity */
}

/* Flow sections with dark translucent backgrounds for elegance over the continuous background */
.about, .vision-mission, .values, .philosophy, .projects, .contact {
  background-color: rgba(11, 25, 44, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.philosophy {
  background-color: rgba(8, 18, 32, 0.75);
}

.section-subtitle {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 40px;
}

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

/* -----------------------
   About Section 
   ----------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.large-text {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.6;
}

body[dir="rtl"] .large-text {
  line-height: 1.8;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.interactive-glass-panel {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/5;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.5s ease-out;
}

.interactive-glass-panel:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
}

.glass-bg-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, var(--gold-glow), transparent 60%);
  opacity: 0.5;
  animation: slowSpin 15s linear infinite;
  z-index: 0;
}

@keyframes slowSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.glass-content {
  position: relative;
  z-index: 1;
}

.stat-circle-container {
  width: 120px;
  height: 120px;
  position: relative;
  margin: 0 auto 30px auto;
}

.stat-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 4;
}

.progress-circle {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 4;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  stroke-linecap: round;
  animation: drawCircle 3s ease-out forwards 1s;
}

@keyframes drawCircle {
  to { stroke-dashoffset: 60; }
}

.stat-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent-gold);
  text-shadow: 0 0 20px var(--gold-glow);
}

.stat-icon {
  animation: floatIcon 3s ease-in-out infinite alternate;
}

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

.glass-title {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 15px;
  font-weight: 600;
}

.glass-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.float-shape {
  position: absolute;
  background: var(--secondary-teal);
  opacity: 0.2;
}

.shape-square {
  width: 40px;
  height: 40px;
  top: 10%;
  left: 10%;
  animation: rotateFloat 8s linear infinite;
}

.shape-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  bottom: 15%;
  right: 15%;
  background: var(--accent-gold);
  animation: rotateFloat 10s linear infinite reverse;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 25px solid var(--text-light);
  top: 20%;
  right: 15%;
  opacity: 0.1;
  animation: rotateFloat 12s linear infinite;
}

@keyframes rotateFloat {
  0% { transform: rotate(0deg) translate(0, 0); }
  50% { transform: rotate(180deg) translate(15px, 15px); }
  100% { transform: rotate(360deg) translate(0, 0); }
}

/* -----------------------
   Vision & Mission 
   ----------------------- */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border-radius: 8px;
  overflow: hidden;
}

.vm-card {
  padding: 80px 60px;
  background: var(--bg-alt);
}

.vm-card.highlight {
  background-color: #112338;
  color: var(--text-light);
}

.vm-card.highlight p {
  color: rgba(244, 245, 248, 0.9);
}

.vm-icon {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 30px;
}

.vm-card h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.headline-text {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--accent-gold);
}

/* -----------------------
   Core Values 
   ----------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.interactive-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 120px;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid transparent;
}

.card-visible {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.card-visible .value-icon {
  font-size: 2.2rem;
  color: var(--secondary-teal);
}

.card-visible h4 {
  flex-grow: 1;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
}

.expand-icon {
  font-size: 1.5rem;
  color: var(--accent-gold);
  transition: transform 0.4s ease;
}

.interactive-card:hover .expand-icon,
.interactive-card.active .expand-icon {
  transform: rotate(180deg);
}

.card-hidden {
  opacity: 0;
  max-height: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.interactive-card:hover,
.interactive-card.active {
  height: 250px;
  background: rgba(255, 255, 255, 0.07);
  border-bottom: 3px solid var(--accent-gold);
}

.interactive-card:hover .card-hidden,
.interactive-card.active .card-hidden {
  opacity: 1;
  max-height: 150px;
  transform: translateY(0);
  margin-top: 25px;
}

.card-hidden .value-line {
  width: 40px;
  height: 2px;
  background-color: var(--accent-gold);
  margin-bottom: 15px;
}

.card-hidden p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* -----------------------
   Investment Philosophy 
   ----------------------- */
.philosophy {
  color: var(--text-light);
  overflow: hidden;
}

.philosophy::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(18, 130, 119, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.philosophy .section-title {
  color: var(--text-light);
}

.philosophy-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.philosophy p {
  color: rgba(244, 245, 248, 0.85);
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* -----------------------
   Contact Section 
   ----------------------- */
.contact {
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  border-bottom: none;
}

.contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.03"><rect width="100" height="100" fill="none" stroke="%23fff" stroke-width="1"/></svg>') repeat;
  pointer-events: none;
}

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

.contact .section-title {
  color: var(--text-light);
}

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

.contact-methods {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

.contact-link:hover {
  background: var(--accent-gold);
  color: var(--primary-navy);
  transform: translateX(10px);
}

body[dir="rtl"] .contact-link:hover {
  transform: translateX(-10px);
}

.contact-link i {
  font-size: 2rem;
}

.contact-form-container {
  background: var(--bg-light);
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.contact-form .input-group {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(0,0,0,0.2);
  color: var(--text-dark);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-teal);
  box-shadow: 0 0 0 3px rgba(18, 130, 119, 0.1);
}

.w-100 {
  width: 100%;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-form .input-group {
    flex-direction: column;
  }
}


/* -----------------------
   Projects Section 
   ----------------------- */
.projects {
  background-color: var(--bg-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.project-card {
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.project-card.coming-soon:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* retain normal shadow */
  cursor: default;
}

.project-img {
  width: 100%;
  height: 240px;
  background-color: var(--primary-navy);
  position: relative;
  overflow: hidden;
}

.project-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 25, 44, 0.8) 100%);
}

.project-info {
  padding: 30px;
}

.project-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* -----------------------
   Project Modal
   ----------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 25, 44, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-light);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  transform: translateY(30px);
  transition: transform 0.4s ease;
  padding: 40px;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
}

body[dir="rtl"] .close-btn {
  right: auto;
  left: 25px;
}

.modal-body video {
  border-radius: 4px;
  margin-bottom: 30px;
}

.modal-body h2 {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.modal-body p {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 30px;
}

/* -----------------------
   Footer 
   ----------------------- */
.footer {
  background-color: #050b14;
  color: var(--text-light);
  padding: 80px 0 30px;
  position: relative;
  z-index: 5;
}

.flex-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .flex-footer {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
}

.footer-brand h3 {
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--text-light);
}

.footer-brand span {
  color: var(--accent-gold);
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1.2rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-links a:hover {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
  transform: translateY(-3px);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 30px;
  font-size: 0.9rem;
  transition: var(--transition);
}

body[dir="rtl"] .footer-links a {
  margin-left: 0;
  margin-right: 30px;
}

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(244, 245, 248, 0.4);
  margin: 0;
}

/* -----------------------
   Responsive 
   ----------------------- */
@media (max-width: 992px) {
  .about-grid, .vm-grid {
    grid-template-columns: 1fr;
  }
  .vm-card {
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  .mobile-controls {
    display: flex;
  }
  
  .mobile-only {
    display: inline-block !important;
  }
  
  .desktop-only {
    display: none !important;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-alt);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
  }
  
  body[dir="rtl"] .nav-links {
    left: -100%;
    right: auto;
    transition: left 0.4s ease;
  }

  .nav-links.active {
    right: 0;
  }
  
  body[dir="rtl"] .nav-links.active {
    left: 0;
  }

  .nav-links a.nav-item {
    font-size: 1.8rem;
    margin: 15px 0;
  }

  .close-menu-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: var(--text-light);
  }
  
  body[dir="rtl"] .close-menu-btn {
    right: auto;
    left: 25px;
  }

  body[dir="rtl"] .mobile-controls .lang-btn {
    border: none;
    padding: 0;
  }
  
  .word-container h1 {
    font-size: 1.5rem;
    letter-spacing: 4px;
  }

  .brand-title {
    font-size: 2rem;
    letter-spacing: 8px;
  }
  
  .brand-holder {
    font-size: 1rem;
    letter-spacing: 10px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .flex-footer {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .footer-links a {
    margin: 0 15px;
  }
}
