/* =========================================================
   WAFIK — Advanced Energy Consulting
   Global Stylesheet | Gold-on-Dark luxury identity
   ========================================================= */

:root {
  /* Brand palette (from logo) */
  --bg-darkest: #150c07;
  --bg-dark:    #1c110a;
  --bg:         #241610;
  --bg-2:       #2b1a11;
  --card:       #2f1e13;
  --card-2:     #3a2617;
  --line:       rgba(212, 175, 106, 0.16);

  --gold:        #d4af6a;
  --gold-bright: #eccf8e;
  --gold-deep:   #b98a3f;
  --bronze:      #a0703c;

  --text:   #f2e9db;
  --muted:  #c1ac92;
  --muted-2:#94805f;
  --heading: #ffffff;

  --grad-gold: linear-gradient(120deg, #b98a3f 0%, #eccf8e 45%, #d4af6a 100%);
  --grad-dark: linear-gradient(160deg, #241610 0%, #150c07 100%);
  --shadow:    0 24px 60px -20px rgba(0,0,0,.7);
  --shadow-gold: 0 18px 50px -18px rgba(212,175,106,.35);

  --ff-en: 'Poppins', 'Segoe UI', sans-serif;
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-ar: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;

  --radius: 18px;
  --nav-h: 92px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--ff-en);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body,
html[dir="rtl"] body { font-family: var(--ff-ar); }

h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 700; line-height: 1.15; color: var(--heading); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { font-family: var(--ff-ar); }

a { text-decoration: none; color: inherit; transition: color .3s var(--ease); }
img { max-width: 100%; display: block; }
section { position: relative; }
.container { width: min(1200px, 92%); margin-inline: auto; }

/* ---------- Utilities ---------- */
.text-gold { color: var(--gold); }
.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section { padding: clamp(70px, 9vw, 130px) 0; }
.section-sm { padding: clamp(50px, 6vw, 90px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ff-en);
  text-transform: uppercase; letter-spacing: .28em;
  font-size: .74rem; font-weight: 600; color: var(--gold);
  margin-bottom: 1rem;
}
html[dir="rtl"] .eyebrow { letter-spacing: normal; font-family: var(--ff-ar); }
.eyebrow::before { content:''; width: 34px; height: 1px; background: var(--grad-gold); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 0 0 1rem; }
.section-lead { color: var(--muted); max-width: 620px; font-size: 1.05rem; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }
.center .eyebrow::after { content:''; width: 34px; height: 1px; background: var(--grad-gold); }

/* ---------- Buttons ---------- */
.btn-gold, .btn-ghost {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.9rem; border-radius: 60px;
  font-family: var(--ff-en); font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
  position: relative; overflow: hidden;
}
html[dir="rtl"] .btn-gold, html[dir="rtl"] .btn-ghost { font-family: var(--ff-ar); }
.btn-gold { background: var(--grad-gold); color: #201308; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -16px rgba(212,175,106,.55); color:#1a0f05; }
.btn-ghost { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-ghost:hover { background: rgba(212,175,106,.1); transform: translateY(-4px); color: var(--gold-bright); }
.btn-gold i, .btn-ghost i { transition: transform .35s var(--ease); }
.btn-gold:hover i, .btn-ghost:hover i { transform: translateX(4px); }
html[dir="rtl"] .btn-gold:hover i, html[dir="rtl"] .btn-ghost:hover i { transform: translateX(-4px); }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar-wafik {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h);
  display: flex; align-items: center; z-index: 1000;
  transition: background .4s var(--ease), box-shadow .4s, height .4s;
  background: linear-gradient(180deg, rgba(21,12,7,.65), rgba(21,12,7,0));
}
.navbar-wafik.scrolled {
  background: rgba(20,12,7,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px -18px rgba(0,0,0,.8);
  height: 66px;
  border-bottom: 1px solid var(--line);
}
.navbar-wafik .container { display: flex; align-items: center; justify-content: space-between; position: relative; }
.nav-logo { display: flex; align-items: center; gap: .7rem; }
.nav-logo img { height: 68px; width: auto; transition: height .4s; }
.navbar-wafik.scrolled .nav-logo img { height: 54px; }
@media (max-width: 600px){ .nav-logo img { height: 54px; } .navbar-wafik.scrolled .nav-logo img { height: 46px; } }
.nav-logo b { font-family: var(--ff-display); font-size: 1.15rem; letter-spacing: .04em; color: var(--heading); }
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .93rem; font-weight: 500; color: var(--text); position: relative;
  padding: .3rem 0;
}
html[dir="rtl"] .nav-links a { font-family: var(--ff-ar); }
.nav-links a::after {
  content:''; position: absolute; bottom: -2px; inset-inline-start: 0;
  width: 0; height: 2px; background: var(--grad-gold); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(212,175,106,.1); border: 1px solid var(--line);
  color: var(--gold); border-radius: 40px; padding: .45rem .95rem;
  font-weight: 600; font-size: .82rem; cursor: pointer; letter-spacing: .05em;
  transition: background .3s, transform .3s;
}
.lang-toggle:hover { background: rgba(212,175,106,.2); transform: translateY(-2px); }
.nav-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
    width: min(230px, 66vw);
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: rgba(24,15,9,.55); backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line); border-radius: 14px; padding: .7rem;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97);
    transform-origin: top; z-index: 1001;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav-links a { padding: .62rem .85rem; border-radius: 9px; font-size: .95rem; }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a.active { background: rgba(212,175,106,.14); }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  .nav-toggle { display: block; z-index: 1002; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding-top: var(--nav-h); position: relative; overflow: hidden;
  background: var(--grad-dark);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(212,175,106,.18), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(160,112,60,.15), transparent 40%),
    var(--grad-dark);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(212,175,106,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,106,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 60% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 30%, transparent 78%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem); margin: 1.2rem 0 1.4rem;
}
.hero h1 .gold-text { display: inline-block; }
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted);
  max-width: 600px; margin-bottom: 2.2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.6rem; margin-top: 3.4rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 2rem;
}
.hero-stats .stat b {
  font-family: var(--ff-display); font-size: 2.4rem; color: var(--gold-bright); display: block; line-height: 1;
}
.hero-stats .stat span { font-size: .82rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .12em; }
html[dir="rtl"] .hero-stats .stat span { letter-spacing: normal; }

