/* ============================================================
   LAKSHAY BANA — Portfolio CSS
   Premium dark-first design system
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES & RESET
   ───────────────────────────────────────────────────────────── */

:root {
  /* ── Dark Mode (Artistic Palette) ── */
  --bg-primary: transparent; /* Video is behind */
  --bg-secondary: rgba(65, 65, 79, 0.6); /* Dark Slate semi-transparent */
  --bg-elevated: rgba(65, 65, 79, 0.8);
  --bg-glass: rgba(65, 65, 79, 0.4);
  --border: rgba(251, 224, 210, 0.15); /* Peach border */
  --border-hover: rgba(251, 224, 210, 0.3);
  --text-primary: #FBE0D2; /* Peach/Beige */
  --text-secondary: #FFEF82; /* Yellow/Cream */
  --text-muted: rgba(251, 224, 210, 0.6);
  --accent: #699797; /* Teal */
  --accent-hover: #527a7a;
  --accent-glow: rgba(105, 151, 151, 0.3);
  --accent-subtle: rgba(105, 151, 151, 0.1);
  --accent-alt: #76383E; /* Burgundy */

  /* ── Motion tokens ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-reveal: 0.8s;
  --dur-hover: 0.35s;
  --stagger: 0.1s;

  /* ── Layout tokens ── */
  --nav-h: 72px;
  --page-px: clamp(24px, 5vw, 80px);
  --section-py: clamp(80px, 12vh, 160px);
  --container-max: 1400px;
}

/* ── Light Mode ── */
[data-theme='light'] {
  --bg-primary: transparent;
  --bg-secondary: rgba(251, 224, 210, 0.7);
  --bg-elevated: rgba(251, 224, 210, 0.9);
  --bg-glass: rgba(251, 224, 210, 0.5);
  --border: rgba(65, 65, 79, 0.15);
  --border-hover: rgba(65, 65, 79, 0.3);
  --text-primary: #41414F; /* Dark Slate */
  --text-secondary: #76383E; /* Burgundy */
  --text-muted: rgba(65, 65, 79, 0.6);
  --accent: #699797; /* Teal */
  --accent-hover: #527a7a;
  --accent-glow: rgba(105, 151, 151, 0.2);
  --accent-subtle: rgba(105, 151, 151, 0.1);
  --accent-alt: #FFEF82; /* Yellow */
}

/* ── Modern Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}


/* ─────────────────────────────────────────────────────────────
   2. BASE TYPOGRAPHY
   ───────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
}

h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

p {
  line-height: 1.7;
  color: var(--text-secondary);
}

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

.art-italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent-alt); /* Burgundy for contrast */
}

.art-bold {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-primary);
}

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

::-moz-selection {
  background: var(--accent);
  color: #ffffff;
}


/* ─────────────────────────────────────────────────────────────
   2.1 VIDEO BACKGROUND
   ───────────────────────────────────────────────────────────── */
.video-bg-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: calc(100vw * 16 / 9); /* 9:16 aspect ratio scaled to width */
  transform: translate(-50%, -50%) scale(1.05); /* hide youtube branding/edges */
  pointer-events: none;
  border: none;
}

@media (max-aspect-ratio: 9/16) {
  #bg-video {
    width: calc(100vh * 9 / 16);
    height: 100vh;
  }
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.3); /* Dark, semi-transparent overlay for text readability while keeping video visible */
}

/* ─────────────────────────────────────────────────────────────
   3. LOADER
   ───────────────────────────────────────────────────────────── */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #0a0a0b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  animation: loaderPulse 1.8s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.96); }
}

.loader-bar-wrap {
  width: 180px;
  height: 3px;
  border-radius: 100px;
  background-color: var(--border);
  overflow: hidden;
}

.loader-bar {
  width: 0%;
  height: 100%;
  border-radius: 100px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.loader-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ─────────────────────────────────────────────────────────────
   4. CUSTOM CURSOR (Desktop Only)
   ───────────────────────────────────────────────────────────── */

body.custom-cursor {
  cursor: none;
}

.cursor {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-out-expo),
              width 0.15s var(--ease-out-expo),
              height 0.15s var(--ease-out-expo);
  will-change: transform;
}

.cursor.active {
  transform: translate(-50%, -50%) scale(0.5);
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.4;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: transform 0.25s var(--ease-out-expo),
              opacity 0.25s var(--ease-out-expo),
              width 0.25s var(--ease-out-expo),
              height 0.25s var(--ease-out-expo);
  will-change: transform;
}

