/* ═══════════════════════════════════════════════════
   ALEX MERCER PORTFOLIO — PREMIUM EDITORIAL THEME
   Fonts: Cormorant Garamond (display) + Outfit (body) + Fira Code (mono)
   Palette: Deep charcoal · Warm cream · Electric gold accent
═══════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────── */
:root {
  --bg:          #0e0e0f;
  --bg-2:        #141415;
  --bg-3:        #1a1a1b;
  --surface:     #1f1f21;
  --surface-2:   #252527;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);

  --gold:        #c9a84c;
  --gold-light:  #e8c87a;
  --gold-dim:    rgba(201,168,76,0.15);
  --gold-glow:   rgba(201,168,76,0.25);

  --cream:       #f0ebe0;
  --cream-dim:   rgba(240,235,224,0.7);
  --cream-muted: rgba(240,235,224,0.4);

  --white:       #ffffff;
  --text:        #d4cfc4;
  --muted:       #7a766e;

  --ff-serif:    'Cormorant Garamond', Georgia, serif;
  --ff-sans:     'Outfit', system-ui, sans-serif;
  --ff-mono:     'Fira Code', monospace;

  --radius:      12px;
  --radius-lg:   20px;
  --section-gap: 120px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg:          #f5f1ea;
  --bg-2:        #ede8df;
  --bg-3:        #e4dfd5;
  --surface:     #ffffff;
  --surface-2:   #f9f6f0;
  --border:      rgba(0,0,0,0.08);
  --border-2:    rgba(0,0,0,0.14);
  --cream:       #1a1814;
  --cream-dim:   rgba(26,24,20,0.7);
  --cream-muted: rgba(26,24,20,0.4);
  --text:        #3a3730;
  --muted:       #8c8478;
}

/* ── RESET & BASE ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  transition: background 0.4s, color 0.4s;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

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

/* ── SCROLL PROGRESS ─────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 10000;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.1s linear;
}

/* ── CUSTOM CURSOR ───────────────────────────────── */
#cursor-dot {
  position: fixed; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 10001;
  transform: translate(-50%,-50%);
  transition: transform 0.1s;
}
#cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1.5px solid var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%,-50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), transform 0.08s, border-color 0.3s;
  opacity: 0.6;
}
body.cursor-hover #cursor-ring { width: 56px; height: 56px; opacity: 1; border-color: var(--gold-light); }

/* ── NAVBAR ──────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: all 0.5s var(--ease);
}
#navbar.scrolled {
  background: rgba(14,14,15,0.88);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.3);
}
[data-theme="light"] #navbar.scrolled { background: rgba(245,241,234,0.92); }

.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; gap: 40px;
}

/* Logo with animated dot */
.nav-logo {
  font-family: var(--ff-serif);
  font-size: 1.6rem; font-weight: 600;
  color: var(--cream); letter-spacing: -0.02em;
  flex-shrink: 0; position: relative;
  transition: color 0.3s;
}
.nav-logo:hover { color: var(--gold); }
.logo-dot {
  color: var(--gold);
  display: inline-block;
  animation: logoDotPulse 3s ease-in-out infinite;
}
@keyframes logoDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}

/* Nav links container with sliding pill */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center;
  position: relative;
}

/* The gliding highlight pill */
.nav-pill {
  position: absolute;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  pointer-events: none;
  z-index: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
}

.nav-link {
  font-family: var(--ff-sans);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); padding: 8px 16px; border-radius: 8px;
  transition: color 0.25s;
  position: relative; z-index: 1;
}
/* Animated dot indicator below active link */
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--cream); }
.nav-link:hover::after, .nav-link.active::after { width: 18px; }
.nav-link.active::before { transform: translateX(-50%) scale(1); }

/* Nav links stagger in on page load */
.nav-link {
  opacity: 0;
  transform: translateY(-8px);
  animation: navLinkIn 0.5s var(--ease) forwards;
}
.nav-link:nth-child(1) { animation-delay: 0.35s; }
.nav-link:nth-child(2) { animation-delay: 0.42s; }
.nav-link:nth-child(3) { animation-delay: 0.49s; }
.nav-link:nth-child(4) { animation-delay: 0.56s; }
.nav-link:nth-child(5) { animation-delay: 0.63s; }
.nav-link:nth-child(6) { animation-delay: 0.70s; }
@keyframes navLinkIn {
  to { opacity: 1; transform: translateY(0); }
}

