﻿/* ═══════════════════════════════════════════════════════════════
   PREMIUM DESIGN SYSTEM — Modern Minimalist Tech Portfolio
   Tokens → Base → Header → Hero → Projects → Footer → Mobile
═══════════════════════════════════════════════════════════════ */

/* ─────────────────── DESIGN TOKENS ─────────────────── */
:root {
  /* ── Core Palette ── */
  --bg:           #F8FAFC;          /* --color-bg-light  */
  --surface:      #FFFFFF;
  --surface-2:    #F1F5F9;
  --surface-3:    #E2E8F0;

  --ink:          #0F172A;          /* --color-text-main / slate-900 */
  --ink-2:        #334155;          /* slate-700  */
  --ink-3:        #64748B;          /* --color-text-muted / slate-500 */
  --ink-4:        #CBD5E1;          /* slate-300  */

  --accent:       #4F46E5;          /* --color-primary   */
  --accent-2:     #818CF8;          /* indigo-400        */
  --accent-lt:    #EEF2FF;          /* indigo-50         */
  --accent-glow:  rgba(79,70,229,.18);
  --accent-hover: #4338CA;          /* --color-primary-hover */

  --green:        #10B981;
  --green-lt:     #ECFDF5;

  /* ── Semantic aliases (use these in new code) ── */
  --color-primary:       #4F46E5;
  --color-primary-hover: #4338CA;
  --color-bg-light:      #F8FAFC;
  --color-bg-footer:     #0F172A;   /* slate-900 */
  --color-text-main:     #0F172A;
  --color-text-muted:    #64748B;
  --color-text-light:    #F8FAFC;
  --color-surface-dark:  rgba(255, 255, 255, 0.04);
  --color-border-dark:   rgba(255, 255, 255, 0.1);

  /* ── Type ── */
  --font-sans:    'Inter', 'Cairo', system-ui, sans-serif;
  --font-arabic:  'Cairo', 'Inter', system-ui, sans-serif;

  /* ── Space ── */
  --page-px:      clamp(20px, 5vw, 64px);
  --header-h:     64px;

  /* ── Radii ── */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* ── Shadows (tuned to slate-900 base) ── */
  --s-xs:  0 1px 3px  rgba(15,23,42,.05);
  --s-sm:  0 2px 10px rgba(15,23,42,.07);
  --s-md:  0 6px 24px rgba(15,23,42,.09);
  --s-lg:  0 16px 48px rgba(15,23,42,.11);
  --s-xl:  0 32px 80px rgba(15,23,42,.14);

  /* ── Motion ── */
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-in:     cubic-bezier(.4,0,1,1);
}

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

.portfolio-page {
  background: var(--color-bg-light);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] .portfolio-page,
[dir="rtl"].portfolio-page {
  font-family: var(--font-arabic);
}

/* ─────────────────── CURSOR GLOW ─────────────────── */
.cursor-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: left .08s linear, top .08s linear;
}

/* ══════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 500;
  height: var(--header-h);
  background: #ffffff;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(203, 213, 225, .5);
  transition: box-shadow .25s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(13,17,23,.08);
}

.site-header__inner {
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--page-px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 24px;
}

@media (min-width: 961px) {
  [dir="rtl"] .site-header__inner,
  [dir="ltr"] .site-header__inner {
    justify-content: flex-start;
  }
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__mark svg {
  width: 36px; height: 36px; display: block;
  transition: transform .3s var(--ease-spring);
}

.logo:hover .logo__mark svg { transform: rotate(-10deg) scale(1.08); }

.logo__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--color-text-main);
  transition: color .18s;
}

.logo:hover .logo__name { color: var(--color-primary); }

/* ── Desktop nav ── */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.header-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 100px;
  transition: color .15s, background .15s;
}

.header-nav__link:hover {
  color: var(--color-text-main);
  background: var(--surface-2);
}

/* ── Controls (lang + hamburger) ── */
.header-controls {
  position: absolute;
  inset-inline-end: var(--page-px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* language button */
.lang-wrap { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--ink-4);
  border-radius: 100px;
  padding: 5px 14px 5px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  font-family: inherit;
  transition: all .18s;
}

.lang-btn svg:first-child { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }
.lang-btn__chevron { width: 10px; height: 10px; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .lang-btn__chevron { transform: rotate(180deg); }

.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lt);
}

