@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300;1,9..144,400&family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Backgrounds — very light, warm cream */
  --bg:        #fdfaf6;
  --bg-2:      #f7f2ec;
  --bg-3:      #f0e9e0;
  --surface:   #ffffff;

  /* Borders */
  --border:       rgba(0,0,0,0.08);
  --border-mid:   rgba(0,0,0,0.14);

  /* Typography */
  --text-primary:   #1c1118;
  --text-secondary: #6b5f6e;
  --text-muted:     #b0a3b5;

  /* ─── ACCENT PALETTE: Violet × Coral ─── */
  --violet:         #7c3aed;      /* deep violet */
  --violet-light:   #a78bfa;
  --violet-pale:    rgba(124, 58, 237, 0.08);
  --coral:          #f97066;      /* warm coral */
  --coral-light:    #ffb3ab;
  --coral-pale:     rgba(249, 112, 102, 0.09);
  --gold:           #f5a623;

  /* Gradients */
  --grad-hero:    linear-gradient(135deg, #7c3aed 0%, #c084fc 45%, #f97066 100%);
  --grad-soft:    linear-gradient(135deg, #ede9fe 0%, #fce7e6 100%);
  --grad-card:    linear-gradient(160deg, rgba(124,58,237,0.06) 0%, rgba(249,112,102,0.06) 100%);
  --grad-accent:  linear-gradient(90deg, var(--violet), var(--coral));
  --grad-btn:     linear-gradient(135deg, #7c3aed, #c084fc, #f97066);

  /* Typography */
  --font-display: 'Fraunces', serif;
  --font-sans:    'Plus Jakarta Sans', sans-serif;
  --font-ar:      'Cairo', sans-serif;

  /* Motion */
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.5s var(--ease);

  /* Layout */
  --nav-h:    70px;
  --radius:   16px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(124,58,237,0.07);
  --shadow-md:  0 8px 32px rgba(124,58,237,0.12);
  --shadow-lg:  0 20px 60px rgba(124,58,237,0.18);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
}

/* ============================================
   DARK MODE VARIABLES
   ============================================ */
[data-theme="dark"] {
  --bg:        #0f0d13;
  --bg-2:      #16121f;
  --bg-3:      #1e1829;
  --surface:   #1a1525;

  --border:       rgba(255,255,255,0.07);
  --border-mid:   rgba(255,255,255,0.13);

  --text-primary:   #f0ebf8;
  --text-secondary: #9d8fb5;
  --text-muted:     #5a4f6e;

  --violet-pale:    rgba(167, 139, 250, 0.12);
  --coral-pale:     rgba(249, 112, 102, 0.12);

  --grad-soft:    linear-gradient(135deg, rgba(124,58,237,0.18) 0%, rgba(249,112,102,0.14) 100%);
  --grad-card:    linear-gradient(160deg, rgba(124,58,237,0.10) 0%, rgba(249,112,102,0.08) 100%);

  --shadow-sm:   0 2px 12px rgba(0,0,0,0.4);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.6);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
  direction: rtl;
  font-weight: 400;
  letter-spacing: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  font-family: var(--font-ar);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

html[lang="ar"] .logo,
html[lang="ar"] .footer-logo,
html[lang="ar"] .pl-logo,
html[lang="ar"] .mobile-menu a {
  font-family: var(--font-ar);
  font-weight: 800;
  letter-spacing: 0;
}

html[lang="ar"] .hero-title {
  font-family: var(--font-ar);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

html[lang="ar"] .hero-sub,
html[lang="ar"] .about-body,
html[lang="ar"] .contact-sub,
html[lang="ar"] .project-desc {
  font-family: var(--font-ar);
  font-weight: 400;
  font-size: 1rem;
  line-height: 2;
}

html[lang="ar"] .section-label,
html[lang="ar"] .project-cat,
html[lang="ar"] .stat-lbl,
html[lang="ar"] .project-num,
html[lang="ar"] .project-tags span,
html[lang="ar"] .field label,
html[lang="ar"] .marquee-item {
  font-family: var(--font-ar);
  letter-spacing: 0;
  font-weight: 700;
}

html[lang="ar"] .stat-num {
  font-family: var(--font-ar);
  font-weight: 800;
}

html[lang="ar"] .btn-primary,
html[lang="ar"] .btn-secondary,
html[lang="ar"] .btn-send,
html[lang="ar"] .lang-btn,
html[lang="ar"] .soc-btn,
html[lang="ar"] .project-links a {
  font-family: var(--font-ar);
  font-weight: 600;
  letter-spacing: 0;
}

img { display: block; width: 100%; object-fit: cover; }
/* Prevent SVG icons inside special buttons from inheriting width:100% */
.wa-float-cute svg,
.dark-toggle svg,
.soc-btn svg,
.btn-primary svg,
.btn-secondary svg,
.btn-send svg { width: auto; height: auto; }

/* ══ FORCE WESTERN ARABIC NUMERALS (0-9) EVERYWHERE ══
   Cairo Arabic font auto-converts digits to Eastern Arabic in RTL context.
   Solution: override font-family for all number-carrying elements so the
   system sans-serif (which uses Western digits) is used for the numbers. */

/* Global: prefer Western digits */
html[lang="ar"] .stat-num,
html[lang="ar"] .skill-meta span:last-child,
html[lang="ar"] .project-num,
html[lang="ar"] .footer-copy,
html[lang="ar"] .form-note,
html[lang="ar"] .hero-badge,
html[lang="ar"] .wa-number {
  font-feature-settings: "lnum" 1;
  -webkit-font-feature-settings: "lnum" 1;
  font-variant-numeric: lining-nums;
}

/* The most reliable method: wrap digits in a neutral font */
html[lang="ar"] .stat-num {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
}

html[lang="ar"] .skill-meta span:last-child,
html[lang="ar"] .project-num {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
}
a   { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--violet-light); border-radius: 3px; }

/* Dark mode color-scheme */
[data-theme="dark"] {
  color-scheme: dark;
}

/* ============================================
   DARK MODE TOGGLE BUTTON
   ============================================ */
.dark-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-mid);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.dark-toggle:hover {
  background: var(--violet-pale);
  border-color: var(--violet);
  transform: rotate(20deg) scale(1.08);
}

.dark-toggle .icon-sun,
.dark-toggle .icon-moon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity 0.35s ease, transform 0.35s ease;
  fill: none;
  stroke: var(--text-secondary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dark-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.dark-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

[data-theme="dark"] .dark-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

[data-theme="dark"] .dark-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  stroke: var(--violet-light);
}

/* ── Dark mode: Nav ── */
[data-theme="dark"] nav.scrolled {
  background: rgba(15, 13, 19, 0.92);
}

[data-theme="dark"] .nav-center {
  background: var(--surface);
}

/* ── Dark mode: Mobile menu ── */
[data-theme="dark"] .mobile-menu {
  background: rgba(15, 13, 19, 0.97);
}

/* ── Dark mode: About section ── */
[data-theme="dark"] .about-section {
  background: linear-gradient(160deg, #0f0d13 0%, #1a0f2e 50%, #1a0c0c 100%);
}

/* ── Dark mode: Marquee ── */
[data-theme="dark"] .marquee-wrap {
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(249,112,102,0.12));
}

/* ── Dark mode: Form fields ── */
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea {
  background: var(--bg-2);
  color: var(--text-primary);
}

[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder {
  color: var(--text-muted);
}

/* ── Dark mode: Footer ── */
[data-theme="dark"] footer {
  background: #07060b;
}

/* ── Dark mode: Preloader ── */
[data-theme="dark"] #preloader {
  background: var(--bg);
}

/* ── Dark mode: Project links ── */
[data-theme="dark"] .project-links a {
  background: var(--bg-3);
  color: var(--text-primary);
}

/* ── Dark mode: soc-btn ── */
[data-theme="dark"] .soc-btn {
  background: var(--bg-2);
  color: var(--text-secondary);
}

/* ── Dark mode: lang-btn ── */
[data-theme="dark"] .lang-btn {
  background: rgba(167,139,250,0.1);
  border-color: rgba(167,139,250,0.2);
  color: var(--violet-light);
}

[data-theme="dark"] .lang-btn:hover {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

/* ── Dark mode: burger ── */
[data-theme="dark"] .burger {
  background: var(--surface);
  border-color: var(--border-mid);
}

/* ── Dark mode: hero badge ── */
[data-theme="dark"] .hero-badge {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(249,112,102,0.15));
  border-color: rgba(124,58,237,0.25);
}

/* ── Dark mode: btn-secondary ── */
[data-theme="dark"] .btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
}

