/* ============================================================
   MOHAMAD GHADDAR — PORTFOLIO
   ============================================================ */

/* ─── 1. CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  /* Colors */
  --color-bg:             #FAFAF8;
  --color-surface:        #FFFFFF;
  --color-surface-alt:    #F4F3EF;
  --color-border:         #E8E6E0;
  --color-text-primary:   #1A1916;
  --color-text-secondary: #6B6860;
  --color-text-tertiary:  #A8A49E;
  --color-accent:         #2D5BE3;
  --color-accent-light:   #EEF2FD;
  --color-whatsapp:       #25D366;

  /* Typography */
  --font: 'Inter', sans-serif;
  --size-hero:  clamp(2.8rem, 6vw, 5.5rem);
  --size-h2:    clamp(1.8rem, 3.5vw, 2.8rem);
  --size-h3:    clamp(1.1rem, 2vw, 1.35rem);
  --size-body:  1rem;
  --size-sm:    0.875rem;
  --size-label: 0.75rem;

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 7rem;
  --sp-3xl: 11rem;

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-pill: 100px;

  /* Shadows */
  --sh-card:  0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --sh-hover: 0 8px 32px rgba(0,0,0,.10);
  --sh-float: 0 20px 60px rgba(0,0,0,.12);

  /* Easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── 2. RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: 1.75;
  color: var(--color-text-primary);
  background: var(--color-bg);
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; }

ul { list-style: none; }

a { color: inherit; text-decoration: none; }

em { font-style: normal; }

/* ─── 3. UTILITIES ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 900px) {
  .container { padding-inline: 3rem; }
}

.section {
  padding-block: var(--sp-2xl);
}

.section-label {
  display: block;
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--sp-sm);
}

.section-h2 {
  font-size: var(--size-h2);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text-primary);
  margin-bottom: var(--sp-md);
}

.section-sub {
  font-size: var(--size-sm);
  color: var(--color-text-secondary);
  max-width: 520px;
}

.section-header {
  margin-bottom: var(--sp-xl);
}

.d-break { display: none; }
@media (min-width: 900px) { .d-break { display: block; } }

/* ─── 4. SCROLL REVEAL ──────────────────────────────────── */
/*
  Single easing used everywhere: cubic-bezier(0.22, 1, 0.36, 1)
  — smooth deceleration, no bounce, premium feel.
  Base delay of 100ms via calc() prevents instant-on-load firing.
*/

/* Base: sections, text blocks, about, contact */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity   0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-delay, 0s) + 0.1s);
}

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

/* Cards: opacity + translateY only — no scale (prevents snap/glitch) */
.reveal-scale {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity   0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-delay, 0s) + 0.1s);
}

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


/* Section headings: left-to-right clip, 900ms, fires after parent fades in */
.reveal .section-h2,
.reveal-scale .section-h2 {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s;
}

.reveal.is-visible .section-h2,
.reveal-scale.is-visible .section-h2 {
  clip-path: inset(0 0% 0 0);
}

