/* ══════════════════════════════════════════
   MERNA MAMDOUH — PORTFOLIO v3
   Theme: Deep Purple Dark · Syne + Inter
══════════════════════════════════════════ */

:root {
  /* ── Brand from logo ── */
  --p900: #1a0a2e; /* darkest bg */
  --p800: #0f0a1e; /* main bg */
  --p750: #150d28; /* card bg */
  --p700: #1e1040; /* elevated bg */
  --p600: #2d1760; /* border hover */
  --p500: #5b2d8e; /* logo purple */
  --p400: #8b5cf6; /* violet */
  --p300: #a78bfa; /* light violet */
  --p200: #c4b5fd; /* very light */
  --mauve: #9b7fa6; /* muted mauve */
  --gold: #c8a84b; /* accent warm */

  --text-1: #f0ecff;
  --text-2: rgba(240, 236, 255, 0.65);
  --text-3: rgba(240, 236, 255, 0.35);
  --border: rgba(167, 139, 250, 0.1);
  --border-2: rgba(167, 139, 250, 0.22);
  --surface: rgba(167, 139, 250, 0.04);
  --surface-2: rgba(167, 139, 250, 0.08);
  --glow: rgba(91, 45, 142, 0.2);

  --font-d: "Syne", sans-serif;
  --font-b: "Inter", sans-serif;
  --py: 110px;
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--p800);
  color: var(--text-2);
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--p500), var(--p300), var(--gold));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Cursor ── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p300);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.35);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s,
    opacity 0.2s;
}

/* ── Container ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p800);
  background: var(--p300);
  border: 1px solid var(--p300);
  cursor: pointer;
  transition: all 0.3s;
  border-radius: var(--radius);
}
.btn-primary:hover {
  background: var(--p400);
  border-color: var(--p400);
  color: #fff;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-1);
  background: transparent;
  border: 1px solid var(--border-2);
  cursor: pointer;
  transition: all 0.3s;
  border-radius: var(--radius);
}
.btn-outline:hover {
  border-color: var(--p300);
  color: var(--p300);
}

/* ══ NAVBAR ══ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s;
}
.navbar.scrolled {
  background: rgba(15, 10, 30, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo img {
  height: 56px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-link {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--p300);
  transition: width 0.3s;
}
.nav-link:hover {
  color: var(--text-1);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p300);
  border: 1px solid var(--border-2);
  padding: 8px 16px;
  transition: all 0.3s;
  white-space: nowrap;
}
.btn-cv:hover {
  background: var(--surface-2);
  border-color: var(--p300);
}
.btn-hire {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 22px;
  border: 1px solid var(--p300);
  color: var(--p300);
  transition: all 0.3s;
  white-space: nowrap;
}
.btn-hire:hover {
  background: var(--p300);
  color: var(--p800);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-1);
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(15, 10, 30, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 20px 40px 32px;
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile-link {
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}
.nav-mobile-link:hover {
  color: var(--p300);
}
.nav-cv-mobile {
  color: var(--p300);
  border-color: var(--border-2);
}

/* ══ SECTION COMMONS ══ */
.section {
  padding: var(--py) 0;
}
.section-header {
  margin-bottom: 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--p300);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background: var(--p300);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-d);
  font-size: 56px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-title em {
  font-style: normal;
  color: var(--p300);
}
.section-sub {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-3);
  max-width: 500px;
}

