:root {
  --surface: oklch(0.99 0.002 55);
  --surface-alt: oklch(0.95 0.003 55);
  --surface-raised: oklch(0.92 0.003 55);
  --text: oklch(0.10 0.004 55);
  --text-muted: oklch(0.50 0.006 55);
  --text-dim: oklch(0.45 0.006 55);
  --border: oklch(0.88 0.003 55);
  --accent: oklch(0.30 0.01 55);
  --accent-glow: oklch(0.30 0.01 55 / 0.3);
  --overlay: oklch(0 0 0 / 0.4);
  --nav-bg: oklch(0.99 0.002 55 / 0.85);
  --star-color: oklch(0.96 0.003 55 / 0.6);
  /* Warm red accent */
  --color-accent-warm: oklch(55% 0.16 55);
  --color-accent-warm-soft: oklch(55% 0.16 55 / 0.15);
  --color-accent-warm-glow: oklch(55% 0.16 55 / 0.4);
  --fs-display: clamp(3rem, 7vw, 6.25rem);
  --fs-heading-1: clamp(2rem, 4vw, 3.75rem);
  --fs-heading-2: clamp(1.5rem, 3vw, 2.75rem);
  --fs-heading-3: clamp(1.25rem, 2vw, 2rem);
  --fs-body: clamp(1rem, 1.1vw, 1.125rem);
  --fs-small: clamp(0.875rem, 0.9vw, 0.9375rem);
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1.25rem);
  --space-md: clamp(1.25rem, 2.5vw, 2rem);
  --space-lg: clamp(2rem, 4vw, 4rem);
  --space-xl: clamp(4rem, 8vw, 8rem);
  --space-2xl: clamp(6rem, 12vw, 12rem);
  --radius: 0;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --nav-height: 64px;
}

[data-theme="dark"] {
  --surface: oklch(0.10 0.004 55);
  --surface-alt: oklch(0.14 0.005 55);
  --surface-raised: oklch(0.18 0.006 55);
  --text: oklch(0.96 0.003 55);
  --text-muted: oklch(0.65 0.008 55);
  --text-dim: oklch(0.50 0.008 55);
  --border: oklch(0.22 0.004 55);
  --accent: oklch(0.88 0.02 65);
  --accent-glow: oklch(0.88 0.02 65 / 0.15);
  --overlay: oklch(0 0 0 / 0.6);
  --nav-bg: oklch(0.10 0.004 55 / 0.85);
  --star-color: oklch(0.96 0.003 55 / 0.8);
  /* Warm red accent */
  --color-accent-warm: oklch(72% 0.14 55);
  --color-accent-warm-soft: oklch(72% 0.14 55 / 0.18);
  --color-accent-warm-glow: oklch(72% 0.14 55 / 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .marquee__track[aria-hidden="true"] { display: none; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Tajawal', 'Sora', system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  transition: background 0.6s var(--ease-in-out), color 0.6s var(--ease-in-out);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--surface);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

a:not(.btn):not(.nav__link):not(.project-card__link):not(.footer a):hover {
  color: var(--color-accent-warm);
}
img { max-width: 100%; display: block; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

/* Warm red accent */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.project-card:focus-visible {
  outline: 2px solid var(--color-accent-warm);
  outline-offset: 2px;
}

.section__title {
  font-size: var(--fs-heading-2);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  text-shadow: 0 0 12px var(--color-accent-warm-soft), 0 0 30px var(--color-accent-warm-glow);
}

.section__title--centered { text-align: center; }

.section__overline {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  margin-bottom: var(--space-xs);
  text-shadow: 0 0 8px var(--color-accent-warm-soft), 0 0 20px var(--color-accent-warm-glow);
}

/* ===== PROJECT PAGE TITLE OVERRIDE ===== */
.section__title--light {
  font-weight: 300;
  letter-spacing: 0.05em;
}

.section__subtitle {
  font-size: var(--fs-body);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
}

.section__subtitle--centered { margin: 0 auto; text-align: center; }

.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.section-header--centered {
  justify-content: center;
  text-align: center;
}

.section-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  opacity: 0.7;
  color: var(--color-accent-warm);
}

.section-icon svg {
  width: 100%;
  height: 100%;
}

/* ===== DIVIDER ===== */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-accent-warm-soft), transparent);
  animation: shimmerLine 4s ease-in-out infinite;
}