.cursor-follower.active {
  transform: translate(-50%, -50%) scale(1.5);
  opacity: 0.2;
}

@media (hover: none) {
  .cursor,
  .cursor-follower {
    display: none !important;
  }
  body.custom-cursor {
    cursor: auto;
  }
}


/* ─────────────────────────────────────────────────────────────
   5. NAVBAR
   ───────────────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: var(--bg-glass);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  background-color: var(--bg-glass);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.08);
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1001;
}

.logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s var(--ease-out-expo);
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: 100px;
  transition: width 0.3s var(--ease-out-expo);
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: transparent;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
  position: relative;
  z-index: 1001;
}

.theme-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: var(--accent-subtle);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  position: relative;
  z-index: 1001;
  transition: border-color 0.3s;
}

.menu-btn:hover {
  border-color: var(--border-hover);
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 100px;
  transition: transform 0.35s var(--ease-out-expo),
              opacity 0.35s var(--ease-out-expo);
  transform-origin: center;
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Mobile Navigation Overlay ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: #0a0a0b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .mobile-nav-link {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out-expo),
              transform 0.5s var(--ease-out-expo),
              color 0.3s;
}

.mobile-menu.open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.24s; }
.mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.32s; }
.mobile-menu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.40s; }
.mobile-menu.open .mobile-nav-link:nth-child(6) { transition-delay: 0.48s; }

.mobile-menu .mobile-nav-link:hover {
  color: var(--accent);
}

.mobile-menu .mobile-nav-link.active {
  color: var(--accent);
}

.mobile-menu-footer {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 20px;
}

.mobile-menu-footer .social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: color 0.3s, border-color 0.3s;
}

.mobile-menu-footer .social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}


/* ─────────────────────────────────────────────────────────────
   6. HERO SECTION
   ───────────────────────────────────────────────────────────── */

.hero {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 var(--page-px);
  padding-top: var(--nav-h);
}

/* ── Gradient Mesh Background (Removed for Video Bg) ── */
.hero::before {
  display: none;
}

/* ── Grid Overlay (Removed for Video Bg) ── */
.hero::after {
  display: none;
}

/* ── Hero Layout ── */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 96px);
}

/* ── Hero Content ── */
.hero-content {
  max-width: 680px;
  flex-shrink: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
  margin-bottom: 0;
}

.title-line {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1;
}

.title-name {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.title-name-accent {
  display: block;
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 550px;
  line-height: 1.7;
  margin: 32px 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: transparent;
  color: var(--text-primary);
  padding: 14px 32px;
  border-radius: 0; /* Sharp corners for editorial feel */
  border: 1px solid var(--border);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--text-primary);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease-out-expo);
}

.btn-primary:hover {
  color: #121214;
}

.btn-primary:hover::before {
  transform: scaleY(1);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 32px;
  border-radius: 0;
  border: 1px solid transparent;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: var(--text-secondary);
  transition: width 0.4s var(--ease-out-expo);
}

.btn-ghost:hover::after {
  width: 60%;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

/* ── Hero Socials ── */
.hero-socials {
  display: flex;
  gap: 16px;
  margin-top: 48px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: color 0.3s var(--ease-out-expo),
              border-color 0.3s var(--ease-out-expo),
              transform 0.3s var(--ease-out-expo),
              background-color 0.3s;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  background-color: var(--accent-subtle);
}

/* ── Hero Image ── */
.hero-image-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-avatar {
  width: clamp(280px, 30vw, 400px);
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 64px var(--accent-glow);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating accent ring top-right */
.hero-image-wrap::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border: 2px solid var(--accent);
  border-radius: 16px;
  opacity: 0.25;
  animation: floatRing 6s ease-in-out infinite;
  pointer-events: none;
}

/* Floating accent ring bottom-left */
.hero-image-wrap::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 60px;
  height: 60px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.15;
  animation: floatRing 6s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes floatRing {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(6px, -8px) rotate(8deg); }
}

/* ── Scroll Indicator ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background-color: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 1px;
  height: 8px;
  background-color: var(--accent);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { top: -8px; opacity: 0; }
  30%  { opacity: 1; }
  100% { top: 48px; opacity: 0; }
}


/* ─────────────────────────────────────────────────────────────
   7. SECTION BASE STYLES
   ───────────────────────────────────────────────────────────── */