/* language dropdown */
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  background: var(--surface);
  border: 1.5px solid var(--ink-4);
  border-radius: var(--r-md);
  box-shadow: var(--s-xl);
  min-width: 164px;
  z-index: 600;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(.97);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  padding: 6px;
}

.lang-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.lang-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .12s, color .12s;
}

.lang-menu__item:hover,
.lang-menu__item.is-active {
  background: var(--accent-lt);
  color: var(--accent);
}

.lang-menu__chip {
  width: 26px; height: 26px;
  border-radius: var(--r-xs);
  background: var(--surface-2);
  border: 1px solid var(--ink-4);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; color: var(--ink-3);
}

.lang-menu__item.is-active .lang-menu__chip {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.lang-menu__check {
  width: 13px; height: 13px;
  margin-inline-start: auto;
  flex-shrink: 0;
  color: var(--accent);
}

/* ── Hamburger (mobile only) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  border: none;
  background: transparent;
  transition: background .15s;
}

.hamburger:hover { background: var(--surface-2); }

.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink-3);
  border-radius: 2px;
  transition: all .22s var(--ease-out);
}

.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 14px; }
.hamburger span:nth-child(3) { width: 19px; }
.hamburger:hover span { background: var(--ink); width: 22px !important; }

/* ══════════════════════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════════════════════ */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(13,17,23,.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 700;
  opacity: 0; pointer-events: none;
  transition: opacity .28s;
}

.drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed;
  top: 0; inset-inline-end: 0;
  width: 280px; height: 100dvh;
  background: var(--surface);
  border-inline-start: 1.5px solid var(--ink-4);
  box-shadow: var(--s-xl);
  z-index: 800;
  padding: 24px 20px;
  transform: translateX(110%);
  transition: transform .32s var(--ease-out);
  display: flex; flex-direction: column;
}

[dir="rtl"] .drawer { transform: translateX(-110%); }
.drawer.open { transform: translateX(0) !important; }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--surface-2);
}

.drawer-logo {
  font-size: 15px; font-weight: 700; letter-spacing: -.3px;
  color: var(--ink); text-decoration: none;
}

.drawer-close {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--ink-4);
  background: none; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s;
}

.drawer-close svg { width: 16px; height: 16px; }
.drawer-close:hover { background: var(--accent-lt); border-color: var(--accent); color: var(--accent); }

.drawer-nav {
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 24px;
}

.drawer-link {
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
  color: var(--ink-2); text-decoration: none;
  transition: all .15s;
}

.drawer-link:hover { background: var(--accent-lt); color: var(--accent); }

.drawer-lang { margin-top: auto; }

.drawer-lang-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 10px; padding-inline-start: 4px;
}

.drawer-lang-pills { display: flex; gap: 8px; }

.drawer-lang-pill {
  flex: 1; text-align: center; padding: 9px;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 700;
  color: var(--ink-3); border: 1.5px solid var(--ink-4);
  text-decoration: none; transition: all .15s;
}

.drawer-lang-pill:hover,
.drawer-lang-pill.is-on {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

.drawer-foot {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--surface-2);
  font-size: 10.5px; color: var(--ink-4); text-align: center;
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(85vh - var(--header-h));
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--surface-3);
}

/* dot-grid background */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(79,70,229,.1) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black, transparent);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black, transparent);
}

/* ambient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: .5;
}

.hero__orb--1 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(79,70,229,.12), transparent 65%);
  top: -200px; inset-inline-end: -180px;
}

.hero__orb--2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(16,185,129,.1), transparent 65%);
  bottom: -120px; inset-inline-start: -80px;
}

/* inner layout: asymmetric two-column on desktop */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px var(--page-px) 80px;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 64px;
}

/* ── Text column ── */
.hero__content { display: flex; flex-direction: column; align-items: flex-start; }

[dir="rtl"] .hero__content { align-items: flex-end; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: var(--accent-lt);
  border: 1px solid rgba(79,70,229,.25);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fromBottom .7s var(--ease-out) both;
}

.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: ping 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--color-text-main);
  margin-bottom: 24px;
  animation: fromBottom .7s .08s var(--ease-out) both;
}

.hero__title em {
  font-style: normal;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

/* subtle underline on em */
.hero__title em::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: .25;
  border-radius: 2px;
}