.scroll-cue {
  position: absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(-50%);
  z-index: 3; color: var(--gold); font-size: .7rem; letter-spacing: .2em; text-align: center; opacity: .8;
}
.scroll-cue .mouse {
  width: 24px; height: 40px; border: 2px solid var(--gold); border-radius: 20px;
  margin: 0 auto .5rem; position: relative;
}
.scroll-cue .mouse::after {
  content:''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--gold); border-radius: 2px;
  animation: wheel 1.6s infinite;
}
@keyframes wheel { 0%{opacity:1;top:7px} 100%{opacity:0;top:20px} }

/* Floating turbine accents */
.hero-emblem {
  position: absolute; z-index: 1; inset-inline-end: -60px; bottom: -40px;
  width: min(520px, 46vw); opacity: .5; pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.5));
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{transform: translateY(0)} 50%{transform: translateY(-22px)} }

/* Hero auto background slider */
.hero-slider { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.5s var(--ease);
}
.hero-slide.is-active { opacity: 1; animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(15,9,5,.95) 0%, rgba(18,11,6,.74) 45%, rgba(18,11,6,.44) 100%),
    linear-gradient(0deg, rgba(15,9,5,.9) 0%, rgba(15,9,5,.1) 55%);
}
html[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(15,9,5,.95) 0%, rgba(18,11,6,.74) 45%, rgba(18,11,6,.44) 100%),
    linear-gradient(0deg, rgba(15,9,5,.9) 0%, rgba(15,9,5,.1) 55%);
}
.hero .hero-grid { z-index: 1; }
.hero .container { position: relative; z-index: 2; }
/* Logo placed on the side, next to the hero paragraph */
.hero-logo {
  position: absolute; inset-inline-end: 0; top: 58%; transform: translateY(-50%);
  height: 170px; width: auto; opacity: .96;
  filter: drop-shadow(0 12px 34px rgba(0,0,0,.6));
  animation: floaty 8s ease-in-out infinite;
}
@media (max-width: 1050px){ .hero-logo { height: 130px; opacity: .8; } }
@media (max-width: 820px){ .hero-logo { display: none; } }
/* Slider dots */
.hero-dots { position: absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: .6rem; }
html[dir="rtl"] .hero-dots { transform: translateX(50%); }
.hero-dots button {
  width: 11px; height: 11px; padding: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer; transition: all .35s var(--ease);
}
.hero-dots button:hover { background: rgba(255,255,255,.75); }
.hero-dots button.active { background: var(--grad-gold); width: 28px; border-radius: 7px; }

/* =========================================================
   PAGE HEADER (interior pages)
   ========================================================= */
.page-hero {
  padding: calc(var(--nav-h) + 70px) 0 70px; text-align: center;
  background: var(--grad-dark); position: relative; overflow: hidden;
}
.page-hero .hero-grid { opacity: .25; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 1rem 0 .8rem; }
.page-hero p { color: var(--muted); max-width: 620px; margin-inline: auto; }
.breadcrumb-w { display: inline-flex; gap: .5rem; color: var(--muted-2); font-size: .85rem; margin-top: 1.2rem; }
.breadcrumb-w a:hover { color: var(--gold); }