.section {
  padding: var(--section-py) var(--page-px);
  position: relative;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.section-header {
  margin-bottom: clamp(48px, 8vh, 96px);
}

.section-header.center {
  text-align: center;
}

.section-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background-color: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-top: 16px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 560px;
}

.section-header.center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}


/* ─────────────────────────────────────────────────────────────
   8. SELECTED WORK SECTION
   ───────────────────────────────────────────────────────────── */

.work-section {
  background-color: var(--bg-primary);
}

.project-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vh, 96px);
}

/* ── Project Card ── */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  min-height: 500px;
}

.project-card:nth-child(even) .project-visual {
  order: 2;
}

.project-card:nth-child(even) .project-content {
  order: 1;
}

/* ── Project Visual ── */
.project-visual {
  position: relative;
  border-radius: 2px; /* Sharper corners for editorial feel */
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: transform 0.6s var(--ease-out-expo);
  cursor: pointer;
}

.project-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--proj-clr-1, transparent);
  mix-blend-mode: overlay;
  z-index: 2;
  pointer-events: none;
}

.project-visual:hover {
  transform: scale(1.02);
}

/* Geometric shape inside visual */
.project-visual-shape {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.project-visual-shape::before {
  content: '';
  width: 40%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transform: rotate(12deg);
}

/* Per-project colour overlays */
.project-card:nth-child(1) .project-visual {
  --proj-clr-1: rgba(118, 56, 62, 0.15); /* Burgundy */
}
.project-card:nth-child(2) .project-visual {
  --proj-clr-1: rgba(105, 151, 151, 0.15); /* Teal */
}
.project-card:nth-child(3) .project-visual {
  --proj-clr-1: rgba(255, 239, 130, 0.1); /* Yellow */
}
.project-card:nth-child(4) .project-visual {
  --proj-clr-1: rgba(251, 224, 210, 0.15); /* Peach */
}
.project-card:nth-child(5) .project-visual {
  --proj-clr-1: rgba(118, 56, 62, 0.15); /* Burgundy */
}
.project-card:nth-child(6) .project-visual {
  --proj-clr-1: rgba(105, 151, 151, 0.15); /* Teal */
}

/* ── Project Content ── */
.project-content {
  padding: 24px 0;
}

.project-index {
  font-size: clamp(4rem, 6vw, 6rem);
  font-weight: 800;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Space Mono', monospace;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tag {
  font-size: 0.75rem;
  font-family: 'Space Mono', monospace;
  padding: 6px 14px;
  border-radius: 100px;
  background-color: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid transparent;
  line-height: 1.3;
}

.project-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.project-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Space Mono', monospace;
}

.project-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s var(--ease-out-expo), color 0.3s;
}

.project-link:hover {
  gap: 12px;
}

.project-link i {
  transition: transform 0.3s var(--ease-out-expo);
}

.project-link:hover i {
  transform: translateX(4px);
}


/* ─────────────────────────────────────────────────────────────
   9. ABOUT SECTION
   ───────────────────────────────────────────────────────────── */

.about-section {
  background-color: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

/* ── About Visual ── */
.about-visual {
  position: relative;
}

.about-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.about-img {
  width: 100%;
  display: block;
  border-radius: 20px;
}

/* Decorative accent border offset */
.about-visual::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 2px solid var(--accent);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
}

/* Experience badge */
.about-exp-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--accent);
  color: #0a0a0b;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  z-index: 3;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.exp-num {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.exp-txt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  display: block;
  opacity: 0.8;
}

/* ── About Content ── */
.about-content {
  /* no special positioning */
}

.about-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-label i {
  color: var(--accent);
  font-size: 0.7rem;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.available-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  display: inline-block;
  margin-right: 6px;
  animation: dotPulse 2s ease-in-out infinite;
  vertical-align: middle;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}


/* ─────────────────────────────────────────────────────────────
   10. CAPABILITIES SECTION
   ───────────────────────────────────────────────────────────── */

.capabilities-section {
  background-color: var(--bg-primary);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.capability-card {
  padding: clamp(28px, 3vw, 40px);
  border-radius: 16px;
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
  transition: all 0.4s var(--ease-out-expo);
}

.capability-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.capability-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--accent-subtle);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 24px;
  transition: background-color 0.3s, color 0.3s;
}

.capability-card:hover .capability-icon {
  background-color: var(--accent);
  color: #0a0a0b;
}

.capability-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.capability-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}


/* ─────────────────────────────────────────────────────────────
   11. JOURNEY / TIMELINE SECTION
   ───────────────────────────────────────────────────────────── */