.hero__desc {
  font-size: 17px;
  line-height: 1.85;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  animation: fromBottom .7s .15s var(--ease-out) both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fromBottom .7s .22s var(--ease-out) both;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .22s var(--ease-out);
  cursor: pointer;
  border: 1.5px solid transparent;
  font-family: inherit;
}

.btn svg { width: 17px; height: 17px; transition: transform .22s var(--ease-out); }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px var(--accent-glow);
  color: #fff;
}

.btn--primary:hover svg { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--ink-4);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lt);
  transform: translateY(-2px);
}

/* ── Visual column (decorative) ── */
.hero__visual {
  position: relative;
  animation: fromBottom .7s .3s var(--ease-out) both;
}

.hero__window {
  background: var(--ink);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--s-xl), 0 0 0 1px rgba(255,255,255,.05);
}

.hero__window-bar {
  height: 38px;
  background: rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.hero__window-bar span {
  width: 11px; height: 11px; border-radius: 50%;
}

.hero__window-bar span:nth-child(1) { background: #FF5F57; }
.hero__window-bar span:nth-child(2) { background: #FEBC2E; }
.hero__window-bar span:nth-child(3) { background: #28C840; }

.hero__window-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.hero__code-line {
  height: 9px;
  width: var(--w, 60%);
  background: var(--c, rgba(255,255,255,.12));
  border-radius: 100px;
  animation: shimmerLine 2.8s ease-in-out infinite alternate;
}

.hero__code-line:nth-child(even) { animation-delay: .4s; }
.hero__code-line:nth-child(3n)   { animation-delay: .8s; }

.hero__stat {
  position: absolute;
  bottom: -18px;
  inset-inline-end: -18px;
  background: var(--surface);
  border: 1.5px solid var(--ink-4);
  border-radius: var(--r-lg);
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: var(--s-lg);
}

.hero__stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.hero__stat-label {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: .5px;
}

/* ══════════════════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════════════════ */
.projects {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px var(--page-px) 96px;
}

.projects__header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
}

.projects__label {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.projects__title {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--ink-3);
}

.projects__line {
  flex: 1; height: 1px;
  background: linear-gradient(to var(--inline-end, right), var(--surface-3), transparent);
}

[dir="rtl"] .projects__line {
  --inline-end: left;
}

/* grid follows page direction: RTL = right→left, LTR = left→right */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

[dir="rtl"] .projects__grid {
  direction: rtl;
}

[dir="ltr"] .projects__grid {
  direction: ltr;
}

/* ── Empty / Skeleton ── */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px 20px;
  text-align: center;
}

.empty-state__icon {
  width: 64px; height: 64px;
  color: var(--ink-4);
  margin-bottom: 8px;
}

.empty-state__icon svg { width: 100%; height: 100%; }

.empty-state__title {
  font-size: 17px; font-weight: 700; color: var(--ink-2);
}

.empty-state__sub {
  font-size: 13.5px; color: var(--ink-3); max-width: 320px; line-height: 1.7;
  margin-bottom: 32px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 860px;
}

.skeleton-card {
  background: var(--surface);
  border: 1.5px solid var(--ink-4);
  border-radius: var(--r-lg);
  padding: 16px;
  overflow: hidden;
}

.sk-thumb {
  height: 150px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  animation: skeletonPulse 1.8s ease-in-out infinite;
}

.sk-line {
  height: 10px;
  border-radius: 100px;
  background: var(--surface-2);
  animation: skeletonPulse 1.8s ease-in-out infinite;
  margin-bottom: 8px;
}

.sk-line--lg { width: 80%; }
.sk-line--md { width: 65%; animation-delay: .15s; }
.sk-line--sm { width: 45%; animation-delay: .3s; }

/* ══════════════════════════════════════════════════════
   PROJECT CARDS — App-icon + centered detail modal
══════════════════════════════════════════════════════ */

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 20px 36px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 2px 8px  rgba(0, 0, 0, 0.05),
    0 8px 28px rgba(0, 0, 0, 0.07);
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  min-height: 210px;

  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity      0.5s var(--ease-out),
    transform    0.38s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow   0.3s,
    border-color 0.3s;
}

.pcard.visible:not(.pcard--modal) {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .pcard.visible:not(.pcard--modal):hover {
    transform: translateY(-4px);
    box-shadow:
      0 4px 14px  rgba(0, 0, 0, 0.07),
      0 20px 48px rgba(0, 0, 0, 0.10);
    border-color: rgba(99, 102, 241, 0.18);
  }
}

/* ── Color dot (top-left of card) ── */
.pcard__dot {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  z-index: 5;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px #ffffff;
  pointer-events: none;
}


/* ── App icon ── */
.pcard__icon-link {
  position: relative;
  z-index: 3;
  display: block;
  text-decoration: none;
  border-radius: 22px;
}

.pcard__icon {
  position: relative;
  z-index: 3;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.38);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

/* When showing a logo image: white background so the logo colours read correctly */
.pcard__icon--has-logo {
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}

.pcard__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show the full logo — no cropping */
  border-radius: 24px;
  padding: 12px;         /* breathing room around the logo */
  image-rendering: auto; /* let the browser use its best downscaling algorithm */
}

