/* High Peak — Dark Portfolio */
:root {
  --red: #e04a3a;
  --red-dark: #c0392b;
  --red-glow: rgba(224, 74, 58, 0.35);
  --red-soft: rgba(224, 74, 58, 0.12);
  --bg-deep: #08080a;
  --bg: #0e0e12;
  --bg-elevated: #141418;
  --surface: #1a1a22;
  --surface-hover: #22222c;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(224, 74, 58, 0.4);
  --text: #eeeef2;
  --text-muted: #8888a0;
  --text-dim: #5c5c70;
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 8px 40px var(--red-glow);
  --radius: 8px;
  --radius-lg: 12px;
  --nav-h: 76px;
  --font-ar: "Tajawal", system-ui, sans-serif;
  --font-en: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Unified motion timing */
  --dur-fast: 0.4s;
  --dur-base: 0.6s;
  --dur-slow: 0.9s;
  --dur-reveal: 1.05s;
  --dur-hero-fade: 1.75s;
  --dur-hero-enter: 1.15s;
  --stagger-step: 0.12s;
  --dur: var(--dur-base);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Glass tokens */
  --glass-bg: rgba(18, 18, 24, 0.62);
  --glass-bg-strong: rgba(14, 14, 18, 0.78);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.06);
  --glass-blur: 20px;
  --glass-saturate: 1.6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + var(--space-4));
  font-size: 16px;
}

body {
  font-family: var(--font-en);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

body[dir="rtl"] { font-family: var(--font-ar); }
body.loaded .page-loader { opacity: 0; visibility: hidden; pointer-events: none; }

img { max-width: 100%; height: auto; display: block; }

body.protected {
  -webkit-user-select: none;
  user-select: none;
}

body.protected img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

body.protected a,
body.protected button {
  -webkit-user-select: none;
  user-select: none;
}
a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1140px, 100%);
  margin-inline: auto;
  padding-inline: max(clamp(var(--space-6), 5vw, var(--space-12)), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}

/* ── Glass surfaces (best practice) ── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 var(--glass-highlight);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-bg-strong); }
}

/* Photo cover — fills frame, keeps ratio, no stretch; zoom on hover */
.media-cover {
  overflow: hidden;
  background: var(--bg-deep);
}

.media-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--dur-slow) var(--ease-out);
}

.media-cover:hover img {
  transform: scale(1.08);
}

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red-dark), var(--red), #ff6b5a);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--red-glow);
}

