/* ══════════════════════════════════════════════════
   DR. KHALID AL-SULAMI — PORTFOLIO v2
   Ultra-Minimalist · Monochrome · RTL/LTR · Pro UX
   ══════════════════════════════════════════════════ */

/* ── FONTS ─────────────────────────────────────────── */
@font-face {
  font-family: "Graphik Arabic";
  src: url("../../font/Graphik Arabic Thin.otf") format("opentype");
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: "Graphik Arabic";
  src: url("../../font/Graphik Arabic ExtraLight.otf") format("opentype");
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: "Graphik Arabic";
  src: url("../../font/Graphik Arabic.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Graphik Arabic";
  src: url("../../font/Graphik Arabic Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Graphik Arabic";
  src: url("../../font/Graphik Arabic SemiBold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Graphik Arabic";
  src: url("../../font/Graphik Arabic Black.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Graphik Arabic";
  src: url("../../font/Graphik Arabic Super.otf") format("opentype");
  font-weight: 950;
  font-display: swap;
}

/* ── Thmanyah Serif Display ── */
@font-face {
  font-family: "Thmanyah Serif";
  src: url("../../font/thmanyah-serif/thmanyah-serif-display-light.otf")
    format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif";
  src: url("../../font/thmanyah-serif/thmanyah-serif-display-regular.otf")
    format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif";
  src: url("../../font/thmanyah-serif/thmanyah-serif-display-medium.otf")
    format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif";
  src: url("../../font/thmanyah-serif/thmanyah-serif-display-bold.otf")
    format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif";
  src: url("../../font/thmanyah-serif/thmanyah-serif-display-black.otf")
    format("opentype");
  font-weight: 900;
  font-display: swap;
}

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --bg: #f8f8f6;
  --bg-2: #f0f0ee;
  --bg-dark: #0c0c0b;
  --surface: #ffffff;
  --border: rgba(0, 0, 0, 0.07);
  --border-md: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.2);
  --ink: #0c0c0b;
  --ink-2: #3d3d3a;
  --ink-3: #7a7a74;
  --ink-inv: #f8f8f6;
  --header-h: 68px;
  --radius-sm: 12px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --font: "Graphik Arabic", "Segoe UI", system-ui, sans-serif;
  --font-display: "Thmanyah Serif", "Graphik Arabic", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --dur: 0.35s;
  --dur-slow: 0.7s;
}
[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #000000;
  --surface: #16191D;
  --border: rgba(255, 255, 255, 0.06);
  --border-md: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --ink: #f0f0ee;
  --ink-2: #aeaea8;
  --ink-3: #6e6e68;
  --ink-inv: #000;
}

/* ── RESET ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  transition:
    background var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
  overflow-x: hidden;
  line-height: 1.7;
}
[data-lang="ar"] {
  direction: rtl;
}
[data-lang="en"] {
  direction: ltr;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}
input,
textarea {
  font-family: var(--font);
}
svg {
  display: block;
  flex-shrink: 0;
}
.container {
  width: min(92%, 1180px);
  margin-inline: auto;
}

/* ── SECTION BASE ───────────────────────────────────── */
section {
  padding-block: 100px;
}

.section-header {
  margin-bottom: 64px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 6px;
}
.section-sub {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 520px;
}
.section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.82rem 1.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: var(--ink);
  color: var(--ink-inv);
}
.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.btn-outline {
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--ink-inv);
  border-color: var(--ink);
}
.btn-white {
  background: #fff;
  color: #000;
}
.btn-white:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-ghost-white {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
}
.full-w {
  width: 100%;
  justify-content: center;
}

/* ── REVEAL ANIMATIONS ──────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
[data-reveal="up"] {
  transform: translateY(28px);
}
[data-reveal="from-start"] {
  transform: translateX(-36px);
}
[data-reveal="from-end"] {
  transform: translateX(36px);
}
[data-lang="en"] [data-reveal="from-start"] {
  transform: translateX(36px);
}
[data-lang="en"] [data-reveal="from-end"] {
  transform: translateX(-36px);
}
[data-reveal].visible {
  opacity: 1;
  transform: none !important;
}

/* Fallback: if JS fails or user prefers reduced motion, show everything */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
body.reveal-ready [data-reveal]:not(.visible) {
  /* After 3s JS timeout, force-show all unrevealed elements */
}
body.reveal-fallback [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ══════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 24px;
  inset-inline: 0;
  z-index: 900;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition:
    background var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
#site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
  justify-content: space-between;
}

.logo {
  font-family: "Thmanyah Serif", serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo Flip Animation */
.logo-flip-wrap {
  display: inline-block;
  height: 1.3em;
  overflow: hidden;
  vertical-align: middle;
  position: relative;
}
.logo-flip-track {
  display: flex;
  flex-direction: column;
  animation: logoTextFlip 4s ease-in-out infinite;
}
.logo-flip-track .logo-ar {
  height: 1.3em;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.logo-flip-alt {
  font-size: 0.85em;
  opacity: 0.6;
}
@keyframes logoTextFlip {
  0%,
  40% {
    transform: translateY(0);
  }
  50%,
  90% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

#main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
#main-nav ul {
  display: flex;
  gap: 4px;
}
#main-nav a {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--radius-sm);
  transition:
    color var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}
#main-nav a:hover,
#main-nav a.active {
  color: var(--ink);
  background: var(--border);
}

/* Dropdown Menu Styles */
#main-nav .has-dropdown {
  position: relative;
  display: inline-block;
}
#main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur) var(--ease-out);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
[data-lang="en"] #main-nav .dropdown-menu {
  right: auto;
  left: 0;
}
#main-nav .has-dropdown:hover .dropdown-menu,
#main-nav .has-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#main-nav .dropdown-menu li {
  width: 100%;
}
#main-nav .dropdown-menu a {
  display: block;
  padding: 8px 16px;
  background: transparent;
  border-radius: 0;
  text-align: right;
  font-weight: 500;
}
[data-lang="en"] #main-nav .dropdown-menu a {
  text-align: left;
}
#main-nav .dropdown-menu a:hover {
  background: var(--bg-2);
}
#main-nav .arrow {
  display: inline-block;
  margin-right: 4px;
  border: solid var(--ink-3);
  border-width: 0 1.5px 1.5px 0;
  padding: 2.5px;
  transform: rotate(45deg);
  vertical-align: middle;
  margin-bottom: 2px;
  transition: transform var(--dur) var(--ease-out);
}
[data-lang="en"] #main-nav .arrow {
  margin-right: 0;
  margin-left: 4px;
}
#main-nav .has-dropdown:hover .arrow,
#main-nav .has-dropdown.active .arrow {
  transform: rotate(225deg);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
#lang-toggle {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border: 1.5px solid var(--border-md);
  border-radius: var(--radius-sm);
  color: var(--ink-3);
  transition: all var(--dur) var(--ease-out);
}
#lang-toggle:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

#theme-toggle {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transition: all var(--dur) var(--ease-out);
}
#theme-toggle svg {
  width: 17px;
  height: 17px;
}
#theme-toggle:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}
.icon-moon {
  display: none;
}
[data-theme="dark"] .icon-sun {
  display: none;
}
[data-theme="dark"] .icon-moon {
  display: block;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-md);
  border-radius: var(--radius-sm);
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--dur) var(--ease-out);
}
.nav-burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Language Toggle */
.lang-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-md);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.05em;
}
.lang-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  position: relative;
  z-index: 10001;
}

/* ══════════════════════════════════════════════════════
   HERO — Full-Bleed Background
══════════════════════════════════════════════════════ */
#hero {
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #0c0c0b;
}

/* ── Background Slideshow ── */
.hero-bg-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg-slideshow .slideshow-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transition:
    opacity 1.5s ease-in-out,
    transform 6s ease-out;
  filter: contrast(1.05) brightness(0.9);
}
.hero-bg-slideshow .slideshow-img.active {
  opacity: 1;
  transform: scale(1.04);
}

/* ── Dark Overlay ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(12, 12, 11, 0.65);
  transition: background 0.6s ease;
}
#hero:hover .hero-overlay {
  background: rgba(12, 12, 11, 0.55);
}

/* ── Hero Hover — Image Zoom ── */
.hero-bg-slideshow .slideshow-img {
  transition:
    opacity 1.5s ease-in-out,
    transform 1s ease;
}
#hero:hover .hero-bg-slideshow .slideshow-img.active {
  transform: scale(1.06);
}

/* ── Hero Text Shadow for Contrast ── */
.hero-text {
  max-width: 720px;
}
.hero-name {
  text-shadow:
    0 4px 30px rgba(0, 0, 0, 0.8),
    0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ── Hero Content ── */
.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  flex: 1;
}

/* ── Hero Eyebrow ── */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 240, 238, 0.55);
  margin-bottom: 24px;
  animation: fadeSlideUp 0.8s var(--ease-out) 0.1s both;
}
.eyebrow-line {
  width: 28px;
  height: 1px;
  background: rgba(240, 240, 238, 0.4);
  flex-shrink: 0;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
  color: #f0f0ee;
  animation: fadeSlideUp 0.8s var(--ease-out) 0.2s both;
}
.hero-name-en {
  display: none;
}
[data-lang="en"] .hero-name-ar {
  display: none;
}
[data-lang="en"] .hero-name-en {
  display: block;
}