/* Section labels: fade up just ahead of the heading */
.reveal .section-label,
.reveal-scale .section-label {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity   0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.reveal.is-visible .section-label,
.reveal-scale.is-visible .section-label {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-scale { opacity: 1; transform: none; transition: none; }
  .reveal .section-h2,
  .reveal-scale .section-h2 { clip-path: none; transition: none; }
  .reveal .section-label,
  .reveal-scale .section-label { opacity: 1; transform: none; transition: none; }
}

/* ─── 5. BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: var(--size-sm);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: scale(1.02); filter: brightness(1.05); }
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(45,91,227,.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-text-primary);
  box-shadow: var(--sh-hover);
}

.btn-outline-contact {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-outline-contact:hover {
  border-color: var(--color-text-primary);
  box-shadow: var(--sh-hover);
}

.btn-wa {
  background: transparent;
  color: var(--color-whatsapp);
  border-color: var(--color-whatsapp);
}

.btn-wa:hover {
  background: rgba(37,211,102,.07);
  box-shadow: 0 6px 20px rgba(37,211,102,.2);
}

.btn-wa-primary {
  background: var(--color-whatsapp);
  color: #fff;
  border-color: var(--color-whatsapp);
  padding: 1rem 2rem;
  font-size: var(--size-body);
}

.btn-wa-primary:hover {
  box-shadow: 0 8px 28px rgba(37,211,102,.35);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-wa-primary:not(:hover):not(:focus-visible) {
    animation: waPulse 2s ease-in-out infinite;
  }
}

/* Hero WhatsApp button — solid green, matches visual weight of btn-primary */
.btn-wa-solid {
  background: var(--color-whatsapp);
  color: #fff;
  border-color: var(--color-whatsapp);
}

.btn-wa-solid:hover {
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}

/* ─── 6. CUSTOM CURSOR ──────────────────────────────────── */
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

@media (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }

  .cursor-dot {
    position: fixed;
    left: -100px;
    top: -100px;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.25s var(--ease), opacity 0.2s;
    will-change: left, top;
  }

  .cursor-dot.is-hover  { transform: translate(-50%,-50%) scale(0); }
  .cursor-dot.is-hidden { opacity: 0; }

  .cursor-ring {
    position: fixed;
    left: -100px;
    top: -100px;
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition:
      width  0.35s var(--ease),
      height 0.35s var(--ease),
      border-radius 0.35s var(--ease),
      background 0.3s,
      border-color 0.3s;
    will-change: left, top;
  }

  .cursor-ring-label {
    display: none;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .cursor-ring.is-hover {
    width: 50px;
    height: 50px;
    background: var(--color-accent-light);
  }

  .cursor-ring.is-project {
    width: 62px;
    height: 36px;
    border-radius: var(--r-pill);
    background: var(--color-accent);
    border-color: var(--color-accent);
  }

  .cursor-ring.is-project .cursor-ring-label { display: block; }
}

/* ─── 7. NAVIGATION ─────────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(250,250,248,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.nav-header.is-scrolled {
  border-bottom-color: rgba(0,0,0,.08);
  background: rgba(250,250,248,.92);
  box-shadow: 0 1px 12px rgba(0,0,0,.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 900px) {
  .nav-inner { padding-inline: 3rem; }
}

.nav-logo {
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  gap: var(--sp-lg);
}

@media (min-width: 700px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding-bottom: 2px;
  transition: color 0.22s ease-out;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover { color: var(--color-text-primary); }
.nav-link:hover::after { transform: scaleX(1); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 700px) { .hamburger { display: none; } }

.h-line {
  width: 22px;
  height: 1.5px;
  background: var(--color-text-primary);
  border-radius: 1px;
  display: block;
  transition: transform 0.35s var(--ease), opacity 0.25s;
  transform-origin: center;
}

.hamburger.is-open .h-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open .h-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .h-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── 8. MOBILE MENU ─────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
}

.mobile-menu:not([hidden]) { display: flex; }
.mobile-menu.is-open { transform: translateX(0); }

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}

.mobile-nav-link {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.1;
  transition: color 0.2s;
}

.mobile-nav-link:hover { color: var(--color-accent); }

/* ─── 9. HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
  padding-block-start: var(--sp-sm);
  padding-block-end: var(--sp-md);
  width: 100%;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 60fr 40fr;
    align-items: center;
    gap: var(--sp-lg);
    padding-block-start: 0;
    padding-block-end: 60px; /* pulls visual center upward ~60px */
    min-height: calc(100svh - 68px);
  }
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--sp-md);
}

.label-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .label-dot { animation: blink 1.8s ease-in-out infinite; }
}

/* Hero headline */
.hero-headline {
  font-size: var(--size-hero);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-md);
}

.hl-line {
  display: block;
  overflow: hidden;
}

.hl-inner {
  display: block;
}

.accent-word { color: var(--color-accent); }

/* Hero entrance – applied when body.is-loaded */
@media (prefers-reduced-motion: no-preference) {
  .hl-inner {
    animation: lineReveal 0.85s var(--ease) both;
    animation-delay: var(--line-delay, 0s);
  }

  .hl-line:nth-child(1) .hl-inner { --line-delay: 0.1s; }
  .hl-line:nth-child(2) .hl-inner { --line-delay: 0.22s; }
  .hl-line:nth-child(3) .hl-inner { --line-delay: 0.34s; }

  .hero-reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s var(--ease) both;
    animation-delay: var(--reveal-delay, 0.5s);
  }
}

/* Hero sub & ctas */
.hero-sub {
  font-size: var(--size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-lg);
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: var(--size-label);
  color: var(--color-text-tertiary);
}

