/* ═══════════════════════════════════════════
   VEORA Designs — Section-Specific Styles
   Hero, About, Services, Gallery, etc.
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   1. HERO SECTION — Split Diagonal
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(139, 105, 20, 0.15) 0%, transparent 60%),
    linear-gradient(160deg, #1a120d 0%, #2B1F17 30%, #3D2E23 60%, #2B1F17 80%, #1a120d 100%);
}

/* Hero Content Side */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--container-padding) var(--space-4xl);
  width: 100%;
  background: transparent;
}

.hero__logo-mark {
  margin-bottom: var(--space-xl);
}

.hero__logo-img {
  width: auto;
  height: clamp(120px, 45vw, 180px); /* Further enlarged for maximum premium visibility */
  object-fit: contain;
}

.hero__brand {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.hero__brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  font-weight: 300;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: var(--space-sm);
}

.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--text-on-dark-muted);
  font-weight: 400;
  font-style: italic;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

[dir="rtl"] .hero__tagline {
  font-family: var(--font-arabic);
  font-style: normal;
}

.hero__desc {
  font-size: var(--fs-body);
  color: var(--text-on-dark-muted);
  max-width: 480px;
  margin-bottom: var(--space-2xl);
  line-height: var(--lh-body);
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Hero Image Side */
.hero__image-side {
  display: none;
  position: relative;
}

/* Hero Slideshow Side */
.hero__image-wrapper {
  position: absolute;
  inset: 0;
}

.hero__slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero__slide.active {
  opacity: 1;
  z-index: 2;
}

/* Hero Text Area Geometric Shapes */
.hero__content {
  position: relative;
  overflow: hidden;
}

.hero__text-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero__shape-item {
  position: absolute;
  border: 2px solid var(--gold-border);
  opacity: 0.15;
  transition: all var(--transition-slow);
}

.hero:hover .hero__shape-item {
  opacity: 0.25;
}

.hero__shape-item--1 {
  top: 10%;
  left: -5%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 2px dashed var(--gold-light);
}

.hero__shape-item--2 {
  bottom: 15%;
  right: 10%;
  width: 150px;
  height: 150px;
  transform: rotate(30deg);
}

.hero__shape-item--3 {
  top: 45%;
  left: 15%;
  width: 70px;
  height: 70px;
  border-right: 2.5px solid var(--gold-light);
  border-top: 2.5px solid var(--gold-light);
  transform: rotate(45deg);
}

.hero__shape-item--4 {
  top: 25%;
  right: -5%;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  transform: rotate(15deg);
}

.hero__shape-item--5 {
  bottom: 5%;
  left: 5%;
  width: 120px;
  height: 120px;
  border-left: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(-45deg);
}

.hero__shape-item--6 {
  top: 15%;
  left: 40%;
  width: 90px;
  height: 90px;
  border: 2.5px dashed var(--gold-border);
  border-radius: 50%;
}

/* The diagonal gold line */
.hero__diagonal-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 4px;
  background: var(--gold-gradient);
  transform: skewX(-6deg);
  z-index: 3;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Gold overlay on image */
.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(43, 31, 23, 0.4) 0%,
      rgba(43, 31, 23, 0.1) 50%,
      rgba(212, 175, 55, 0.08) 100%);
  z-index: 1;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  z-index: 5;
}

.hero__scroll-text {
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--gold-light);
  writing-mode: vertical-lr;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--gold-gradient);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    height: 40px;
  }

  50% {
    opacity: 1;
    height: 60px;
  }
}

/* Hero mobile bg fallback */
.hero__mobile-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__mobile-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__mobile-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(43, 31, 23, 0.85) 0%,
      rgba(43, 31, 23, 0.7) 50%,
      rgba(43, 31, 23, 0.9) 100%);
}

@media (min-width: 1024px) {
  .hero {
    display: flex;
    flex-direction: row;
    /* Text Left, Image Right in LTR */
  }

  [dir="rtl"] .hero {
    flex-direction: row-reverse;
    /* Text Right, Image Left in RTL */
  }

  .hero__content,
  .hero__image-side {
    flex: 1 1 50%;
    width: 50%;
  }

  .hero__content {
    padding: 140px var(--space-4xl) var(--space-4xl) var(--container-padding);
  }

  [dir="rtl"] .hero__content {
    padding: 140px var(--container-padding) var(--space-4xl) var(--space-4xl);
  }

  .hero__image-side {
    display: block;
    position: relative;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
    /* Cut on the left of the image in LTR */
  }

  [dir="rtl"] .hero__image-side {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%);
    /* Cut on the right of the image in RTL */
  }

  .hero__mobile-bg {
    display: none;
  }

  .hero__scroll {
    left: auto;
    right: var(--space-2xl);
    transform: none;
  }

  [dir="rtl"] .hero__scroll {
    right: auto;
    left: var(--space-2xl);
  }
}