/* ── Reveal ── */
.reveal-fade {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══ HERO ══ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 130px 40px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}
.b1 {
  width: 700px;
  height: 700px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, var(--p500) 0%, transparent 70%);
  animation: blobFloat 10s ease-in-out infinite;
}
.b2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.1;
  animation: blobFloat 13s ease-in-out infinite reverse;
}
@keyframes blobFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -25px);
  }
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
.hero-diagonal {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(91, 45, 142, 0.07) 100%
  );
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
/* badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  padding: 8px 18px;
  margin-bottom: 28px;
  width: fit-content;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}
.pulse-ring {
  position: absolute;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--p300);
  opacity: 0.5;
  animation: ring 2s ease-out infinite;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p300);
  flex-shrink: 0;
  z-index: 1;
}
@keyframes ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}
/* name */
.hero-name {
  font-family: var(--font-d);
  font-size: 90px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero-name em {
  color: var(--p300);
  font-style: normal;
}
/* title row */
.hero-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 28px;
}
.title-bar {
  flex: 0 0 40px;
  height: 1px;
  background: var(--p300);
}
/* desc */
.hero-desc {
  font-size: 16px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.hero-desc strong {
  color: var(--p300);
  font-weight: 500;
}
/* chips */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 32px;
}
.hero-chips span {
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--border);
  color: var(--text-3);
  background: var(--surface);
  border-radius: 100px;
  transition: all 0.3s;
  cursor: default;
}
.hero-chips span:hover {
  border-color: var(--border-2);
  color: var(--p300);
  background: var(--surface-2);
}
/* cta */
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
/* platforms */
.hero-platforms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.plat-label {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 4px;
}
.hero-platforms .plat-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--p750);
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
}
.hero-platforms .plat-chip:hover {
  border-color: var(--p300);
  color: var(--p300);
}
.sep { display: none; }
/* visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-wrap {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(91, 45, 142, 0.35) 0%,
    transparent 70%
  );
  filter: blur(30px);
  z-index: 0;
}
.logo-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 40px rgba(91, 45, 142, 0.5));
}
/* orbit tags */
.orbit-tag {
  position: absolute;
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p300);
  background: rgba(91, 45, 142, 0.18);
  border: 1px solid var(--border-2);
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
  animation: orbitFloat 4s ease-in-out infinite;
}
.ot-1 {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}
.ot-2 {
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  animation-delay: 1s;
}
.ot-3 {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 2s;
}
.ot-4 {
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  animation-delay: 1.5s;
}
@keyframes orbitFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}
.ot-2,
.ot-4 {
  animation-name: orbitFloatH;
}
@keyframes orbitFloatH {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(6px);
  }
}
/* scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--p300));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ══ MARQUEE ══ */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--p750);
  padding: 0;
}
.marquee-inner {
  overflow: hidden;
}
.mq-track {
  display: flex;
  align-items: center;
  animation: mqScroll 34s linear infinite;
  width: max-content;
}
.marquee-wrap:hover .mq-track {
  animation-play-state: paused;
}
@keyframes mqScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.mq-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 40px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  min-height: 80px;
}
.mq-n {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
  letter-spacing: -0.03em;
}
.mq-n sup {
  font-size: 0.45em;
  color: var(--p300);
  vertical-align: super;
  margin-right: 1px;
}
.mq-l {
  font-family: var(--font-d);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  max-width: 120px;
  line-height: 1.4;
  text-align: center;
}
.mq-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-2);
  flex-shrink: 0;
}

/* ══ HERO STATS ══ */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.hs-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hs-item strong {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 800;
  color: var(--p300);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hs-item span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hs-divider {
  width: 1px;
  height: 32px;
  background: var(--border-2);
  flex-shrink: 0;
}

/* ══ MID-PAGE CTA ══ */
.midcta-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--p900);
}
.midcta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.midcta-text {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
}
@media (max-width: 768px) {
  .midcta-inner {
    flex-direction: column;
    text-align: center;
  }
  .midcta-text {
    font-size: 18px;
  }
  .hero-stats {
    gap: 14px;
  }
  .hs-item strong {
    font-size: 18px;
  }
}

/* ══ ABOUT — Bento Grid ══ */
.about-section {
  background: var(--p800);
}
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bento-card {
  background: var(--p750);
  border: 1px solid var(--border);
  padding: 32px 28px;
  transition: border-color 0.3s;
  border-radius: var(--radius);
}
.bento-card:hover {
  border-color: var(--border-2);
}
.bento-bio {
  grid-column: 1;
}
.bento-tools {
  grid-column: 2;
}