/* =========================================================
   ABOUT SUMMARY
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px){ .about-grid { grid-template-columns: 1fr; } }
.about-visual { position: relative; }
.about-visual .frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: var(--card); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.about-visual .frame img { object-fit: cover; width: 100%; height: 100%; }
.about-badge {
  position: absolute; inset-inline-end: -18px; bottom: -18px;
  background: var(--grad-gold); color: #23150a; border-radius: 16px;
  padding: 1.1rem 1.4rem; box-shadow: var(--shadow-gold); text-align: center;
}
.about-badge b { display: block; font-family: var(--ff-display); font-size: 2rem; line-height: 1; }
.about-badge span { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.about-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .9rem; }
.about-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--muted); }
.about-list i { color: var(--gold); margin-top: .3rem; }

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px){ .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: linear-gradient(160deg, var(--card) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 1.8rem;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content:''; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 3px;
  background: var(--grad-gold); transform: scaleX(0); transform-origin: inset-inline-start;
  transition: transform .45s var(--ease);
}
.service-card:hover { translate: 0 -10px; border-color: rgba(212,175,106,.4); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(212,175,106,.12); color: var(--gold); font-size: 1.5rem; margin-bottom: 1.3rem;
  transition: background .4s, transform .4s;
}
.service-card:hover .service-icon { background: var(--grad-gold); color: #23150a; transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-size: 1.25rem; margin: 0 0 .6rem; }
.service-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* =========================================================
   FEATURED / PROJECTS
   ========================================================= */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 940px){ .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .projects-grid { grid-template-columns: 1fr; } }
.project-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3.2; box-shadow: var(--shadow); border: 1px solid var(--line);
  cursor: pointer; background: var(--card);
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), filter .6s; filter: saturate(.9);
}
.project-card::after {
  content:''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,9,5,.94) 8%, rgba(15,9,5,.35) 45%, transparent 75%);
  transition: opacity .5s;
}
.project-card:hover img { transform: scale(1.12); filter: saturate(1.15); }
.project-body {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 1.6rem;
  transform: translateY(12px); transition: transform .5s var(--ease);
}
.project-card:hover .project-body { transform: translateY(0); }
.project-tag {
  display: inline-block; background: rgba(212,175,106,.9); color: #23150a;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: .28rem .7rem; border-radius: 30px; margin-bottom: .7rem;
}
html[dir="rtl"] .project-tag { letter-spacing: normal; }
.project-body h3 { font-size: 1.28rem; margin: 0 0 .35rem; color: #fff; }
.project-body p {
  color: var(--muted); font-size: .9rem; margin: 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .5s, margin .5s;
}
.project-card:hover .project-body p { max-height: 80px; opacity: 1; margin-top: .3rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-bottom: 3rem; }
.filter-btn {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: .55rem 1.3rem; border-radius: 40px; cursor: pointer; font-size: .88rem; font-weight: 500;
  transition: all .3s var(--ease); font-family: inherit;
}
.filter-btn:hover { color: var(--gold); border-color: var(--gold); }
.filter-btn.active { background: var(--grad-gold); color: #23150a; border-color: transparent; font-weight: 600; }
.project-card.hide { display: none; }

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why { background: var(--bg-darkest); position: relative; overflow: hidden; }
.why::before {
  content:''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212,175,106,.1), transparent 50%);
}
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1.5rem; position: relative; z-index: 2; }
.why-card {
  text-align: center; padding: 2.4rem 1.6rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(47,30,19,.5);
  transition: transform .4s var(--ease), background .4s;
}
.why-card:hover { translate: 0 -8px; background: rgba(47,30,19,.9); }
.why-num {
  font-family: var(--ff-display); font-size: 3rem; line-height: 1;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: .6rem;
}
.why-card h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.why-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  background: var(--grad-gold); color: #23150a; text-align: center;
  border-radius: 28px; padding: clamp(2.6rem, 6vw, 4.6rem); position: relative; overflow: hidden;
  box-shadow: var(--shadow-gold);
}
.cta::after {
  content:''; position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(rgba(35,21,10,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,21,10,.08) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: #23150a; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 1rem; }
.cta p { color: #402a12; max-width: 560px; margin: 0 auto 2rem; font-weight: 500; }
.cta .btn-dark {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #23150a; color: var(--gold-bright); padding: .95rem 2.2rem; border-radius: 60px;
  font-weight: 600; transition: transform .35s var(--ease), box-shadow .35s;
}
.cta .btn-dark:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -14px rgba(0,0,0,.5); }

/* =========================================================
   TEAM PAGE
   ========================================================= */
.profile-card {
  display: grid; grid-template-columns: 320px 1fr; gap: 0;
  background: linear-gradient(160deg, var(--card) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
}
@media (max-width: 800px){ .profile-card { grid-template-columns: 1fr; } }
.profile-aside {
  background: var(--grad-dark); padding: 2.6rem 2rem; text-align: center; position: relative;
  border-inline-end: 1px solid var(--line);
}
.profile-aside::before {
  content:''; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(circle at 50% 25%, rgba(212,175,106,.18), transparent 60%);
}
.profile-avatar {
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 1.3rem; position: relative; z-index: 2;
  background: var(--grad-gold); display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 3rem; color: #23150a; font-weight: 700;
  box-shadow: var(--shadow-gold); border: 4px solid rgba(255,255,255,.1);
}
.profile-aside h2 { font-size: 1.55rem; margin: 0 0 .3rem; position: relative; z-index: 2; }
.profile-role { color: var(--gold); font-size: .92rem; position: relative; z-index: 2; margin-bottom: 1.4rem; }
.profile-contact { position: relative; z-index: 2; display: grid; gap: .7rem; text-align: start; margin-top: 1.4rem; }
.profile-contact a, .profile-contact span { display: flex; gap: .7rem; align-items: center; color: var(--muted); font-size: .88rem; }
.profile-contact i { color: var(--gold); width: 18px; }
.profile-main { padding: 2.6rem; }
.profile-main .summary { color: var(--muted); font-size: 1.02rem; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.chip {
  background: rgba(212,175,106,.1); border: 1px solid var(--line); color: var(--gold-bright);
  padding: .4rem .9rem; border-radius: 30px; font-size: .82rem; transition: background .3s, transform .3s;
}
.chip:hover { background: rgba(212,175,106,.22); transform: translateY(-2px); }

.block-title { font-size: 1.1rem; margin: 2rem 0 1rem; display: flex; align-items: center; gap: .6rem; color: var(--heading); }
.block-title i { color: var(--gold); }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.cert-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem;
  display: flex; gap: .9rem; align-items: flex-start; transition: transform .35s var(--ease), border-color .35s;
}
.cert-item:hover { translate: 0 -5px; border-color: rgba(212,175,106,.4); }
.cert-item i { color: var(--gold); font-size: 1.2rem; margin-top: .15rem; }
.cert-item b { display: block; color: var(--heading); font-size: .95rem; }
.cert-item span { color: var(--muted); font-size: .82rem; }

/* Experience timeline */
.timeline { position: relative; margin-top: 1rem; padding-inline-start: 26px; }
.timeline::before {
  content:''; position: absolute; inset-inline-start: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--gold), transparent);
}
.tl-item { position: relative; padding-bottom: 1.8rem; }
.tl-item::before {
  content:''; position: absolute; inset-inline-start: -26px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--grad-gold); box-shadow: 0 0 0 4px rgba(212,175,106,.15);
}
.tl-item h4 { margin: 0 0 .2rem; font-size: 1.08rem; color: var(--heading); }
.tl-item .tl-role { color: var(--gold); font-size: .88rem; margin-bottom: .5rem; }
.tl-item p { color: var(--muted); font-size: .9rem; margin: 0; }