.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-2);
  color: var(--muted); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.theme-btn:hover {
  color: var(--gold); border-color: var(--gold);
  transform: rotate(30deg) scale(1.1);
  background: var(--gold-dim);
}

.nav-cta {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--bg);
  background: var(--gold); padding: 9px 20px; border-radius: 6px;
  transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
  opacity: 0;
  animation: navLinkIn 0.5s var(--ease) 0.75s forwards;
}
/* shimmer sweep on hover */
.nav-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.nav-cta:hover::before { transform: translateX(100%); }
.nav-cta:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.4); }
.nav-cta i { font-size: 0.75rem; transition: transform 0.3s; }
.nav-cta:hover i { transform: translate(3px,-3px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; padding: 4px 0;
}
.hamburger span {
  display: block; height: 1.5px; background: var(--cream);
  transition: all 0.3s var(--ease);
}
.hamburger.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────── */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  overflow: hidden; padding-top: 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.18; animation: floatOrb 12s ease-in-out infinite;
}
.hero-orb.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #c9a84c 0%, transparent 70%);
  top: -200px; right: -100px; animation-delay: 0s;
}
.hero-orb.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7c6a3a 0%, transparent 70%);
  bottom: -150px; left: -100px; animation-delay: -6s;
}
@keyframes floatOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px,-30px) scale(1.05); }
}

#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px; margin: 0 auto; padding: 80px 32px;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  position: relative; z-index: 1;
  width: 100%;
}

.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold);
  background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.3);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
}
.status-pulse {
  width: 7px; height: 7px; background: var(--gold); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(201,168,76,0); }
}

.hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  line-height: 1.0; margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.name-sans {
  font-family: var(--ff-sans); font-weight: 700;
  color: var(--cream); display: block;
}
.name-serif {
  font-family: var(--ff-serif); font-weight: 400;
  font-style: italic; color: var(--gold); display: block;
}

.hero-sub {
  font-size: 1.1rem; color: var(--cream-dim);
  line-height: 1.7; margin-bottom: 24px; max-width: 440px;
}
.hero-sub em { font-style: italic; color: var(--gold-light); font-family: var(--ff-serif); font-size: 1.2em; }

.hero-role-line {
  font-family: var(--ff-mono);
  font-size: 0.9rem; color: var(--muted);
  margin-bottom: 36px; letter-spacing: 0.05em;
}
.role-prefix { color: var(--gold); }
.role-cursor {
  display: inline-block; color: var(--gold);
  animation: blink 1.1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-sans); font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--bg); background: var(--gold);
  padding: 12px 28px; border-radius: 6px;
  border: 1.5px solid var(--gold);
  transition: all 0.3s var(--ease);
}
.btn-primary:hover {
  background: var(--gold-light); border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201,168,76,0.3);
  color: var(--bg);
}
.btn-primary.btn-lg { padding: 15px 36px; font-size: 0.92rem; }
.btn-primary svg { transition: transform 0.25s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--cream);
  border: 1.5px solid var(--border-2); padding: 12px 28px; border-radius: 6px;
  transition: all 0.3s var(--ease);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  padding: 12px 4px; transition: color 0.25s;
  border-bottom: 1px solid transparent;
}
.btn-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 40px; }
.stat-item { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--ff-serif);
  font-size: 2.2rem; font-weight: 600; font-style: italic;
  color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}

/* HERO RIGHT */
.hero-visual { position: relative; display: inline-block; }
.visual-frame {
  position: relative; display: inline-block;
  border-radius: var(--radius);
  overflow: hidden;
}
.visual-frame img {
  width: 380px; height: 480px;
  object-fit: cover; display: block;
  filter: saturate(0.85);
}
.frame-corner {
  position: absolute; width: 40px; height: 40px;
  border-color: var(--gold); border-style: solid; z-index: 2;
}
.frame-corner.tl { top: -8px; left: -8px; border-width: 2px 0 0 2px; }
.frame-corner.br { bottom: -8px; right: -8px; border-width: 0 2px 2px 0; }