.bio-lead {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.5;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.bio-lead strong {
  color: var(--p300);
}
.bio-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 16px;
}
.bio-body strong {
  color: var(--p300);
  font-weight: 500;
}
.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}
.bio-tags span {
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--border-2);
  color: var(--p300);
  background: var(--surface);
  border-radius: 100px;
}
.bento-title {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--p300);
  margin-bottom: 20px;
}
/* tools */
.tools-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.3s;
  border-radius: var(--radius);
}
.tool-row:hover {
  border-color: var(--border-2);
  color: var(--p300);
  background: var(--surface-2);
}

/* ══ SKILLS — Accordion ══ */
.skills-section {
  background: var(--p750);
}
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  padding-bottom: 30px;
}
.acc-item {
  border-bottom: 1px solid var(--border);
}
.acc-item:last-child {
  border-bottom: none;
}
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s;
}
.acc-head:hover {
  background: var(--surface);
}
.acc-item.open .acc-head {
  background: var(--surface-2);
}
.acc-num {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 800;
  color: var(--border-2);
  letter-spacing: 0.04em;
  min-width: 44px;
  flex-shrink: 0;
  transition: color 0.3s;
}
.acc-item.open .acc-num,
.acc-head:hover .acc-num {
  color: var(--p300);
}
.acc-name {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
  flex: 1;
  text-align: left;
}
.acc-tags-preview {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-right: 20px;
  flex-shrink: 0;
  display: none;
}
@media (min-width: 768px) {
  .acc-tags-preview {
    display: block;
  }
}
.acc-arrow {
  flex-shrink: 0;
  color: var(--text-3);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s;
}
.acc-item.open .acc-arrow {
  transform: rotate(180deg);
  color: var(--p300);
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 28px 0 72px;
}
.acc-item.open .acc-body {
  max-height: 370px;
  padding-bottom: 28px;
  padding-top: 16px;
}
.acc-body p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 20px;
}
.acc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.acc-chips span {
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--border-2);
  color: var(--p300);
  background: var(--surface);
  border-radius: 100px;
}

/* ══ CUSTOM SLIDERS ══ */
.results-section {
  background: var(--p800);
}
.results-alt {
  background: var(--p750);
}

/* wrapper */
.sl-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
}

/* track container — clips overflow */
.sl-track-outer {
  overflow: hidden;
  cursor: grab;
}
.sl-track-outer.dragging {
  cursor: grabbing;
}

/* track — slides sit side by side */
.sl-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.42, 0, 0.18, 1);
  will-change: transform;
}
.sl-track.no-transition {
  transition: none;
}

/* individual slide */
.sl-slide {
  flex: 0 0 100%;
  width: 100%;
  background: var(--p900);
  cursor: pointer;
}
.sl-slide img {
  width: 100%;
  object-fit: contain;
  display: block;
  background: var(--p900);
  pointer-events: none;
}

/* caption bar */
.slide-cap {
  padding: 14px 24px;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-2);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* nav arrows */
.sl-btn {
  position: absolute;
  top: 210px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--p750);
  color: var(--text-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.3s,
    color 0.3s,
    background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.sl-btn:hover {
  border-color: var(--p300);
  color: var(--p300);
  background: var(--surface-2);
}
.sl-prev {
  left: 14px;
}
.sl-next {
  right: 14px;
}

/* dots — below the slider */
.sl-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 14px 0 2px;
}
.sl-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--border-2);
  border: none;
  cursor: pointer;
  transition:
    background 0.3s,
    width 0.3s;
  padding: 0;
}
.sl-dot.active {
  background: var(--p300);
  width: 20px;
}