/* ── Dark mode: scroll cue ── */
[data-theme="dark"] .scroll-mouse {
  border-color: var(--border-mid);
}

/* ── Dark mode: stat item border ── */
[data-theme="dark"] .stat-item {
  border-color: var(--border);
}

/* ── Dark mode: portrait badge ── */
[data-theme="dark"] .portrait-badge {
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* Smooth theme transition */
body, nav, footer, .about-section, .marquee-wrap,
.strip-section, .stats-strip, .contact-section,
.project-card-inner, .mobile-menu, .nav-center,
.soc-btn, .lang-btn, .burger, .dark-toggle,
.field input, .field textarea, #preloader {
  transition: background 0.4s ease, color 0.4s ease,
              border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.pl-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.6s var(--ease) 0.2s both;
}

.pl-bar {
  width: 120px; height: 3px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  animation: fadeUp 0.6s var(--ease) 0.3s both;
}

.pl-fill {
  height: 100%;
  background: var(--grad-btn);
  border-radius: 2px;
  animation: fillBar 1.4s var(--ease) 0.4s both;
}

@keyframes fillBar { from { width: 0; } to { width: 100%; } }

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0; width: 100%;
  height: var(--nav-h);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 500;
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(253, 250, 246, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav-center {
  display: flex;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem;
  box-shadow: var(--shadow-sm);
}

.nav-center a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-center a:hover,
.nav-center a.active {
  background: var(--grad-btn);
  color: #fff;
}

.lang-btn {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--violet);
  border: 2px solid var(--violet-pale);
  background: var(--violet-pale);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-btn:hover {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

/* ── WhatsApp Nav Button ── */
.nav-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #25d366;
  border: 2px solid rgba(37, 211, 102, 0.2);
  background: rgba(37, 211, 102, 0.07);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.nav-wa-btn:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

.nav-wa-btn svg {
  flex-shrink: 0;
  width: 16px !important;
  height: 16px !important;
  transition: transform 0.3s var(--ease);
}

.nav-wa-btn:hover svg {
  transform: scale(1.15) rotate(-5deg);
}

[data-theme="dark"] .nav-wa-btn {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.25);
  color: #4ade80;
}

[data-theme="dark"] .nav-wa-btn:hover {
  background: #25d366;
  color: #fff;
}

@media (max-width: 768px) {
  /* On mobile: show only the WA icon, hide text */
  .nav-wa-btn {
    padding: 0.45rem 0.55rem;
    gap: 0;
  }
  .nav-wa-btn span {
    display: none;
  }
  /* Keep the svg visible */
  .nav-wa-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-title { font-size: clamp(2.5rem, 8vw, 3.5rem); }

  .gallery-grid {
    /* Mobile: 2 columns instead of 1 */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .project-card-inner {
    padding: 1.5rem;
    gap: 2rem;
  }

  .project-title { font-size: 1.5rem; }
  
  .lb-prev, .lb-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
  
  [lang="ar"] .lb-prev { right: 0.5rem; left: auto; }
  [lang="ar"] .lb-next { left: 0.5rem; right: auto; }
}


/* Mobile burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile drawer */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(253, 250, 246, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--text-primary);
  padding: 0.5rem 2rem;
  transition: var(--transition);
}

.mobile-menu a:hover {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-lang {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--violet);
  border: 2px solid var(--violet);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 5% 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.hero::before {
  content: '';
  position: absolute;
  width: clamp(300px, 60vw, 700px);
  height: clamp(300px, 60vw, 700px);
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 65%);
  top: -15%;
  right: -15%;
  border-radius: 50%;
  pointer-events: none;
  animation: blobPulse 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  width: clamp(200px, 45vw, 500px);
  height: clamp(200px, 45vw, 500px);
  background: radial-gradient(circle, rgba(249,112,102,0.1) 0%, transparent 65%);
  bottom: 0;
  left: -10%;
  border-radius: 50%;
  pointer-events: none;
  animation: blobPulse 10s ease-in-out 2s infinite alternate-reverse;
}

@keyframes blobPulse {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.2) translate(20px, -30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad-soft);
  border: 1px solid rgba(124,58,237,0.15);
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.7s var(--ease) 1.3s both;
}

