/* ============================================
   Huthaifa Alqeisi — Jewelry Expert & Consultant
   Global Stylesheet
   --------------------------------------------
   Color Palette:
     Gold:  #c9a94d  (accent)
     Black: #0b0b0b  (dark background)
     White: #ffffff  (light background)
   ============================================ */

/* ---------- CSS Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ────────────────────────────────────────────────
     LUXURY DIAMOND PALETTE — Light theme (default)
     Inspired by haute joaillerie boutiques
     ──────────────────────────────────────────────── */
  --bg: #fbfbfa;                       /* Diamond white */
  --bg-alt: #f3f2ef;                   /* Marble light gray */
  --bg-deep: #ecebe7;                  /* Stone gray for layered surfaces */
  --text: #0d0d0d;                     /* Charcoal / deep black */
  --text-muted: #5a5856;               /* Refined warm gray */
  --gold: #b8965a;                     /* Muted royal gold */
  --gold-light: #d4b876;               /* Champagne gold */
  --gold-dark: #8a6f3e;                /* Antique gold */
  --platinum: #b8b8c0;                 /* Brushed platinum */
  --platinum-light: #e4e4e8;           /* Polished platinum */
  --platinum-dark: #8a8a92;            /* Deep platinum */
  --border: rgba(13, 13, 13, 0.06);    /* Whisper border */
  --border-strong: rgba(13, 13, 13, 0.12);
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.72);
  --shadow-soft: 0 2px 12px rgba(13, 13, 13, 0.04);
  --shadow: 0 18px 50px rgba(13, 13, 13, 0.07), 0 2px 8px rgba(13, 13, 13, 0.03);
  --shadow-luxe: 0 30px 80px -20px rgba(13, 13, 13, 0.12), 0 8px 24px -8px rgba(13, 13, 13, 0.06);
  --shadow-glow: 0 0 60px rgba(184, 150, 90, 0.18);
  --shadow-platinum: 0 8px 32px rgba(184, 184, 192, 0.25);
  --nav-bg: rgba(251, 251, 250, 0.78);
  --overlay: rgba(13, 13, 13, 0.58);
  --gradient-gold: linear-gradient(135deg, #d4b876 0%, #b8965a 50%, #8a6f3e 100%);
  --gradient-platinum: linear-gradient(135deg, #e4e4e8 0%, #b8b8c0 50%, #8a8a92 100%);
  --gradient-marble: linear-gradient(180deg, #fbfbfa 0%, #f3f2ef 100%);
}

[data-theme="dark"] {
  --bg: #0a0a0a;                       /* Onyx */
  --bg-alt: #131313;                   /* Black diamond */
  --bg-deep: #1a1a1a;
  --text: #f4f1ea;                     /* Pearl */
  --text-muted: #b5b0a2;
  --gold: #d4b876;
  --gold-light: #ead09a;
  --gold-dark: #a8893a;
  --platinum: #c8c8d0;
  --platinum-light: #d8d8e0;
  --platinum-dark: #7a7a82;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --card: #161616;
  --card-glass: rgba(22, 22, 22, 0.65);
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-luxe: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 8px 24px -8px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(212, 184, 118, 0.22);
  --shadow-platinum: 0 8px 32px rgba(200, 200, 208, 0.12);
  --nav-bg: rgba(10, 10, 10, 0.78);
  --overlay: rgba(0, 0, 0, 0.72);
  --gradient-marble: linear-gradient(180deg, #0a0a0a 0%, #131313 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

/* Subtle marble texture overlay for body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(184,150,90,0.05), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(184,184,192,0.06), transparent);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212,184,118,0.06), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(200,200,208,0.04), transparent);
}

/* English (LTR) explicit sizing — elegant, modern, readable */
body[dir="ltr"] {
  font-family: 'Lato', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.2px;
}

body[dir="ltr"] h1,
body[dir="ltr"] h2,
body[dir="ltr"] h3,
body[dir="ltr"] h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.25;
}

body[dir="ltr"] h1 { font-size: 24px; }
body[dir="ltr"] h2 { font-size: 22px; }
body[dir="ltr"] h3 { font-size: 20px; }
body[dir="ltr"] h4 { font-size: 18px; }

/* Arabic language — Tajawal (Montserrat Arabic) */
body[dir="rtl"] {
  font-family: 'Tajawal', 'Cairo', 'Amiri', sans-serif;
  font-size: clamp(16px, 4vw, 20px);
  line-height: 1.8;
  letter-spacing: 0;
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4 {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  letter-spacing: 0;
  font-weight: 700;
}

body[dir="rtl"] .logo-name {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  letter-spacing: 1px;
}

body[dir="rtl"] .logo-sub,
body[dir="rtl"] .nav-links a {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  letter-spacing: 0.5px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Amiri', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* English nav slightly larger */
body[dir="ltr"] .nav-links a {
  font-size: 15px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Buttons — Luxury Edition ---------- */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-gold);
  transform: translateX(-101%);
  transition: transform 0.55s cubic-bezier(.7,0,.2,1);
  z-index: -1;
}

/* Diamond sparkle shimmer */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.45) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 2;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn:hover::after {
  left: 125%;
}

.btn:hover {
  color: #0d0d0d;
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-glow), 0 10px 30px -8px rgba(184,150,90,0.45);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-filled {
  background: var(--gradient-gold);
  color: #0d0d0d;
  border-color: transparent;
  box-shadow: 0 8px 24px -8px rgba(184,150,90,0.5);
}

.btn-filled::before {
  background: linear-gradient(135deg, #0d0d0d 0%, #2a2a2a 100%);
}

.btn-filled:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* Platinum variant */
.btn-platinum {
  border-color: var(--platinum);
  color: var(--platinum-dark);
}
.btn-platinum::before {
  background: var(--gradient-platinum);
}
.btn-platinum:hover {
  color: #0d0d0d;
  box-shadow: var(--shadow-platinum), 0 10px 30px -8px rgba(184,184,192,0.4);
}

/* ---------- Navigation — Glass Boutique Edition ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 22px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: background 0.5s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  padding: 14px 0;
  background: var(--nav-bg);
  box-shadow: var(--shadow-soft);
  border-bottom-color: var(--border-strong);
}

/* Hairline gold accent at top */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0.4;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Logo: image + text combo ---------- */
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 0 6px rgba(201,169,77,0.3));
}

.navbar.scrolled .logo-img {
  height: 42px;
}

.logo-link:hover .logo-img {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 0 12px rgba(201,169,77,0.6));
}

/* Dark theme: brighten the logo slightly */
[data-theme="dark"] .logo-img {
  filter: drop-shadow(0 0 8px rgba(212,180,92,0.5)) brightness(1.1);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
}

.logo-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Legacy .logo class kept for backward compat */
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold);
}