.skills-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.4rem; }
.skill-line { margin-bottom: 1rem; }
.skill-line .sl-top { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: .4rem; }
.skill-line .sl-top b { color: var(--text); font-weight: 500; }
.skill-line .sl-top span { color: var(--gold); }
.skill-bar { height: 7px; background: rgba(212,175,106,.12); border-radius: 10px; overflow: hidden; }
.skill-bar i { display: block; height: 100%; width: 0; background: var(--grad-gold); border-radius: 10px; transition: width 1.4s var(--ease); }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.4rem; align-items: start; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: linear-gradient(160deg, var(--card), var(--bg-2)); border: 1px solid var(--line);
  border-radius: 22px; padding: 2.4rem; box-shadow: var(--shadow);
}
.info-row { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-ico {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(212,175,106,.12); color: var(--gold); font-size: 1.15rem; transition: all .35s;
}
.info-row:hover .info-ico { background: var(--grad-gold); color: #23150a; }
.info-row b { display: block; color: var(--heading); font-size: .95rem; margin-bottom: .2rem; }
.info-row a, .info-row span { color: var(--muted); font-size: .9rem; }
.info-row a:hover { color: var(--gold); }

.form-card {
  background: linear-gradient(160deg, var(--card), var(--bg-2)); border: 1px solid var(--line);
  border-radius: 22px; padding: 2.4rem; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .5rem; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: .9rem 1.1rem; border-radius: 12px; font-family: inherit; font-size: .95rem;
  background: var(--bg-dark); border: 1px solid var(--line); color: var(--text);
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,106,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--muted-2); margin-top: .4rem; }
.form-alert { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.2rem; display: none; font-size: .9rem; }
.form-alert.ok { display: block; background: rgba(76,175,80,.14); border: 1px solid rgba(76,175,80,.4); color: #a5d6a7; }
.form-alert.err { display: block; background: rgba(244,67,54,.14); border: 1px solid rgba(244,67,54,.4); color: #ef9a9a; }

.map-wrap { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; filter: grayscale(.3) invert(.9) hue-rotate(180deg) contrast(.9); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--bg-darkest); padding-top: clamp(60px, 8vw, 90px); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.4fr; gap: 2.6rem; padding-bottom: 3rem; }
@media (max-width: 800px){ .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand img { height: 68px; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 320px; }
.footer h4 { font-family: var(--ff-en); font-size: .82rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); margin: 0 0 1.3rem; }
html[dir="rtl"] .footer h4 { font-family: var(--ff-ar); letter-spacing: normal; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.footer-links a { color: var(--muted); font-size: .92rem; display: inline-flex; gap: .5rem; align-items: center; }
.footer-links a:hover { color: var(--gold); transform: translateX(4px); }
html[dir="rtl"] .footer-links a:hover { transform: translateX(-4px); }
.footer-contact { display: grid; gap: .9rem; }
.footer-contact a, .footer-contact span { color: var(--muted); font-size: .92rem; display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact i { color: var(--gold); margin-top: .25rem; }
.social-row { display: flex; gap: .8rem; margin-top: 1.4rem; }
.social-row a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(212,175,106,.1); border: 1px solid var(--line); color: var(--gold);
  transition: all .35s var(--ease);
}
.social-row a:hover { background: var(--grad-gold); color: #23150a; transform: translateY(-4px); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.6rem 0; text-align: center; color: var(--muted-2); font-size: .85rem; }
.footer-bottom .gold-text { font-weight: 600; }

/* =========================================================
   ELECTRIC BACKGROUND LINES  (ambient animated current)
   ========================================================= */
/* Horizontal divider with a travelling gold "spark" — drop between sections */
.electric-divider {
  position: relative; height: 2px; width: min(1200px, 92%); margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
  overflow: visible;
}
.electric-divider::before {
  content: ''; position: absolute; top: 50%; inset-inline-start: 0; transform: translateY(-50%);
  width: 120px; height: 2px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--gold), transparent);
  box-shadow: 0 0 12px var(--gold), 0 0 26px rgba(212,175,106,.6);
  animation: sparkRun 5s linear infinite;
}
.electric-divider::after {
  content: ''; position: absolute; top: 50%; inset-inline-start: 0; transform: translate(0,-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright);
  box-shadow: 0 0 10px 2px var(--gold), 0 0 22px 6px rgba(212,175,106,.55);
  animation: sparkRun 5s linear infinite;
}
@keyframes sparkRun { 0% { inset-inline-start: -12%; } 100% { inset-inline-start: 100%; } }
html[dir="rtl"] .electric-divider::before,
html[dir="rtl"] .electric-divider::after { animation-direction: reverse; }

/* Ambient animated horizontal circuit lines behind dark sections */
.circuit-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: .55;
}
.circuit-lines span {
  position: absolute; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,106,.18) 30%, rgba(212,175,106,.18) 70%, transparent);
}
.circuit-lines span::after {
  content: ''; position: absolute; top: 0; inset-inline-start: -20%; width: 20%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  box-shadow: 0 0 10px var(--gold); filter: blur(.3px);
  animation: lineRun 6s linear infinite;
}
.circuit-lines span:nth-child(1) { top: 22%; }
.circuit-lines span:nth-child(1)::after { animation-delay: 0s; animation-duration: 7s; }
.circuit-lines span:nth-child(2) { top: 50%; }
.circuit-lines span:nth-child(2)::after { animation-delay: 1.6s; animation-duration: 5.5s; }
.circuit-lines span:nth-child(3) { top: 78%; }
.circuit-lines span:nth-child(3)::after { animation-delay: 3s; animation-duration: 8s; }
@keyframes lineRun { 0% { inset-inline-start: -20%; } 100% { inset-inline-start: 120%; } }
html[dir="rtl"] .circuit-lines span::after { animation-direction: reverse; }
.circuit-lines + .container, .why .container { position: relative; z-index: 2; }