.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--coral);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s var(--ease) 1.5s both;
}

.hero-title .grad-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
  animation: fadeUp 0.7s var(--ease) 1.7s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s var(--ease) 1.9s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad-btn);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  border: 1.5px solid var(--border-mid);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--violet);
  color: var(--violet);
  transform: translateY(-2px);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: fadeIn 0.6s var(--ease) 2.5s both;
}

.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--border-mid);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 7px;
  background: var(--violet);
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 20px; }
}

.scroll-cue span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   STATS ROW
   ============================================ */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 5%;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  height: 40px;
  align-self: center;
  justify-self: center;
  display: none; /* shown on desktop via grid */
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-lbl {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ============================================
   SECTION HELPERS
   ============================================ */
.section-wrap {
  padding: 6rem 5%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--grad-accent);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-wrap {
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe, #fce7e6);
  border-top: 1px solid rgba(124,58,237,0.1);
  border-bottom: 1px solid rgba(124,58,237,0.1);
  padding: 1.1rem 0;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--violet);
  white-space: nowrap;
}

.marquee-item::after {
  content: '✦';
  font-size: 0.6rem;
  color: var(--coral);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   PORTFOLIO — PROJECT CARDS
   ============================================ */
.works-section {
  padding: 5rem 0;
}

.works-header {
  padding: 0 5%;
  max-width: 1280px;
  margin: 0 auto 4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.works-header-text { flex: 1; min-width: 220px; }

/* --- Project Card --- */
.project-card {
  margin: 0 5% 5rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 5%;
}

.project-card-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.project-card-inner:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.project-card:nth-child(even) .project-card-inner {
  grid-template-columns: 1.1fr 1fr;
}

.project-card:nth-child(even) .project-gallery {
  order: -1;
}

/* Project Info */
.project-info {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.project-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral);
  background: var(--coral-pale);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  width: fit-content;
}

.project-title {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--violet);
  background: var(--violet-pale);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.project-card-inner:hover .project-tags span {
  background: var(--violet);
  color: #fff;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-2);
  border: 1px solid var(--border-mid);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  transition: var(--transition);
}

.project-links a:hover {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

/* Project Gallery */
.project-gallery {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 0;
}

.gallery-grid {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 3px;
  background: var(--bg-3);
}

/* Masonry 5-image layout */
.gallery-grid.g-5 {
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1.2fr 1fr 1fr;
}

.gallery-grid.g-5 .gi:nth-child(1) {
  grid-row: 1 / 3;
}

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

.gi {
  overflow: hidden;
  position: relative;
}

.gi img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.project-card-inner:hover .gi img {
  transform: scale(1.07);
}

/* ============================================
   SCROLLING SHOWCASE STRIP
   ============================================ */
.strip-section {
  overflow: hidden;
  padding: 2.5rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strip-track {
  display: flex;
  gap: 1rem;
  animation: stripScroll 38s linear infinite;
  width: max-content;
}

.strip-track:hover { animation-play-state: paused; }

.strip-item {
  width: 200px;
  height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease);
}

.strip-item:hover {
  transform: scale(1.05);
}

.strip-item img {
  width: 100%; height: 100%;
  transition: transform 0.8s var(--ease);
}

.strip-item:hover img { transform: scale(1.1); }

@keyframes stripScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   ABOUT
   ============================================ */
.about-section {
  background: linear-gradient(160deg, #fdfaf6 0%, #f0e9f5 50%, #fce7e6 100%);
  padding: 6rem 5%;
  border-top: 1px solid var(--border);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6rem;
  align-items: start;
}

.about-portrait-wrap {
  position: relative;
  width: 320px;
  flex-shrink: 0;
}

.about-portrait-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}

.about-portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Floating badge */
.portrait-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: badgeFloat 3s ease-in-out infinite alternate;
}

@keyframes badgeFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.about-content { display: flex; flex-direction: column; gap: 1.75rem; }

.about-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text-primary);
}