.nav-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.control-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.control-btn:hover {
  background: var(--gold);
  color: #0b0b0b;
  border-color: var(--gold);
  transform: rotate(15deg);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

/* ---------- Hero Sections ---------- */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
  /* Dark Diamond Vault — multi-layer luxury composition */
  background:
    /* Top ambient gold halo */
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(212,184,118,0.22), transparent 60%),
    /* Center spotlight on jewelry plinth */
    radial-gradient(ellipse 55% 65% at 50% 50%, rgba(184,150,90,0.12), transparent 70%),
    /* Bottom platinum reflection */
    radial-gradient(ellipse 80% 40% at 50% 110%, rgba(184,184,192,0.08), transparent 60%),
    /* Diamond facet pattern */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cdefs%3E%3Cpattern id='d' patternUnits='userSpaceOnUse' width='80' height='80'%3E%3Cpath d='M40 5 L75 40 L40 75 L5 40 Z' fill='none' stroke='rgba(184,150,90,0.06)' stroke-width='0.6'/%3E%3Cpath d='M40 5 L40 75 M5 40 L75 40' stroke='rgba(184,150,90,0.04)' stroke-width='0.4'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23d)'/%3E%3C/svg%3E"),
    /* Base onyx gradient */
    radial-gradient(ellipse at center, #1a1a1a 0%, #0d0d0d 60%, #050505 100%);
  color: #fff;
}