.pcard__initial {
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  opacity: 0.88;
  line-height: 1;
  user-select: none;
  letter-spacing: -2px;
}

/* Per-card icon colours */
/* Coloured gradient — only when NO logo image is present */
.pcard--t1 .pcard__icon:not(.pcard__icon--has-logo) { background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%); box-shadow: 0 6px 20px rgba(59,130,246,.35); }
.pcard--t2 .pcard__icon:not(.pcard__icon--has-logo) { background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%); box-shadow: 0 6px 20px rgba(168,85,247,.35); }
.pcard--t3 .pcard__icon:not(.pcard__icon--has-logo) { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); box-shadow: 0 6px 20px rgba(16,185,129,.35); }
.pcard--t4 .pcard__icon:not(.pcard__icon--has-logo) { background: linear-gradient(135deg, #6b6ef5 0%, #7b7dff 100%); box-shadow: 0 6px 20px rgba(123, 125, 255, .38); }
.pcard--t5 .pcard__icon:not(.pcard__icon--has-logo) { background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); box-shadow: 0 6px 20px rgba(139,92,246,.35); }
.pcard--t6 .pcard__icon:not(.pcard__icon--has-logo) { background: linear-gradient(135deg, #ef4444 0%, #f97316 100%); box-shadow: 0 6px 20px rgba(239,68,68,.35); }

.pcard__icon-link:hover .pcard__icon,
.pcard__icon-link:focus-visible .pcard__icon {
  transform: scale(1.07);
}

/* ── Divider between logo and text ── */
.pcard__divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

/* ── Clickable text area ── */
.pcard__text-open {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.pcard__text-open:hover .pcard__hint {
  color: var(--ink-2);
}

/* ── Text content ── */
.pcard__front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.pcard__hint {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.pcard__hint--full {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  margin: 0;
}

/* ── Decorative arrow (bottom-left) ── */
.pcard__toggle {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  width: auto;
  height: auto;
  padding: 4px;
  color: rgba(99, 102, 241, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, transform 0.2s;
}

.pcard__toggle:hover {
  color: var(--accent);
}

.pcard__toggle:active {
  transform: scale(0.92);
}

.pcard__toggle svg {
  width: 16px;
  height: 16px;
}

/* ── Centered detail modal ── */
.pcard-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pcard-modal[hidden] {
  display: none;
}

.pcard-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.pcard--modal {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition:
    opacity   0.32s ease,
    transform 0.32s cubic-bezier(0.32, 1.05, 0.48, 1);
  pointer-events: auto;
  padding-top: 44px;
  overflow: visible;
  min-height: auto;
}

.pcard-modal.is-open .pcard-modal__backdrop {
  opacity: 1;
}

.pcard-modal.is-open .pcard--modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pcard-modal.is-closing {
  pointer-events: none;
}

.pcard--modal > .pcard__dot {
  display: none;
}

.pcard-modal__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  inset-inline-start: auto;
  z-index: 2;
  width: auto;
  height: auto;
  padding: 4px;
  border: none;
  background: none;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.pcard-modal__close svg {
  width: 16px;
  height: 16px;
}

.pcard-modal__close:hover {
  opacity: 0.65;
}

#pcardModalIcon {
  display: flex;
  justify-content: center;
  width: 100%;
}



/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--surface-3);
  background: var(--surface);
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px var(--page-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__copy {
  font-size: 12px;
  color: var(--ink-3);
  direction: ltr;
}

.site-footer__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-4);
}

.site-footer__lang-item {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  text-decoration: none;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  transition: all .15s;
}

.site-footer__lang-item:hover { color: var(--accent); background: var(--accent-lt); }
.site-footer__lang-item.is-on  { color: var(--accent); font-weight: 800; }

/* ══════════════════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════════════════ */
@keyframes fromBottom {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ping {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(.5); opacity: .3; }
}

@keyframes shimmerLine {
  from { opacity: .6; }
  to   { opacity: 1; }
}

@keyframes skeletonPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — ≤960px  (tablet)
══════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .header-nav { display: none; }

  .site-header__inner {
    justify-content: flex-start;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 64px;
    text-align: center;
  }

  .hero__content { align-items: center; }
  [dir="rtl"] .hero__content { align-items: center; }

  .hero__visual { max-width: 440px; margin: 0 auto; }

  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
  .skeleton-card:last-child { display: none; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — ≤600px  (mobile)
══════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root { --header-h: 58px; }

  .hero {
    min-height: auto;
    align-items: flex-start;
  }

  .hero__inner {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 0;
  }

  .hero__title {
    font-size: clamp(28px, 9vw, 40px);
    letter-spacing: -.8px;
    margin-bottom: 14px;
    overflow: visible;
  }

  .hero__title em {
    display: inline-block;
    padding-bottom: 4px;
  }

  .hero__title em::after {
    display: block;
    height: 3px;
    opacity: .25;
  }

  .hero__desc {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.75;
  }

  .hero__visual { display: none; }

  .projects { padding-top: 24px; padding-bottom: 60px; }

  /* 2 cards per row on mobile */
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .skeleton-grid { grid-template-columns: repeat(2, 1fr); }

  /* Compact card sizing on mobile */
  .pcard { min-height: 160px; padding: 22px 14px 32px; gap: 12px; }

  .pcard__icon { width: 96px; height: 96px; border-radius: 22px; }

  .pcard__icon img { border-radius: 18px; padding: 10px; }

  .pcard__dot { top: 12px; left: 12px; width: 13px; height: 13px; box-shadow: 0 0 0 2.5px #ffffff; }

  .pcard__initial { font-size: 28px; }

  .pcard__hint { font-size: 11px; }

  .pcard__toggle { bottom: 8px; left: 10px; padding: 2px; }
  .pcard__toggle svg { width: 14px; height: 14px; }

  .pcard--modal { width: min(100%, 280px); }
}


/* ══════════════════════════════════════════════════════
   FAT FOOTER — Premium Tech Agency Dark Mode
══════════════════════════════════════════════════════ */
.fat-footer {
  --ft-bg:          var(--color-bg-footer);      /* #0F172A — slate-900   */
  --ft-border:      rgba(255, 255, 255, 0.06);
  --ft-surface:     var(--color-surface-dark);   /* rgba(255,255,255,.04) */
  --ft-surface-hov: rgba(255, 255, 255, 0.07);
  --ft-stroke:      var(--color-border-dark);    /* rgba(255,255,255,.10) */
  --ft-text:        var(--color-text-light);     /* #F8FAFC               */
  --ft-muted:       rgba(248, 250, 252, 0.6);
  --ft-subtle:      rgba(248, 250, 252, 0.38);
  --ft-accent:      var(--color-primary);        /* #4F46E5               */
  --ft-accent-lt:   rgba(79, 70, 229, 0.22);

  background: var(--ft-bg);
  border-top: 1px solid var(--ft-border);
  color: var(--ft-text);
  font-family: var(--font-sans);
}

/* Toast */
.ft-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px var(--page-px);
  font-size: 14px;
  font-weight: 600;
  text-align: start;
  animation: slideDown .35s var(--ease-out) both;
}

.ft-toast svg { width: 18px; height: 18px; flex-shrink: 0; }

.ft-toast--success {
  background: rgba(16, 185, 129, .1);
  border-bottom: 1px solid rgba(16, 185, 129, .2);
  color: #34D399;
}

.ft-toast--error {
  background: rgba(239, 68, 68, .1);
  border-bottom: 1px solid rgba(239, 68, 68, .18);
  color: #F87171;
}

/* Main body */
.ft-body {
  padding: clamp(56px, 7vw, 88px) var(--page-px);
  border-bottom: 1px solid var(--ft-border);
}

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

/* Brand column */
.ft-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ft-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 16px;
  transition: opacity .18s;
}

.ft-logo:hover { opacity: .65; }

.ft-tagline {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 12px;
  text-align: start;
}

.ft-desc {
  font-size: 14px;
  color: var(--ft-muted);
  line-height: 1.85;
  max-width: 320px;
  margin-bottom: 32px;
  text-align: start;
}

.ft-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.ft-social {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--ft-stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ft-subtle);
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}

.ft-social svg { width: 15px; height: 15px; }

.ft-social:hover {
  background: var(--ft-accent);
  border-color: var(--ft-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Form heading */
.ft-form-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-align: start;
}

.ft-section-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ft-accent);
}