/* ── Page loader ── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
}

.loader-logo {
  width: 80px;
  animation: pulse-glow 2.4s ease-in-out infinite;
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: var(--surface);
  border-radius: 99px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius: 99px;
  animation: loader-slide 1.8s var(--ease) infinite;
}

@keyframes loader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(0.96); filter: drop-shadow(0 0 8px var(--red-glow)); }
  50% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 20px var(--red-glow)); }
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}

body[dir="rtl"] .reveal-left {
  transform: translateX(36px);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}

body[dir="rtl"] .reveal-right {
  transform: translateX(-36px);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.stagger.revealed > *:nth-child(1) { transition-delay: calc(var(--stagger-step) * 1); opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(2) { transition-delay: calc(var(--stagger-step) * 2); opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(3) { transition-delay: calc(var(--stagger-step) * 3); opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(4) { transition-delay: calc(var(--stagger-step) * 4); opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(5) { transition-delay: calc(var(--stagger-step) * 5); opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(6) { transition-delay: calc(var(--stagger-step) * 6); opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(7) { transition-delay: calc(var(--stagger-step) * 7); opacity: 1; transform: none; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(8, 8, 10, 0.55);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.navbar.scrolled {
  background: rgba(8, 8, 10, 0.88);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: transform 0.3s var(--ease);
}

.nav-brand:hover { transform: scale(1.02); }

.nav-brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.nav-brand-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.nav-brand-tag {
  font-size: 0.7rem;
  color: var(--red);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease);
  position: relative;
  padding-block: 0.25rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius: 2px;
  transition: width var(--dur-fast) var(--ease-out);
  box-shadow: 0 0 8px var(--red-glow);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-btn {
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  transition: all var(--dur-fast) var(--ease);
}

.lang-btn:hover {
  border-color: var(--border-hover);
  color: var(--red);
  background: var(--red-soft);
  box-shadow: 0 0 20px var(--red-glow);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all var(--dur-fast) var(--ease);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--red); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--red); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-hero-fade) var(--ease-out);
  will-change: opacity;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero-slide-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-active img {
  animation: hero-zoom 18s var(--ease-out) forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.72) 42%, rgba(8, 8, 10, 0.35) 68%, rgba(8, 8, 10, 0.55) 100%),
    linear-gradient(to top, rgba(8, 8, 10, 0.85) 0%, transparent 45%);
  pointer-events: none;
}

body[dir="ltr"] .hero-overlay {
  background:
    linear-gradient(255deg, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.72) 42%, rgba(8, 8, 10, 0.35) 68%, rgba(8, 8, 10, 0.55) 100%),
    linear-gradient(to top, rgba(8, 8, 10, 0.85) 0%, transparent 45%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 4;
  padding-block: var(--space-16) var(--space-24);
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-h) - env(safe-area-inset-top, 0px));
  min-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
}

.hero-glass {
  max-width: 560px;
  padding: var(--space-10) var(--space-12);
  border-radius: var(--radius-lg);
  animation: hero-glass-in var(--dur-hero-enter) var(--ease-out) 0.4s both;
}

@keyframes hero-glass-in {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
  padding: var(--space-2) var(--space-4);
  background: rgba(224, 74, 58, 0.14);
  border: 1px solid rgba(224, 74, 58, 0.28);
  border-radius: 999px;
  color: #ff8a7a;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red);
  animation: blink 2s ease infinite;
}

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

.hero-title {
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: var(--space-5);
  letter-spacing: -0.03em;
}

.hero-title .accent {
  background: linear-gradient(135deg, #ff6b5a 0%, var(--red) 50%, #ff9a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-8);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--dur-base) var(--ease);
}

.hero-cta-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 28px var(--red-glow);
  position: relative;
  overflow: hidden;
}

.hero-cta-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform var(--dur-base) var(--ease);
}

.hero-cta-primary:hover::before { transform: translateX(100%); }
.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px var(--red-glow);
}

.hero-cta-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-base) var(--ease);
}

body[dir="rtl"] .hero-cta-primary svg { transform: scaleX(-1); }
.hero-cta-primary:hover svg { transform: translateX(4px); }
body[dir="rtl"] .hero-cta-primary:hover svg { transform: scaleX(-1) translateX(4px); }

.hero-dots {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.hero-dot {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
}

.hero-dot::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  width: 32px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

body[dir="rtl"] .hero-dot::before {
  transform: translate(50%, -50%);
}

.hero-dot.active::before {
  background: var(--red);
  width: 48px;
  box-shadow: 0 0 12px var(--red-glow);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ── Stats ── */
.stats {
  position: relative;
  background: var(--bg);
  padding-block: 0 var(--space-8);
  margin-top: calc(var(--space-12) * -1);
  z-index: 10;
}

.stats-inner {
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15%;
  inset-inline-end: 0;
  height: 70%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--red) 0%, #ff8a7a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Sections ── */
section { padding: var(--space-32) 0; position: relative; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-20);
  padding-inline: var(--space-4);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: var(--space-4);
}

.section-tag::before,
.section-tag::after {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red));
}

.section-tag::after {
  background: linear-gradient(90deg, var(--red), transparent);
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-4);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin-block: var(--space-4);
  border: none;
}

/* ── About ── */
.about {
  background: var(--bg-deep);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: center;
  width: 100%;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--glass-border);
  min-width: 0;
  width: 100%;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--dur-slow) var(--ease-out);
}

.about-visual:hover img { transform: scale(1.06); }

.about-visual-frame {
  position: absolute;
  inset: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius-lg) - 2px);
  pointer-events: none;
  z-index: 2;
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,10,0.45) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  min-width: 0;
  width: 100%;
}

.about-text {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.9;
  padding-inline-start: var(--space-5);
  border-inline-start: 3px solid var(--red);
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  width: 100%;
}

.about-feature {
  padding: var(--space-6);
  border-radius: var(--radius);
  transition: all var(--dur-base) var(--ease);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.about-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.about-feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.about-feature:hover::before { opacity: 1; }

.about-feature-icon {
  font-size: 1.6rem;
  margin-bottom: var(--space-3);
  position: relative;
}

.about-feature-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: var(--space-2);
  color: var(--text);
  position: relative;
  overflow-wrap: break-word;
}

.about-feature-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  position: relative;
  overflow-wrap: break-word;
  line-height: 1.55;
}

/* ── Projects ── */
.projects { background: var(--bg); }

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur-slow) var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, transparent 50%, rgba(224, 74, 58, 0.06) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-hover);
}