@media (min-width: 1440px) {
  .hero__content {
    padding-left: 6rem;
    padding-right: var(--space-4xl);
  }

  [dir="rtl"] .hero__content {
    padding-right: 6rem;
    padding-left: var(--space-4xl);
  }
}

/* ═══════════════════════════════════════════
   2. ABOUT SECTION
   ═══════════════════════════════════════════ */
.about {
  position: relative;
  overflow: hidden; /* Prevent reveal animations from breaking mobile viewport width */
}

.about__grid {
  display: grid;
  grid-template-columns: 100%;
  gap: var(--space-3xl);
  align-items: center;
  overflow: hidden;
}

.about__image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.about__slideshow {
  position: relative;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}

.about__slide.active {
  opacity: 1;
  z-index: 2;
}

.about__slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  position: relative;
  z-index: 3;
}

.about__slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-cream-dark);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.about__slider-dots .dot.active {
  background: var(--gold-light);
  transform: scale(1.2);
}

.about__image-frame {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px; /* Constrain inside mobile viewport bounds to prevent horizontal scroll */
  bottom: -10px;
  border: 2px solid var(--gold-border);
  border-radius: var(--radius-md);
  z-index: -1;
  pointer-events: none;
}

[dir="rtl"] .about__image-frame {
  left: 10px;
  right: 10px;
}

@media (min-width: 1024px) {
  .about__image-frame {
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
  }

  [dir="rtl"] .about__image-frame {
    left: -15px;
    right: 15px;
  }
}

/* Geometric Accents for About Text Section */
.about__text-content {
  position: relative;
  padding: var(--space-xl) var(--space-2xl);
  background: rgba(253, 251, 247, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about__geo-accents {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.about__accent-line {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 2px;
  background: var(--gold-gradient-h);
}

[dir="rtl"] .about__accent-line {
  right: auto;
  left: 0;
}

.about__accent-box {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-right: 2px solid var(--gold-border);
  border-bottom: 2px solid var(--gold-border);
  opacity: 0.2;
}

[dir="rtl"] .about__accent-box {
  right: auto;
  left: 0;
  border-right: none;
  border-left: 2px solid var(--gold-border);
}

@media (min-width: 1024px) {
  .about__accent-box {
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
  }

  [dir="rtl"] .about__accent-box {
    right: auto;
    left: -20px;
  }
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: var(--border-thin);
}

.about__stat-number {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.about__stat-label {
  font-size: var(--fs-caption);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-top: var(--space-xs);
}

@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about__image-wrapper img {
    height: 500px;
  }
}

/* ═══════════════════════════════════════════
   3. VISION & MISSION
   ═══════════════════════════════════════════ */
.vision-mission__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  position: relative;
}

.vision-mission__card {
  padding: var(--space-2xl);
  position: relative;
}

.vision-mission__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 3px;
}

[dir="rtl"] .vision-mission__card::before {
  left: auto;
  right: 0;
}

.vision-mission__icon {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

.vision-mission__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-md);
}

/* Divider between vision and mission on desktop */
.vision-mission__divider {
  display: none;
}