.hero-quote {
  margin-bottom: 36px;
  position: relative;
  padding-inline-start: 20px;
  border-inline-start: 2px solid rgba(240, 240, 238, 0.5);
  animation: fadeSlideUp 0.8s var(--ease-out) 0.3s both;
}
.hero-quote .quote-icon {
  display: none;
}
.hero-quote p {
  font-size: 0.95rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(240, 240, 238, 0.65);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 12px;
  animation: fadeSlideUp 0.8s var(--ease-out) 0.4s both;
  position: relative;
  z-index: 10;
}

/* Light outline button for dark hero */
.btn-outline-light {
  border: 1.5px solid rgba(240, 240, 238, 0.35);
  color: #f0f0ee;
}
.btn-outline-light:hover {
  background: rgba(240, 240, 238, 0.1);
  border-color: rgba(240, 240, 238, 0.6);
}

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

/* ── Hero Stats ── */
.hero-stats {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  padding-block: 32px;
  border-top: 1px solid rgba(240, 240, 238, 0.12);
  margin-top: 60px;
}
.stat-item {
  flex: 1;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #f0f0ee;
}
.stat-lbl {
  font-size: 0.72rem;
  color: rgba(240, 240, 238, 0.5);
  margin-top: 4px;
  display: block;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(240, 240, 238, 0.15);
  flex-shrink: 0;
}

/* ── Scroll Indicator ── */
.hero-scroll {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding-block: 24px 32px;
}
.scroll-track {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(240, 240, 238, 0.3), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-track::after {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  width: 1px;
  height: 16px;
  background: #f0f0ee;
  animation: scrollDown 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollDown {
  0% {
    top: -16px;
    opacity: 1;
  }
  80% {
    top: 48px;
    opacity: 1;
  }
  100% {
    top: 48px;
    opacity: 0;
  }
}

/* ══════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════ */
#about {
  background: var(--bg);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 48px 80px;
}

.about-bio {
  grid-column: 1;
  grid-row: 1;
}
.about-roles {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-skills {
  grid-column: 1;
  grid-row: 2;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-bio p {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.9;
  margin-bottom: 16px;
}

.role-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition:
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}
.role-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.role-icon-wrap {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.role-icon-wrap svg {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
}
.role-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.role-card p {
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0;
}

.about-skills h3 {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill {
  padding: 6px 14px;
  border: 1px solid var(--border-md);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: all var(--dur) var(--ease-out);
}
.skill:hover {
  background: var(--ink);
  color: var(--ink-inv);
  border-color: var(--ink);
}

/* ══════════════════════════════════════════════════════
   PORTFOLIO — Scroll Stack Cards
══════════════════════════════════════════════════════ */
#portfolio {
  background: var(--bg-2);
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.portfolio-list {
  display: flex;
  flex-direction: column;
}

.pf-item {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease,
    opacity 0.5s ease;
  transform-origin: center top;
  will-change: transform;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.pf-item:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.pf-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.pf-num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.pf-title-wrap {
  flex: 1;
}
.pf-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: color var(--dur) var(--ease-out);
}
.pf-item:hover .pf-title {
  color: var(--ink-3);
}
.pf-cat {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 4px;
  font-weight: 400;
}
.pf-year {
  font-size: 0.78rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.pf-img-wrap {
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  aspect-ratio: 16/8;
  background: var(--bg-2);
  position: relative;
}
.pf-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.pf-item:hover .pf-img-wrap img {
  transform: scale(1.03);
}

/* ══════════════════════════════════════════════════════
   CLIENTS — Dark Grid (moedesigns style)
══════════════════════════════════════════════════════ */
#clients {
  background: #000;
  padding-block: 50px !important;
  overflow: hidden;
}

.clients-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.clients-marquee::before,
.clients-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.clients-marquee::before {
  left: 0;
  background: linear-gradient(to right, #000, transparent);
}
.clients-marquee::after {
  right: 0;
  background: linear-gradient(to left, #000, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: clients-scroll 90s linear infinite;
}

.client-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}
.client-logo-item img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.client-logo-item:hover img {
  opacity: 1;
}

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

[data-theme="dark"] #clients {
  background: #000;
}
[data-theme="dark"] .clients-marquee::before {
  background: linear-gradient(to right, #000, transparent);
}
[data-theme="dark"] .clients-marquee::after {
  background: linear-gradient(to left, #000, transparent);
}

/* ══════════════════════════════════════════════════════
   PERSONAL SECTIONS
══════════════════════════════════════════════════════ */
.ps-section {
  padding-block: 120px;
  overflow: hidden;
}
.ps-section.alt-bg {
  background: var(--bg-2);
}
.ps-section.dark-section {
  background: var(--bg-dark);
  color: #f0f0ee;
}

/* ── Khaled.AI Intro Section ── */
.intro-brand-section {
  padding-block: 100px;
  background: var(--bg-dark);
  overflow: hidden;
}
.intro-brand-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-brand-text {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(240, 240, 238, 0.35);
  user-select: none;
}
.intro-brand-dot {
  color: #f0f0ee;
  font-weight: 900;
}
.intro-brand-ai {
  font-weight: 900;
  color: #f0f0ee;
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.ps-grid-rev .ps-visual {
  order: 2;
}
.ps-grid-rev .ps-content {
  order: 1;
}

/* ── PS Visual ── */
.ps-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-2);
}
.ps-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%);
  transition:
    transform 0.8s var(--ease-out),
    filter 0.8s var(--ease-out);
}
.ps-img-wrap:hover img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

/* ── PS Content ── */
.ps-icon-wrap {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.ps-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.ps-content .section-tag {
  margin-bottom: 8px;
  display: block;
}
.ps-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.ps-content p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.85;
  margin-bottom: 16px;
}
.dark-section .ps-content p {
  color: rgba(240, 240, 238, 0.65);
}

/* ── Journey Preview ── */
.journey-preview-timeline {
  display: flex;
  gap: 0;
  margin-block: 28px 32px;
  border-inline-start: 2px solid var(--border-md);
  padding-inline-start: 20px;
  flex-direction: column;
  gap: 12px;
}
.jpt-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.jpt-year {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-3);
  min-width: 40px;
}
.jpt-label {
  font-size: 0.85rem;
  color: var(--ink-2);
}

/* ── Journey Stats Visual ── */
.journey-stats-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--border-md);
  aspect-ratio: 1;
}
.jsv-item {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--dur) var(--ease-out);
}
.jsv-item:hover {
  background: var(--bg-2);
}
.jsv-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.jsv-lbl {
  font-size: 0.72rem;
  color: var(--ink-3);
}

/* ── Philosophy Section ── */
.ps-philosophy-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 780px;
  margin-inline: auto;
  padding-block: 60px;
}
.ps-philosophy-inner .section-tag {
  color: rgba(240, 240, 238, 0.45);
}
.philosophy-icon {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(240, 240, 238, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.philosophy-icon svg {
  width: 28px;
  height: 28px;
  color: rgba(240, 240, 238, 0.5);
}
.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #f0f0ee;
}
.philosophy-sub {
  font-size: 0.95rem;
  color: rgba(240, 240, 238, 0.55);
  line-height: 1.85;
  max-width: 560px;
}
.philosophy-cta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* ══════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════ */
#contact {
  background: var(--bg-2);
}

/* ── Contact Simple Layout ── */
.contact-simple {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}
.contact-simple-header {
  margin-bottom: 48px;
}
.contact-simple-header .section-tag {
  margin-bottom: 8px;
  display: block;
}
.contact-simple-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 6px;
}
.contact-simple-sub {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--ink-2);
}

.contact-simple-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-simple-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1.5px solid var(--border-md);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: start;
  transition: all var(--dur) var(--ease-out);
}
.contact-simple-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.csc-icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--border-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink-3);
  transition: all var(--dur) var(--ease-out);
}
.csc-icon svg {
  width: 20px;
  height: 20px;
}
.csc-icon-wa {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}
.contact-simple-card:hover .csc-icon {
  border-color: var(--ink);
  color: var(--ink);
}
.contact-simple-card:hover .csc-icon-wa {
  border-color: #25d366;
  color: #fff;
  background: #20bd5a;
}

.csc-body {
  flex: 1;
}
.csc-body strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.csc-body span {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.csc-arrow {
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: all var(--dur) var(--ease-out);
  opacity: 0;
  transform: translateX(-8px);
}
[data-lang="en"] .csc-arrow {
  transform: translateX(8px);
}
.contact-simple-card:hover .csc-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Form ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border-md);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  transition:
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
  outline: none;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-3);
  font-family: var(--font);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 32px;
  text-align: center;
  border: 1.5px solid var(--border-md);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.success-icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-icon svg {
  width: 20px;
  height: 20px;
}
.form-success h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.form-success p {
  font-size: 0.88rem;
  color: var(--ink-3);
}

/* ── Contact Card ── */
.contact-card {
  padding: 28px;
  border: 1.5px solid var(--border-md);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.contact-card h3 {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--ink-inv);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}
.whatsapp-cta:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}
.wa-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-icon svg {
  width: 22px;
  height: 22px;
}
.wa-text {
  flex: 1;
}
.wa-text span:first-child {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
}
.wa-num {
  font-size: 0.72rem;
  opacity: 0.65;
  display: block;
  margin-top: 1px;
}
.wa-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-detail-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--ink-2);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease-out);
}
.contact-detail-link:hover {
  color: var(--ink);
  background: var(--border);
}
.cd-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cd-icon svg {
  width: 14px;
  height: 14px;
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
#site-footer {
  padding-block: 28px;
  border-top: 1px solid var(--border-md);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  font-weight: 950;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}