.ft-form-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.4px;
}

/* Form layout */
.ft-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: start;
}

.ft-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Field */
.ft-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: start;
}

.ft-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ft-muted);
  text-align: start;
}

/* Input / Textarea */
.ft-input {
  width: 100%;
  background: var(--color-surface-dark);
  border: 1px solid var(--color-border-dark);
  border-radius: 12px;
  padding: 16px;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-light);
  font-family: inherit;
  outline: none;
  text-align: start;
  transition: border-color .2s, background .2s, box-shadow .2s;
  caret-color: var(--color-primary);
}

.ft-input::placeholder { color: rgba(248, 250, 252, 0.35); }

.ft-input:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.22);
}

.ft-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

/* Submit */
.ft-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  margin-top: 4px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.ft-submit svg { width: 18px; height: 18px; transition: transform .2s; }

.ft-submit:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, .35);
}

.ft-submit:hover svg { transform: translateX(4px); }
[dir="rtl"] .ft-submit:hover svg { transform: translateX(-4px); }
.ft-submit:active { transform: translateY(0); }

/* Bottom bar */
.ft-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 18px var(--page-px);
}

.ft-bar__copy {
  font-size: 12px;
  color: var(--ft-subtle);
  direction: ltr;
  text-align: center;
}

.ft-bar__lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
}