/* ══ ZIGZAG TIMELINE ══ */
.timeline-section {
  background: var(--p750);
}
.zzl-wrap {
  position: relative;
  padding: 48px 0 20px;
}
.zzl-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border-2) 5%,
    var(--border-2) 95%,
    transparent
  );
  transform: translateX(-50%);
  pointer-events: none;
}
.zzl-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 52px;
  position: relative;
}
.zzl-left {
  flex-direction: row;
  padding-right: calc(50% + 32px);
}
.zzl-right {
  flex-direction: row-reverse;
  padding-left: calc(50% + 32px);
}
.zzl-connector {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.zzl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--p500);
  background: var(--p750);
  flex-shrink: 0;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.zzl-dot-active {
  background: var(--p300);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.6);
  border-color: var(--p300);
}
.zzl-item:hover .zzl-dot {
  background: var(--p400);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.4);
}
.zzl-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--border-2), transparent);
}
.zzl-card {
  background: var(--p750);
  border: 1px solid var(--border);
  padding: 24px 22px;
  transition:
    border-color 0.3s,
    transform 0.3s;
  border-radius: var(--radius);
  max-width: 100%;
  position: relative;
}
.zzl-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.zzl-card-active {
  border-color: rgba(167, 139, 250, 0.3);
  background: var(--surface-2);
}
.zzl-year {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--p300);
  background: var(--surface);
  border: 1px solid var(--border-2);
  padding: 3px 10px;
  margin-bottom: 10px;
}
.zzl-year-active {
  color: var(--gold);
  border-color: rgba(200, 168, 75, 0.4);
  background: rgba(200, 168, 75, 0.08);
}
.zzl-tag {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 3px 10px;
  margin-bottom: 10px;
  border-radius: 2px;
  margin-left: 8px;
}
.zzl-tag-active {
  color: var(--p300);
  border-color: var(--border-2);
  background: var(--surface);
}
.zzl-card h3 {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.zzl-org {
  font-size: 12px;
  color: var(--p300);
  margin-bottom: 10px;
  font-weight: 500;
}
.zzl-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.75;
}

/* diagonal connector line from card to center */
.zzl-left .zzl-card::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -32px;
  width: 32px;
  height: 1px;
  background: var(--border-2);
}
.zzl-right .zzl-card::after {
  content: "";
  position: absolute;
  top: 28px;
  left: -32px;
  width: 32px;
  height: 1px;
  background: var(--border-2);
}

/* ══ CONTACT ══ */
.contact-section {
  background: var(--p800);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ch-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.3s;
  border-radius: var(--radius);
}
.ch-card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateX(4px);
}
.ch-cv {
  border-color: var(--border-2);
}
.ch-ic {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  flex-shrink: 0;
  border-radius: var(--radius);
}
.ch-info {
  flex: 1;
  min-width: 0;
}
.ch-label {
  display: block;
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}
.ch-val {
  display: block;
  font-size: 13px;
  color: var(--text-1);
  font-weight: 500;
}
.ch-arr {
  flex-shrink: 0;
  color: var(--text-3);
}
.contact-card {
  border: 1px solid var(--border-2);
  background: var(--glow);
  padding: 40px 36px;
  border-radius: var(--radius);
}
/* ── What to Expect ── */
.wte-eyebrow {
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--p300);
  margin-bottom: 10px;
}
.wte-title {
  font-family: var(--font-d);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 32px;
}
.wte-title em {
  font-style: italic;
  color: var(--p300);
}
.wte-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.wte-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.wte-step:last-child {
  border-bottom: none;
}
.wte-num {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--p400);
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 6px;
  padding: 4px 8px;
  flex-shrink: 0;
  margin-top: 2px;
}
.wte-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wte-body strong {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.wte-body span {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ══ FOOTER ══ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--p900);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  height: 56px;
  width: auto;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-2);
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--p300);
}