.footer-logo .logo-en {
  display: none;
}
[data-lang="en"] .footer-logo .logo-ar {
  display: none;
}
[data-lang="en"] .footer-logo .logo-en {
  display: inline;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--ink-3);
}
.footer-links {
  display: flex;
  gap: 8px;
}
.footer-social {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transition: all var(--dur) var(--ease-out);
}
.footer-social svg {
  width: 15px;
  height: 15px;
}
.footer-social:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

/* ══════════════════════════════════════════════════════
   CHAT WIDGET
══════════════════════════════════════════════════════ */
#chat-widget {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

#chat-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ink-inv);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
  position: relative;
}
#chat-trigger:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}
#chat-trigger svg {
  width: 22px;
  height: 22px;
}
.chat-icon-close {
  display: none;
}
#chat-trigger.open .chat-icon-open {
  display: none;
}
#chat-trigger.open .chat-icon-close {
  display: block;
}
#chat-trigger.open {
  border-radius: var(--radius-sm);
}

.chat-badge {
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--ink-inv);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  padding-inline: 3px;
}

#chat-box {
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
  transform-origin: bottom end;
}
#chat-box.chat-hidden {
  opacity: 0;
  transform: scale(0.92) translateY(8px);
  pointer-events: none;
}
#chat-box.chat-visible {
  opacity: 1;
  transform: none;
}
#chat-box.chat-visible ~ #wa-float {
  opacity: 0;
  pointer-events: none;
}

.chat-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-2);
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ink-inv);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.chat-meta {
  flex: 1;
}
.chat-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
}
.chat-online {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: var(--ink-3);
  margin-top: 1px;
}
.chat-online svg {
  width: 7px;
  height: 7px;
  color: #22c55e;
}
.chat-close-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transition: all var(--dur) var(--ease-out);
}
.chat-close-btn svg {
  width: 14px;
  height: 14px;
}
.chat-close-btn:hover {
  background: var(--border);
  color: var(--ink);
}

.chat-body {
  min-height: 160px;
  max-height: 260px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
}

.chat-msg {
  max-width: 88%;
  font-size: 0.8rem;
  line-height: 1.55;
  padding: 9px 13px;
  border-radius: 16px;
  animation: msgIn 0.25s var(--ease-out);
  white-space: pre-wrap;
}
@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.chat-msg-bot {
  background: var(--bg-2);
  align-self: flex-start;
  border-end-start-radius: 4px;
}
[data-lang="en"] .chat-msg-bot {
  border-end-start-radius: 16px;
  border-end-end-radius: 4px;
}
.chat-msg-user {
  background: var(--ink);
  color: var(--ink-inv);
  align-self: flex-end;
  border-end-end-radius: 4px;
}
[data-lang="en"] .chat-msg-user {
  border-end-end-radius: 16px;
  border-end-start-radius: 4px;
}

.chat-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-2);
}
#chat-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-md);
  border-radius: 100px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8rem;
  outline: none;
  transition: border-color var(--dur) var(--ease-out);
}
#chat-input:focus {
  border-color: var(--border-strong);
}
#chat-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ink-inv);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-out);
}
#chat-send svg {
  width: 14px;
  height: 14px;
}
#chat-send:hover {
  transform: scale(1.08);
}

/* ══════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
#lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}
.lb-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease-out);
}
.lb-close svg {
  width: 18px;
  height: 18px;
}
.lb-close:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#lb-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}
#lb-caption {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    display: flex;
  }
  .hero-text {
    max-width: 100%;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-roles {
    grid-column: 1;
    grid-row: auto;
  }
  .about-skills {
    grid-column: 1;
    grid-row: auto;
  }
  .ps-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ps-grid-rev .ps-visual {
    order: 0;
  }
  .ps-grid-rev .ps-content {
    order: 0;
  }
  .ps-img-wrap {
    aspect-ratio: 16/9;
    max-height: 360px;
  }
}

@media (max-width: 768px) {
  section {
    padding-block: 64px;
  }
  .ps-section {
    padding-block: 80px;
  }
  #site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 20px 0 0 0;
    overflow: visible !important;
  }
  .header-inner {
    height: 48px;
  }
  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
  #main-nav.open {
    display: block;
  }
  #main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  #main-nav a {
    padding: 16px 24px;
    font-size: 1rem;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--ink) !important;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(201, 245, 0, 0.15);
  }
  #main-nav a:active {
    background: rgba(201, 245, 0, 0.08);
  }
  #main-nav .has-dropdown {
    display: block;
  }
  #main-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 16px;
    background: transparent;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  #main-nav .has-dropdown:hover .dropdown-menu,
  #main-nav .has-dropdown:active .dropdown-menu,
  #main-nav .has-dropdown:focus-within .dropdown-menu,
  #main-nav .has-dropdown.active .dropdown-menu {
    display: flex;
  }
  #main-nav .dropdown-menu a {
    border-bottom: none;
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  .nav-burger {
    display: flex;
  }
  .logo {
    font-size: 1rem;
    gap: 8px;
  }
  .logo-avatar {
    width: 30px;
    height: 30px;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 0;
  }
  .stat-sep {
    display: none;
  }
  .stat-item {
    width: 50%;
    padding: 16px 8px;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }
  .stat-num {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .stat-lbl {
    font-size: 0.68rem;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    justify-content: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 12px;
  }
  .journey-stats-visual {
    max-width: 320px;
    margin-inline: auto;
  }
  #chat-widget {
    bottom: 12px;
    inset-inline-end: 12px;
  }
  #chat-box {
    width: calc(100vw - 24px);
    max-width: 360px;
    bottom: 70px;
  }
  #wa-float {
    width: 44px;
    height: 44px;
    bottom: 80px !important;
    left: 12px !important;
  }
  #chat-trigger {
    width: 48px;
    height: 48px;
  }
  .section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
  .about-lead {
    font-size: 0.95rem;
  }
  .articles-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
  }
  .ig-section-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
  }
}

@media (max-width: 480px) {
  .hero-photo-inner {
    width: 220px;
    height: 280px;
  }
  .philosophy-cta {
    flex-direction: column;
  }
  .stat-item {
    width: 50%;
    padding: 12px 4px;
  }
  .stat-num {
    font-size: 1.4rem;
  }
  .stat-lbl {
    font-size: 0.62rem;
  }
  .hero-moe .hero-moe-desc {
    font-size: 0.88rem;
  }
  .course-card-footer {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
  .testimonials-header h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  .courses-header h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
}

/* ══ HERO MOE STYLE ══════════════════════════════ */
.hero-clean {
  background: #000 !important;
}
.hero-clean .hero-bg-slideshow,
.hero-clean .hero-overlay {
  display: none !important;
}
[data-theme="dark"] .hero-clean {
  background: #000 !important;
}

/* ── Hero Layout ── */
.hero-moe .hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.hero-moe .hero-text {
  flex: 1;
  max-width: 580px;
}

/* Hero Portrait Animations */
.hero-portrait-anim {
  position: relative;
  animation: portraitEntrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.4s;
}
.hero-portrait-img {
  filter: grayscale(30%);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  animation: portraitFloat 6s ease-in-out infinite;
  animation-delay: 1.6s;
}
/* Flip portrait in LTR mode so Khalid faces the text */
[dir="ltr"] .hero-portrait-wrap {
  transform: scaleX(-1);
}
.hero-portrait-anim:hover .hero-portrait-img {
  filter: grayscale(0%);
  transform: scale(1.03);
}
.hero-portrait-glow {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}
/* Shimmer sweep */
.hero-portrait-anim::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  right: 0;
  bottom: 70px;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 60%
  );
  animation: shimmerSweep 5s ease-in-out infinite;
  animation-delay: 2s;
  pointer-events: none;
  border-radius: 16px;
}

@keyframes portraitEntrance {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes portraitFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
@keyframes shimmerSweep {
  0%,
  100% {
    left: -100%;
  }
  50% {
    left: 150%;
  }
}

/* Hero Stamp */
.hero-stamp {
  position: absolute;
  bottom: 100px;
  right: -20px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid rgba(200, 30, 30, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-15deg);
  opacity: 0;
  animation: stampPress 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.8s both;
  z-index: 10;
  pointer-events: none;
}
.hero-stamp::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid rgba(200, 30, 30, 0.5);
}
.hero-stamp-inner {
  text-align: center;
  padding: 12px;
}
.hero-stamp-text {
  display: block;
  font-size: 0.6rem;
  font-weight: 900;
  color: rgba(200, 30, 30, 0.85);
  line-height: 1.5;
  letter-spacing: 0.5px;
}
.hero-stamp-sep {
  display: block;
  font-size: 0.5rem;
  color: rgba(200, 30, 30, 0.5);
  margin: 2px 0;
}
@keyframes stampPress {
  0% {
    opacity: 0;
    transform: rotate(-15deg) scale(2);
  }
  60% {
    opacity: 1;
    transform: rotate(-15deg) scale(0.9);
  }
  100% {
    opacity: 0.9;
    transform: rotate(-15deg) scale(1);
  }
}

.hero-moe .hero-moe-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 28px;
  text-decoration: none;
}
.hero-moe .hero-moe-desc {
  font-size: clamp(0.88rem, 1.2vw, 1.02rem);
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.6);
  max-width: 380px;
  margin: 0 0 40px;
}

/* ── Hero CTA Premium ── */
.hero-moe .btn-primary {
  background: #fff;
  color: #000;
}
.hero-moe .btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
  opacity: 1;
}