@media (min-width: 768px) {
  .vision-mission__grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
  }

  .vision-mission__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-2xl);
  }

  .vision-mission__divider-line {
    width: 1px;
    height: 80%;
    background: var(--gold-gradient);
  }

  .vision-mission__card::before {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   4. PHILOSOPHY
   ═══════════════════════════════════════════ */
.philosophy {
  position: relative;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(139, 105, 20, 0.15) 0%, transparent 60%),
    linear-gradient(160deg, #1a120d 0%, #2B1F17 30%, #3D2E23 60%, #2B1F17 80%, #1a120d 100%);
  color: var(--text-on-dark);
  overflow: hidden;
}

.philosophy .container {
  position: relative;
  z-index: 2;
}

/* Geometric shapes for Philosophy & Contact */
.philosophy__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.philosophy__shape {
  position: absolute;
  opacity: 0.12;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.philosophy:hover .philosophy__shape {
  opacity: 0.22;
}

/* Philosophy specific shapes */
.philosophy__shape--1 {
  top: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  border: 2px solid var(--gold-light);
  border-radius: var(--radius-lg);
  transform: rotate(15deg);
}

.philosophy__shape--2 {
  bottom: 10%;
  right: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2.5px dashed var(--gold-light);
  transform: rotate(-10deg);
}

.philosophy__shape--3 {
  top: 40%;
  right: 25%;
  width: 80px;
  height: 80px;
  border-right: 2.5px solid var(--gold-light);
  border-top: 2.5px solid var(--gold-light);
  transform: rotate(45deg);
}

.philosophy__shape--4 {
  top: 15%;
  right: 5%;
  width: 150px;
  height: 150px;
  border: 1px solid var(--gold-border);
  transform: rotate(60deg);
}

.philosophy__shape--5 {
  bottom: -5%;
  left: 20%;
  width: 180px;
  height: 180px;
  border-left: 2px solid var(--gold-light);
  border-top: 2px solid var(--gold-light);
  transform: rotate(-135deg);
}

/* Contact specific shapes */
.philosophy__shape--contact1 {
  top: -5%;
  right: -10%;
  width: 500px;
  height: 500px;
  border: 2px solid var(--gold-light);
  transform: rotate(35deg);
}

.philosophy__shape--contact2 {
  bottom: -10%;
  left: -10%;
  width: 350px;
  height: 350px;
  border: 2.5px dashed var(--gold-light);
  border-radius: 50%;
}

.philosophy__shape--contact3 {
  bottom: 30%;
  right: 15%;
  width: 120px;
  height: 120px;
  border-left: 2.5px solid var(--gold-light);
  border-bottom: 2.5px solid var(--gold-light);
  transform: rotate(135deg);
}

.philosophy__shape--contact4 {
  top: 10%;
  left: 10%;
  width: 160px;
  height: 160px;
  border: 1px solid var(--gold-border);
  transform: rotate(15deg);
}

.philosophy__shape--contact5 {
  top: 50%;
  left: 30%;
  width: 90px;
  height: 90px;
  border-right: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(45deg);
}

.philosophy h2 {
  color: var(--text-on-dark);
}

.philosophy p {
  color: var(--text-on-dark-muted);
}

.philosophy .section-label {
  color: var(--gold-light);
}

.philosophy__formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-2xl) auto;
  flex-wrap: wrap;
  direction: ltr;
}

.philosophy__word {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-on-dark);
}

.philosophy__plus {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--gold-light);
  font-weight: 300;
}

.philosophy__equals {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--gold-light);
  font-weight: 300;
}

.philosophy__result {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.15em;
}

.philosophy__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-style: italic;
  color: var(--text-secondary);
  max-width: 700px;
  margin: var(--space-2xl) auto 0;
  position: relative;
  padding: 0 var(--space-xl);
  line-height: 1.8;
}

[dir="rtl"] .philosophy__quote {
  font-family: var(--font-arabic);
  font-style: normal;
}

.philosophy__quote::before,
.philosophy__quote::after {
  content: '"';
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold-light);
  opacity: 0.3;
  position: absolute;
  line-height: 1;
}

.philosophy__quote::before {
  top: -10px;
  left: 0;
}

.philosophy__quote::after {
  content: '"';
  bottom: -20px;
  right: 0;
}

[dir="rtl"] .philosophy__quote::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .philosophy__quote::after {
  right: auto;
  left: 0;
}

/* ═══════════════════════════════════════════
   5. VALUES — uses .value-card from components
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   6. SERVICES — uses .service-card from components
   ═══════════════════════════════════════════ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
  }
}

/* ═══════════════════════════════════════════
   7. PROJECTS GALLERY — Masonry
   ═══════════════════════════════════════════ */
.projects__masonry {
  columns: 1;
  column-gap: var(--space-lg);
}

.projects__masonry .gallery-card {
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .projects__masonry {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .projects__masonry {
    columns: 3;
  }
}

/* ═══════════════════════════════════════════
   8. WHY VEORA
   ═══════════════════════════════════════════ */
.why-veora__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .why-veora__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════
   9. CONTACT
   ═══════════════════════════════════════════ */
.contact__centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3xl);
}

.contact__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  width: 100%;
}

@media (min-width: 768px) {
  .contact__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: rgba(253, 251, 247, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-5px);
  background: rgba(253, 251, 247, 0.06);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-gold);
}

.contact-card__icon {
  width: 50px;
  height: 50px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-subtle);
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.5;
}

.contact-card__title {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: var(--space-sm);
}