@keyframes shimmerLine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* ===== SHIMMER LOADING EFFECT ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--surface-alt) 0%,
    var(--surface-raised) 50%,
    var(--surface-alt) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.35s var(--ease-out);
  text-transform: uppercase;
  position: relative;
  gap: var(--space-xs);
}

.btn--outline {
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
  overflow: hidden;
}

.btn--outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.btn--outline:hover {
  color: var(--surface);
  border-color: var(--color-accent-warm);
}

.btn--outline:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn--solid {
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--surface);
  overflow: hidden;
}

.btn--solid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.btn--solid:hover {
  color: var(--text);
  border-color: var(--color-accent-warm);
}

.btn--solid:hover::before {
  transform: scaleX(1);
  transform-origin: right;
}

.btn--full { width: 100%; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background 0.5s var(--ease-in-out), border-color 0.5s var(--ease-in-out), backdrop-filter 0.3s;
}

.nav--transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav__logo {
  font-size: var(--fs-heading-3);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav__links { display: flex; gap: var(--space-lg); }

.nav__link {
  font-size: var(--fs-small);
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-warm);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.nav__link:hover::after,
.nav__link--active::after { width: 100%; }

.nav__link--active {
  color: var(--color-accent-warm);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  position: relative;
  z-index: 300;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s var(--ease-out);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
  flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--text); }

.theme-toggle svg {
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.theme-toggle__sun { display: none; }

[data-theme="dark"] .theme-toggle__moon { display: none; }

[data-theme="dark"] .theme-toggle__sun { display: block; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
}

.hero__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
  z-index: 1;
  transition: opacity 1s var(--ease-out);
}

/* Hero Background Shapes */
.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}

.hero__shape--1 {
  width: 400px;
  height: 400px;
  background: var(--color-accent-warm-soft);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero__shape--2 {
  width: 300px;
  height: 300px;
  background: var(--accent-glow);
  bottom: -5%;
  left: -5%;
  animation-delay: -7s;
}

.hero__shape--3 {
  width: 200px;
  height: 200px;
  background: var(--color-accent-warm-glow);
  top: 40%;
  left: 30%;
  animation-delay: -14s;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, var(--accent-glow) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 60%, var(--accent-glow) 0%, transparent 50%);
  pointer-events: none;
  transition: opacity 0.8s var(--ease-out);
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  direction: rtl;
  padding: var(--space-md);
  max-width: 900px;
}