/* ── Hero Portrait ── */
.hero-portrait {
  flex: 0 0 auto;
  width: clamp(200px, 22vw, 300px);
  position: relative;
  align-self: flex-end;
  animation: fadeSlideUp 1s var(--ease-out) 0.15s both;
}
.hero-portrait img {
  width: 100%;
  height: 364px;
  object-fit: cover;
  object-position: top;
  display: block;
  object-fit: contain;
}
/* Bottom + sides fade into black */
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #000 0%, transparent 35%),
    linear-gradient(to right, #000 0%, transparent 20%),
    linear-gradient(to left, #000 0%, transparent 20%),
    linear-gradient(to bottom, #000 0%, transparent 25%);
  pointer-events: none;
}

/* ── Hero Stats on black ── */
.hero-moe .hero-stats {
  border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .hero-moe .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .hero-portrait {
    width: 180px;
    align-self: center;
    order: -1;
  }
  .hero-moe .hero-text {
    max-width: 100%;
  }
  .hero-moe .hero-moe-desc {
    margin-inline: auto;
  }
  .hero-moe .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-moe .hero-eyebrow {
    justify-content: center;
  }
  /* Portrait responsive */
  .hero-portrait-wrap {
    order: -1;
  }
  .hero-portrait-img {
    width: 320px !important;
    margin-bottom: 32px !important;
  }
  .hero-portrait-anim::after {
    display: none;
  }
  .hero-portrait-glow {
    display: none;
  }
}

/* ══ COURSES SECTION ═════════════════════════════ */
.courses-section {
  padding: 100px 0;
  background: #000;
}
.courses-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.courses-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.course-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.course-card:hover .course-card-img img {
  transform: scale(1.05);
}
.course-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-family: var(--font);
}
.course-badge-free {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.course-badge-price {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.course-card-body {
  padding: 20px 24px;
  background: #fff;
  text-align: start;
}
.course-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
}
.course-type {
  font-size: 0.82rem;
  color: #888;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-direction: row-reverse;
}
.course-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #000;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.course-btn:hover {
  transform: translateY(-2px);
  background: #222;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .courses-section {
    padding: 60px 0;
  }
}

/* ══ TESTIMONIALS SECTION ════════════════════════ */
.testimonials-section {
  padding: 100px 0;
  background: #0a0a0a;
}
.testimonials-header {
  margin-bottom: 48px;
}
.testimonials-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
}
.testimonials-slider {
  position: relative;
}
.testimonials-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.testimonials-track::-webkit-scrollbar {
  display: none;
}
.testimonial-card {
  flex-shrink: 0;
  width: 380px;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease-out);
}
.testimonial-card:hover {
  transform: translateY(-4px);
}
.testimonial-card img {
  width: 100%;
  height: 364px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 16px;
}
.testimonials-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  z-index: 3;
}
.testimonials-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}
.testimonials-nav svg {
  width: 20px;
  height: 20px;
}
.testimonials-prev {
  left: -22px;
}
.testimonials-next {
  right: -22px;
}

@media (max-width: 768px) {
  .testimonial-card {
    width: 300px;
  }
  .testimonials-prev {
    left: 4px;
  }
  .testimonials-next {
    right: 4px;
  }
  .testimonials-section {
    padding: 60px 0;
  }
}

/* ══ JOURNEY PHOTOS MARQUEE ══════════════════════ */
.journey-photos-section {
  padding: 80px 0 0;
  overflow: hidden;
}
.photos-marquee {
  width: 100%;
  overflow: hidden;
  padding: 32px 0 80px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  direction: ltr;
}
.photos-marquee-track {
  display: flex;
  gap: 20px;
  animation: marquee-scroll 90s linear infinite;
  width: max-content;
  direction: ltr;
}
.marquee-card {
  width: 300px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-2);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s;
  cursor: pointer;
}
.marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}
.marquee-card:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.marquee-card:hover img {
  filter: grayscale(0%);
}

/* Lightbox */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.photo-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.photo-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 16px;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.photo-lightbox.active img {
  transform: scale(1);
}
.photo-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.photo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

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

@media (max-width: 700px) {
  .marquee-card {
    width: 280px;
    height: 185px;
  }
}

/* ══ CTA BANNER — FULL WIDTH CINEMATIC ═══════════════════ */
.cta-banner-section {
  padding-block: 0 !important;
  margin: 0 !important;
  margin-top: 60px !important;
  background: #0c0c0b;
  position: relative;
  overflow: hidden;
}
.cta-banner-split {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 340px;
  max-width: 1200px;
  margin: 0 auto;
}
.cta-banner-photo {
  flex: 0 0 28%;
  position: relative;
  overflow: hidden;
}
.cta-banner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.6s ease;
}
.cta-banner-photo:hover img {
  filter: grayscale(60%);
}
.cta-banner-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    #0c0c0b 0%,
    rgba(12, 12, 11, 0.2) 50%,
    transparent 100%
  );
  pointer-events: none;
}
[data-lang="en"] .cta-banner-photo::after {
  background: linear-gradient(
    to right,
    #0c0c0b 0%,
    rgba(12, 12, 11, 0.2) 50%,
    transparent 100%
  );
}
.cta-banner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 60px 50px 40px;
  text-align: start;
}
.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
  text-decoration: none;
}
.cta-banner-desc {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 0 16px;
}
.cta-banner-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 28px;
  font-style: italic;
}
.cta-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: #fff;
  color: #0c0c0b;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font);
  transition: all 0.3s var(--ease-out);
  width: fit-content;
}
.cta-banner-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

[data-theme="dark"] .cta-banner-section {
  background: #080807;
}
[data-theme="dark"] .cta-banner-photo::after {
  background: linear-gradient(
    to left,
    #080807 0%,
    rgba(8, 8, 7, 0.2) 50%,
    transparent 100%
  );
}

@media (max-width: 768px) {
  .cta-banner-split {
    flex-direction: column;
    min-height: 364px;
  object-fit: cover;
  object-position: top;
  }
  .cta-banner-photo {
    flex: none;
    height: 260px;
  }
  .cta-banner-photo::after {
    background: linear-gradient(to top, #0c0c0b 5%, transparent 70%);
  }
  .cta-banner-content {
    padding: 32px 24px;
    text-align: center;
  }
  .cta-banner-desc {
    margin-inline: auto;
  }
  .cta-banner-btn {
    margin-inline: auto;
  }
}

/* ── INSTAGRAM / MEDIA APPEARANCES ──────────────────── */
#instagram-feed {
  padding: 80px 0 100px;
  background: #000;
}
.ig-section-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}
.ig-section-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.ig-section-info-text {
  text-align: start;
  order: -1;
}
.ig-section-tag {
  font-size: 0.8rem;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}
.ig-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 6px;
}
.ig-section-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  order: 1;
}
.ig-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.ig-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}
.ig-nav-btn svg {
  width: 18px;
  height: 18px;
}

/* Slider */
.ig-section-slider {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.ig-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.ig-slider-track::-webkit-scrollbar {
  display: none;
}
.ig-slider-track:active {
  cursor: grabbing;
}

/* Media Cards */
.ig-media-card {
  flex: 0 0 calc(50% - 8px);
  min-width: 320px;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  text-decoration: none;
  display: block;
}
.ig-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ig-media-card:hover img {
  transform: scale(1.05);
}
/* Play button */
.ig-media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.ig-media-play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}
.ig-media-card:hover .ig-media-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}
/* Caption overlay */
.ig-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ig-media-caption span {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.ig-media-caption small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  .ig-section-layout {
    padding: 0 20px;
  }
  .ig-section-info {
    flex-wrap: wrap;
    gap: 16px;
  }
  .ig-section-info-text {
    width: 100%;
    text-align: start;
    order: 1;
  }
  .ig-section-nav {
    order: 2;
    margin-right: auto;
  }
  .ig-media-card {
    flex: 0 0 80vw;
    min-width: unset;
  }
  .ig-follow-bar {
    padding: 30px 20px 0;
  }
}

/* Follow bar */
.ig-follow-bar {
  text-align: center;
  padding: 40px 40px 0;
  max-width: 1400px;
  margin: 0 auto;
}
.ig-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ig-follow-btn svg {
  flex-shrink: 0;
}

/* ══ LATEST ARTICLES SECTION ═════════════════════ */
.articles-section {
  padding: 100px 0;
  background: #000;
}
.articles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.articles-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}
.articles-all-btn {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.articles-all-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #fff;
  transition: background 0.3s ease;
}
.article-card:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.article-card:hover {
  background: rgba(255, 255, 255, 0.03);
}
.article-card-body {
  flex: 1;
  text-align: start;
}
.article-card-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #fff;
}
.article-card-body time {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.article-card-thumb {
  width: 160px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card-thumb img {
  transform: scale(1.08);
}

@media (max-width: 700px) {
  .articles-section {
    padding: 60px 0;
  }
  .articles-header {
    margin-bottom: 32px;
  }
  .articles-title {
    font-size: 1.6rem;
  }
  .article-card {
    gap: 16px;
    padding: 20px 0;
  }
  .article-card-thumb {
    width: 100px;
    height: 75px;
    border-radius: 8px;
  }
  .article-card-body h3 {
    font-size: 0.95rem;
  }
}

/* ══ ARTICLES FULL PAGE ═════════════════════ */
.articles-page-section {
  padding: 140px 0 100px;
  background: #000;
  min-height: 100vh;
}
.articles-page-header {
  text-align: start;
  margin-bottom: 60px;
}
.articles-page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin-top: 6px;
}
.articles-page-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 12px;
  max-width: 600px;
}
.articles-page-list {
  display: flex;
  flex-direction: column;
}
.articles-page-list .article-card-body p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
  max-width: 700px;
}
.articles-page-list .article-card-thumb {
  width: 200px;
  height: 140px;
}
@media (max-width: 700px) {
  .articles-page-section {
    padding: 120px 0 60px;
  }
  .articles-page-list .article-card-thumb {
    width: 100px;
    height: 75px;
  }
  .articles-page-list .article-card-body p {
    font-size: 0.8rem;
    margin-top: 6px;
  }
}