/* subtle electric pulse on the hero grid */
.hero-grid { animation: gridPulse 4.5s ease-in-out infinite; }
@keyframes gridPulse { 0%,100% { opacity: .35; } 50% { opacity: .5; } }

/* =========================================================
   SCROLL "ELECTRICITY" SPINE  (scroll-driven gold current)
   ========================================================= */
.scroll-spine {
  position: fixed; inset-block: 0; inset-inline-start: 26px; z-index: 800;
  width: 3px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(212,175,106,.14) 8%, rgba(212,175,106,.14) 92%, transparent);
  border-radius: 3px;
}
@media (max-width: 992px){ .scroll-spine { inset-inline-start: 12px; } }
@media (max-width: 640px){ .scroll-spine { display: none; } }
/* the energised portion, height set by JS via --p (0–1) */
.scroll-spine .current {
  position: absolute; inset-inline: 0; top: 0; height: calc(var(--p, 0) * 100%);
  background: linear-gradient(180deg, rgba(233,201,142,.15), var(--gold) 60%, var(--gold-bright));
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(212,175,106,.6), 0 0 24px rgba(212,175,106,.35);
  animation: currentFlicker 1.8s infinite;
}
/* travelling spark at the leading edge */
.scroll-spine .spark {
  position: absolute; inset-inline-start: 50%; top: calc(var(--p, 0) * 100%);
  width: 12px; height: 12px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--gold-bright);
  box-shadow: 0 0 8px 2px var(--gold), 0 0 20px 6px rgba(212,175,106,.7), 0 0 40px 12px rgba(212,175,106,.35);
  animation: sparkPulse 1.1s ease-in-out infinite;
}
html[dir="rtl"] .scroll-spine .spark { transform: translate(50%, -50%); }
/* faint animated electric arcs travelling down the energised line */
.scroll-spine .current::after {
  content:''; position: absolute; inset-inline: -1px; top: -30%; height: 30%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.85), transparent);
  filter: blur(1px); opacity: .8;
  animation: arcTravel 2.4s linear infinite;
}
@keyframes currentFlicker { 0%,100%{opacity:1} 47%{opacity:.82} 52%{opacity:1} 70%{opacity:.9} }
@keyframes sparkPulse { 0%,100%{ box-shadow:0 0 8px 2px var(--gold),0 0 20px 6px rgba(212,175,106,.7),0 0 40px 12px rgba(212,175,106,.3); }
  50%{ box-shadow:0 0 12px 3px var(--gold-bright),0 0 30px 9px rgba(212,175,106,.85),0 0 60px 18px rgba(212,175,106,.45); } }