.project-card:hover::after { opacity: 1; }

.project-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-deep);
}

.project-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,10,0.5) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--dur-slow) var(--ease-out);
}

.project-card:hover .project-card-image img { transform: scale(1.1); }

.project-card-badge {
  position: absolute;
  top: var(--space-4);
  inset-inline-start: var(--space-4);
  background: rgba(224, 74, 58, 0.88);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-card-body {
  padding: var(--space-6) var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.project-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.project-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

.project-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.project-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-5);
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
}

.project-card-count {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.project-card-btn {
  padding: 0.5rem 1.3rem;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(224, 74, 58, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease);
}

.project-card-btn:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 4px 20px var(--red-glow);
}

/* ── Project galleries ── */
.project-section {
  padding: var(--space-24) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.project-section:nth-child(even) { background: var(--bg-elevated); }

.project-section::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: var(--space-8);
  bottom: var(--space-8);
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--red), transparent);
  opacity: 0.45;
}

.project-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  flex: 1;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}

.project-section .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.project-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin: 0;
}

.project-section-icon {
  font-size: 1.75rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-soft);
  border: 1px solid rgba(224, 74, 58, 0.22);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.project-section-dim {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgba(224, 74, 58, 0.22);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
}

.project-section .section-desc {
  margin: 0;
  text-align: start;
  max-width: 720px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-deep);
  border: 1px solid var(--glass-border);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.gallery-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-base) var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.82);
}

.gallery-item::after {
  content: "⤢";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  background: rgba(8, 8, 10, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.gallery-item:hover::after { opacity: 1; }

.gallery-more {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
}

.gallery-more-btn {
  padding: var(--space-3) var(--space-8);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: all var(--dur-fast) var(--ease);
}

.gallery-more-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
  box-shadow: 0 0 24px var(--red-glow);
}

.gallery-hidden { display: none !important; }

/* ── Contact ── */
.contact {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: var(--space-32) 0;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-deep);
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.32) saturate(1.05);
}

.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-deep) 0%, rgba(8,8,10,0.7) 30%, rgba(8,8,10,0.85) 100%);
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-glass {
  max-width: 560px;
  margin-inline: auto;
  padding: var(--space-12) var(--space-10);
  border-radius: var(--radius-lg);
}

.contact-glass .section-header {
  margin-bottom: var(--space-6);
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  text-align: start;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius);
  transition: all var(--dur-fast) var(--ease);
}

.contact-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact-card-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.35;
}

.contact-card-phone {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.contact-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease);
  border: 1px solid transparent;
}

.contact-action-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-action-call {
  background: var(--red-soft);
  border-color: rgba(224, 74, 58, 0.25);
  color: #ff8a7a;
}

.contact-action-call:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 4px 20px var(--red-glow);
}

.contact-action-wa {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.28);
  color: #5dffa0;
}

.contact-action-wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.contact-logo {
  width: 96px;
  height: auto;
  margin: var(--space-8) auto 0;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 4px 24px var(--red-glow));
  transition: transform var(--dur-slow) var(--ease-spring);
}

.contact .section-title { color: var(--text); margin-bottom: var(--space-4); }
.contact .section-desc { color: var(--text-muted); }

.contact-logo:hover { transform: scale(1.05); }

/* ── Footer ── */
.footer {
  background: var(--bg-deep);
  color: var(--text-dim);
  text-align: center;
  padding: var(--space-8) var(--space-6);
  font-size: 0.84rem;
  border-top: 1px solid var(--border);
}

.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  inset-inline-end: var(--space-8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--dur-base) var(--ease);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 10, 0.96);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  transform: scale(0.92);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox.open .lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-img.switching {
  transform: scale(0.96);
  opacity: 0.4;
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  inset-inline-end: var(--space-6);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease);
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease);
}

.lightbox-nav:hover {
  background: var(--red);
  border-color: var(--red);
  box-shadow: var(--shadow-glow);
}