/* ══ ARTICLE DETAIL PAGE ═════════════════════ */
.article-detail {
  background: #000;
  min-height: 100vh;
}
.article-detail-hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  margin-top: 68px;
}
.article-detail-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
.article-detail-content {
  max-width: 780px;
  padding: 48px 24px 100px;
}
.article-back-link {
  display: inline-block;
  color: #c8a84e;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 24px;
  transition: opacity 0.3s;
}
.article-back-link:hover {
  opacity: 0.7;
}
.article-detail-content time {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.article-detail-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 32px;
}
.article-detail-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.4;
}
.article-detail-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}
.article-detail-content strong {
  color: #fff;
}
.article-detail-content ul {
  padding-right: 24px;
  margin-bottom: 20px;
}
.article-detail-content li {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}
.article-detail-content li strong {
  color: #c8a84e;
}
.article-detail-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #c8a84e;
}
@media (max-width: 700px) {
  .article-detail-hero {
    max-height: 240px;
  }
  .article-detail-hero img {
    height: 240px;
  }
  .article-detail-content {
    padding: 32px 16px 60px;
  }
  .article-detail-content h1 {
    font-size: 1.5rem;
  }
  .article-detail-content p,
  .article-detail-content li {
    font-size: 0.95rem;
  }
}

/* ══ ARTICLE SHARE ═════════════════════ */
.article-share {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.article-share h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.article-share-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.article-share-btns a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}
.article-share-btns a svg {
  width: 20px;
  height: 20px;
}
.article-share-btns a:hover {
  transform: translateY(-3px) scale(1.1);
}
.share-linkedin {
  background: #0a66c2;
  color: #fff;
}
.share-linkedin:hover {
  box-shadow: 0 8px 20px rgba(10, 102, 194, 0.4);
}
.share-facebook {
  background: #1877f2;
  color: #fff;
}
.share-facebook:hover {
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}
.share-x {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}
.share-x:hover {
  background: #1a1a1a;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}
.share-instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  color: #fff;
}
.share-instagram:hover {
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.4);
}
.share-whatsapp {
  background: #25d366;
  color: #fff;
}
.share-whatsapp:hover {
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* ══ ARTICLE ENGAGEMENT (LIKE + COMMENTS) ═══════════════ */
.article-engage {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
/* Like */
.article-like-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.article-like-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(240, 240, 238, 0.7);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}
.article-like-btn:hover {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}
.article-like-btn.liked {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}
.article-like-btn .like-heart {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  display: inline-block;
}
.article-like-btn.liked .like-heart {
  animation: likePopAnim 0.4s ease;
}
@keyframes likePopAnim {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.4);
  }
  60% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}
.article-like-count {
  color: rgba(240, 240, 238, 0.4);
  font-size: 0.85rem;
}
/* Comments */
.article-comments-section h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 24px;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0ee;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: rgba(201, 245, 0, 0.4);
}
.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: rgba(240, 240, 238, 0.3);
}
.comment-form textarea {
  min-height: 100px;
  resize: vertical;
}
.comment-submit-btn {
  align-self: flex-start;
  padding: 12px 32px;
  border-radius: 50px;
  border: none;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}
.comment-submit-btn:hover {
  background: #e0e0e0;
  box-shadow: 0 6px 20px rgba(201, 245, 0, 0.3);
  transform: translateY(-2px);
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment-item {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: commentFadeIn 0.4s ease;
}
@keyframes commentFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.comment-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
}
.comment-name {
  font-weight: 700;
  color: #f0f0ee;
  font-size: 0.9rem;
}
.comment-date {
  color: rgba(240, 240, 238, 0.3);
  font-size: 0.75rem;
  margin-right: auto;
}
.comment-text {
  color: rgba(240, 240, 238, 0.6);
  font-size: 0.9rem;
  line-height: 1.8;
  padding-right: 46px;
}
.no-comments {
  text-align: center;
  color: rgba(240, 240, 238, 0.25);
  padding: 32px 0;
  font-size: 0.9rem;
}
/* Comment actions */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  padding-right: 46px;
}
.comment-like-btn,
.comment-reply-btn {
  background: none;
  border: none;
  color: rgba(240, 240, 238, 0.35);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  font-family: inherit;
  transition: color 0.2s;
}
.comment-like-btn:hover {
  color: #ef4444;
}
.comment-reply-btn:hover {
  color: #fff;
}
.comment-like-btn.c-liked {
  color: #ef4444;
}
.comment-like-btn .c-heart {
  font-size: 0.9rem;
}
/* Replies */
.comment-replies {
  margin-top: 12px;
  margin-right: 46px;
  padding-right: 16px;
  border-right: 2px solid rgba(201, 245, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reply-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  animation: commentFadeIn 0.4s ease;
}
.reply-item .comment-item-header {
  margin-bottom: 4px;
}
.reply-item .comment-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
}
.reply-item .comment-text {
  padding-right: 38px;
  font-size: 0.85rem;
}
.reply-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  margin-right: 46px;
}
.reply-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0ee;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}
.reply-form input:focus {
  border-color: rgba(201, 245, 0, 0.3);
}
.reply-form input::placeholder {
  color: rgba(240, 240, 238, 0.25);
}
.reply-form button {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.2s;
}
.reply-form button:hover {
  background: #e0e0e0;
}

/* ══ PAGE BACK BUTTON ═════════════════════ */
.page-back-wrap {
  padding-top: calc(var(--header-h, 72px) + 16px);
  padding-bottom: 0;
}
.page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(240, 240, 238, 0.5);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font);
  padding: 8px 0;
  transition: color 0.3s ease;
}
.page-back-btn:hover {
  color: #fff;
}

/* ══ URGENT TICKER BAR ═════════════════════ */
.urgent-ticker-wrap {
  padding: 0 0 40px;
}
.urgent-ticker {
  background: #e53935;
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  position: relative;
  border-radius: 14px;
}
.urgent-ticker::before,
.urgent-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.urgent-ticker::before {
  right: 0;
  background: linear-gradient(to left, #e53935 0%, transparent 100%);
}
.urgent-ticker::after {
  left: 0;
  background: linear-gradient(to right, #e53935 0%, transparent 100%);
}
.urgent-ticker-track {
  display: inline-flex;
  animation: tickerScroll 25s linear infinite;
}
.urgent-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font);
  letter-spacing: 0.02em;
}
.urgent-ticker-badge {
  display: inline-block;
  background: #fff;
  color: #e53935;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  text-transform: uppercase;
}
.urgent-ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: tickerBlink 1.5s ease-in-out infinite;
}
@keyframes tickerBlink {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
[dir="rtl"] .urgent-ticker-track {
  animation-name: tickerScrollRTL;
}
@keyframes tickerScrollRTL {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

/* ══ CUSTOM CURSOR ═════════════════════ */
*,
*::before,
*::after {
  cursor: none !important;
}
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    opacity 0.3s,
    width 0.2s,
    height 0.2s,
    background 0.2s;
}
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s,
    opacity 0.3s,
    transform 0.2s,
    background 0.3s;
}
.cursor-ring.cursor-hover {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
  *,
  *::before,
  *::after {
    cursor: auto !important;
  }
}

/* ══ LOGO AVATAR ═════════════════════ */
.logo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

/* ══ CLIENT LOGOS MARQUEE ═════════════════════ */
.client-logos-section {
  background: #000;
  padding: 48px 0;
  overflow: hidden;
}
.client-logos-section > .container {
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
}
.client-logos-track {
  display: flex;
  width: max-content;
  animation: logos-scroll 45s linear infinite;
}
.client-logos-track:hover {
  animation-play-state: paused;
}
.client-logos-slide {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 24px;
}
.client-logos-slide img {
  height: 48px;
  width: auto;
  opacity: 0.6;
  filter: invert(1) grayscale(1) contrast(9);
  transition: all 0.5s ease;
  flex-shrink: 0;
}
.client-logos-slide img:hover {
  opacity: 1;
  filter: invert(1) contrast(9);
  transform: scale(1.1);
}
@keyframes logos-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (max-width: 700px) {
  .client-logos-section {
    padding: 32px 0;
  }
  .client-logos-slide {
    gap: 32px;
  }
  .client-logos-slide img {
    height: 36px;
  }
}