.ft-bar__sep { color: rgba(255, 255, 255, .15); }

.ft-bar__lang-item {
  font-size: 12px;
  font-weight: 700;
  color: var(--ft-subtle);
  text-decoration: none;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}

.ft-bar__lang-item:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.ft-bar__lang-item.is-on  { color: var(--ft-accent); }

/* Footer responsive */
@media (max-width: 860px) {
  .ft-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ft-desc { max-width: 100%; }
}

@media (max-width: 540px) {
  .ft-row { grid-template-columns: 1fr; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   POLICY PAGE
══════════════════════════════════════════════════════ */
.policy-page {
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  background: var(--color-bg-light);
}

/* Hero strip */
.policy-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--surface-3);
  padding: 48px var(--page-px) 40px;
}

.policy-hero__inner {
  max-width: 860px;
  margin: 0 auto;
}

.policy-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.policy-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color .15s;
}

.policy-breadcrumb a:hover { color: var(--color-primary); }

.policy-breadcrumb span[aria-hidden] { color: var(--ink-4); }

.policy-hero__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--color-text-main);
  line-height: 1.2;
}

/* Body */
.policy-body {
  padding: 56px var(--page-px) 96px;
}

.policy-body__inner {
  max-width: 860px;
  margin: 0 auto;
}

.policy-prose {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
}

.policy-prose h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text-main);
  margin-top: 40px;
  margin-bottom: 12px;
}

.policy-prose h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 28px;
  margin-bottom: 10px;
}

.policy-prose p { margin-bottom: 16px; }

.policy-prose ul,
.policy-prose ol {
  padding-inline-start: 24px;
  margin-bottom: 16px;
}

.policy-prose li { margin-bottom: 8px; }

.policy-prose a { color: var(--color-primary); text-decoration: underline; }

.policy-empty {
  font-size: 15px;
  color: var(--color-text-muted);
  font-style: italic;
  padding: 40px 0;
  text-align: center;
}

/* Footer bar for policy pages */
.policy-footer {
  border-top: 1px solid var(--surface-3);
  background: var(--surface);
}

.policy-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px var(--page-px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.policy-footer__copy {
  font-size: 12px;
  color: var(--ink-3);
  direction: ltr;
  text-align: center;
}

.policy-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-4);
}

.policy-footer__links a {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}

.policy-footer__links a:hover { color: var(--accent); background: var(--accent-lt); }

.policy-footer__lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
}