.float-card {
  position: absolute; background: var(--surface);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 12px 18px; display: flex; flex-direction: column; gap: 2px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: floatCard 4s ease-in-out infinite;
}
.float-card i { color: var(--gold); font-size: 1rem; margin-bottom: 4px; }
.float-card span:not(:first-child) { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.card-big { font-family: var(--ff-serif); font-size: 1.8rem !important; font-weight: 600; color: var(--gold) !important; line-height: 1; }
.card-1 { top: 24px; left: -60px; animation-delay: 0s; }
.card-2 { bottom: 60px; right: -50px; animation-delay: -2s; }

@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* TECH ORBIT */
.tech-orbit {
  position: absolute; inset: 0;
  pointer-events: none;
}
.orbit-dot {
  position: absolute; width: 42px; height: 42px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--oc, var(--gold));
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  animation: floatCard 3.5s ease-in-out infinite;
}
.orbit-1 { top: -20px; right: 60px; animation-delay: 0s; }
.orbit-2 { bottom: -16px; left: 40px; animation-delay: -1s; }
.orbit-3 { top: 50%; right: -24px; animation-delay: -2s; }
.orbit-4 { top: 20%; left: -22px; animation-delay: -3s; }

/* HERO SOCIALS */
.hero-socials {
  position: fixed; left: 32px; bottom: 48px; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero-socials a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.95rem;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); transition: all 0.25s;
}
.hero-socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.social-line { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--muted), transparent); }

/* SCROLL HINT */
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 1;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid var(--border-2); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-dot {
  width: 4px; height: 8px; background: var(--gold); border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot { 0%,100% { transform: translateY(0); opacity:1; } 80% { transform: translateY(10px); opacity:0; } }
.scroll-hint span {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

/* ── SECTION SHARED ──────────────────────────────── */
.section { padding: var(--section-gap) 0; }
.section-alt { background: var(--bg-2); }

.section-header { text-align: center; margin-bottom: 60px; }

.section-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; color: var(--cream);
  line-height: 1.2; letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--gold); }

.section-body {
  font-size: 1rem; color: var(--cream-dim);
  line-height: 1.8; margin-bottom: 20px;
}

/* ── ABOUT ───────────────────────────────────────── */
.about-img-wrap { position: relative; display: inline-block; }
.about-img {
  width: 100%; max-width: 440px;
  border-radius: var(--radius-lg);
  object-fit: cover; height: 520px;
  filter: saturate(0.8);
}
.about-badge {
  position: absolute; bottom: 30px; right: -24px;
  background: var(--gold); padding: 16px 20px;
  border-radius: var(--radius); text-align: center;
  box-shadow: 0 8px 32px rgba(201,168,76,0.4);
}
.badge-big {
  display: block;
  font-family: var(--ff-serif); font-size: 2.4rem; font-weight: 600;
  color: var(--bg); line-height: 1;
}
.badge-small {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(14,14,15,0.7); margin-top: 4px; display: block;
}
.about-line {
  position: absolute; top: 20px; left: -16px;
  width: 3px; height: 80px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  border-radius: 2px;
}

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0;
}
.about-item {
  display: flex; align-items: flex-start; gap: 12px;
}
.about-item > i {
  font-size: 0.95rem; color: var(--gold); margin-top: 3px; flex-shrink: 0;
}
.about-item > div { display: flex; flex-direction: column; gap: 2px; }
.item-label {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.item-val { font-size: 0.9rem; color: var(--cream); font-weight: 500; }
.about-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── SKILLS ──────────────────────────────────────── */
.skills-sub {
  font-family: var(--ff-mono); font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.skill-item { margin-bottom: 20px; }
.skill-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.skill-name { font-size: 0.92rem; font-weight: 500; color: var(--cream); }
.skill-pct  { font-family: var(--ff-mono); font-size: 0.82rem; color: var(--gold); }
.skill-track {
  height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden;
}
.skill-bar {
  height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 1.2s var(--ease);
}

.tech-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 14px;
  font-size: 0.82rem; color: var(--text);
  transition: all 0.25s;
}
.tech-pill i { font-size: 1rem; color: var(--gold); }
.tech-pill:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); background: var(--gold-dim); }

.cert-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.cert-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0; margin-top: 5px;
}
.cert-name { font-size: 0.92rem; font-weight: 500; color: var(--cream); margin-bottom: 3px; }
.cert-meta { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }

/* ── PROJECTS ────────────────────────────────────── */
.proj-view-all {
  text-align: center;
  margin-top: 3rem;
}

.proj-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.proj-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.4s var(--ease);
}
.proj-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.proj-img { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.proj-card:hover .proj-img img { transform: scale(1.05); }

.proj-overlay {
  position: absolute; inset: 0;
  background: rgba(14,14,15,0.7);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transition: opacity 0.3s;
}
.proj-card:hover .proj-overlay { opacity: 1; }
.proj-btn {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--gold); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: all 0.2s;
  border: none; cursor: pointer;
}
.proj-btn:hover { background: var(--gold-light); transform: scale(1.1); }