/* ══ MAJOR CLIENTS SHOWCASE ══════════════ */
.major-clients-section {
  padding: 80px 0 60px;
}
.mc-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  direction: ltr;
}
.mc-slider-viewport {
  overflow: hidden;
  flex: 1;
  border-radius: 16px;
}
.mc-slider-track {
  display: flex;
  direction: ltr;
  gap: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mc-slide {
  flex: 0 0 50%;
  overflow: hidden;
}
.mc-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.mc-slide:hover img {
  transform: scale(1.03);
}
.mc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #f0f0ee;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.mc-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}
.mc-arrow-prev {
  left: 8px;
}
.mc-arrow-next {
  right: 8px;
}

@media (max-width: 768px) {
  .mc-slider-wrap {
    padding: 0 48px;
  }
  .mc-slide {
    flex: 0 0 100%;
  }
  .mc-slide img {
    height: 300px;
  }
  .mc-arrow {
    width: 36px;
    height: 36px;
  }
  .mc-arrow-prev {
    left: 4px;
  }
  .mc-arrow-next {
    right: 4px;
  }
}

/* ══ 1. READING PROGRESS BAR ═════════════════ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #fff, #ccc);
  z-index: 10001;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* ══ 3. READING TIME BADGE ═══════════════════ */
.reading-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.reading-time-badge svg {
  width: 14px;
  height: 14px;
}

/* ══ 2. RELATED ARTICLES ═════════════════════ */
.related-articles {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.related-articles h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: #f0f0ee;
  transition: all 0.3s ease;
}
.related-card:hover {
  background: rgba(201, 245, 0, 0.05);
  border-color: rgba(201, 245, 0, 0.2);
  transform: translateY(-2px);
}
.related-card-thumb {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ══ 6. BACK TO TOP ══════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 170px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: rgba(201, 245, 0, 0.25);
  transform: translateY(-2px);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ══ 4. ARTICLE SEARCH ═══════════════════════ */
.articles-search-wrap {
  margin-bottom: 32px;
}
.articles-search {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0ee;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}
.articles-search:focus {
  border-color: rgba(201, 245, 0, 0.4);
}
.articles-search::placeholder {
  color: rgba(240, 240, 238, 0.25);
}
.articles-search-wrap {
  position: relative;
}
.articles-search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(240, 240, 238, 0.3);
  pointer-events: none;
}

/* ══ 5. NEWSLETTER ═══════════════════════════ */
.newsletter-section {
  padding: 60px 0;
  background: linear-gradient(
    135deg,
    rgba(201, 245, 0, 0.04) 0%,
    transparent 60%
  );
}
.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-inner h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.newsletter-inner p {
  color: rgba(240, 240, 238, 0.5);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0ee;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}
.newsletter-form input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}
.newsletter-form input::placeholder {
  color: rgba(240, 240, 238, 0.25);
}
.newsletter-form button {
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.newsletter-form button:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}
.newsletter-success {
  color: #fff;
  font-size: 0.9rem;
  margin-top: 12px;
  display: none;
}

/* ══ 8. CATEGORIES ═══════════════════════════ */
.categories-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.categories-wrap::-webkit-scrollbar {
  display: none;
}
.category-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: #f0f0ee;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.category-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.category-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

@media (max-width: 700px) {
  .newsletter-form {
    flex-direction: column;
  }
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
  .back-to-top {
    bottom: 170px;
    left: 16px;
    width: 40px;
    height: 40px;
  }
}

/* VIDEO TESTIMONIALS */
.ta-video-testimonials {
  padding: 80px 0;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.ta-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.ta-video-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  aspect-ratio: 16/9;
}
.ta-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(201, 245, 0, 0.1);
}
.ta-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
@media (max-width: 768px) {
  .ta-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* RECENT CERTIFICATES MARQUEE */
.ak-certs {
  padding: 80px 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.ak-certs h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--surface);
}
.ak-certs h2 span:first-child {
  color: #fff;
}
.ak-certs-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );
  margin-top: 20px;
}
.ak-certs-track {
  display: flex;
  width: max-content;
  animation: certs-scroll 45s linear infinite;
  direction: ltr; /* Important for scroll math */
}
.ak-certs-track:hover {
  animation-play-state: paused;
}
.ak-cert-slide {
  flex-shrink: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ak-cert-slide img {
  height: 280px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease,
    box-shadow 0.4s ease;
  filter: grayscale(0.6) opacity(0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.ak-cert-slide:hover img {
  transform: scale(1.03);
  filter: grayscale(0) opacity(1);
  box-shadow: 0 8px 30px rgba(201, 245, 0, 0.15);
  border-color: rgba(201, 245, 0, 0.3);
}
@keyframes certs-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (max-width: 768px) {
  .ak-cert-slide img {
    height: 180px;
  }
}

/* ══ COURSES MARQUEE SLIDER ═════════════════════════ */
.courses-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  direction: ltr; /* Force LTR for seamless marquee */
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

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

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

.courses-slider .course-card {
  width: 420px;
  flex-shrink: 0;
  direction: rtl; /* Reset direction inside card */
}

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

@media (max-width: 768px) {
  .courses-slider .course-card {
    width: 320px;
  }
}

      /* HERO */
      .adv-hero {
        padding: 140px 20px 70px;
        position: relative;
        overflow: hidden;
      }
      .adv-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: transparent;
      }
      .adv-hero-inner {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        gap: 48px;
      }
      .adv-hero-text {
        flex: 1;
      }
      .adv-hero-tag {
        display: inline-block;
        padding: 8px 20px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        font-size: 0.85rem;
        font-weight: 700;
        margin-bottom: 24px;
      }
      .adv-hero h1 {
        font-family: var(--font-display);
        font-size: clamp(2rem, 5vw, 3rem);
        font-weight: 900;
        letter-spacing: -0.02em;
        line-height: 1.3;
        margin-bottom: 16px;
      }
      .adv-hero h1 .accent {
        color: #ffffff;
      }
      .adv-hero-sub {
        color: rgba(240, 240, 238, 0.55);
        font-size: 1.05rem;
        line-height: 1.8;
        max-width: 520px;
        margin-bottom: 32px;
      }
      .adv-hero-img {
        flex-shrink: 0;
        width: 340px;
        height: 340px;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.08);
      }
      .adv-hero-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .adv-hero-cta {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
      }
      .adv-btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: #ffffff;
        color: #000;
        padding: 14px 32px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 1rem;
        text-decoration: none;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
      }
      .adv-btn-primary:hover {
        transform: translateY(-3px);
      }
      .adv-btn-secondary {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: rgba(255, 255, 255, 0.06);
        color: #f0f0ee;
        padding: 14px 32px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 1rem;
        text-decoration: none;
        border: 1px solid rgba(255, 255, 255, 0.12);
        transition: all 0.3s ease;
        cursor: pointer;
      }
      .adv-btn-secondary:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(201, 245, 0, 0.3);
      }

      /* DETAILS SECTION */
      .adv-details {
        padding: 80px 0;
      }
      .adv-details-title {
        font-size: 1.6rem;
        font-weight: 900;
        text-align: start;
        margin-bottom: 48px;
        color: #f0f0ee;
      }
      .adv-details-title span {
        color: #c9f500;
      }

      .adv-cards {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
      }
      .adv-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 12px;
        padding: 32px;
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
      }
      .adv-card::before {
        display: none;
      }
      .adv-card:hover {
        border-color: rgba(201, 245, 0, 0.2);
        transform: translateY(-4px);
      }

      .adv-card-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        background: rgba(201, 245, 0, 0.05);
        border: 1px solid rgba(201, 245, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        margin-bottom: 20px;
        color: #c9f500;
        position: relative;
        z-index: 1;
      }
      .adv-card h3 {
        font-size: 1.1rem;
        font-weight: 900;
        margin-bottom: 10px;
        position: relative;
        z-index: 1;
      }
      .adv-card p {
        color: rgba(240, 240, 238, 0.5);
        font-size: 0.9rem;
        line-height: 1.7;
        position: relative;
        z-index: 1;
      }

      /* PRICING */
      .adv-pricing {
        padding: 60px 0 80px;
      }
      .adv-pricing-box {
        background: linear-gradient(
          135deg,
          rgba(201, 245, 0, 0.06) 0%,
          rgba(0, 0, 0, 0) 100%
        );
        border: 1px solid rgba(201, 245, 0, 0.2);
        border-radius: 12px;
        padding: 48px;
        text-align: center;
      }
      .adv-pricing-box h2 {
        font-size: 1.5rem;
        font-weight: 900;
        margin-bottom: 12px;
      }
      .adv-pricing-box h2 span {
        color: #ffffff;
      }
      .adv-price-tag {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
        font-weight: 900;
        color: #ffffff;
        margin: 24px 0 8px;
      }
      .adv-price-tag small {
        font-size: 0.45em;
        color: rgba(240, 240, 238, 0.5);
        font-weight: 400;
      }
      .adv-pricing-info {
        color: rgba(240, 240, 238, 0.55);
        font-size: 0.95rem;
        line-height: 1.8;
        max-width: 520px;
        margin: 0 auto 32px;
      }
      .adv-pricing-info strong {
        color: #ffffff;
      }
      .adv-pricing-badges {
        display: flex;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
        margin-bottom: 32px;
      }
      .adv-p-badge {
        padding: 8px 20px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: rgba(240, 240, 238, 0.7);
        font-size: 0.85rem;
        font-weight: 600;
      }

      /* READY */
      .adv-ready {
        padding: 0 0 80px;
      }
      .adv-ready-box {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 12px;
        padding: 48px;
        text-align: start;
      }
      .adv-ready-box h2 {
        font-size: 1.5rem;
        font-weight: 900;
        margin-bottom: 16px;
        color: #ffffff;
      }
      .adv-ready-box p {
        color: rgba(240, 240, 238, 0.6);
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 8px;
      }
      .adv-ready-list {
        list-style: none;
        padding: 0;
        margin: 24px 0 32px;
      }
      .adv-ready-list li {
        color: rgba(240, 240, 238, 0.7);
        font-size: 1rem;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        display: flex;
        align-items: center;
        gap: 12px;
      }
      .adv-ready-list li .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #c9f500;
        flex-shrink: 0;
      }

      /* FOOTER */

      @media (max-width: 768px) {
        .adv-hero-inner {
          flex-direction: column-reverse;
          text-align: center;
        }
        .adv-hero-img {
          width: 260px;
          height: 260px;
        }
        .adv-hero-sub {
          margin-left: auto;
          margin-right: auto;
        }
        .adv-hero-cta {
          justify-content: center;
        }
        .adv-pricing-box {
          padding: 32px 20px;
        }
        .adv-ready-box {
          padding: 32px 20px;
        }
      }

