/* ========== THEME VARIABLES ========== */
:root {
  --bg-main: #0A0A0A;          /* Deep black base */
  --bg-soft: #121212;          /* Slightly softer black */
  --bg-card: #151515;          /* Card backgrounds */

  --text-main: #F9F5EE;        /* Soft cream text */
  --text-muted: #D4B5C4;       /* Muted rose-gold text */

  --accent: #145A46;           /* Soft emerald green */
  --accent-soft: #E8A4B8;      /* Dusty pink */

  --border-soft: rgba(255, 255, 255, 0.08);
  --radius-lg: 22px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
}

/* ========== BASE ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #181818 0, #050505 55%);
}

/* Language-aware fonts */
html[lang="ar"] body {
  /* Use Amiri for all Arabic text site-wide. Tajawal remains as a readable fallback.
     Amiri is a classical Naskh-serif suitable for display and body when preferred. */
  font-family: "Amiri", "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.7; /* keep comfortable reading rhythm for Arabic lines */
}

/* Headings */
h1, h2, h3, h4 {
  margin: 0;
  font-family: "Playfair Display", serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  /* Use Amiri for Arabic headings (serif) to better match Playfair Display's tone.
     Fallback to Tajawal for UI-friendly shapes if Amiri is unavailable. */
  font-family: "Amiri", "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  /* slightly stronger weight and tighter letter-spacing for headings */
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ========== BILINGUAL VISIBILITY ========== */
.lang-en {
  display: inline;
}

.lang-ar {
  display: none;
}

/* Ensure inline Arabic spans always use the Arabic font when visible. Use !important
   to override any competing font-family rules from other selectors or user agents. */
.lang-ar {
  font-family: "Amiri", "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* When Arabic lang is active: show Arabic, hide English */
html[lang="ar"] .lang-en {
  display: none;
}

html[lang="ar"] .lang-ar {
  display: inline;
}

/* Ensure any inline Arabic element explicitly uses the chosen Arabic font
   so small elements (badges, links, captions) also render consistently. */
html[lang="ar"] .lang-ar {
  font-family: "Amiri", "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Slightly increase paragraph size/line-height for Arabic sections for readability */
html[lang="ar"] .section-inner p .lang-ar,
html[lang="ar"] .section-header p .lang-ar,
html[lang="ar"] .hero p .lang-ar {
  font-size: 1rem;
  line-height: 1.85;
}

/* Footer / small links in Arabic should remain legible */
html[lang="ar"] .footer .lang-ar {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Text alignment for sections */
html[lang="en"] .section-header,
html[lang="en"] .section-inner {
  text-align: left;
}

html[lang="ar"] .section-header,
html[lang="ar"] .section-inner {
  text-align: right;
}

/* Direction */
html[lang="en"] body {
  direction: ltr;
}

html[lang="ar"] body {
  direction: rtl;
}

/* ========== LANGUAGE SWITCHER ========== */
.lang-switcher {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  display: flex;
  gap: 6px;
}

.lang-switcher button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
  color: #f9f5ee;
  font-size: 0.75rem;
  padding: 4px 10px;
  cursor: pointer;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-switcher button.active {
  background: linear-gradient(130deg, #1a6f57, #145a46);
  border-color: transparent;
}

.lang-switcher .flag {
  font-size: 0.9rem;
}

.lang-switcher .label {
  font-size: 0.72rem;
}

/* ========== SITE LOGO ========== */
.site-logo {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 70;
}

.site-logo img {
  height: 54px;
  width: auto;
  display: block;
  border-radius: 10px;  /* optional */
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-logo img:hover {
  opacity: 1;
  transform: translateY(-2px);
}


/* make logo a bit smaller on very small screens */
@media (max-width: 480px) {
  .site-logo {
    top: 14px;
    left: 14px;
    padding: 3px 8px;
  }

  .site-logo img {
    height: 36px;
  }
}


/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  color: var(--text-main);
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(232, 164, 184, 0.12), transparent 55%),
    radial-gradient(circle at bottom, rgba(20, 90, 70, 0.18), transparent 55%),
    #050505;
}

/* Hero background image behind gradients */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/hero.jpg") center center / cover no-repeat;
  opacity: 0.45;              /* adjust stronger/weaker if you want */
  z-index: 0;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0, transparent 45%),
    radial-gradient(circle at top left, rgba(232, 164, 184, 0.18), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 28px 32px 30px;
  border-radius: 26px;
  background: radial-gradient(circle at top left, #19141a, #080707);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  color: var(--accent-soft);
  margin-bottom: 18px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-soft);
}

/* Hero title & subtitle */
.hero h1 {
  font-size: 2.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero p {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(249, 245, 238, 0.92);
}

/* Hero buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ========== BUTTONS ========== */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    border-color 0.2s ease;
}

/* Primary button: emerald gradient */
.btn-primary {
  background: linear-gradient(130deg, #1a6f57, #145a46);
  color: #F9F5EE;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}

/* Ghost button: dusty pink outline */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--accent-soft);
  color: var(--accent-soft);
}

.btn-ghost .arrow {
  font-size: 0.95rem;
}

.btn-ghost:hover {
  background: radial-gradient(circle at top, rgba(232, 164, 184, 0.18), transparent 65%);
  box-shadow: 0 0 18px rgba(232, 164, 184, 0.45);
}

/* ========== SECTIONS ========== */
.section {
  padding: 72px 24px;
  background: radial-gradient(circle at top, #151017, #050505);
}

.section-alt {
  background: radial-gradient(circle at top, #110f12, #050505);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 32px;
}

.section-tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-header p {
  margin: 0;
  color: rgba(249, 245, 238, 0.9);
  font-size: 0.95rem;
  line-height: 1.7;
}

.section-inner {
  max-width: 720px;
  margin: 0 auto;
}

.section-inner p {
  margin: 0 0 14px;
  color: rgba(249, 245, 238, 0.9);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== GALLERY ========== */
.gallery {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

/* CARD BASE */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, #1a1418, #121212);
  border: 1px solid var(--border-soft);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition:
    transform 0.35s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.35s cubic-bezier(0.19, 1, 0.22, 1),
    border-color 0.25s ease;
}

/* SOFT PINK GLOW LAYER */
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(232, 164, 184, 0.25),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

/* HOVER EFFECT – LIFT + GLOW */
.gallery-item:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--accent-soft);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.95);
}

.gallery-item:hover::before {
  opacity: 1;
}

/* IMAGE ANIMATION */
.gallery-item img {
  width: 100%;
  display: block;
  height: 280px;
  object-fit: cover;
  transform: scale(1.02);
  transition:
    transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
    filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(1.02);
}

/* INFO */
.gallery-info {
  padding: 12px 16px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.gallery-info h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== FOOTER ========== */
.footer {
  padding: 24px 16px 30px;
  background: #050505;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

/* Inner wrapper */
.lightbox-inner {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 90vw;
  max-height: 90vh;
}

/* Image + caption wrapper */
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Image */
#lightbox-img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Caption */
.lightbox-caption {
  max-width: 80vw;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lightbox-caption .caption-text {
  display: inline;
}

/* ARROWS */
.lightbox-arrow {
  border: 1px solid rgba(249, 245, 238, 0.7);
  background: rgba(0, 0, 0, 0.6);
  color: #f9f5ee;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0.8;
  transition:
    background 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.lightbox-arrow:hover {
  opacity: 1;
  background: radial-gradient(circle at top, rgba(232, 164, 184, 0.35), rgba(20, 90, 70, 0.9));
  box-shadow: 0 0 18px rgba(232, 164, 184, 0.7);
  transform: translateY(-1px);
}

.lightbox-arrow--left {
  order: 0;
}

.lightbox-arrow--right {
  order: 2;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
    padding: 24px 14px 32px;
    align-items: flex-end;
  }

  .hero-content {
    padding: 22px 18px 18px;
    margin-bottom: 16px;
  }

  .hero-badge {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.25;
    letter-spacing: 0.18em;
  }

  .hero-subtitle {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    padding-block: 11px;
    font-size: 0.75rem;
  }

  .section {
    padding: 48px 16px;
  }

  .section-header h2 {
    font-size: 1.2rem;
    letter-spacing: 0.14em;
  }

  .section-header p,
  .section-inner p {
    font-size: 0.9rem;
  }

  .gallery {
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item img {
    height: 220px;
  }

  .lightbox-inner {
    max-width: 95vw;
    max-height: 80vh;
    gap: 10px;
  }

  #lightbox-img {
    max-width: 78vw;
  }

  .lightbox-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
    padding-inline: 12px;
  }

  .hero-content {
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: 1.7rem;
    letter-spacing: 0.16em;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 240px;
  }
}