.trust-sep {
  width: 3px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── 10. HERO VISUAL / BROWSER MOCKUP ───────────────────── */
.hero-visual {
  display: none;
  position: relative;
  justify-content: center;
  align-items: center;
}

@media (min-width: 900px) { .hero-visual { display: flex; } }

.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.deco-c1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(45,91,227,.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-55%, -45%);
  filter: blur(40px);
}

.deco-c2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(45,91,227,.07) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-30%, -60%);
  filter: blur(60px);
}

@media (prefers-reduced-motion: no-preference) {
  .browser-float { animation: phoneFloat 6s ease-in-out infinite; }
}

/* Browser mockup */
.browser-mockup {
  width: 340px;
  background: #ffffff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-float), 0 0 0 1px rgba(0,0,0,.06);
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f0efed;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.bdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.bdot-red    { background: #FF5F56; }
.bdot-yellow { background: #FFBD2E; }
.bdot-green  { background: #27C93F; }

.browser-url-bar {
  flex: 1;
  height: 22px;
  background: #ffffff;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,.1);
  font-size: 10px;
  color: var(--color-text-tertiary);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  font-family: var(--font);
  letter-spacing: 0.01em;
}

.browser-lock { font-size: 9px; opacity: 0.6; }

.browser-screen {
  padding: 14px 14px 10px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

/* Browser screen UI skeleton */
.bscreen-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bscreen-logo {
  width: 52px;
  height: 7px;
  background: var(--color-text-primary);
  border-radius: 3px;
  opacity: 0.55;
}

.bscreen-links {
  display: flex;
  gap: 6px;
}

.bscreen-links i {
  display: block;
  width: 22px;
  height: 5px;
  background: var(--color-text-tertiary);
  border-radius: 2px;
  opacity: 0.4;
}

.bscreen-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0 2px;
}

.bscreen-tag {
  width: 44px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 3px;
  opacity: 0.35;
  margin-bottom: 2px;
}

.bscreen-h1 {
  height: 10px;
  border-radius: 4px;
  background: var(--color-text-primary);
}

.bscreen-h1-a { width: 88%; opacity: 0.18; }
.bscreen-h1-b { width: 70%; opacity: 0.18; }
.bscreen-h1-c { width: 48%; background: var(--color-accent); opacity: 0.5; }

.bscreen-sub {
  height: 6px;
  border-radius: 3px;
  background: var(--color-text-secondary);
  opacity: 0.15;
  width: 90%;
  margin-top: 2px;
}

.bscreen-sub-sm { width: 68%; }

.bscreen-cta {
  margin-top: 4px;
  width: 72px;
  height: 22px;
  background: var(--color-accent);
  border-radius: var(--r-pill);
  opacity: 0.75;
}

.bscreen-cards {
  display: flex;
  gap: 7px;
  margin-top: auto;
}

.bscreen-card {
  flex: 1;
  height: 52px;
  border-radius: var(--r-sm);
}

.bscreen-card-a { background: linear-gradient(135deg, #EEF2FD, #D6E4FF); }
.bscreen-card-b { background: linear-gradient(135deg, #FFF4EC, #FFE0C2); }
.bscreen-card-c { background: linear-gradient(135deg, #F0F4F0, #D8E8D8); }

/* ─── 11. NAV ENTRANCE ANIMATION ─────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .nav-header {
    animation: navDown 0.7s var(--ease) both;
  }
}

/* ─── 12. WORK / PROJECTS ───────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

@media (min-width: 700px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-card);
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* Top accent line reveal on hover */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  z-index: 2;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.project-card:hover { transform: translateY(-4px); box-shadow: var(--sh-hover); }
.project-card:hover::before { transform: scaleX(1); }

.project-visual {
  height: 210px;
  position: relative;
  overflow: hidden;
}

.project-visual-img {
  background: #f0f0ee;
  overflow: hidden;
}

.project-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-screenshot {
  transform: scale(1.03);
}

/* Project mockup */
.pmock {
  position: absolute;
  inset: 0;
  padding: 18px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pmock-centered { align-items: stretch; }

.pmock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pmock-logo {
  width: 36px;
  height: 6px;
  background: rgba(26,25,22,.25);
  border-radius: 3px;
}

.pmock-nav-links {
  display: flex;
  gap: 5px;
}

.pmock-nav-links i {
  display: block;
  width: 18px;
  height: 4px;
  background: rgba(26,25,22,.1);
  border-radius: 2px;
}

.pmock-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pmock-body-center {
  align-items: center;
  text-align: center;
}

.pmock-h {
  height: 9px;
  border-radius: 4px;
}

.pmock-h-sm {
  height: 7px;
  margin-top: 2px;
}

.pmock-btn {
  width: 52px;
  height: 18px;
  border-radius: var(--r-pill);
  margin-top: 4px;
}

.pmock-cards {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.pmock-mini {
  flex: 1;
  height: 42px;
  border-radius: var(--r-sm);
}

.pmock-stat {
  flex: 1;
  height: 36px;
  background: rgba(224,122,34,.1);
  border-radius: var(--r-sm);
}

/* Green – centered portfolio */
.pmock-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(58,138,58,.25);
  margin: 0 auto 8px;
}

.pmock-certs {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.pmock-cert {
  width: 54px;
  height: 32px;
  border-radius: var(--r-sm);
  background: rgba(58,138,58,.15);
  border: 1px solid rgba(58,138,58,.25);
}

/* WIP mockup */
.pmock-wip {
  justify-content: center;
  align-items: center;
}

.project-visual-wip {
  background: linear-gradient(135deg, #F5F0FF 0%, #E8D9FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wip-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.wip-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wip-placeholder-text {
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(130,90,220,.6);
  text-transform: uppercase;
}

.wip-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wip-dot {
  width: 8px;
  height: 8px;
  background: rgba(130,90,220,.4);
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .wip-dot:nth-child(1) { animation: wipBounce 1.2s ease-in-out infinite 0s; }
  .wip-dot:nth-child(2) { animation: wipBounce 1.2s ease-in-out infinite 0.2s; }
  .wip-dot:nth-child(3) { animation: wipBounce 1.2s ease-in-out infinite 0.4s; }
}

/* Project body */
.project-body {
  padding: var(--sp-md) var(--sp-md);
  display: flex;
  gap: var(--sp-sm);
}

.project-num {
  font-size: var(--size-label);
  font-weight: 600;
  color: var(--color-text-tertiary);
  letter-spacing: 0.05em;
  padding-top: 2px;
  flex-shrink: 0;
}

.project-info { flex: 1; }

.project-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xs);
  flex-wrap: wrap;
}

.project-name {
  font-size: var(--size-h3);
  font-weight: 600;
  line-height: 1.2;
}

.project-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  align-self: flex-start;
  flex-shrink: 0;
}

.project-desc {
  font-size: var(--size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--sp-sm);
  line-height: 1.6;
}

.project-link {
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s ease-out, color 0.2s ease-out;
}

.project-link:hover { gap: 10px; }

.project-link-dim {
  font-size: var(--size-sm);
  color: var(--color-text-tertiary);
}

/* WIP card */
.project-wip {
  border: 2px dashed var(--color-border);
  box-shadow: none;
  opacity: 0.72;
}

.project-wip:hover { opacity: 1; }

.tag-wip {
  background: rgba(245,158,11,.1);
  color: #92600A;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wip-pulse {
  width: 6px;
  height: 6px;
  background: #F59E0B;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .wip-pulse { animation: blink 1.6s ease-in-out infinite; }
}

/* ─── 13. SERVICES — single premium plan ────────────────── */
.services-section {
  background: var(--color-surface-alt);
}

/* Center the single card */
.services-grid {
  display: flex;
  justify-content: center;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--r-xl);
  padding: var(--sp-xl) var(--sp-lg);
  box-shadow: var(--sh-float);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-lg);
  border: 1.5px solid var(--color-border);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  position: relative;
  width: 100%;
  max-width: 580px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,.13);
}

@media (min-width: 600px) {
  .service-card { padding: var(--sp-xl) var(--sp-2xl); }
}

.service-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
}

.service-tier {
  font-size: var(--size-label);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-num {
  font-size: clamp(2.8rem, 6vw, 3.8rem);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-old {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
  text-decoration: line-through;
}

.price-sale-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #dcf5e4;
  color: #1a7a34;
  border-radius: var(--r-pill);
  padding: 4px 12px;
  border: 1px solid rgba(46,125,50,.2);
}

.service-tagline {
  font-size: var(--size-body);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 380px;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xs) var(--sp-md);
  width: 100%;
  text-align: left;
}

@media (max-width: 520px) {
  .service-list { grid-template-columns: 1fr; }
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--size-sm);
  color: var(--color-text-secondary);
}

.chk {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--color-accent-light);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

.chk::after {
  content: '';
  display: block;
  width: 5px;
  height: 8px;
  border-right: 1.5px solid var(--color-accent);
  border-bottom: 1.5px solid var(--color-accent);
  transform: rotate(45deg) translate(-1px, -1px);
}

.svc-btn {
  padding: 0.95rem 2.5rem;
  font-size: var(--size-body);
  justify-content: center;
  margin-top: var(--sp-xs);
}

/* ─── 14. ABOUT ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-2xl); }
}

.about-text { display: flex; flex-direction: column; gap: var(--sp-sm); }

.about-text .section-h2 { margin-bottom: 0; }

.about-para {
  font-size: var(--size-sm);
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding-top: var(--sp-sm);
  flex-wrap: wrap;
}

.stat-item { display: flex; flex-direction: column; }

.stat-num {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.stat-lbl {
  font-size: var(--size-label);
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.stat-sep {
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── 15. ABOUT STAT GRID ───────────────────────────────── */
.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
  width: 100%;
  max-width: 360px;
}

.asg-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--sh-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.asg-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-hover);
}

.asg-num {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text-primary);
}

.asg-num-wa {
  color: var(--color-whatsapp);
  font-size: 1.6rem;
}

.asg-label {
  font-size: var(--size-label);
  color: var(--color-text-secondary);
  line-height: 1.45;
  font-weight: 500;
}

.asg-card-wa {
  border-color: rgba(37,211,102,.25);
  background: rgba(37,211,102,.04);
}

/* ─── 16. CONTACT ───────────────────────────────────────── */
.contact-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-accent-light) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.contact-wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}