/* Sparkle particles overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,245,210,0.9), transparent),
    radial-gradient(1px 1px at 24% 62%, rgba(212,184,118,0.7), transparent),
    radial-gradient(2px 2px at 38% 28%, rgba(255,245,210,0.8), transparent),
    radial-gradient(1px 1px at 52% 78%, rgba(184,184,192,0.6), transparent),
    radial-gradient(1.5px 1.5px at 67% 42%, rgba(255,245,210,0.85), transparent),
    radial-gradient(1px 1px at 79% 22%, rgba(212,184,118,0.7), transparent),
    radial-gradient(2px 2px at 88% 68%, rgba(255,245,210,0.75), transparent),
    radial-gradient(1px 1px at 18% 88%, rgba(184,150,90,0.6), transparent),
    radial-gradient(1.5px 1.5px at 92% 12%, rgba(255,245,210,0.8), transparent);
  animation: heroSparkle 6s ease-in-out infinite;
  opacity: 0.85;
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

@keyframes heroSparkle {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.hero-small {
  height: auto;
  min-height: 72vh;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 860px;
  padding: 0 32px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s ease 0.3s forwards;
}

.hero-tagline,
.hero .hero-tagline {
  color: var(--gold-light);
  letter-spacing: 8px;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
}

.hero-tagline::before,
.hero-tagline::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gold-light);
  vertical-align: middle;
  margin: 0 18px;
  opacity: 0.6;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.hero h1 span {
  background: linear-gradient(135deg, #ead09a 0%, #d4b876 50%, #b8965a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.hero p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #e8e8e8;
  margin-bottom: 48px;
  font-weight: 300;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.95;
  letter-spacing: 0.3px;
}

/* English: larger h1 for "Huthaifa Alqeisi" hero name */
body[dir="ltr"] .hero h1 {
  font-size: clamp(3.2rem, 7.5vw, 6.5rem);
  letter-spacing: -0.5px;
}

/* Arabic: disable letter-spacing on hero tagline (breaks Arabic glyphs) */
body[dir="rtl"] .hero-tagline {
  letter-spacing: 2px;
}
body[dir="rtl"] .hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.35;
}

/* ---------- Sections — Generous Whitespace ---------- */
section {
  padding: 130px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.section-title small {
  color: var(--gold);
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-bottom: 18px;
  position: relative;
}

/* Ornamental flourish around small label */
.section-title small::before,
.section-title small::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  opacity: 0.5;
  margin: 0 14px;
}

.section-title h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.section-title .divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  margin: 28px auto;
  position: relative;
}

.section-title .divider::after {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 10px;
  background: var(--bg);
  padding: 0 8px;
}

/* ---------- Home: Intro — Elegant Portrait ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-image {
  position: relative;
  border-radius: 20px 20px 20px 20px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.07),
    0 10px 40px rgba(0,0,0,0.16),
    0 32px 72px rgba(0,0,0,0.13),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Elegant inner-edge highlight — top/left light catch */
.intro-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.07) 0%,
    transparent 35%,
    transparent 65%,
    rgba(0,0,0,0.06) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Cinematic vignette fade on edges */
.intro-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.22) 0%, transparent 65%),
    radial-gradient(ellipse at 0% 50%,   rgba(0,0,0,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(0,0,0,0.08) 0%, transparent 50%);
  opacity: 0.6;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 2;
}

.intro-image > picture,
.intro-image > img {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  z-index: 1;
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 1.1s cubic-bezier(.4,0,.2,1), filter 0.7s ease;
  filter: contrast(1.05) saturate(1.06) brightness(1.02);
  image-rendering: high-quality;
}

[data-theme="dark"] .intro-image {
  background: transparent;
}

.intro-image:hover::after {
  opacity: 0.35;
}

.intro-image:hover img {
  transform: scale(1.03);
  filter: contrast(1.07) saturate(1.09) brightness(1.04);
}


.intro-text h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  margin-bottom: 26px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

.intro-text p {
  color: var(--text-muted);
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
}

/* ---------- Cards / Services — Glass Atelier ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.card {
  background: var(--card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 50px 34px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1),
              box-shadow 0.6s ease,
              border-color 0.5s ease,
              background 0.5s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Top gold hairline ribbon */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(.7,0,.2,1);
  z-index: 3;
}

/* Soft radial glow on hover */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(184,150,90,0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: -1;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-luxe), var(--shadow-glow);
  border-color: rgba(184,150,90,0.35);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover::after {
  opacity: 1;
}

/* Clickable card variant — full card is a link */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card-link h3,
.card-link p { color: var(--text); }