.hero__label {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  opacity: 0;
  transform: translateY(32px) scale(0.92);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  animation: heroRevealBolder 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero__title span { display: block; }

.hero__subtitle {
  font-size: var(--fs-heading-3);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(32px);
  animation: heroRevealBolder 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.hero__content .btn {
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  animation: heroRevealBolder 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: heroRevealBolder 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2.5s var(--ease-in-out) infinite;
}

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroRevealBolder {
  0% { opacity: 0; transform: translateY(var(--reveal-y, 40px)) scale(var(--reveal-scale, 0.92)); }
  60% { opacity: 1; transform: translateY(-4px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== HERO INNER (project pages) ===== */
.hero--inner {
  min-height: 60vh;
  padding-top: var(--nav-height);
}

.hero--inner .hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.hero--inner .hero__label {
  margin-bottom: var(--space-sm);
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero--inner .hero__subtitle {
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.hero--inner .hero__content .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}



/* ===== ABOUT (accepted live variant 2) ===== */
.about-v2 {
  padding: var(--space-xl) var(--space-md);
  background: var(--surface);
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.about-v2__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.about-v2__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  color: var(--color-accent-warm); opacity: 0.7;
}
.about-v2__icon svg { width: 100%; height: 100%; }
.about-v2__title {
  font-size: var(--fs-heading-1); font-weight: 800; line-height: 1.1;
}
.about-v2__text {
  font-size: var(--fs-body); line-height: 1.9; color: var(--text-muted);
}
.about-v2__stats {
  display: flex; flex-direction: column; gap: var(--space-md);
  padding: var(--space-xl); border: 1px solid var(--border);
  background: var(--surface-alt);
}
.about-v2__stat {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s var(--ease-out);
}
.about-v2__stat:last-child { border-bottom: none; }
.about-v2__stat:hover { border-color: var(--color-accent-warm); }
.about-v2__number {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  line-height: 1; min-width: 100px; flex-shrink: 0;
}
.about-v2__label {
  font-size: var(--fs-body); color: var(--text-muted); font-weight: 500;
}
@media (max-width: 768px) {
  .about-v2 { grid-template-columns: 1fr; }
}

/* ===== PROJECT CARD ===== */
.projects {
  padding: var(--space-xl) var(--space-md);
  background: var(--surface-alt);
  transition: background 0.5s var(--ease-in-out);
}

.projects__grid {
  max-width: 1280px;
  margin: var(--space-md) auto 0;
  display: grid;
  gap: var(--space-lg);
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translateY(30px);
}

.project-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px var(--overlay),
    0 8px 20px rgba(0,0,0,0.06);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
  z-index: 3;
}

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

.project-card--featured { grid-template-columns: 1.2fr 1fr; }
.project-card--landscape { grid-template-columns: 0.8fr 1.2fr; }

.project-card__image {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.project-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, var(--overlay) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}

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

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-card__image img {
  transform: scale(1.06);
}

.project-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl);
  gap: var(--space-sm);
  position: relative;
  z-index: 2;
}

.project-card__tag {
  font-size: calc(var(--fs-small) - 0.1rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  margin-bottom: var(--space-xs);
  text-shadow: 0 0 6px var(--color-accent-warm-soft), 0 0 16px var(--color-accent-warm-glow);
}

.project-card__title {
  font-size: var(--fs-heading-3);
  font-weight: 700;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-xs);
}

.project-card__inline-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.project-card:hover .project-card__inline-icon {
  opacity: 1;
  transform: scale(1.08);
}

.project-card__desc {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.project-card__link {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent);
  position: relative;
  width: fit-content;
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s var(--ease-out);
}

.project-card__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent-warm);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card__link:hover { color: var(--color-accent-warm); }
.project-card__link:hover::after { width: 100%; }

/* ===== CONTENT SECTION (project pages) ===== */
.content-section {
  padding: var(--space-2xl) var(--space-md);
}

.content-section:nth-child(even) {
  background: var(--surface-alt);
}

.content-section:last-of-type {
  border-bottom: 1px solid var(--border);
}

.content-section__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.content-section__inner--reverse {
  direction: ltr;
}

.content-section__inner--reverse > * {
  direction: rtl;
}

.content-section__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.content-section__text p {
  color: var(--text-muted);
  line-height: 1.8;
}

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

.content-section__visual svg {
  width: 100%;
  height: auto;
  max-height: 360px;
}

.content-section__visual svg * {
  transition: all 0.3s var(--ease-out);
}

.text-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-inline-end: 0.35rem;
  opacity: 0.6;
  color: var(--color-accent-warm);
}

.text-icon svg {
  width: 100%;
  height: 100%;
}

/* stats inside content */
.content-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.content-stat {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  text-align: center;
}

.content-stat__number {
  display: block;
  font-size: var(--fs-heading-2);
  font-weight: 800;
  color: var(--color-accent-warm);
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 0 8px var(--color-accent-warm-soft), 0 0 24px var(--color-accent-warm-glow);
}

.content-stat__label {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.content-stat {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s var(--ease-out-quart), transform 0.5s var(--ease-out-quart);
}

.content-stat.revealed {
  opacity: 1;
  transform: translateY(0);
}

.content-stat:nth-child(1) { transition-delay: 0ms; }
.content-stat:nth-child(2) { transition-delay: 80ms; }
.content-stat:nth-child(3) { transition-delay: 160ms; }

/* ===== COUNTER ANIMATIONS ===== */
.content-stats-counter .content-stat {
  text-align: center;
}
.content-stats-counter .content-stat__number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  display: block;
  opacity: 0;
  transform: translateY(-0.5rem);
  animation: numDrop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.content-stats-counter .content-stat__label {
  display: block;
  font-size: clamp(0.875rem, 0.9vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: labelFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}
.content-stats-counter .content-stat__number::after {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  margin: 0.5rem auto 0;
  opacity: 0.2;
}
.content-stats-counter .content-stat:nth-child(1) .content-stat__number { animation-delay: 0s; }
.content-stats-counter .content-stat:nth-child(2) .content-stat__number { animation-delay: 0.15s; }
.content-stats-counter .content-stat:nth-child(3) .content-stat__number { animation-delay: 0.3s; }
@keyframes numDrop {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes labelFade {
  from { opacity: 0; }
  to { opacity: 0.7; }
}

/* ===== MARQUEE ===== */
.marquee-section {
  padding: var(--space-lg) 0;
  background: var(--surface);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
  min-width: fit-content;
  animation: marqueeScroll 40s linear infinite;
  padding-inline-end: 2rem;
}

.marquee__item {
  font-size: var(--fs-heading-3);
  font-weight: 300;
  white-space: nowrap;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease-out);
}

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

.marquee__dot {
  color: var(--color-accent-warm);
  opacity: 0.4;
  font-weight: 300;
  font-size: var(--fs-heading-3);
}

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

/* ===== VALUES GRID ===== */
.values-grid {
  padding: var(--space-xl) var(--space-md);
  background: var(--surface-alt);
}

.values-grid__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.value-card {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  background: var(--surface);
  position: relative;
}

.value-card:hover {
  border-color: var(--color-accent-warm);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--overlay);
}

.value-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent-warm);
  opacity: 0.7;
  margin-bottom: var(--space-xs);
}