.about-heading em {
  font-style: italic;
  font-weight: 300;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Skill bars */
.skills { display: flex; flex-direction: column; gap: 1rem; }

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.skill-track {
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--grad-btn);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease);
}

.skill-fill.on { transform: scaleX(1); }

/* Socials */
.social-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.soc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1.5px solid var(--border-mid);
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
}

.soc-btn svg { width: 15px; height: 15px; fill: currentColor; }

.soc-btn:hover {
  background: var(--grad-btn);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  padding: 6rem 5%;
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 740px;
  margin: 0 auto;
}

.contact-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-heading em {
  font-style: italic;
  font-weight: 300;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
  appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-send {
  background: var(--grad-btn);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.45);
}

.btn-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.55);
  padding: 3rem 5%;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  background: var(--grad-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy {
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.footer-back {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  transition: var(--transition);
}

.footer-back:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
  .nav-center { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }

  .project-card-inner,
  .project-card:nth-child(even) .project-card-inner {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(even) .project-gallery {
    order: 0;
  }

  .project-gallery {
    height: 55vw;
    min-height: 280px;
    max-height: 420px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-portrait-wrap {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .about-portrait-frame {
    aspect-ratio: 4/3;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
    --radius-lg: 16px;
  }

  /* Nav */
  nav { padding: 0 4%; }
  .logo { font-size: 1.15rem; }
  .lang-btn { font-size: 0.72rem; padding: 0.35rem 0.75rem; }

  /* Hero */
  .hero {
    padding: calc(var(--nav-h) + 2rem) 5% 4rem;
  }

  .hero-title { letter-spacing: -1px; }
  .hero-badge { font-size: 0.72rem; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    font-size: 0.95rem;
    padding: 1rem 2rem;
  }

  /* Stats */
  .stats-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }

  /* Works */
  .works-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .project-card {
    padding: 0 4%;
    margin-bottom: 3rem;
  }

  .project-card-inner {
    border-radius: var(--radius);
  }

  .project-info {
    padding: 1.75rem;
    gap: 1rem;
  }

  .project-title { font-size: 1.5rem; }
  .project-desc  { font-size: 0.85rem; }

  .project-gallery {
    height: 65vw;
    min-height: 220px;
    max-height: 320px;
  }

  /* Gallery on mobile: simpler grid */
  .gallery-grid.g-5 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }

  .gallery-grid.g-5 .gi:nth-child(1) {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
  }

  /* Strip */
  .strip-item { width: 150px; height: 105px; }

  /* About */
  .about-section { padding: 4rem 5%; }

  .about-portrait-frame { aspect-ratio: 3/2; }

  .portrait-badge {
    right: 0; bottom: -12px;
    font-size: 0.68rem;
    padding: 0.6rem 0.85rem;
  }

  .about-heading { font-size: 1.7rem; }

  /* Contact */
  .contact-section { padding: 4rem 5%; }

  .form-row { grid-template-columns: 1fr; }

  .form-action {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-send {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 1rem;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  /* Mobile nav drawer */
  .mobile-menu a { font-size: 2rem; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤390px)
   ============================================ */
@media (max-width: 390px) {
  .hero-title { font-size: 2.4rem; letter-spacing: -0.5px; }
  .section-title { font-size: 1.7rem; }
  .project-info { padding: 1.25rem; }
  .strip-item { width: 130px; height: 90px; }
}

/* ============================================
   WHATSAPP BUTTONS
   ============================================ */

/* ─── WhatsApp Social Button (About row) ─── */
.soc-whatsapp {
  color: #25d366 !important;
  border-color: rgba(37, 211, 102, 0.25) !important;
  background: rgba(37, 211, 102, 0.06) !important;
}

.soc-whatsapp:hover {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #fff !important;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4) !important;
}

/* ─── WhatsApp CTA Button (Contact Section) ─── */
.whatsapp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 700;
  padding: 1.1rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.38);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
  margin-top: 0.5rem;
  width: fit-content;
  direction: rtl;
}

.whatsapp-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

/* Pulse ring on CTA */
.wa-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.4);
  animation: waPulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.06); opacity: 0; }
  100% { transform: scale(1.06); opacity: 0; }
}