.card-cta {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 0;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, letter-spacing 0.3s ease;
}
.card-link:hover .card-cta {
  border-bottom-color: var(--gold);
  letter-spacing: 2.5px;
}

.card-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--gold);
  background: transparent;
  position: relative;
  transition: transform 0.7s cubic-bezier(.4,0,.2,1),
              color 0.5s ease,
              border-color 0.5s ease,
              box-shadow 0.5s ease;
}

.card-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.card:hover .card-icon {
  background: var(--gradient-gold);
  color: #0d0d0d;
  border-color: transparent;
  transform: rotate(360deg);
  box-shadow: 0 8px 24px -6px rgba(184,150,90,0.45);
}

.card:hover .card-icon::before {
  opacity: 0.4;
  transform: scale(1);
}

.card h3 {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.card p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.75;
}

/* ---------- Services Page — Editorial Layout ---------- */
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 130px;
}

.service-item:nth-child(even) .service-image {
  order: 2;
}

.service-image {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: var(--shadow-luxe);
  isolation: isolate;
}

.service-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(184,150,90,0.15));
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 2;
  pointer-events: none;
}

.service-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(.4,0,.2,1), filter 0.6s ease;
  filter: contrast(1.03) saturate(1.05);
}

.service-image:hover::before {
  opacity: 1;
}

.service-image:hover img {
  transform: scale(1.06);
  filter: contrast(1.05) saturate(1.08) brightness(1.03);
}

.service-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--gold);
}

.service-text ul {
  list-style: none;
  margin-top: 20px;
}

.service-text ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  position: relative;
  padding-left: 25px;
}

body[dir="rtl"] .service-text ul li {
  padding-left: 0;
  padding-right: 25px;
}

.service-text ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
}

body[dir="rtl"] .service-text ul li::before {
  left: auto;
  right: 0;
}

/* ---------- Masterclass Page ---------- */
/* ─── MASTERCLASS — Dramatic Spotlight ─────────────── */
.masterclass-hero {
  background:
    /* Dramatic centered spotlight */
    radial-gradient(ellipse 45% 60% at 50% 45%, rgba(212,184,118,0.28), transparent 65%),
    /* Side vignette darken */
    radial-gradient(circle at 50% 50%, transparent 35%, rgba(0,0,0,0.6) 100%),
    /* Hexagonal gem pattern */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='115'%3E%3Cdefs%3E%3Cpattern id='hex' patternUnits='userSpaceOnUse' width='100' height='115'%3E%3Cpath d='M50 5 L92 30 L92 85 L50 110 L8 85 L8 30 Z' fill='none' stroke='rgba(184,150,90,0.07)' stroke-width='0.6'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23hex)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at center, #161616 0%, #0a0a0a 80%, #050505 100%);
}

/* ─── ABOUT — Onyx with Marble Veins ─────────────── */
.about-hero {
  background:
    /* Gold accent top-left */
    radial-gradient(ellipse 60% 50% at 25% 0%, rgba(212,184,118,0.20), transparent 60%),
    /* Platinum accent bottom-right */
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(184,184,192,0.12), transparent 60%),
    /* Marble vein streaks via SVG */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='v1' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='rgba(212,184,118,0.0)'/%3E%3Cstop offset='50%25' stop-color='rgba(212,184,118,0.12)'/%3E%3Cstop offset='100%25' stop-color='rgba(212,184,118,0.0)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 180 Q300 120 600 200 T1200 160' fill='none' stroke='url(%23v1)' stroke-width='1'/%3E%3Cpath d='M0 380 Q400 320 700 420 T1200 380' fill='none' stroke='url(%23v1)' stroke-width='0.8' opacity='0.7'/%3E%3Cpath d='M0 480 Q200 440 500 500 T1200 470' fill='none' stroke='url(%23v1)' stroke-width='0.6' opacity='0.5'/%3E%3C/svg%3E") center/cover,
    linear-gradient(135deg, #131313 0%, #0a0a0a 50%, #0d0d0d 100%);
}

/* ─── SERVICES — Diamond Facet Grid ─────────────── */
.services-hero {
  background:
    /* Dual gold corner glow */
    radial-gradient(ellipse 50% 70% at 0% 50%, rgba(212,184,118,0.18), transparent 60%),
    radial-gradient(ellipse 50% 70% at 100% 50%, rgba(184,184,192,0.12), transparent 60%),
    /* Repeating diamond facet grid */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cdefs%3E%3Cpattern id='fg' patternUnits='userSpaceOnUse' width='60' height='60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='rgba(184,150,90,0.08)' stroke-width='0.7'/%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(212,184,118,0.25)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23fg)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 50%, #0a0a0a 100%);
}