h1, h2, h3, .adv-hero-text h1, .hero-title {
  font-family: 'Thmanyah Serif', serif !important;
}

/* ==========================================================================
   SECURITY MEASURES
   ========================================================================== */
body {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none; /* Prevents dragging and right click on some browsers */
}
/* Re-enable pointer events for interactive elements */
a img, button img, .slider-nav img, .carousel img, .gallery img {
    pointer-events: auto;
}

/* ══ Mobile fix: phone + country code row in apply forms ══ */
#adv-phone { min-width: 0; width: 100%; }
#adv-country-code { flex: 0 0 auto; max-width: 120px; min-width: 0; }

/* ══ Mobile fix: article like/share row on very small screens ══ */
@media (max-width: 400px) {
  .article-like-row { flex-wrap: wrap; gap: 10px; }
}

/* ══ Mobile fix: wide tables inside articles scroll instead of breaking the page ══ */
.article-detail-content table { display: block; max-width: 100%; overflow-x: auto; }

/* ══ Mobile: fewer floating buttons in the corner (WhatsApp + chat stay) ══ */
@media (max-width: 768px) {
  .back-to-top { display: none !important; }
}

/* ══ Courses: static grid (desktop) / swipe row (mobile) ══ */
.courses-slider{direction:rtl;mask-image:none;-webkit-mask-image:none;overflow:visible}
.courses-track{animation:none!important;width:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}
.courses-slider .course-card{width:auto;direction:rtl}
@media(max-width:768px){
  .courses-slider{overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;margin-inline:-16px;padding-inline:16px;scrollbar-width:none}
  .courses-slider::-webkit-scrollbar{display:none}
  .courses-track{display:flex;width:max-content;gap:16px;padding-bottom:8px}
  .courses-slider .course-card{width:78vw;max-width:320px;scroll-snap-align:start}
}
@media(min-width:1100px){.courses-track{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.courses-slider .course-card h3{font-size:1.3rem}.courses-slider .course-card-img{height:260px}.courses-slider .course-card-img img{width:100%;height:100%;object-fit:cover}}
@media(min-width:769px) and (max-width:1099px){.courses-track{grid-template-columns:repeat(3,minmax(0,1fr))}}
.course-badge .old-price{color:#ff4d4d;text-decoration:line-through;text-decoration-color:#ff3333;text-decoration-thickness:2px;font-weight:600;opacity:.95;margin-inline-end:4px}

/* Unified section headline size across all sections */
.adv-details-title,
.ta-section-title,
.adv-pricing-box h2,
.adv-ready-box h2 {
  font-size: clamp(2rem, 4.2vw, 3rem) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

/* ══ Home FX sections (map · skills · about collage · ascii hands) ══ */
.fx-section{background:#000;color:#fff;padding:110px 0;position:relative;overflow:hidden}
.fx-head{text-align:center;margin-bottom:48px}
.fx-head h2,.fx-about-text h2,.fx-hands-cta h2{font-family:var(--font-display);font-weight:900;font-size:clamp(2rem,4.2vw,3rem);line-height:1.25;color:#fff}
.fx-sub{max-width:640px;margin:14px auto 0;color:rgba(255,255,255,.62);font-size:1.05rem;line-height:1.8}
.fx-section .section-tag{color:#C9F500}
/* map */
.fx-map{position:relative;width:100%;max-width:1200px;margin:0 auto}
.fx-map canvas{position:absolute;inset:0;display:block}
.fx-map-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.fx-map-lines line{stroke:rgba(201,245,0,.45);stroke-width:1.2;stroke-dasharray:2 4;vector-effect:non-scaling-stroke}
.fx-map-pins{position:absolute;inset:0}
.fx-pin{position:absolute;transform:translate(-50%,-50%);z-index:3;cursor:default}
.fx-pin i{display:block;width:10px;height:10px;border-radius:50%;background:#C9F500;box-shadow:0 0 0 4px rgba(201,245,0,.18)}
.fx-pin i::after{content:"";position:absolute;inset:-8px;border-radius:50%;border:1px solid rgba(201,245,0,.6);animation:fxPing 2.4s infinite}
.fx-pin-home i{width:14px;height:14px}
.fx-pin b{position:absolute;bottom:16px;left:50%;transform:translateX(-50%) translateY(4px);white-space:nowrap;font-size:12px;font-weight:600;background:rgba(17,17,17,.92);border:1px solid rgba(255,255,255,.14);color:#fff;padding:4px 10px;border-radius:999px;opacity:0;transition:.25s;pointer-events:none}
.fx-pin-show b,.fx-pin:hover b{opacity:1;transform:translateX(-50%)}
@keyframes fxPing{0%{transform:scale(.5);opacity:1}100%{transform:scale(2.2);opacity:0}}
.fx-logo{position:absolute;transform:translate(-50%,-50%);width:54px;height:54px;border-radius:50%;background:#fff;display:grid;place-items:center;overflow:hidden;z-index:2;box-shadow:0 6px 24px rgba(0,0,0,.5);animation:fxFloat 5s ease-in-out infinite;animation-delay:var(--d)}
.fx-logo img{width:86%;height:86%;object-fit:contain}
@keyframes fxFloat{0%,100%{margin-top:0}50%{margin-top:-7px}}
.fx-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:36px}
.fx-chips span{border:1px solid rgba(255,255,255,.16);color:rgba(255,255,255,.85);border-radius:999px;padding:7px 16px;font-size:.95rem}
/* skills */
.fx-skills{position:relative;border:1px solid rgba(255,255,255,.08);border-radius:28px;background:radial-gradient(ellipse at 50% 40%,rgba(201,245,0,.06),transparent 60%)}
.fx-skills canvas{display:block;width:100%}
/* about collage */
.fx-about-text{max-width:820px;margin-bottom:48px}
.fx-about-text p{color:rgba(255,255,255,.68);font-size:1.12rem;line-height:1.9;margin-top:18px}
.fx-bento{display:grid;grid-template-columns:1fr 1.15fr 1fr;grid-template-rows:200px 200px 200px;gap:20px}
.fx-bento figure{margin:0;border-radius:24px;overflow:hidden;background:#151515}
.fx-bento img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease-out)}
.fx-bento figure:hover img{transform:scale(1.05)}
.fx-b1{grid-column:1;grid-row:1/3}
.fx-b2{grid-column:1;grid-row:3}
.fx-b3{grid-column:2;grid-row:1/4}
.fx-b4{grid-column:3;grid-row:1/3}
.fx-b5{grid-column:3;grid-row:3;display:none}
.fx-b6{display:none}
.fx-stat{border-radius:24px;background:#151515;border:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;justify-content:center;padding:24px 28px}
.fx-stat strong{font-family:var(--font-display);font-size:3rem;line-height:1;color:#fff;direction:ltr;text-align:right}
.fx-stat span{color:rgba(255,255,255,.65);margin-top:8px}
.fx-stat-lime{background:#C9F500;border-color:#C9F500}
.fx-stat-lime strong,.fx-stat-lime span{color:#000}
@media(min-width:900px){.fx-b5{display:flex}}
/* ascii hands */
.fx-hands-section{padding:60px 0 100px}
.fx-hands{position:relative;width:100%}
.fx-hands canvas{display:block;width:100%}
.fx-hands-cta{text-align:center;margin-top:-10px}
.fx-btn{display:inline-block;margin-top:26px;background:#C9F500;color:#000;font-weight:700;border-radius:999px;padding:14px 34px;transition:transform .25s}
.fx-btn:hover{transform:translateY(-2px)}
@media(max-width:899px){
  .fx-section{padding:80px 0}
  .fx-bento{grid-template-columns:1fr 1fr;grid-template-rows:220px 220px 160px}
  .fx-b1{grid-column:1;grid-row:1/3}.fx-b3{grid-column:2;grid-row:1/2}.fx-b4{grid-column:2;grid-row:2/3}.fx-b2{grid-column:1/3;grid-row:3}
  .fx-logo{width:34px;height:34px}
  .fx-pin b{font-size:10px;padding:3px 7px}
  .fx-pin-show b{opacity:0}.fx-pin:hover b{opacity:1}
}
.fx-pin-below b{bottom:auto;top:16px}
.fx-hands{overflow:hidden}
.fx-stat.fx-b5{display:none}
@media(min-width:900px){.fx-stat.fx-b5{display:flex}}
@media(max-width:899px){.fx-logo,.fx-map-lines{display:none}.fx-pin i{width:6px;height:6px;box-shadow:0 0 0 2px rgba(201,245,0,.2)}.fx-pin-home i{width:8px;height:8px}.fx-pin i::after{inset:-5px}.fx-bento{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* map: black & white only */
.fx-map-section .section-tag{color:#fff}
.fx-map-section .fx-pin i{background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.16)}
.fx-map-section .fx-pin i::after{border-color:rgba(255,255,255,.6)}
.fx-map-section .fx-map-lines line{stroke:rgba(255,255,255,.4)}
.fx-map-section .fx-logo img{filter:grayscale(1) contrast(1.1)}
/* new home sections: black & white only */
.fx-section .section-tag{color:#fff}
.fx-skills{border:0!important;background:none!important;border-radius:0}
.fx-stat-lime{background:#fff!important;border-color:#fff!important}
.fx-btn{background:#fff!important;color:#000!important}
.fx-bento img{filter:grayscale(1)}
.fx-bento figure:hover img{filter:grayscale(0)}

/* ══ Home typography consistency ══ */
.home-main section h2{font-family:var(--font-display)!important;font-weight:800!important;font-size:clamp(2.2rem,4.4vw,3.4rem)!important;line-height:1.2!important;letter-spacing:0!important}
.home-main .section-tag{font-size:.8rem!important;letter-spacing:.02em;color:rgba(255,255,255,.5)!important}
.home-main .section-header,.home-main .fx-head{text-align:start;margin-bottom:48px}
.home-main .fx-head .fx-sub{margin-inline:0}
.home-main .fx-hands-cta{text-align:center}
.home-main .fx-hands-cta h2{font-size:clamp(1.8rem,3.4vw,2.6rem)!important}
.fx-about-section .about-layout{margin-bottom:56px}
.fx-about-btns{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px}
.fx-about-section .role-card{background:#0f0f0f;border-color:rgba(255,255,255,.08)}

/* ══ Major projects: stacked sticky cards ══ */
.fx-stack{position:relative;padding-bottom:6vh}
.fx-stack-card{position:sticky;top:calc(var(--header-h) + 18px);background:#fff;color:#000;border-radius:6px;padding:18px 18px 18px;margin-bottom:14vh;transform-origin:50% 0;will-change:transform;box-shadow:0 -20px 60px rgba(0,0,0,.45);z-index:calc(var(--i) + 1)}
.fx-stack-card:last-child{margin-bottom:0}
.fx-stack-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:4px 4px 16px}
.fx-stack-id{display:flex;align-items:center;gap:12px}
.fx-stack-logo{width:44px;height:44px;border-radius:10px;background:#000;display:grid;place-items:center;overflow:hidden;flex:none}
.fx-stack-logo img{width:100%;height:100%;object-fit:contain;background:#fff;filter:grayscale(1)}
.fx-mono{color:#fff;font-family:var(--font-display);font-weight:900;font-size:22px;line-height:1}
.fx-stack-id strong{display:block;font-size:1.05rem;font-weight:700;color:#000}
.fx-stack-tags{display:flex;gap:8px;align-items:center;margin-top:4px;flex-wrap:wrap}
.fx-tag{font-size:.75rem;background:#eee;border-radius:6px;padding:2px 8px;color:#000}
.fx-meta{font-size:.75rem;color:#555}
.fx-stack-desc{max-width:420px;font-size:.9rem;line-height:1.7;color:#333;margin:0;text-align:left}
.fx-stack-media{border-radius:4px;overflow:hidden;height:min(68vh,640px);background:#f2f2f2}
.fx-stack-media img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:768px){.fx-stack-head{flex-direction:column;gap:10px}.fx-stack-desc{text-align:start;font-size:.85rem}.fx-stack-media{height:52vh}.fx-stack-card{margin-bottom:10vh;padding:12px}}
.fx-hands-section{padding:40px 0 80px}
.fx-hands canvas{-webkit-mask-image:linear-gradient(to right,transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(to right,transparent,#000 14%,#000 86%,transparent)}
/* ══ Home section headers: one system (tag · title · sub) ══ */
.home-main .section-tag{display:block;font-family:var(--font)!important;font-size:1.05rem!important;font-weight:600!important;color:rgba(255,255,255,.5)!important;letter-spacing:0!important;text-transform:none!important;margin-bottom:10px!important;background:none!important;padding:0!important;border:0!important}
.home-main .section-tag::before,.home-main .section-tag::after{display:none!important}
.home-main section h2{color:#fff!important;margin:0!important}
.home-main .fx-sub{display:block;font-family:var(--font)!important;font-size:1.2rem!important;font-weight:400!important;line-height:1.7!important;color:rgba(255,255,255,.6)!important;max-width:720px;margin:14px 0 0!important;text-align:start!important}
.home-main .section-header,.home-main .fx-head,.home-main .courses-header,.home-main .testimonials-header,.home-main .trainees-header-text,.home-main .contact-simple-header{text-align:start!important;margin-bottom:48px}
.home-main .articles-header{align-items:flex-end;margin-bottom:48px}
.home-main .contact-simple-header .fx-sub{margin-inline:0!important}
@media(max-width:768px){.home-main .fx-sub{font-size:1.02rem!important}.home-main .section-tag{font-size:.95rem!important}}
.home-main .courses-header{display:flex!important;flex-direction:column!important;align-items:flex-start!important}
.home-main .articles-header{display:flex;justify-content:space-between;gap:24px}

/* journey gallery */
#lightbox .lb-nav{display:none;position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;align-items:center;justify-content:center;border:0;cursor:pointer;transition:background .2s}
#lightbox .lb-nav:hover{background:rgba(255,255,255,.22)}
#lightbox .lb-nav svg{width:22px;height:22px}
#lightbox.lb-gallery .lb-nav{display:flex}
#lightbox .lb-prev{right:20px}
#lightbox .lb-next{left:20px}
#lightbox.lb-gallery #lb-caption{direction:ltr;letter-spacing:.08em}
#journey-photos .marquee-card{cursor:zoom-in}
#journey-photos .photos-marquee:hover .photos-marquee-track{animation-play-state:paused}
@media(max-width:640px){#lightbox .lb-nav{top:auto;bottom:24px;transform:none}#lightbox .lb-prev{right:calc(50% - 60px)}#lightbox .lb-next{left:calc(50% - 60px)}#lb-img{max-height:72vh}}

/* home: primary buttons white (B&W) */
.home-main .btn-primary,.home-main .trainees-discover-btn,.home-main a.btn[style*="c9f500"]{background:#fff!important;color:#000!important;border-color:#fff!important}
.home-main .btn-primary:hover,.home-main .trainees-discover-btn:hover{background:#e6e6e6!important;color:#000!important;box-shadow:0 12px 40px rgba(255,255,255,.18)!important}

/* about section tidy */
.fx-about-section .about-layout{grid-template-columns:1.1fr 1fr;grid-template-rows:auto;align-items:start;gap:40px 64px}
.fx-about-section .about-roles{grid-row:1;grid-column:2}
.fx-about-section .about-bio p,.fx-about-section .about-lead{font-family:var(--font)!important;font-size:1.05rem;line-height:1.95;font-weight:400;color:rgba(255,255,255,.62);margin-bottom:18px}
.fx-about-section .about-lead{color:#fff;font-weight:500}
.fx-about-section .fx-about-btns{margin-top:28px}
.fx-about-section .role-card{padding:20px 22px;align-items:center}
.fx-about-section .role-body strong{font-size:1.02rem}
.fx-about-section .role-body p{margin-top:4px;line-height:1.7}
@media(max-width:899px){.fx-about-section .about-layout{grid-template-columns:1fr}.fx-about-section .about-roles{grid-row:auto;grid-column:auto}}

/* about v2: statement + details on top, roles as a 3-up row */
.fx-about-section .about-layout{display:block;margin-bottom:56px}
.fx-about-section .about-bio{display:grid;grid-template-columns:1.15fr 1fr;gap:56px;align-items:start;padding-bottom:48px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:40px}
.fx-about-section .about-bio .about-lead{font-size:clamp(1.3rem,2vw,1.65rem)!important;line-height:1.75!important;color:#fff!important;font-weight:500!important;margin:0!important}
.fx-about-section .about-rest p{margin:0 0 28px!important}
.fx-about-section .fx-about-btns{margin-top:0;display:flex;gap:12px;flex-wrap:wrap}
.fx-about-section .about-roles{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.fx-about-section .role-card{flex-direction:column;align-items:flex-start!important;gap:18px;padding:26px!important;margin:0;height:100%}
.fx-about-section .role-body strong{display:block;font-size:1.08rem;margin-bottom:6px}
.fx-about-section .role-body p{margin:0;font-size:.92rem;line-height:1.8;color:rgba(255,255,255,.55)}
@media(max-width:899px){.fx-about-section .about-bio{grid-template-columns:1fr;gap:24px}.fx-about-section .about-roles{grid-template-columns:1fr}}

/* home rhythm: one spacing system for every section */
.home-main > section:not(#hero){padding-top:120px!important;padding-bottom:120px!important;margin:0!important;border-top:1px solid rgba(255,255,255,.06);background:#000!important}
.home-main > section:last-of-type{padding:56px 0 72px!important}
.home-main > section .section-header,.home-main > section .courses-header,.home-main > section .testimonials-header,.home-main > section .trainees-header,.home-main > section .articles-header{margin-bottom:56px!important}
.home-main > #journey-photos > .container:last-child{margin-top:40px!important}
@media(max-width:768px){.home-main > section:not(#hero){padding-top:72px!important;padding-bottom:72px!important}.home-main > section .section-header,.home-main > section .courses-header,.home-main > section .testimonials-header,.home-main > section .trainees-header,.home-main > section .articles-header{margin-bottom:36px!important}}

/* home courses: 2 cards fill the row */
@media(min-width:769px){.home-main #courses-track{grid-template-columns:repeat(2,minmax(0,1fr))!important}.home-main #courses .course-card-img{height:320px;width:100%!important}.home-main #courses .course-card-img>img,.home-main #courses .course-card-img>div{width:100%!important;max-width:none!important;height:100%;object-fit:cover}}