.wa-icon {
  width: 28px;
  height: 28px;
  fill: #fff;
  flex-shrink: 0;
}

.wa-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-align: right;
}

.wa-label {
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.95;
}

.wa-number {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.82;
  letter-spacing: 0.5px;
  direction: ltr;
}

.wa-arrow {
  margin-right: auto;
  opacity: 0.85;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   CUTE FLOATING WHATSAPP BUTTON  ✦  .wa-float-cute
   Always visible, bottom-right corner
   ═══════════════════════════════════════════════ */
.wa-float-cute {
  /* Position */
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;

  /* Pill shape: collapses to circle, expands on hover */
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;

  /* Size baseline = icon size */
  height: 60px;
  width: 60px;
  border-radius: 30px;

  /* WhatsApp green gradient */
  background: linear-gradient(145deg, #57d163 0%, #25d366 50%, #128c7e 100%);
  box-shadow:
    0 4px 20px rgba(37, 211, 102, 0.45),
    0 1px 4px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.25);

  text-decoration: none;
  cursor: pointer;
  transition:
    width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-radius 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    transform 0.3s ease;

  /* Bouncy entrance animation */
  animation: wafBounceIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both;
}

/* ============================================
   LIGHTBOX (IMAGE GALLERY)
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lb-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease);
}

.lightbox.active .lb-content {
  transform: scale(1);
}

.lb-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  user-select: none;
}

.lb-caption {
  margin-top: 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

.lb-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}

.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 2rem;
  padding-bottom: 4px; /* optical alignment */
}