.proj-cat-tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--bg);
  background: var(--gold); padding: 4px 12px; border-radius: 100px;
}

.proj-body { padding: 24px; }
.proj-title {
  font-family: var(--ff-serif); font-size: 1.4rem; font-weight: 400;
  color: var(--cream); margin-bottom: 10px; letter-spacing: -0.01em;
}
.proj-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.proj-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ptag {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 5px; padding: 4px 10px;
}

/* Project Modal */
.proj-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  align-items: center; justify-content: center; padding: 20px;
}
.proj-modal.open { display: flex; }
.modal-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
}
.modal-box {
  position: relative; background: var(--surface);
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  max-width: 700px; width: 100%; max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.4s var(--ease);
}
@keyframes modalIn { from { opacity:0; transform: scale(0.95) translateY(20px); } }
.modal-x {
  position: sticky; top: 0; float: right; margin: 16px 16px 0 0; z-index: 1;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-3); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-x:hover { color: var(--cream); background: var(--surface-2); }
.modal-img { width: 100%; height: 280px; object-fit: cover; }
.modal-info { padding: 28px 32px 32px; }
.modal-cat {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 10px;
}
.modal-title {
  font-family: var(--ff-serif); font-size: 2rem; font-weight: 400;
  color: var(--cream); margin-bottom: 14px;
}
.modal-desc { font-size: 0.95rem; color: var(--text); line-height: 1.8; margin-bottom: 20px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* ── SERVICES ────────────────────────────────────── */
.svc-list { display: flex; flex-direction: column; gap: 0; }
.svc-row {
  display: grid; grid-template-columns: 60px 56px 1fr 48px;
  align-items: center; gap: 28px;
  padding: 28px 0; border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease); cursor: default;
}
.svc-row:first-child { border-top: 1px solid var(--border); }
.svc-row:hover { background: var(--gold-dim); padding-left: 16px; padding-right: 16px; border-radius: var(--radius); border-color: transparent; }

.svc-num {
  font-family: var(--ff-mono); font-size: 0.75rem;
  letter-spacing: 0.1em; color: var(--muted);
}
.svc-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem;
  transition: all 0.3s;
}
.svc-row:hover .svc-icon { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.svc-body {}
.svc-title {
  font-family: var(--ff-serif); font-size: 1.25rem; font-weight: 400;
  color: var(--cream); margin-bottom: 4px;
}
.svc-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.svc-arr {
  color: var(--border-2); font-size: 1rem;
  transition: all 0.3s; justify-self: end;
}
.svc-row:hover .svc-arr { color: var(--gold); transform: translate(3px,-3px); }

/* ── CTA SECTION ─────────────────────────────────── */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%);
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; flex-wrap: wrap; position: relative;
}
.cta-eyebrow {
  font-family: var(--ff-mono); font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.cta-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400; color: var(--cream); line-height: 1.2;
}
.cta-title em { font-style: italic; color: var(--gold); }
.cta-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex-shrink: 0; }
.cta-note { font-size: 0.8rem; color: var(--muted); }

/* ── CONTACT ─────────────────────────────────────── */
.contact-links { display: flex; flex-direction: column; gap: 4px; margin: 32px 0; }
.contact-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.25s;
}
.contact-row:hover { background: var(--surface); border-color: var(--border); }
.c-icon {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.9rem; flex-shrink: 0;
}
.c-label {
  display: block; font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
}
.c-val { display: block; font-size: 0.9rem; font-weight: 500; color: var(--cream); }
.c-arr { margin-left: auto; color: var(--muted); font-size: 0.8rem; transition: transform 0.25s; }
.contact-row:hover .c-arr { color: var(--gold); transform: translate(2px,-2px); }

.contact-socials { display: flex; gap: 10px; }
.contact-socials a {
  width: 40px; height: 40px; border-radius: 9px;
  border: 1px solid var(--border-2); display: flex;
  align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.9rem; transition: all 0.25s;
}
.contact-socials a:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); }