.journey-section {
  background-color: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Vertical centre line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background-color: var(--border);
}

/* ── Timeline Item ── */
.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 48px;
  width: 100%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 40px);
}

/* ── Timeline Dot ── */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 3px solid var(--bg-secondary);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--accent-subtle);
}

/* ── Timeline Card ── */
.timeline-card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  max-width: 400px;
  width: 100%;
  transition: border-color 0.4s var(--ease-out-expo),
              transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
}

.timeline-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.timeline-year {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

.timeline-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.timeline-type i {
  font-size: 0.65rem;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 12px 0 8px;
  color: var(--text-primary);
}

.timeline-place {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.timeline-tags span {
  font-size: 0.7rem;
  font-family: 'Space Mono', monospace;
  padding: 4px 10px;
  border-radius: 100px;
  background-color: var(--accent-subtle);
  color: var(--accent);
}


/* ─────────────────────────────────────────────────────────────
   12. CONTACT SECTION
   ───────────────────────────────────────────────────────────── */

.contact-section {
  background-color: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: start;
}

/* ── Contact Info ── */
.contact-info {
  /* no extra positioning */
}

.contact-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.contact-text {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-out-expo);
}

.contact-detail-item:hover {
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--accent-subtle);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background-color 0.3s, color 0.3s;
}

.contact-detail-item:hover .contact-icon {
  background-color: var(--accent);
  color: #0a0a0b;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

/* ── Contact Form ── */
.contact-form-wrap {
  /* container */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}

.btn-full {
  width: 100%;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  color: var(--accent);
  font-weight: 500;
  border: 1px solid var(--accent-subtle);
  border-radius: 12px;
  background-color: var(--accent-subtle);
}

.form-success.show {
  display: block;
}


/* ─────────────────────────────────────────────────────────────
   13. FOOTER
   ───────────────────────────────────────────────────────────── */

.footer {
  padding: 40px var(--page-px);
  border-top: 1px solid var(--border);
  background-color: var(--bg-primary);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-logo .logo-dot {
  color: var(--accent);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.heart {
  color: var(--accent);
}


/* ─────────────────────────────────────────────────────────────
   14. SCROLL-TO-TOP BUTTON
   ───────────────────────────────────────────────────────────── */

.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--accent);
  color: #0a0a0b;
  display: grid;
  place-items: center;
  font-size: 1rem;
  border: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 900;
  transition: opacity 0.4s var(--ease-out-expo),
              visibility 0.4s,
              transform 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--accent-glow);
}


/* ─────────────────────────────────────────────────────────────
   15. SCROLL REVEAL ANIMATIONS
   ───────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

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

/* ── Stagger delays via data attributes ── */
.reveal[data-delay='1'],
.reveal-left[data-delay='1'],
.reveal-right[data-delay='1'] {
  transition-delay: 0.1s;
}

.reveal[data-delay='2'],
.reveal-left[data-delay='2'],
.reveal-right[data-delay='2'] {
  transition-delay: 0.2s;
}

.reveal[data-delay='3'],
.reveal-left[data-delay='3'],
.reveal-right[data-delay='3'] {
  transition-delay: 0.3s;
}

.reveal[data-delay='4'],
.reveal-left[data-delay='4'],
.reveal-right[data-delay='4'] {
  transition-delay: 0.4s;
}

.reveal[data-delay='5'],
.reveal-left[data-delay='5'],
.reveal-right[data-delay='5'] {
  transition-delay: 0.5s;
}

.reveal[data-delay='6'],
.reveal-left[data-delay='6'],
.reveal-right[data-delay='6'] {
  transition-delay: 0.6s;
}


/* ─────────────────────────────────────────────────────────────
   16. THEME TRANSITION
   ───────────────────────────────────────────────────────────── */

/* Smooth transitions on theme toggle — applied globally */
body:not(.no-transition) *,
body:not(.no-transition) *::before,
body:not(.no-transition) *::after {
  transition:
    background-color 0.4s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    fill 0.3s ease,
    stroke 0.3s ease;
}

/* During page load, suppress ALL transitions */
body.no-transition *,
body.no-transition *::before,
body.no-transition *::after {
  transition: none !important;
}


/* ─────────────────────────────────────────────────────────────
   17. RESPONSIVE MEDIA QUERIES
   ───────────────────────────────────────────────────────────── */