.value-card__icon svg {
  width: 100%;
  height: 100%;
}

.value-card__title {
  font-size: var(--fs-heading-3);
  font-weight: 700;
  line-height: 1.3;
}

.value-card__desc {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.7;
}

.value-card--stagger {
  transition-delay: calc(var(--stagger, 0) * 0.12s);
}

@media (max-width: 900px) {
  .values-grid__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .values-grid__inner {
    grid-template-columns: 1fr;
  }
}

/* ===== SHOWCASE POSTS ===== */
.showcase-posts {
  padding: var(--space-xl) var(--space-md);
  background: var(--surface);
}

.showcase-posts__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.showcase-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  opacity: 0;
  transform: translateX(-40px);
}

.showcase-post.revealed {
  opacity: 1;
  transform: translateX(0);
}

.showcase-post:hover {
  border-color: var(--color-accent-warm);
  transform: translateY(-4px);
}

.showcase-post--reverse {
  direction: ltr;
}

.showcase-post--reverse > * {
  direction: rtl;
}

.showcase-post__image {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.showcase-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-quart);
}

.showcase-post:hover .showcase-post__image img {
  transform: scale(1.05);
}

.showcase-post__content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.showcase-post__tag {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-accent-warm);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-shadow: 0 0 6px var(--color-accent-warm-soft), 0 0 16px var(--color-accent-warm-glow);
}

.showcase-post__tag-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.showcase-post__title {
  font-size: var(--fs-heading-3);
  font-weight: 700;
  line-height: 1.3;
}

.showcase-post__desc {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .showcase-post,
  .showcase-post--reverse {
    grid-template-columns: 1fr;
  }
  
  .showcase-post--reverse {
    direction: rtl;
  }
  
  .showcase-post__image {
    min-height: 240px;
  }
}