@keyframes arcTravel { 0%{ top:-30%; opacity:0 } 12%{opacity:.9} 88%{opacity:.9} 100%{ top:100%; opacity:0 } }

/* =========================================================
   FLOATING BUTTONS
   ========================================================= */
.whatsapp-float {
  position: fixed; inset-block-end: 26px; inset-inline-end: 26px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 10px 24px -8px rgba(37,211,102,.6);
  transition: transform .35s var(--ease); animation: pulse-ws 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse-ws { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5)} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }

.back-top {
  position: fixed; inset-block-end: 96px; inset-inline-end: 30px; z-index: 899;
  width: 46px; height: 46px; border-radius: 12px; background: var(--grad-gold); color: #23150a;
  display: grid; place-items: center; font-size: 1.1rem; border: none; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .4s var(--ease);
  box-shadow: var(--shadow-gold);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-4px); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(12,7,4,.94);
  display: none; align-items: center; justify-content: center; padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox .lb-close { position: absolute; top: 24px; inset-inline-end: 30px; color: var(--gold); font-size: 2rem; cursor: pointer; background: none; border: none; }
.lightbox .lb-cap { position: absolute; bottom: 30px; color: var(--gold-bright); font-size: 1rem; text-align: center; width: 100%; }

/* ---------- AOS fallback (no-JS safety) ---------- */
[data-aos] { will-change: transform, opacity; }

/* ---------- Reveal (custom) ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
/* directional variants — image slides in from left, text from right, etc. */
.reveal.from-left  { transform: translateX(-70px); }
.reveal.from-right { transform: translateX(70px); }
.reveal.from-up    { transform: translateY(64px); }
html[dir="rtl"] .reveal.from-left  { transform: translateX(70px); }
html[dir="rtl"] .reveal.from-right { transform: translateX(-70px); }

/* Project cards: rise from below, staggered per column (left / center / right) */
.projects-grid .project-card.reveal:nth-child(3n+1) { transform: translate(-55px, 45px); }
.projects-grid .project-card.reveal:nth-child(3n+2) { transform: translateY(70px); transition-delay: .12s; }
.projects-grid .project-card.reveal:nth-child(3n+3) { transform: translate(55px, 45px); transition-delay: .24s; }
html[dir="rtl"] .projects-grid .project-card.reveal:nth-child(3n+1) { transform: translate(55px, 45px); }
html[dir="rtl"] .projects-grid .project-card.reveal:nth-child(3n+3) { transform: translate(-55px, 45px); }