.lb-prev:hover, .lb-next:hover {
  transform: translateY(-50%) scale(1.1);
}

.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

[lang="ar"] .lb-prev { left: auto; right: 1.5rem; }
[lang="ar"] .lb-next { right: auto; left: 1.5rem; }
[lang="ar"] .lb-close { right: auto; left: 1.5rem; }

@keyframes wafBounceIn {
  0%   { transform: scale(0) translateY(30px); opacity: 0; }
  60%  { transform: scale(1.12) translateY(-6px); opacity: 1; }
  80%  { transform: scale(0.96) translateY(2px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Expand into pill on hover */
.wa-float-cute:hover {
  width: 175px;
  border-radius: 30px;
  box-shadow:
    0 8px 36px rgba(37, 211, 102, 0.6),
    0 2px 8px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-4px);
}

/* ─── Icon wrapper ─── */
.waf-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  min-width: 60px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.waf-icon svg {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px;
  display: block !important;
  flex-shrink: 0;
  object-fit: unset;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-float-cute:hover .waf-icon svg {
  transform: scale(1.1) rotate(-8deg);
}

/* ─── Label text ─── */
.waf-label {
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  padding-right: 1.1rem;
  opacity: 0;
  transform: translateX(10px);
  transition:
    opacity 0.25s ease 0.12s,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

html[lang="ar"] .waf-label {
  font-family: var(--font-ar);
  font-weight: 700;
  padding-right: 0;
  padding-left: 0;
  padding-right: 1.1rem;  /* label sits left of icon, padding on its right side */
  transform: translateX(10px);
}

/* For RTL: flip row so icon is on the right, label expands left */
html[lang="ar"] .wa-float-cute {
  flex-direction: row-reverse;
}


.wa-float-cute:hover .waf-label {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Double pulsing rings ─── */
.waf-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid rgba(37, 211, 102, 0.55);
  animation: wafRingPop 2.4s ease-out infinite;
  pointer-events: none;
}

.waf-ring-2 {
  animation-delay: 1.2s;
  border-color: rgba(37, 211, 102, 0.35);
}

@keyframes wafRingPop {
  0%   { transform: scale(1);   opacity: 0.9; }
  75%  { transform: scale(1.75); opacity: 0;  }
  100% { transform: scale(1.75); opacity: 0;  }
}

/* Rings pause when expanded */
.wa-float-cute:hover .waf-ring,
.wa-float-cute:hover .waf-ring-2 {
  animation-play-state: paused;
  opacity: 0;
}

/* ─── Dark mode ─── */
[data-theme="dark"] .soc-whatsapp {
  background: rgba(37, 211, 102, 0.08) !important;
}

[data-theme="dark"] .wa-float-cute {
  box-shadow:
    0 4px 24px rgba(37, 211, 102, 0.35),
    0 0 0 1px rgba(37, 211, 102, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

[data-theme="dark"] .wa-float-cute:hover {
  box-shadow:
    0 10px 40px rgba(37, 211, 102, 0.5),
    0 0 0 1px rgba(37, 211, 102, 0.2);
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .wa-float-cute {
    bottom: 1.25rem;
    right: 1.25rem;
    height: 52px;
    width: 52px;
    border-radius: 26px;
  }

  .waf-icon { width: 52px; height: 52px; }
  .waf-icon svg { width: 30px; height: 30px; }

  .wa-float-cute:hover {
    width: 150px;
    border-radius: 26px;
  }

  .whatsapp-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .wa-float-cute {
    bottom: 1rem;
    right: 1rem;
  }
}