/* ===== CTA ===== */
.cta {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta__star {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0.3;
}

.cta__star {
  top: -30px;
  left: 10%;
}

.cta__star--2 {
  bottom: -20px;
  right: 15%;
  width: 16px;
  height: 16px;
}

.cta__title {
  font-size: var(--fs-heading-1);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.cta__text {
  font-size: var(--fs-heading-3);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

/* ===== CONTACT ===== */
.contact {
  padding: var(--space-xl) var(--space-md);
  background: var(--surface-alt);
  transition: background 0.5s var(--ease-in-out);
}

.contact__inner {
  max-width: 800px;
  margin: var(--space-lg) auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form__group label {
  font-size: var(--fs-small);
  font-weight: 600;
}

.form__group input,
.form__group textarea {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease-out);
}

.form__group input:hover,
.form__group textarea:hover {
  border-color: var(--text-muted);
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-accent-warm);
  box-shadow: 0 0 0 3px var(--color-accent-warm-soft), 0 4px 12px rgba(0,0,0,0.08);
}

.form__group label {
  transition: color 0.3s var(--ease-out);
}

.form__group:focus-within label {
  color: var(--color-accent-warm);
}

.form__group input:user-invalid,
.form__group textarea:user-invalid {
  border-color: var(--color-accent-warm);
  box-shadow: 0 0 0 3px var(--color-accent-warm-soft);
}

.form__error {
  font-size: var(--fs-small);
  color: var(--color-accent-warm);
  display: none;
  margin-top: 2px;
}

.form__error.visible {
  display: block;
}

.form__success {
  padding: var(--space-md);
  border: 1px solid var(--accent);
  background: var(--surface-alt);
}

.form__success-inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form__success-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.contact__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--fs-body);
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact__info-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.7;
  color: var(--color-accent-warm);
}

/* ===== VISION BANNER ===== */
.vision-banner {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  position: relative;
}

.vision-banner__inner {
  max-width: 800px;
  margin: 0 auto;
}

.vision-banner__mark {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.vision-banner__text {
  font-size: var(--fs-heading-2);
  font-weight: 300;
  line-height: 1.4;
  font-style: italic;
}

/* ===== LOGO ===== */
.nav__logo { display: flex; align-items: center; gap: 0.5rem; }
.nav__logo img { height: 2.75rem; width: auto; }
.nav__logo .logo-light { display: block; }
.nav__logo .logo-dark { display: none; }
[data-theme="dark"] .nav__logo .logo-light { display: none; }
[data-theme="dark"] .nav__logo .logo-dark { display: block; }

/* ===== GALLERY ===== */
.horizontal-scroll-gallery {
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-md) 0;
  cursor: grab;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}
.horizontal-scroll-gallery:active { cursor: grabbing; }
.horizontal-scroll-gallery::-webkit-scrollbar { height: 4px; }
.horizontal-scroll-gallery::-webkit-scrollbar-track { background: transparent; }
.horizontal-scroll-gallery::-webkit-scrollbar-thumb { background: var(--border); border-radius: 0; }
.gallery-track {
  display: flex;
  gap: var(--space-md);
  scroll-snap-type: x mandatory;
  transition: gap 0.3s var(--ease-out);
}
.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item img {
  height: clamp(280px, 50vh, 600px);
  width: auto;
  display: block;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.4s ease;
}
.gallery-item:hover img {
  border-color: var(--color-accent-warm);
  box-shadow: 0 8px 32px var(--color-accent-warm-glow);
}
.gallery-item__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-xs) 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.gallery-item:hover .gallery-item__meta {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item__icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  flex-shrink: 0;
}
.gallery-item__price {
  font-size: calc(var(--fs-small) - 0.1rem);
  color: var(--color-accent-warm);
  font-weight: 600;
  font-family: 'Sora', monospace;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 0 6px var(--color-accent-warm-soft), 0 0 16px var(--color-accent-warm-glow);
}