/* ══ FLOAT CTA ══ */
.float-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s;
}
.float-cta.visible {
  opacity: 1;
  transform: translateY(0);
}
.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s;
}
.float-btn:hover {
  transform: scale(1.1);
}
.float-wa {
  background: #25d366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.float-cv {
  background: var(--p500);
  box-shadow: 0 4px 16px rgba(91, 45, 142, 0.4);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  :root {
    --py: 88px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-content {
    order: 1;
  }
  .hero-visual {
    order: 2;
  }
  .logo-wrap {
    width: 240px;
    height: 240px;
  }
  .logo-img {
    width: 160px;
    height: 160px;
  }
  .hero-name {
    font-size: 68px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-bio {
    grid-column: 1;
    grid-row: auto;
  }
  .bento-tools {
    grid-column: 1;
    grid-row: auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nav-links,
  .nav-actions {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .section-title {
    font-size: 42px;
  }
  .nav-logo img {
    height: 52px;
  }
}
@media (max-width: 768px) {
  :root {
    --py: 72px;
  }
  .container {
    padding: 0 24px;
  }
  .hero {
    padding: 110px 24px 70px;
  }
  .hero-name {
    font-size: 52px;
  }
  .orbit-tag {
    display: none;
  }
  .logo-wrap {
    width: 180px;
    height: 180px;
  }
  .logo-img {
    width: 130px;
    height: 130px;
  }
  .acc-head {
    padding: 18px 20px;
  }
  .acc-body {
    padding-left: 44px;
  }
  .htl-card {
    flex: 0 0 260px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand {
    flex-direction: column;
    order: 1;
  }
  .footer-links {
    justify-content: center;
    order: 2;
  }
  .footer-copy {
    order: 3;
    font-size: 12px;
  }
  .float-cta {
    bottom: 20px;
    right: 20px;
  }
  .section-title {
    font-size: 34px;
  }
  .nav-inner {
    padding: 0 24px;
  }
  .nav-mobile {
    padding: 20px 24px 28px;
  }
  .nav-logo img {
    height: 48px;
  }
  .mq-item {
    padding: 16px 24px;
    min-height: 70px;
  }
  .mq-n {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .hero-name {
    font-size: 42px;
  }
  .hero-desc {
    font-size: 14px;
  }
  .section-title {
    font-size: 28px;
  }
  .htl-card {
    flex: 0 0 240px;
  }
}

/* ══ HERO SEO VISUAL ══ */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.seo-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
}
.seo-screen {
  background: var(--p750);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--border);
}
.seo-screen-bar {
  background: var(--p900);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.seo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sd1 {
  background: #ff5f57;
}
.sd2 {
  background: #febc2e;
}
.sd3 {
  background: #28c840;
}
.seo-url {
  font-family: var(--font-b);
  font-size: 10px;
  color: var(--text-3);
  background: var(--p800);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seo-rank-list {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.seo-rank-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--p900);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.sri-active {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.06);
}
.sri-dim {
  opacity: 0.45;
}
.sri-pos {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  color: var(--p300);
  flex-shrink: 0;
  min-width: 22px;
  line-height: 1.5;
}
.sri-active .sri-pos {
  color: var(--gold);
}
.sri-content {
  flex: 1;
  min-width: 0;
}
.sri-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
  margin-bottom: 2px;
}
.sri-url {
  font-size: 9px;
  color: #4ade80;
  margin-bottom: 3px;
}
.sri-desc {
  font-size: 9px;
  color: var(--text-3);
  line-height: 1.5;
}
.blur-text {
  filter: blur(3px);
  user-select: none;
}
.sri-arrow {
  font-size: 12px;
  color: #4ade80;
  font-weight: 700;
  animation: arrowBounce 1.8s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
.seo-metrics {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.seo-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sm-top {
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.sm-val {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 800;
  color: var(--p300);
  line-height: 1;
}
.sm-pct,
.sm-sar {
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  color: var(--p300);
}
.sm-label {
  font-size: 8px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sm-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.sm-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--p500), var(--p300));
  border-radius: 2px;
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.sm-fill.animated {
  width: var(--w);
}

/* floating keyword chips */
.fk-chip {
  position: absolute;
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p300);
  background: rgba(15, 10, 30, 0.88);
  border: 1px solid var(--border-2);
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
  animation: fkFloat 5s ease-in-out infinite;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
@keyframes fkFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
}
.fk1 {
  top: -16px;
  left: 10px;
  animation-delay: 0s;
}
.fk2 {
  top: -16px;
  right: 10px;
  animation-delay: 0.8s;
}
.fk3 {
  bottom: -16px;
  left: 10px;
  animation-delay: 1.6s;
}
.fk4 {
  bottom: -16px;
  right: 10px;
  animation-delay: 2.4s;
}
.fk5 {
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  animation-delay: 1.2s;
}

/* ══ LIGHTBOX ══ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.lightbox.open {
  display: flex;
}
.lb-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 90vw;
  max-height: 90vh;
}
.lb-img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  animation: lbFadeIn 0.25s ease;
}
@keyframes lbFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.lb-cap {
  font-family: var(--font-d);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-align: center;
}
.lb-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--p750);
  color: var(--text-1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.lb-close:hover {
  border-color: var(--p300);
  color: var(--p300);
}
.lb-prev,
.lb-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border-2);
  background: var(--p750);
  color: var(--text-1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.lb-prev:hover,
.lb-next:hover {
  border-color: var(--p300);
  color: var(--p300);
  background: var(--surface-2);
}

/* clickable slides */
.slide {
  cursor: zoom-in;
}

/* ══ RESPONSIVE — zigzag ══ */
@media (max-width: 768px) {
  .zzl-wrap::before {
    left: 24px;
  }
  .zzl-left,
  .zzl-right {
    flex-direction: row;
    padding-right: 0;
    padding-left: 52px;
  }
  .zzl-connector {
    left: 24px;
  }
  .zzl-left .zzl-card::after,
  .zzl-right .zzl-card::after {
    display: none;
  }
  .fk5 {
    display: none;
  }
  .seo-metrics {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .seo-metrics {
    grid-template-columns: 1fr;
  }
  .fk1,
  .fk2,
  .fk3,
  .fk4,
  .fk5 {
    display: none;
  }
}

/* ══════════════════════════════════════════
   TESTIMONIALS — Quote Card Masonry Grid
══════════════════════════════════════════ */
.testimonials-section {
  padding: var(--py) 0;
  background: var(--p800);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(91,45,142,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Carousel Track ── */
.tm-carousel-wrap {
  position: relative;
  margin-top: 56px;
  padding: 0 60px;
}
@media (max-width: 768px) {
  .tm-carousel-wrap { padding: 0 16px; }
}
.tm-track-outer {
  overflow: hidden;
  border-radius: 16px;
}
.tm-track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.tm-quote-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: var(--p750);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, opacity 0.4s, filter 0.4s;
  position: relative;
  overflow: hidden;
  opacity: 0.38;
  filter: blur(1.5px) saturate(0.6);
}
@media (max-width: 900px) {
  .tm-quote-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .tm-quote-card { flex: 0 0 90%; }
}
.tm-quote-card.tm-active {
  opacity: 1;
  filter: none;
  border-color: var(--border-2);
  box-shadow: 0 12px 40px rgba(91,45,142,0.22);
}
.tm-quote-card::before {
  content: '"';
  position: absolute;
  top: -10px; right: 20px;
  font-size: 80px;
  font-family: var(--font-d);
  color: rgba(167,139,250,0.08);
  line-height: 1;
  pointer-events: none;
}
.tm-quote-card:hover {
  transform: translateY(-4px);
}

.tm-stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.tm-text {
  font-size: 16px;
  line-height: 2;
  color: var(--text-1);
  font-style: normal;
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  margin-bottom: 18px;
  direction: rtl;
  text-align: right;
}
.tm-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tm-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--p300);
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.tm-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  cursor: zoom-in;
}
.tm-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  display: block;
  opacity: 1;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tm-thumb-wrap:hover .tm-thumb {
  transform: scale(1.06);
  box-shadow: 0 4px 18px rgba(91,45,142,0.35);
  border-color: var(--p400);
}
.tm-thumb-zoom {
  position: absolute;
  bottom: 5px;
  right: 5px;
  border-radius: 6px;
  background: rgba(91,45,142,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  opacity: 1;
  backdrop-filter: blur(4px);
}
.tm-thumb-zoom svg { color: #fff; }

/* Carousel Nav Arrows */
.tm-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--p700);
  color: var(--p300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(6px);
}
.tm-arrow:hover {
  background: var(--p600);
  border-color: var(--p400);
  box-shadow: 0 4px 20px rgba(91,45,142,0.35);
  transform: translateY(-50%) scale(1.08);
}
.tm-arrow-prev { left: 0; }
.tm-arrow-next { right: 0; }
@media (max-width: 768px) {
  .tm-arrow { display: none; }
}

/* Carousel Dots */
.tm-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.tm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-2);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, width 0.3s;
}
.tm-dot.active {
  background: var(--p400);
  width: 24px;
  border-radius: 4px;
  transform: none;
}

/* ══════════════════════════════════════════
   PORTFOLIO — Grid desktop / Slider mobile
══════════════════════════════════════════ */
.portfolio-section {
  padding: var(--py) 0;
  background: var(--p900);
  position: relative;
}
.portfolio-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 80% 50%, rgba(91,45,142,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.pf-outer { position: relative; margin-top: 56px; }

/* ── GRID (desktop ≥ 768px) ── */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (min-width: 1100px) {
  .pf-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── SLIDER (mobile < 768px) ── */
@media (max-width: 767px) {
  .pf-outer { overflow: hidden; }
  .pf-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    grid-template-columns: unset;
  }
  .pf-card { flex: 0 0 85vw; max-width: 320px; }
  .pf-mob-nav { display: flex !important; }
}

/* Hide mobile nav on desktop */
.pf-mob-nav {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

/* ── Card ── */
.pf-card {
  background: var(--p750);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.pf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(91,45,142,0.25);
  border-color: var(--p400);
}

/* browser bar */
.pf-phone-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: var(--p700);
  border-bottom: 1px solid var(--border);
}
.pf-dot { width: 8px; height: 8px; border-radius: 50%; }
.pf-dot:nth-child(1) { background: #ff5f57; }
.pf-dot:nth-child(2) { background: #febc2e; }
.pf-dot:nth-child(3) { background: #28c840; }
.pf-url-bar {
  flex: 1;
  background: var(--p800);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 9.5px;
  color: var(--text-3);
  margin-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Screenshot */
.pf-img-wrap {
  position: relative;
  overflow: hidden;
  height: 210px;
}
.pf-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}
.pf-card:hover .pf-img-wrap img { transform: scale(1.05); }
.pf-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,10,30,0.88) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}
.pf-card:hover .pf-overlay { opacity: 1; }
.pf-seo-chip {
  font-size: 10px;
  background: rgba(167,139,250,0.22);
  border: 1px solid rgba(167,139,250,0.4);
  color: #c4b5fd;
  padding: 3px 8px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

/* Info */
.pf-info { padding: 14px 16px 18px; }
.pf-category {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p300);
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.15);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.pf-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 10px;
}
.pf-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pf-tag {
  font-size: 10px;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Mobile slider buttons */
.pf-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--p300);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  font-size: 18px;
}
.pf-btn:hover { background: var(--p700); border-color: var(--p400); transform: scale(1.1); }
.pf-dots { display: flex; gap: 7px; }
.pf-dot-nav {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.pf-dot-nav.active { background: var(--p400); transform: scale(1.3); }