/* FORM */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field textarea {
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: 8px; color: var(--cream);
  font-family: var(--ff-sans); font-size: 0.92rem;
  padding: 12px 16px; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.field textarea { resize: vertical; }

.form-notice {
  border-radius: 8px; padding: 14px 18px;
  font-size: 0.88rem; margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.form-notice.success { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.form-notice.error   { background: rgba(248,113,113,0.1); color: #f87171; border: 1px solid rgba(248,113,113,0.3); }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer { background: var(--bg-3); border-top: 1px solid var(--border); }
.footer-inner { padding: 80px 0 48px; }
.footer-logo {
  font-family: var(--ff-serif); font-size: 1.8rem; font-weight: 600;
  color: var(--cream); display: block; margin-bottom: 16px;
}
.footer-about { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: all 0.25s;
}
.footer-socials a:hover { color: var(--gold); border-color: var(--gold); }

.footer-heading {
  font-family: var(--ff-mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links li a, .footer-links li span {
  font-size: 0.88rem; color: var(--muted); transition: color 0.2s;
}
.footer-links li a:hover { color: var(--cream); }

.footer-bottom {
  padding: 20px 0; border-top: 1px solid var(--border);
  display: flex; align-items: center;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.82rem; color: var(--muted); }

#back-top {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.8rem; transition: all 0.25s;
}
#back-top:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

/* ── AOS OVERRIDE ────────────────────────────────── */
[data-aos] { transition-timing-function: var(--ease) !important; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; padding: 100px 24px 60px; }
  .hero-right { display: none; }
  .hero-socials { display: none; }
  .proj-grid { grid-template-columns: repeat(2,1fr); }
  .svc-row { grid-template-columns: 48px 1fr 36px; gap: 16px; }
  .svc-num { display: none; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg-2); padding: 16px;
    border-bottom: 1px solid var(--border); gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  :root { --section-gap: 80px; }
  .proj-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-action { align-items: center; }
  .hero-stats { gap: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}

@media (min-width: 1400px) {
  .hero-title { font-size: 5.5rem; }
}

/* ═══════════════════════════════════════════════
   ANIMATION ENHANCEMENTS
═══════════════════════════════════════════════ */

/* ── Word Split Reveal ───────────────────────── */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.22em;
}
.word {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
}
.word-in {
  animation: wordReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes wordReveal {
  to { transform: translateY(0); opacity: 1; }
}

/* ── Section Eyebrow Slide In ────────────────── */
.section-eyebrow {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.eyebrow-in {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* ── Service Rows Reveal ─────────────────────── */
.svc-row {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, border-color 0.3s;
}
.svc-visible {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* ── Tech Pills Stagger ──────────────────────── */
.tech-pill {
  opacity: 0;
  transform: scale(0.8) translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, border-color 0.3s, color 0.3s;
}
.pill-in {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
}
.tech-pill:hover {
  transform: scale(1.08) translateY(-3px) !important;
  background: var(--gold-dim) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

/* ── About Item Glow ─────────────────────────── */
.about-item {
  transition: all 0.3s;
  padding: 8px;
  border-radius: 8px;
  margin: -8px;
}
.item-glow {
  background: var(--gold-dim);
  border-radius: 8px;
}
.item-glow i { color: var(--gold-light) !important; }

/* ── Stat Shine ──────────────────────────────── */
.stat-item {
  position: relative;
  overflow: hidden;
}
@keyframes shine {
  0%   { transform: translateX(-100%) skewX(-20deg); }
  100% { transform: translateX(300%)  skewX(-20deg); }
}
.stat-shine::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.18), transparent);
  animation: shine 0.7s ease forwards;
}

/* ── Ripple Effect on Buttons ────────────────── */
.btn-primary { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut 0.6s ease forwards;
  pointer-events: none;
}
@keyframes rippleOut {
  to { transform: translate(-50%, -50%) scale(30); opacity: 0; }
}

/* ── Tilt Card Glow ──────────────────────────── */
.proj-card {
  will-change: transform;
}
.proj-card:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,168,76,0.15);
}

/* ── Skill Item Hover ────────────────────────── */
.skill-item {
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 4px 0;
  border-radius: 6px;
}
.skill-item:hover { transform: translateX(6px); }
.skill-item:hover .skill-name { color: var(--gold-light) !important; }

/* ── CTA section orb pulse ───────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.08), transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ctaPulse 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50%       { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* ── Floating social links entrance ─────────────*/
.hero-socials a {
  opacity: 0;
  transform: translateX(-12px);
  animation: socialIn 0.5s var(--ease) forwards;
}
.hero-socials a:nth-child(1) { animation-delay: 1.0s; }
.hero-socials a:nth-child(2) { animation-delay: 1.1s; }
.hero-socials a:nth-child(3) { animation-delay: 1.2s; }
.hero-socials a:nth-child(4) { animation-delay: 1.3s; }
.social-line {
  opacity: 0;
  animation: socialIn 0.5s var(--ease) 1.4s forwards;
}
@keyframes socialIn {
  to { opacity: 1; transform: translateX(0); }
}

/* ── Navbar entrance — handled by nav-link stagger ── */

/* ── Hero content stagger ────────────────────── */
.hero-status  { animation: fadeUp 0.7s var(--ease) 0.3s both; }
.hero-eyebrow { animation: fadeUp 0.7s var(--ease) 0.4s both; }
.hero-title   { animation: fadeUp 0.8s var(--ease) 0.5s both; }
.hero-sub     { animation: fadeUp 0.7s var(--ease) 0.65s both; }
.hero-role-line { animation: fadeUp 0.7s var(--ease) 0.75s both; }
.hero-actions { animation: fadeUp 0.7s var(--ease) 0.85s both; }
.hero-stats   { animation: fadeUp 0.7s var(--ease) 0.95s both; }
.hero-right   { animation: fadeUp 0.9s var(--ease) 0.6s both; }
.scroll-hint  { animation: fadeUp 0.7s var(--ease) 1.4s both; }

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

/* ── Cert items slide in ─────────────────────── */
.cert-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.cert-item.cert-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Form field focus glow ───────────────────── */
.field input:focus,
.field textarea:focus {
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12), 0 2px 8px rgba(0,0,0,0.3);
}
.field.focused label {
  color: var(--gold);
}

/* ── Back to top smooth show/hide ────────────── */
#back-top {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ── Highlight on hover for svc-row ─────────── */
.svc-row:hover .svc-arr {
  background: var(--gold);
  color: var(--bg);
  transform: rotate(45deg);
}

/* ── Contact row hover ───────────────────────── */
.contact-row {
  transition: background 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.contact-row:hover {
  transform: translateX(6px);
  background: var(--gold-dim);
  border-color: rgba(201,168,76,0.3);
}

/* ── About image parallax ────────────────────── */
.about-img {
  transition: filter 0.4s ease;
}
.about-img:hover {
  filter: saturate(1.1) contrast(1.05);
}

/* ── Section separator line ──────────────────── */
.section-header {
  position: relative;
  padding-bottom: 1rem;
}
.section-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}
.section-header.line-in::after {
  width: 180px;
}


/* ═══════════════════════════════════════════════
   PARALLAX ADDITIONS
═══════════════════════════════════════════════ */

/* Hero parallax — allow overflow for movement */
.hero { overflow: visible; }
.hero-bg { will-change: transform; }

/* Hero left/right isolate layers */
.hero-left, .hero-right {
  will-change: transform, opacity;
}

/* About image wrap has its own stacking context */
.about-img-wrap {
  will-change: transform;
}

/* ── Section background depth layers ───────── */
.section-alt { position: relative; overflow: hidden; }
.section-bg-layer {
  position: absolute;
  inset: -30% 0;
  background: inherit;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.section-alt > .container { position: relative; z-index: 1; }

/* ── CTA parallax background ─────────────────── */
.cta-section { position: relative; overflow: hidden; }
.cta-parallax-bg {
  position: absolute;
  inset: -25% 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(201,168,76,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 40%, rgba(74,158,255,0.05) 0%, transparent 55%);
}
.cta-section > .container { position: relative; z-index: 1; }

/* ── Parallax elements use GPU layer ────────── */
[data-parallax] {
  will-change: transform;
  backface-visibility: hidden;
}

/* ── Hero text fade tied to parallax ────────── */
.hero-left {
  transition: opacity 0.05s linear;
}

/* ── About badge floats independently ────────── */
.about-badge {
  will-change: transform;
}

/* ── Float cards parallax ────────────────────── */
.float-card {
  will-change: transform;
  /* remove conflicting CSS animation when parallax takes over */
}

/* On mobile disable parallax-specific will-change to save memory */
@media (max-width: 768px) {
  [data-parallax],
  .hero-left,
  .hero-right,
  .about-img-wrap,
  .cta-parallax-bg {
    will-change: auto;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ── Featured Project Badge ───────────────────── */
.proj-featured-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold); color: var(--bg);
  padding: 4px 10px; border-radius: 100px;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 4px 12px rgba(201,168,76,0.4);
  animation: featuredGlow 2.5s ease-in-out infinite;
}
.proj-featured-badge i { font-size: 0.6rem; }
@keyframes featuredGlow {
  0%, 100% { box-shadow: 0 4px 12px rgba(201,168,76,0.4); }
  50%       { box-shadow: 0 4px 20px rgba(201,168,76,0.7); }
}