.contact-wrap .section-h2 { margin-bottom: 0; }

.contact-sub {
  font-size: var(--size-sm);
  color: var(--color-text-secondary);
  max-width: 440px;
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  justify-content: center;
  margin-top: var(--sp-xs);
}

.contact-social { margin-top: var(--sp-xs); }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--size-sm);
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.social-link:hover { color: var(--color-text-primary); }

/* ─── 17. FOOTER ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--sp-lg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.footer-copy,
.footer-loc {
  font-size: var(--size-sm);
  color: var(--color-text-tertiary);
}

/* ─── 18. KEYFRAMES ─────────────────────────────────────── */
@keyframes lineReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0);   }
}

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

@keyframes navDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

@keyframes phoneFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.25; }
}

@keyframes waPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.055); }
}

@keyframes wipBounce {
  0%,100% { transform: translateY(0); opacity: 0.4; }
  50%     { transform: translateY(-6px); opacity: 1; }
}

/* ─── 19. FOCUS STYLES ──────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ─── 20. LANGUAGE TOGGLE ───────────────────────────────── */
.lang-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-secondary);
  transition: color 0.2s ease, border-color 0.2s ease;
  font-family: var(--font);
  white-space: nowrap;
}
.lang-toggle:hover {
  color: var(--color-text-primary);
  border-color: var(--color-text-primary);
}
.lang-sep {
  color: var(--color-border);
  user-select: none;
}
.lang-opt {
  transition: color 0.15s ease;
}
html[lang="en"] .lang-en,
html[lang="ar"] .lang-ar {
  font-weight: 700;
  color: var(--color-text-primary);
}

/* ─── 21. RTL OVERRIDES ─────────────────────────────────── */
html[dir="rtl"] {
  --font: 'Cairo', sans-serif;
}
html[dir="rtl"] body {
  font-family: var(--font);
}
html[dir="rtl"] .nav-link::after {
  transform-origin: right;
}
html[dir="rtl"] .reveal .section-h2,
html[dir="rtl"] .reveal-scale .section-h2 {
  clip-path: inset(0 0 0 100%);
}
html[dir="rtl"] .reveal.is-visible .section-h2,
html[dir="rtl"] .reveal-scale.is-visible .section-h2 {
  clip-path: inset(0 0 0 0%);
}
html[dir="rtl"] .proj-arrow {
  display: inline-block;
  transform: scaleX(-1);
}
html[dir="rtl"] .hero-trust {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
html[dir="rtl"] .hero-ctas {
  flex-direction: row-reverse;
  justify-content: flex-start;
}
html[dir="rtl"] .trust-dot {
  margin-right: 0;
  margin-left: 0.5rem;
}
html[dir="rtl"] .asg-card-wa .asg-icon {
  transform: scaleX(-1);
}