[dir="rtl"] .contact-card__title {
  font-family: var(--font-arabic);
}

.contact-card__link {
  font-size: var(--fs-small);
  color: var(--gold-light);
  font-weight: 500;
  display: inline-block;
  transition: color var(--transition-fast);
}

.contact-card__link:hover {
  color: var(--text-on-dark);
}

.contact__social-wrapper {
  text-align: center;
}

.contact__social-title {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-md);
}

[dir="rtl"] .contact__social-title {
  font-family: var(--font-arabic);
}

.contact__social-links {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.contact__social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  transition: all var(--transition-base);
}

.contact__social-link svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.5;
}

.contact__social-link:hover {
  background: var(--gold-gradient);
  border-color: transparent;
}

.contact__social-link:hover svg {
  stroke: var(--dark-primary);
}

/* ═══════════════════════════════════════════
   10. FOOTER
   ═══════════════════════════════════════════ */
.footer {
  position: relative;
  background: var(--dark-primary);
  color: var(--text-on-dark);
  padding: var(--space-4xl) 0 var(--space-xl);
  overflow: hidden;
}

/* Geometric Decoration shapes */
.footer__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.footer__shape {
  position: absolute;
  opacity: 0.05;
  transition: opacity var(--transition-slow);
}

.footer:hover .footer__shape {
  opacity: 0.08;
}

.footer__shape--1 {
  /* Diagonal Golden Slash */
  top: -10%;
  right: -5%;
  width: 30%;
  height: 120%;
  background: linear-gradient(135deg, var(--gold-light), transparent);
  transform: rotate(25deg);
  transform-origin: top right;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
}

.footer__shape--2 {
  /* Abstract architectural thin wireframe grid */
  bottom: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  border: 1px solid var(--gold-light);
  transform: rotate(45deg);
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.2) 1px, transparent 1px);
  background-size: 30px 30px;
}

.footer__shape--3 {
  /* Dynamic V logo abstract slice */
  top: 30%;
  left: 45%;
  width: 150px;
  height: 150px;
  border-left: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(-45deg);
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  text-align: center;
}

/* Brand element (first child) occupies the full width */
.footer__top > div:first-child {
  grid-column: 1 / -1;
  margin-bottom: var(--space-md);
}

/* The contact/social info element can also occupy full width or look aligned */
.footer__top > div:last-child {
  grid-column: 1 / -1;
  margin-top: var(--space-sm);
}

.footer__top > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__brand-text {
  color: var(--text-on-dark-muted);
  font-size: var(--fs-small);
  max-width: 320px;
  margin-top: var(--space-md);
  line-height: var(--lh-body);
}

.footer__heading {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
}

.footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1px;
  background: var(--gold-gradient-h);
}

[dir="rtl"] .footer__heading {
  font-family: var(--font-arabic);
}

.footer__link {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--text-on-dark-muted);
  font-size: var(--fs-small);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--gold-light);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  text-align: center;
}

.footer__copyright {
  font-size: var(--fs-caption);
  color: var(--text-on-dark-muted);
  margin: var(--space-xs) 0;
}

.footer__logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[dir="rtl"] .footer__logo-text {
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  letter-spacing: 0;
  font-weight: 800;
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    text-align: left;
    gap: var(--space-2xl);
  }

  /* Reset grid spans for desktop sizes */
  .footer__top > div:first-child,
  .footer__top > div:last-child {
    grid-column: auto;
    margin-bottom: 0;
    margin-top: 0;
  }

  [dir="rtl"] .footer__top {
    text-align: right;
  }

  .footer__top > div {
    align-items: flex-start;
  }

  .footer__heading::after {
    left: 0;
    transform: none;
  }

  [dir="rtl"] .footer__heading::after {
    left: auto;
    right: 0;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__credits {
  font-size: var(--fs-caption);
  color: var(--text-on-dark-muted);
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

[dir="rtl"] .footer__credits {
  font-family: var(--font-arabic);
}

.footer__credits-link {
  color: var(--gold-light);
  font-weight: 600;
  position: relative;
  transition: color var(--transition-fast);
}

.footer__credits-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-gradient-h);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

[dir="rtl"] .footer__credits-link::after {
  transform-origin: left;
}

.footer__credits-link:hover {
  color: var(--text-on-dark);
}

.footer__credits-link:hover::after {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════════
   PROJECTS SECTION ENHANCEMENTS
   ═══════════════════════════════════════════ */
.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: var(--bg-dark-card, #1c1512);
  cursor: pointer;
  transition: transform 0.6s var(--ease-out-expo), border-color 0.4s ease;
  aspect-ratio: 4 / 3;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-light);
}

.project-card__img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.project-card:hover .project-card__img {
  transform: scale(1.08);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 12, 10, 0.95) 0%,
    rgba(15, 12, 10, 0.5) 50%,
    rgba(15, 12, 10, 0.15) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.project-card__tag {
  font-size: var(--fs-caption);
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

[dir="rtl"] .project-card__tag {
  font-family: var(--font-arabic);
}

.project-card__title {
  font-size: calc(var(--fs-h4) * 1.15);
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
  font-weight: 600;
  line-height: 1.3;
}

[dir="rtl"] .project-card__title {
  font-family: var(--font-arabic);
}

.project-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-sm);
}