/* ─── CONTACT — Velvet Boudoir ─────────────── */
.contact-hero {
  background:
    /* Soft warm gold center */
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(212,184,118,0.22), transparent 65%),
    /* Soft platinum corner */
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(184,184,192,0.08), transparent 60%),
    /* Fine sparkle dots */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Ccircle cx='30' cy='40' r='0.8' fill='rgba(212,184,118,0.4)'/%3E%3Ccircle cx='120' cy='80' r='0.6' fill='rgba(255,245,210,0.35)'/%3E%3Ccircle cx='170' cy='30' r='0.7' fill='rgba(212,184,118,0.3)'/%3E%3Ccircle cx='60' cy='140' r='0.9' fill='rgba(255,245,210,0.4)'/%3E%3Ccircle cx='150' cy='170' r='0.6' fill='rgba(184,184,192,0.3)'/%3E%3Ccircle cx='90' cy='60' r='0.5' fill='rgba(212,184,118,0.25)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at center, #161616 0%, #0a0a0a 70%, #050505 100%);
}

/* Shared overlay for sub-heroes — sparkle ambience */
.masterclass-hero::before,
.about-hero::before,
.services-hero::before,
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 15% 25%, rgba(255,245,210,0.7), transparent),
    radial-gradient(1px 1px at 35% 65%, rgba(212,184,118,0.55), transparent),
    radial-gradient(1.5px 1.5px at 58% 30%, rgba(255,245,210,0.65), transparent),
    radial-gradient(1px 1px at 78% 75%, rgba(184,184,192,0.5), transparent),
    radial-gradient(1.2px 1.2px at 85% 20%, rgba(212,184,118,0.6), transparent),
    radial-gradient(1px 1px at 8% 80%, rgba(255,245,210,0.55), transparent);
  animation: heroSparkle 7s ease-in-out infinite;
  opacity: 0.7;
  z-index: 1;
}

.masterclass-hero > *,
.about-hero > *,
.services-hero > *,
.contact-hero > * {
  position: relative;
  z-index: 2;
}

.curriculum {
  background: var(--bg-alt);
}

.curriculum-list {
  max-width: 800px;
  margin: 0 auto;
}

.curriculum-item {
  display: flex;
  gap: 36px;
  padding: 38px 40px;
  background: var(--card-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 22px;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1),
              box-shadow 0.5s ease,
              border-color 0.4s ease,
              background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.curriculum-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease;
}

body[dir="rtl"] .curriculum-item::before {
  left: auto;
  right: 0;
}

.curriculum-item:hover {
  border-color: rgba(184,150,90,0.35);
  transform: translateX(12px);
  box-shadow: var(--shadow-luxe);
  background: var(--card);
}

.curriculum-item:hover::before {
  transform: scaleY(1);
}

body[dir="rtl"] .curriculum-item:hover {
  transform: translateX(-12px);
}

.curriculum-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 70px;
}

.curriculum-content h4 {
  font-size: 22px;
  margin-bottom: 10px;
}

.curriculum-content p {
  color: var(--text-muted);
}

/* ---------- About Page ---------- */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  top: 30px;
}

.timeline-item:nth-child(odd)::after {
  right: -9px;
}

.timeline-item:nth-child(even)::after {
  left: -9px;
}

.timeline-year {
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.timeline-item h4 {
  font-size: 22px;
  margin: 10px 0;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 16px;
}

.stats {
  background: var(--bg-alt);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  position: relative;
  padding: 20px 10px;
  transition: transform 0.5s ease;
}

.stat-item:hover {
  transform: translateY(-6px);
}

.stat-item .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(184,150,90,0.25));
}

.stat-item p {
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--gold);
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.contact-detail-icon {
  color: var(--gold);
  font-size: 22px;
  min-width: 30px;
}

.contact-detail-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 3px;
}

.contact-detail-text span {
  color: var(--text-muted);
  font-size: 15px;
}