/* ── Extra-large ≤1200px ── */
@media (max-width: 1200px) {
  :root {
    --container-max: 1100px;
  }

  .title-name {
    font-size: clamp(3rem, 7vw, 5.5rem);
  }

  .hero-avatar {
    width: clamp(240px, 28vw, 340px);
  }
}

/* ── Tablet ≤1024px ── */
@media (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    gap: 40px;
  }

  .hero-avatar {
    width: clamp(220px, 32vw, 300px);
  }

  .about-grid {
    gap: 40px;
  }
}

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

  /* Nav */
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 80px;
    min-height: auto;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-tagline {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .hero-image-wrap {
    order: -1;
  }

  .hero-avatar {
    width: clamp(200px, 50vw, 280px);
  }

  .hero-image-wrap::before,
  .hero-image-wrap::after {
    display: none;
  }

  .hero-scroll-hint {
    display: none;
  }

  /* Projects */
  .project-card {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 24px;
  }

  .project-card:nth-child(even) .project-visual {
    order: 0;
  }

  .project-card:nth-child(even) .project-content {
    order: 0;
  }

  .project-visual {
    aspect-ratio: 16 / 10;
  }

  .project-content {
    padding: 0;
  }

  .project-index {
    font-size: 3rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual::after {
    top: 12px;
    left: 12px;
    right: -12px;
    bottom: -12px;
  }

  .about-exp-badge {
    right: -10px;
    bottom: -10px;
    padding: 16px;
  }

  .exp-num {
    font-size: 1.5rem;
  }

  /* Timeline */
  .timeline::before {
    left: 24px;
    transform: none;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 56px;
  }

  .timeline-dot {
    left: 24px;
    transform: translateX(-50%);
  }

  .timeline-card {
    max-width: 100%;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ── Small Mobile ≤480px ── */
@media (max-width: 480px) {
  .section {
    padding: clamp(56px, 10vh, 100px) 20px;
  }

  .navbar {
    padding: 0 20px;
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .title-name {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .title-line {
    font-size: 0.9rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .btn-primary,
  .btn-ghost {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero-avatar {
    width: 200px;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 14px;
  }

  .about-info-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .project-title {
    font-size: 1.3rem;
  }

  .contact-heading {
    font-size: 1.4rem;
  }

  .loader-logo {
    font-size: 2rem;
  }

  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ── Touch devices — hide cursor ── */
@media (hover: none) {
  .cursor,
  .cursor-follower {
    display: none !important;
  }

  body,
  body.custom-cursor {
    cursor: auto !important;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

  .hero::before {
    animation: none;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }
}


/* ─────────────────────────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.text-accent {
  color: var(--accent);
}

.font-mono {
  font-family: 'Space Mono', monospace;
}

/* ─────────────────────────────────────────────────────────────
   GSAP & PERFORMANCE ENHANCEMENTS
   ───────────────────────────────────────────────────────────── */

/* ── Scroll Progress Indicator ── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent);
  z-index: 10002;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

/* ── Project Image covers ── */
.project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
  z-index: 0;
  opacity: 0.8;
  will-change: transform;
}

[data-theme='light'] .project-img {
  opacity: 0.85;
}

.project-visual:hover .project-img {
  transform: scale(1.05);
}

/* ── Custom Text Reveals ── */
.gsap-reveal-text {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.gsap-reveal-text span {
  display: inline-block;
  will-change: transform;
}

/* ── Horizontal Scroll Layout ── */
@media (min-width: 992px) {
  /* Horizontal scroll container overrides */
  .work-section.horizontal-scroll-mode {
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    padding-top: var(--nav-h);
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .work-section.horizontal-scroll-mode .container {
    max-width: 100%;
    width: 100%;
    padding: 0;
  }
  
  .work-section.horizontal-scroll-mode .section-header {
    padding-left: var(--page-px);
    margin-bottom: clamp(24px, 4vh, 48px);
  }
  
  .project-showcase-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
  }
  
  .project-showcase.horizontal-active {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: clamp(48px, 6vw, 120px);
    width: max-content;
    padding-left: var(--page-px);
    padding-right: clamp(150px, 20vw, 400px);
    will-change: transform;
  }
  
  .project-showcase.horizontal-active .project-card {
    flex: 0 0 clamp(750px, 75vw, 1100px);
    min-height: auto;
    grid-template-columns: 1.2fr 1.0fr;
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
    height: 62vh; /* keep it vertical-viewport safe */
  }

  .project-showcase.horizontal-active .project-card .project-visual {
    height: 100%;
    aspect-ratio: auto; /* let visual span the height */
  }
}