/* ===== POSTS SHOWCASE ===== */
.posts-showcase {
  padding: var(--space-2xl) var(--space-md);
  background: var(--surface-alt);
  position: relative;
  overflow: hidden;
}
.posts-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 50%, var(--color-accent-warm-glow) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 70% 30%, var(--accent-glow) 0%, transparent 50%);
  opacity: 0.3;
  pointer-events: none;
}
.posts-showcase__inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.posts-showcase__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.posts-showcase__desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.7;
}
.posts-showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.posts-showcase__card {
  position: relative;
  transition: transform 0.5s var(--ease-out-quart), box-shadow 0.5s var(--ease-out-quart);
  transition-delay: var(--card-delay, 0s);
}
.posts-showcase__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px var(--overlay);
}
.posts-showcase__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.4s var(--ease-out);
}
.posts-showcase__card:hover .posts-showcase__media {
  border-color: var(--color-accent-warm);
}
.posts-showcase__media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease-out-quart);
}
.posts-showcase__card:hover .posts-showcase__media img {
  transform: scale(1.03);
}
.posts-showcase__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--overlay) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.posts-showcase__card:hover .posts-showcase__media::after {
  opacity: 1;
}
.posts-showcase__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0 0;
}
.posts-showcase__tag {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-accent-warm);
  letter-spacing: 0.05em;
}
.posts-showcase__date {
  font-size: var(--fs-small);
  color: var(--text-dim);
  font-family: 'Sora', monospace;
}

/* ===== BACK TO HOME ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  transition: color 0.3s var(--ease-out);
}

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

/* ===== FOOTER ===== */
.footer {
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.5s var(--ease-in-out);
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.footer__decor {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.footer__star {
  width: 14px;
  height: 14px;
  opacity: 0.2;
}

.footer__name {
  font-size: var(--fs-heading-3);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.footer__tagline {
  font-size: var(--fs-small);
  color: var(--text-muted);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-sm);
}

.footer__copy {
  font-size: var(--fs-small);
  color: var(--text-dim);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 50;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), border-color 0.3s, background 0.6s var(--ease-in-out), color 0.6s var(--ease-in-out);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

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

.back-to-top:hover {
  border-color: var(--color-accent-warm);
  transform: translateY(-4px) scale(1.05);
}

.back-to-top:active {
  transform: translateY(-2px) scale(0.98);
}

/* ===== CURSOR GLOW EFFECT ===== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, var(--color-accent-warm-soft) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  mix-blend-mode: multiply;
}

body:hover .cursor-glow {
  opacity: 0.15;
}

@media (hover: none) and (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ===== SCROLL REVEALS ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-blur {
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.05);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), filter 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .posts-showcase__grid {
    grid-template-columns: 1fr;
  }

  .content-section__inner--reverse {
    direction: rtl;
  }

  .project-card,
  .project-card--featured,
  .project-card--portrait,
  .project-card--landscape {
    grid-template-columns: 1fr;
  }

  .project-card__image { min-height: 220px; }

  .project-card__content {
    padding: var(--space-lg) var(--space-md);
  }

  .contact__inner { grid-template-columns: 1fr; gap: var(--space-lg); }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    background: var(--surface);
    font-size: var(--fs-heading-3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
    z-index: 200;
  }

  .nav__links.active { opacity: 1; pointer-events: all; }
  .nav__toggle { display: flex; }

  .hero__title { font-size: clamp(2.5rem, 10vw, 4rem); }

  .vision-banner__text { font-size: var(--fs-heading-3); }

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

  .project-card__content {
    padding: var(--space-md);
  }

  .section-icon { width: 28px; height: 28px; }
  .about-v2__icon { width: 32px; height: 32px; }
  .nav__inner { gap: var(--space-sm); }
  .nav__logo img { height: 2.25rem; }
  .hero__shape--1 { width: 200px; height: 200px; top: -15%; right: -10%; }
  .hero__shape--2 { width: 150px; height: 150px; bottom: -10%; left: -10%; }
  .hero__shape--3 { width: 100px; height: 100px; }
  .gallery-item img { height: clamp(220px, 40vh, 400px); }
  .back-to-top { right: var(--space-md); }
}

@media (max-width: 480px) {
  .project-card__content { padding: var(--space-md); }
  .content-stats { grid-template-columns: 1fr; }
  .gallery-item img { height: clamp(160px, 30vh, 300px); }
  .section-icon { width: 24px; height: 24px; }
  .about-v2__icon { width: 28px; height: 28px; }
  .nav__logo img { height: 2rem; }
}