.policy-footer__lang a {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  text-decoration: none;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}

.policy-footer__lang a:hover { color: var(--accent); background: var(--accent-lt); }
.policy-footer__lang a.is-on  { color: var(--accent); font-weight: 800; }

/* Footer bar policy links */
.ft-bar__policies {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
}

.ft-bar__policy-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--ft-subtle);
  text-decoration: none;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}

.ft-bar__policy-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

@media (min-width: 601px) {
  .ft-bar,
  .policy-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: start;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
  }

  .ft-bar__copy,
  .policy-footer__copy {
    text-align: start;
  }

  .ft-bar__lang,
  .policy-footer__lang {
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .ft-bar__policies,
  .policy-footer__links {
    order: 1;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .ft-bar__copy,
  .policy-footer__copy {
    order: 2;
  }

  .ft-bar__policy-link,
  .policy-footer__links a {
    padding-inline: 5px;
    font-size: 11px;
    white-space: nowrap;
  }

  .ft-bar__sep {
    flex-shrink: 0;
  }

  .ft-bar__lang,
  .policy-footer__lang {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════
   CONTACT SUCCESS MODAL
══════════════════════════════════════════════════════ */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}

.contact-modal__card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 48px 40px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--s-xl);
  border: 1.5px solid var(--surface-3);
  transform: translateY(24px) scale(.97);
  opacity: 0;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
}

.contact-modal.is-open .contact-modal__backdrop { opacity: 1; }
.contact-modal.is-open .contact-modal__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Icon */
.contact-modal__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  animation: popIn .5s .1s var(--ease-spring) both;
}

.contact-modal__icon svg {
  width: 100%;
  height: 100%;
}

/* Title */
.contact-modal__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -.4px;
  margin-bottom: 10px;
  animation: fromBottom .4s .15s var(--ease-out) both;
}

/* Sub */
.contact-modal__sub {
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  animation: fromBottom .4s .2s var(--ease-out) both;
}

/* CTA button */
.contact-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 36px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  animation: fromBottom .4s .25s var(--ease-out) both;
}

.contact-modal__close:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, .3);
}

.contact-modal__close:active { transform: translateY(0); }

/* Error inline banner inside footer */
.ft-error-banner {
  align-items: center;
  gap: 10px;
  padding: 14px var(--page-px);
  font-size: 14px;
  font-weight: 600;
  text-align: start;
  background: rgba(239, 68, 68, .1);
  border-bottom: 1px solid rgba(239, 68, 68, .18);
  color: #F87171;
  animation: slideDown .35s var(--ease-out) both;
}

.ft-error-banner:not([hidden]) {
  display: flex;
}

.ft-error-banner[hidden] {
  display: none !important;
}

.ft-error-banner svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Submit loading spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════════════════════════════
   CORNER TOAST NOTIFICATION
══════════════════════════════════════════════════════ */
.success-toast {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 950;
  background: var(--surface);
  border: 1.5px solid var(--surface-3);
  border-radius: 16px;
  box-shadow: var(--s-xl);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 380px;
  width: calc(100vw - 56px);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
  pointer-events: none;
}

.success-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.success-toast__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--accent-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.success-toast__icon svg { width: 17px; height: 17px; }

.success-toast__body { flex: 1; min-width: 0; }

.success-toast__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 3px;
}

.success-toast__sub {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.success-toast__x {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-3);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  padding: 0;
}

.success-toast__x:hover { background: var(--surface-2); color: var(--ink); }
.success-toast__x svg   { width: 13px; height: 13px; }

/* ══════════════════════════════════════════════════════
   WHATSAPP FLOATING ACTION BUTTON
══════════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  inset-inline-start: 28px;
  z-index: 950;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  text-decoration: none;
  transition: transform .22s var(--ease-out), box-shadow .22s;
  animation: fabIn .55s .6s var(--ease-spring) both;
}

.whatsapp-fab svg { width: 27px; height: 27px; }

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .5);
}

.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, .22);
  animation: fabPulse 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes fabPulse {
  0%, 100% { transform: scale(1);   opacity: .7; }
  50%       { transform: scale(1.4); opacity: 0;  }
}

@keyframes fabIn {
  from { opacity: 0; transform: scale(.4) rotate(-15deg); }
  to   { opacity: 1; transform: scale(1)  rotate(0deg);   }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