/* Service cards — creative 3D "power-on" unfold, staggered left→right */
.services-grid .service-card.reveal {
  transform: perspective(1200px) rotateX(-26deg) translateY(60px);
  transform-origin: center bottom;
}
.services-grid .service-card.reveal:nth-child(2) { transition-delay: .10s; }
.services-grid .service-card.reveal:nth-child(3) { transition-delay: .20s; }
.services-grid .service-card.reveal:nth-child(4) { transition-delay: .30s; }
.services-grid .service-card.reveal:nth-child(5) { transition-delay: .40s; }
.services-grid .service-card.reveal:nth-child(6) { transition-delay: .50s; }
/* the icon energises and the gold bar sweeps as each card lands */
.services-grid .service-card.reveal.in .service-icon { animation: iconEnergize .8s var(--ease); }
.services-grid .service-card.reveal.in::before { animation: barSweep 1.1s var(--ease) .1s; }
@keyframes iconEnergize {
  0%   { transform: rotate(-20deg) scale(.5); }
  55%  { transform: rotate(8deg) scale(1.14); }
  100% { transform: rotate(0) scale(1); }
}
@keyframes barSweep { 0% { transform: scaleX(0); } 45% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* Why cards — rise + zoom, staggered */
.why-grid .why-card.reveal { transform: translateY(54px) scale(.9); }
.why-grid .why-card.reveal:nth-child(2) { transition-delay: .12s; }
.why-grid .why-card.reveal:nth-child(3) { transition-delay: .24s; }
.why-grid .why-card.reveal:nth-child(4) { transition-delay: .36s; }

/* .in must win over every variant above (matching specificity, declared last) */
.reveal.in,
.projects-grid .project-card.reveal.in,
.services-grid .service-card.reveal.in,
.why-grid .why-card.reveal.in { opacity: 1; transform: none; }

/* ---------- RTL tweaks ---------- */
html[dir="rtl"] .btn-gold i.fa-arrow-right,
html[dir="rtl"] .btn-ghost i.fa-arrow-right { transform: scaleX(-1); }
html[dir="rtl"] .nav-links a::after { inset-inline-start: 0; }

/* ---------- Selection ---------- */
::selection { background: var(--gold); color: #23150a; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-darkest); }
::-webkit-scrollbar-thumb { background: var(--bronze); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* =========================================================
   MOBILE STABILITY  (stop scroll "vibration" / horizontal jitter)
   ========================================================= */
@media (max-width: 640px) {
  /* stable hero height so the address bar show/hide doesn't resize it */
  .hero { min-height: 100svh; }
  .hero-stats { gap: 1.1rem 1.4rem; padding-top: 1.5rem; }
  .hero-stats .stat b { font-size: 1.9rem; }
  .hero-stats .stat { min-width: 0; }

  /* Reveals become vertical-only on phones — horizontal slides caused the
     brief off-screen overflow that made scrolling / pinch-zoom shake. */
  .reveal,
  .reveal.from-left,
  .reveal.from-right,
  .reveal.from-up { transform: translateY(26px) !important; }
  .projects-grid .project-card.reveal { transform: translateY(30px) !important; transition-delay: 0s !important; }
  .services-grid .service-card.reveal { transform: translateY(30px) !important; transition-delay: 0s !important; }
  .why-grid .why-card.reveal { transform: translateY(30px) scale(.97) !important; transition-delay: 0s !important; }
  .reveal.in { transform: none !important; }
}

/* =========================================================
   THEME TOGGLE BUTTON
   ========================================================= */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(212,175,106,.1); border: 1px solid var(--line); color: var(--gold);
  cursor: pointer; transition: background .3s, transform .3s, color .3s;
}
.theme-toggle:hover { background: rgba(212,175,106,.2); transform: translateY(-2px) rotate(-12deg); }

/* =========================================================
   LIGHT THEME  —  "Vanilla Latte"
   Toggled by adding .theme-light to <html>
   ========================================================= */
html.theme-light {
  --bg-darkest: #f0e6d4;
  --bg-dark:    #faf4ea;
  --bg:         #fdf8f0;
  --bg-2:       #f5ecdc;
  --card:       #ffffff;
  --card-2:     #f9f1e4;
  --line:       rgba(120, 84, 42, 0.16);

  --gold:        #935f1c;
  --gold-bright: #b07f30;
  --gold-deep:   #714a14;
  --bronze:      #8a5c28;

  --text:    #2f2013;
  --muted:   #52402c;
  --muted-2: #6b573d;
  --heading: #241708;

  --grad-gold: linear-gradient(120deg, #b8863f 0%, #e0b76a 45%, #c99a45 100%);
  --grad-dark: linear-gradient(160deg, #fdf7ee 0%, #f2e8d6 100%);
  --shadow:      0 24px 55px -22px rgba(85,58,25,.22);
  --shadow-gold: 0 18px 45px -18px rgba(176,125,60,.32);
}
/* navbar */
html.theme-light .navbar-wafik { background: linear-gradient(180deg, rgba(244,234,216,.9), rgba(244,234,216,0)); }
html.theme-light .navbar-wafik.scrolled { background: rgba(248,239,223,.92); box-shadow: 0 10px 30px -18px rgba(85,58,25,.35); }
/* hero overlay — warm cream so the dark text stays readable */
html.theme-light .hero-overlay {
  background:
    linear-gradient(90deg, rgba(251,246,238,.96) 0%, rgba(251,246,238,.76) 45%, rgba(251,246,238,.34) 100%),
    linear-gradient(0deg, rgba(251,246,238,.85) 0%, rgba(251,246,238,.05) 55%);
}
html.theme-light[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(251,246,238,.96) 0%, rgba(251,246,238,.76) 45%, rgba(251,246,238,.34) 100%),
    linear-gradient(0deg, rgba(251,246,238,.85) 0%, rgba(251,246,238,.05) 55%);
}
/* hero slider dots */
html.theme-light .hero-dots button { background: rgba(74,53,36,.3); }
html.theme-light .hero-dots button:hover { background: rgba(74,53,36,.6); }
/* why-choose-us cards */
html.theme-light .why-card { background: rgba(255,255,255,.62); }
html.theme-light .why-card:hover { background: rgba(255,255,255,.94); }
/* avatar ring */
html.theme-light .profile-avatar { border-color: rgba(90,63,30,.15); }
/* google map — no dark inversion in light mode */
html.theme-light .map-wrap iframe { filter: grayscale(.12) contrast(.96); }
/* mobile dropdown menu */
@media (max-width: 900px){
  html.theme-light .nav-links { background: rgba(249,240,224,.94); }
}

/****************************/
/* =========================================================
   FOUNDER QUOTE / MEP BANNER
   ========================================================= */
.founder-quote { background: var(--bg-darkest); overflow: hidden; }

.quote-banner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative; z-index: 2;
}
@media (max-width: 860px) {
  .quote-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ---- Photo with rotating gold scan-ring ---- */
.quote-photo-wrap {
  position: relative;
  width: 260px; height: 260px;
  display: grid; place-items: center;
  justify-self: center;
}
.photo-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--gold) 18%, transparent 38%, transparent 60%, var(--gold-bright) 78%, transparent 100%);
  animation: ringSpin 6s linear infinite;
  filter: drop-shadow(0 0 14px rgba(212,175,106,.45));
}
.photo-ring-inner {
  position: absolute; inset: 10px; border-radius: 50%;
  background: linear-gradient(160deg, var(--card) 0%, var(--bg-2) 100%);
}
.quote-photo {
  position: relative; z-index: 2;
  width: calc(100% - 24px); height: calc(100% - 24px);
  border-radius: 50%;
  object-fit: cover; object-position: top center;
  box-shadow: var(--shadow);
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* ---- Quote text ---- */
.quote-text-wrap { position: relative; }
.quote-mark {
  font-size: 2.6rem; color: var(--gold);
  opacity: .55; margin-bottom: .6rem; display: inline-block;
  animation: quotePulse 3.2s ease-in-out infinite;
}
@keyframes quotePulse {
  0%,100% { opacity: .4; text-shadow: 0 0 0 rgba(212,175,106,0); }
  50%     { opacity: .85; text-shadow: 0 0 18px rgba(212,175,106,.55); }
}
.quote-text {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  font-style: italic; line-height: 1.55;
  color: var(--heading); max-width: 640px; margin: 0;
}
html[dir="rtl"] .quote-text { font-family: var(--ff-ar); font-style: normal; }

/* ---- Word-by-word "handwriting" scroll reveal ---- */
.split-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px) rotate(-2deg);
  filter: blur(3px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), filter .3s var(--ease);
  transition-delay: 0s;
}
.reveal.in .split-text span {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.045s); /* was 0.09s — now 2× faster */
}
@media (max-width: 640px) {
  .reveal.in .split-text span { transition-delay: calc(var(--i, 0) * 0.035s); }
}