.contact-form {
  background: var(--card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 52px 44px;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow-luxe);
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  border-radius: 2px;
  transition: border-color 0.4s ease,
              box-shadow 0.4s ease,
              background 0.3s ease;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: var(--platinum);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,150,90,0.08), 0 4px 16px rgba(184,150,90,0.08);
  background: var(--card);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Footer — Onyx Boutique ---------- */
.footer {
  background: #0a0a0a;
  background-image:
    radial-gradient(ellipse 60% 40% at 30% 0%, rgba(184,150,90,0.08), transparent 60%),
    radial-gradient(ellipse 50% 30% at 80% 100%, rgba(184,184,192,0.05), transparent 60%);
  color: #b5b0a2;
  padding: 90px 0 24px;
  position: relative;
  border-top: 1px solid rgba(184,150,90,0.18);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,150,90,0.6), transparent);
}

[data-theme="dark"] .footer {
  background: #050505;
  background-image:
    radial-gradient(ellipse 60% 40% at 30% 0%, rgba(212,184,118,0.08), transparent 60%),
    radial-gradient(ellipse 50% 30% at 80% 100%, rgba(200,200,208,0.04), transparent 60%);
}

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

.footer-logo {
  height: 160px;
  width: auto;
  margin-bottom: 16px;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-col h4 {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
  color: #b5b0a2;
  font-size: 15px;
  display: block;
  margin-bottom: 10px;
}

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

/* ─── Social Icons — Luxury Edition ─────────────────────────── */
.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Base circle button */
.social-links a,
.social-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border-style: solid;
  border-width: 1.5px;
  border-color: #c9a94d;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5b0a2;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  /* Idle soft pulse */
  animation: socialIdle 3.5s ease-in-out infinite;
  /* Base transition */
  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              color 0.3s ease,
              background 0.3s ease;
}

/* Stagger entrance delay */
.social-links a:nth-child(1),
.social-icon:nth-child(1) { transition-delay: 0s;    animation-delay: 0s; }
.social-links a:nth-child(2),
.social-icon:nth-child(2) { transition-delay: 0.05s; animation-delay: 0.4s; }
.social-links a:nth-child(3),
.social-icon:nth-child(3) { transition-delay: 0.10s; animation-delay: 0.8s; }

/* Hover state */
.social-links a:hover,
.social-icon:hover {
  transform: scale(1.1) translateY(-3px);
  color: #c9a94d;
  border-color: #c9a94d;
  background: rgba(201,169,77,.07);
  box-shadow: 0 0 18px rgba(201,169,77,.4), 0 4px 14px rgba(0,0,0,.25);
  animation: none;
}

/* Click micro-press */
.social-links a:active,
.social-icon:active {
  transform: scale(0.95) translateY(-1px);
  transition: transform 0.1s ease;
}

/* ── Tooltip label ── */
.social-links a::before,
.social-icon::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #0b0b0b;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.71rem;
  letter-spacing: 0.6px;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 3px;
  border: 1px solid rgba(201,169,77,.35);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Tooltip arrow */
.social-links a::after,
.social-icon::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border-style: solid;
  border-width: 5px;
  border-color: transparent;
  border-top-color: rgba(201,169,77,.35);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Show tooltip on hover */