.project-card__count {
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

[dir="rtl"] .project-card__count {
  font-family: var(--font-arabic);
}

.project-card__btn {
  font-size: var(--fs-caption);
  color: var(--gold-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s ease;
}

[dir="rtl"] .project-card__btn {
  font-family: var(--font-arabic);
}

.project-card:hover .project-card__btn {
  transform: translateX(5px);
}

[dir="rtl"] .project-card:hover .project-card__btn {
  transform: translateX(-5px);
}

/* ── Lightbox Modal ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 7, 0.98);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  background: none;
  border: none;
  color: var(--text-on-dark);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  z-index: 10;
}

[dir="rtl"] .lightbox__close {
  right: auto;
  left: var(--space-xl);
}

.lightbox__close:hover {
  color: var(--gold-light);
  transform: rotate(90deg);
}

.lightbox__container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  position: relative;
  max-height: calc(100vh - 180px);
}

.lightbox__prev,
.lightbox__next {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-on-dark);
  font-size: 3rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
  user-select: none;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--gold-light);
  color: var(--bg-dark, #0c0908);
  border-color: var(--gold-light);
}

.lightbox__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 80%;
  position: relative;
}

.lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox__image.loaded {
  opacity: 1;
}

.lightbox__caption-bar {
  text-align: center;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lightbox__title {
  font-size: var(--fs-h4);
  color: var(--text-on-dark);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

[dir="rtl"] .lightbox__title {
  font-family: var(--font-arabic);
}

.lightbox__counter {
  font-size: var(--fs-caption);
  color: var(--gold-light);
}

[dir="rtl"] .lightbox__counter {
  font-family: var(--font-arabic);
}

.lightbox__thumbnails {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  overflow-x: auto;
  max-height: 100px;
  background: rgba(0, 0, 0, 0.4);
}

.lightbox__thumb {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  cursor: pointer;
  opacity: 0.4;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.lightbox__thumb.active,
.lightbox__thumb:hover {
  opacity: 1;
  border-color: var(--gold-light);
}

@media (max-width: 767px) {
  .lightbox__container {
    padding: 0 var(--space-md);
    max-height: calc(100vh - 220px);
  }

  .lightbox__prev,
  .lightbox__next {
    position: absolute;
    width: 45px;
    height: 45px;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.6);
  }

  .lightbox__prev {
    left: var(--space-md);
  }

  .lightbox__next {
    right: var(--space-md);
  }

  .lightbox__content {
    max-width: 100%;
  }

  .lightbox__image {
    max-height: 60vh;
  }

  .lightbox__thumbnails {
    padding: var(--space-sm) var(--space-md);
  }

  .lightbox__thumb {
    width: 55px;
    height: 40px;
  }
}

/* ═══════════════════════════════════════════
   11. FAQ SECTION (AEO & SEO)
   ═══════════════════════════════════════════ */
.faq {
  padding: var(--section-padding) 0;
  background-color: var(--bg-cream);
  position: relative;
}

.faq__container {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq__accordion {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq__item {
  background: var(--bg-white);
  border: 1px solid var(--bg-cream-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-smooth);
}

.faq__item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.faq__item.active {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-md);
}

.faq__question-btn {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
}

[dir="rtl"] .faq__question-btn {
  text-align: right;
  font-family: var(--font-arabic);
}

.faq__icon {
  font-size: 1.25rem;
  color: var(--gold-light);
  transition: transform 0.3s var(--ease-smooth);
  margin-left: var(--space-md);
}

[dir="rtl"] .faq__icon {
  margin-left: 0;
  margin-right: var(--space-md);
}

.faq__answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth);
}

.faq__answer {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

[dir="rtl"] .faq__answer {
  font-family: var(--font-arabic);
}