.lightbox-prev { inset-inline-start: 1.25rem; }
.lightbox-next { inset-inline-end: 1.25rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.75rem;
  inset-inline: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ── Tablet ── */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-12);
    align-items: stretch;
  }

  .about-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
    --glass-blur: 14px;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    inset-inline: 0;
    z-index: 1001;
    background: rgba(8, 8, 10, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-8) max(var(--space-6), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    gap: var(--space-2);
    max-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    transform: translateY(calc(-100% - var(--nav-h)));
    opacity: 0;
    transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
    pointer-events: none;
  }

  .nav-links a {
    font-size: 1rem;
    padding: var(--space-4) var(--space-3);
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-links a::after { display: none; }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .menu-toggle { display: flex; }

  .nav-brand img { height: 40px; }

  .stats { margin-top: calc(var(--space-8) * -1); padding-bottom: var(--space-6); }
  .stats-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .stats-inner { padding: var(--space-8) var(--space-6); }
  .stat-item:not(:last-child)::after { display: none; }

  section { padding: var(--space-20) 0; }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    align-items: stretch;
  }

  .about-visual {
    aspect-ratio: 16 / 10;
    width: 100%;
  }

  .about-visual-frame {
    inset: var(--space-4);
    border-radius: calc(var(--radius-lg) - 2px);
  }

  .about-content { gap: var(--space-6); }

  .about-text {
    padding-inline-start: var(--space-4);
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .about-features {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .about-feature { padding: var(--space-5); }

  /* Avoid horizontal slide overflow on narrow screens */
  .reveal-left,
  .reveal-right {
    transform: translateY(28px);
    transition-duration: var(--dur-reveal);
  }

  body[dir="rtl"] .reveal-left,
  body[dir="rtl"] .reveal-right {
    transform: translateY(28px);
  }

  .reveal-left.revealed,
  .reveal-right.revealed {
    transform: translateY(0);
  }

  .hero-glass {
    padding: var(--space-8) var(--space-6);
    max-width: 100%;
    width: 100%;
  }

  .hero-badge {
    font-size: 0.72rem;
    line-height: 1.5;
    white-space: normal;
    text-align: start;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .hero-layout {
    padding-block: var(--space-10) var(--space-16);
    align-items: flex-end;
    min-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
  }

  .hero-overlay {
    background:
      linear-gradient(to top, rgba(8, 8, 10, 0.94) 0%, rgba(8, 8, 10, 0.65) 55%, rgba(8, 8, 10, 0.45) 100%);
  }

  .project-cards { grid-template-columns: 1fr; gap: var(--space-6); }
  .project-section { padding: var(--space-16) 0; }
  .project-section::before { display: none; }

  .project-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .project-section-title { font-size: 1.25rem; }
  .project-section-dim { align-self: flex-start; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }

  .project-card-meta {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .project-card-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .contact { padding: var(--space-20) 0; }
  .contact-glass { padding: var(--space-8) var(--space-6); width: 100%; }
  .contact-card-actions { grid-template-columns: 1fr; }

  .contact-action {
    min-height: 48px;
    font-size: 0.9rem;
  }

  .nav-brand-text { display: none; }
  .hero-scroll { display: none; }

  .back-to-top {
    bottom: max(var(--space-5), env(safe-area-inset-bottom, 0px));
    inset-inline-end: max(var(--space-5), env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
  }

  .lightbox-close {
    top: max(var(--space-4), env(safe-area-inset-top, 0px));
    inset-inline-end: max(var(--space-4), env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }

  .lightbox-prev { inset-inline-start: max(var(--space-3), env(safe-area-inset-left, 0px)); }
  .lightbox-next { inset-inline-end: max(var(--space-3), env(safe-area-inset-right, 0px)); }

  .lightbox-img {
    max-width: 96vw;
    max-height: 78vh;
  }

  .lightbox-counter {
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  }

  .gallery-more-btn {
    min-height: 48px;
    width: 100%;
    max-width: 320px;
  }

  .footer {
    padding-bottom: max(var(--space-8), env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  section { padding: var(--space-16) 0; }
  .section-header { margin-bottom: var(--space-12); }
  .section-title { font-size: clamp(1.5rem, 6.5vw, 1.85rem); }

  .about .section-header { margin-bottom: var(--space-8); padding-inline: 0; }
  .about-text {
    font-size: 0.9rem;
    padding-inline-start: var(--space-3);
    border-inline-start-width: 2px;
  }
  .about-feature-title { font-size: 0.88rem; }
  .about-feature-desc { font-size: 0.78rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-cta {
    justify-content: center;
    min-height: 48px;
    width: 100%;
  }
  .project-card-title { font-size: 1rem; }
  .contact-card-name { font-size: 0.98rem; }
}

@media (max-width: 360px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .nav-actions { gap: var(--space-2); }
  .lang-btn { padding-inline: var(--space-4); font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .stagger > * {
    opacity: 1;
    transform: none;
  }
}