.social-links a:hover::before,
.social-icon:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.social-links a:hover::after,
.social-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Idle glow pulse */
@keyframes socialIdle {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,169,77,0); }
  50%      { box-shadow: 0 0 0 4px rgba(201,169,77,.12); }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  padding: 22px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 10px;
}
.footer-legal a {
  color: #b5b0a2;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}
.footer-legal a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: #c9a94d;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.footer-legal a:hover { color: #c9a94d; }
.footer-legal a:hover::after { transform: scaleX(1); }

@media (max-width: 600px) {
  .footer-legal { gap: 6px 14px; }
  .footer-legal a { font-size: 11.5px; letter-spacing: 0.5px; }
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
  color: #777;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro-grid,
  .service-item,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-item:nth-child(even) .service-image {
    order: 0;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 50px;
  }

  .timeline-item::after {
    left: 11px !important;
    right: auto !important;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    width: 100%;
    padding: 30px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 20px;
  }

  .nav-links.open {
    transform: translateX(0);
  }

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

  section {
    padding: 70px 0;
  }

  .hero {
    min-height: 540px;
  }

  .hero-small {
    padding-top: 110px;
    padding-bottom: 60px;
    min-height: 60vh;
  }

  .hero-content {
    padding: 0 20px;
  }

  .curriculum-item {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 500px) {
  body {
    font-size: 16px;
  }

  body[dir="rtl"] {
    font-size: 16px;
    line-height: 1.7;
  }

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

  .contact-form {
    padding: 25px;
  }

  .service-image img {
    height: 340px;
  }

  section {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

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

  .hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
  }

  .hero p {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
  }

  body[dir="rtl"] h1,
  body[dir="rtl"] h2,
  body[dir="rtl"] h3,
  body[dir="rtl"] h4 {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  }

  .card {
    padding: 32px 22px;
  }

  .intro-grid,
  .service-item,
  .contact-grid {
    gap: 32px;
  }

  .section-title {
    margin-bottom: 50px;
  }

  .section-title small::before,
  .section-title small::after {
    width: 18px;
    margin: 0 8px;
  }

  .contact-form {
    padding: 32px 22px;
  }

  .curriculum-item {
    padding: 26px 22px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LUXURY POLISH LAYER — Diamond Boutique Finishing Touches
   ═══════════════════════════════════════════════════════════════ */

/* Refined section alternation: bg-alt gets a subtle marble feel */
section[style*="bg-alt"],
.curriculum,
.stats {
  background: var(--bg-alt);
  position: relative;
}

section[style*="bg-alt"]::before,
.curriculum::before,
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 30% at 0% 0%, rgba(184,150,90,0.04), transparent 60%),
    radial-gradient(ellipse 60% 30% at 100% 100%, rgba(184,184,192,0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

section[style*="bg-alt"] > *,
.curriculum > *,
.stats > * {
  position: relative;
  z-index: 1;
}

/* Refined text selection — gold tint */
::selection {
  background: rgba(184, 150, 90, 0.28);
  color: var(--text);
}

/* Refined scrollbar — platinum + gold */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--platinum-light), var(--platinum));
  border-radius: 10px;
  border: 2px solid var(--bg-alt);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-gold);
}

/* Anchor focus ring — refined gold */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Section ornamental divider (optional utility) */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px auto;
  max-width: 200px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 4px;
}
.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 12px;
  opacity: 0.5;
}

/* Service text headings — refined gold */
.service-text h3 {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  letter-spacing: 0.3px;
}

/* Contact info heading — refined gold gradient */
.contact-info h3 {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

/* Credentials cards (home page inline) — luxury polish */
.credential-card {
  background: var(--card-glass) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 3px !important;
  position: relative;
}

.credential-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.credential-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,150,90,0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.credential-card:hover::after {
  opacity: 1;
}

/* Companies tiles — luxury minimal */
.company-tile {
  background: var(--card-glass) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 2px !important;
  transition: transform 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              color 0.4s ease !important;
}

.company-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(184,150,90,0.3) !important;
  box-shadow: var(--shadow);
  color: var(--gold);
}

/* Refined hover for nav-controls (theme + lang toggle) */
.control-btn {
  background: var(--card-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.control-btn:hover {
  background: var(--gradient-gold);
  border-color: transparent;
  box-shadow: 0 6px 20px -4px rgba(184,150,90,0.5);
}

/* Timeline dot — refined gold gradient */
.timeline-item::after {
  background: var(--gradient-gold);
  box-shadow: 0 0 0 4px var(--bg), 0 4px 12px rgba(184,150,90,0.35);
}

.timeline::before {
  background: linear-gradient(180deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
  opacity: 0.5;
}

/* Curriculum number — gold gradient */
.curriculum-number {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  font-weight: 700;
}

/* Image rendering — sharper, more cinematic */
.intro-image img,
.service-image img {
  image-rendering: -webkit-optimize-contrast;
}

/* Smooth reveal motion enhancement */
.fade-in {
  transition: opacity 1s cubic-bezier(.4,0,.2,1), transform 1s cubic-bezier(.4,0,.2,1);
}

/* Generous tablet padding */
@media (min-width: 901px) and (max-width: 1200px) {
  section {
    padding: 110px 0;
  }
}

/* Ultra-wide refinement */
@media (min-width: 1400px) {
  .container,
  .nav-wrapper {
    max-width: 1280px;
  }
  section {
    padding: 150px 0;
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