/* draw-in divider under the quote */
.quote-divider {
  width: 0; height: 2px; margin: 1.6rem 0 1.2rem;
  background: var(--grad-gold);
  box-shadow: 0 0 10px rgba(212,175,106,.5);
  transition: width 1.1s var(--ease) .25s;
}
.reveal.in .quote-divider { width: 130px; }
@media (max-width: 860px){ .quote-divider { margin-inline: auto; } }

.quote-author h3 { font-size: 1.3rem; margin: 0 0 .2rem; }
.quote-role { display: block; color: var(--gold); font-size: .88rem; margin-bottom: .8rem; }
.quote-linkedin {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--muted); font-size: .88rem; font-weight: 500;
  border-bottom: 1px solid transparent; transition: color .3s, border-color .3s;
}
.quote-linkedin i { color: var(--gold); font-size: 1.05rem; }
.quote-linkedin:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ---- MEP chips ---- */
.mep-tags {
  display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem;
  justify-content: flex-start;
}
@media (max-width: 860px){ .mep-tags { justify-content: center; } }
.mep-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(212,175,106,.08); border: 1px solid var(--line);
  color: var(--gold-bright); padding: .5rem 1.05rem; border-radius: 30px;
  font-size: .85rem; font-weight: 500;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), background .3s, border-color .3s;
  transition-delay: var(--d, 0s);
}
.reveal.in .mep-chip { opacity: 1; transform: translateY(0); }
.mep-chip:hover { background: rgba(212,175,106,.18); border-color: var(--gold); transform: translateY(-3px); }
.mep-chip i { color: var(--gold); }

@media (max-width: 640px) {
  .photo-ring { animation-duration: 9s; }
  .reveal.in .quote-text.split-text span { transition-delay: calc(var(--i, 0) * 0.07s); }
}

