/* ================================================================
   PORTFOLIO — styles.css
   Design system: Inter typeface, indigo-violet accent, precision spacing
   ================================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Palette — Light */
  --color-bg:          #FAFAFA;
  --color-bg-alt:      #F4F4F5;
  --color-surface:     #FFFFFF;
  --color-border:      #E4E4E7;
  --color-text:        #09090B;
  --color-text-muted:  #71717A;
  --color-text-faint:  #A1A1AA;

  /* Signature accent — indigo-violet */
  --color-accent:      #5B4CF5;
  --color-accent-dim:  #7C6CF8;
  --color-accent-glow: rgba(91, 76, 245, 0.12);
  --color-accent-bg:   rgba(91, 76, 245, 0.07);

  /* Typography */
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --size-xs:     0.75rem;    /* 12px */
  --size-sm:     0.875rem;   /* 14px */
  --size-base:   1rem;       /* 16px */
  --size-lg:     1.125rem;   /* 18px */
  --size-xl:     1.25rem;    /* 20px */
  --size-2xl:    1.5rem;     /* 24px */
  --size-3xl:    1.875rem;   /* 30px */
  --size-4xl:    2.25rem;    /* 36px */
  --size-5xl:    3rem;       /* 48px */
  --size-6xl:    3.75rem;    /* 60px */
  --size-7xl:    4.5rem;     /* 72px */

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

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 24px rgba(0,0,0,0.07), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 40px rgba(0,0,0,0.09), 0 8px 16px rgba(0,0,0,0.05);

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;

  /* Layout */
  --nav-height:   64px;
  --max-width:    1120px;
  --section-gap:  var(--space-32);
}

/* Dark mode tokens */
[data-theme="dark"] {
  --color-bg:          #09090B;
  --color-bg-alt:      #111113;
  --color-surface:     #18181B;
  --color-border:      #27272A;
  --color-text:        #FAFAFA;
  --color-text-muted:  #A1A1AA;
  --color-text-faint:  #52525B;
  --color-accent-glow: rgba(124, 108, 248, 0.18);
  --color-accent-bg:   rgba(124, 108, 248, 0.10);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg:  0 10px 24px rgba(0,0,0,0.35), 0 4px 8px rgba(0,0,0,0.2);
  --shadow-xl:  0 20px 40px rgba(0,0,0,0.45), 0 8px 16px rgba(0,0,0,0.25);
}


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

html {
  scroll-behavior: smooth;
  /* Offset anchors for sticky nav */
  scroll-padding-top: calc(var(--nav-height) + 16px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--duration-slow) var(--ease-out),
              color var(--duration-slow) var(--ease-out);
  overflow-x: hidden;
}

img {
  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;
}

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

/* Focus ring (accessibility) */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ── 3. UTILITIES ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

/* Skip link */
.skip-link {
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--size-sm);
  transform: translateY(-200%);
  transition: transform var(--duration-base);
}
.skip-link:focus { transform: translateY(0); }


/* ── 4. SECTION COMMON ─────────────────────────────────────────── */
.section {
  padding-block: var(--section-gap);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-heading {
  font-size: clamp(var(--size-3xl), 4vw, var(--size-5xl));
  font-weight: 200;  /* Ultra-light — signature weight contrast */
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.section-intro {
  margin-bottom: var(--space-16);
}


/* ── 5. BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: var(--size-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 2px 8px var(--color-accent-glow), 0 1px 2px rgba(0,0,0,0.08);
}
.btn-primary:hover {
  background: var(--color-accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--color-accent-glow), 0 2px 4px rgba(0,0,0,0.1);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-faint);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}


/* ── 6. NAVIGATION ─────────────────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  /* Glassmorphism border */
  border-bottom: 1px solid transparent;
  transition: background var(--duration-slow) var(--ease-out),
              border-color var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out);
}

/* Scrolled state — added by JS */
.nav-header.scrolled {
  background: rgba(250, 250, 250, 0.85);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}
[data-theme="dark"] .nav-header.scrolled {
  background: rgba(9, 9, 11, 0.85);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  font-size: var(--size-sm);
  letter-spacing: -0.01em;
  transition: opacity var(--duration-base);
}
.nav-logo:hover { opacity: 0.75; }

.nav-logo-initials {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-logo-name {
  color: var(--color-text);
}

/* Desktop links */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-1);
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  font-weight: 400;
  transition: color var(--duration-base), background var(--duration-base);
}
.nav-link:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}
.nav-link.active {
  color: var(--color-accent);
  font-weight: 500;
}

/* Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme toggle */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: color var(--duration-base), background var(--duration-base);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Nav resume button */
.nav-resume-btn {
  display: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  transition: all var(--duration-base);
}
@media (min-width: 768px) { .nav-resume-btn { display: inline-flex; } }
.nav-resume-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  width: 36px;
  height: 36px;
  gap: 5px;
  border-radius: var(--radius-sm);
  padding: 4px;
  color: var(--color-text);
}
@media (min-width: 768px) { .hamburger { display: none; } }

.hamburger-bar {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-out);
}
.hamburger-bar:nth-child(1) { width: 20px; }
.hamburger-bar:nth-child(2) { width: 14px; }
.hamburger-bar:nth-child(3) { width: 20px; }

/* Open state */
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 20px;
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-4px);
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 20px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-6) var(--space-8);
}
.mobile-menu.open {
  display: flex;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-link {
  display: block;
  padding: var(--space-3) var(--space-2);
  font-size: var(--size-lg);
  font-weight: 400;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--duration-base);
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--color-text); }
.mobile-link-cta {
  color: var(--color-accent);
  font-weight: 500;
  border-bottom: none;
  margin-top: var(--space-4);
}


/* ── 7. HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-24);
  overflow: hidden;
}

/* Signature glow — the unique atmospheric element */
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(
    ellipse at center,
    var(--color-accent-glow) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-heading {
  display: flex;
  flex-direction: column;
  font-size: clamp(var(--size-5xl), 7vw, var(--size-7xl));
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.hero-heading-accent {
  color: var(--color-accent);
  font-weight: 300;
}

.hero-sub {
  font-size: clamp(var(--size-base), 2vw, var(--size-xl));
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: var(--space-10);
}
.hero-sub strong {
  color: var(--color-text);
  font-weight: 500;
}

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

.hero-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.badge {
  font-size: var(--size-xs);
  font-weight: 500;
  color: var(--color-text-muted);
}
.badge-divider { color: var(--color-text-faint); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.4;
  transition: opacity var(--duration-base);
}
.scroll-indicator:hover { opacity: 0.7; }
.scroll-indicator-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}
.scroll-indicator-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}


/* ── 8. ABOUT ──────────────────────────────────────────────────── */
.about {
  background: var(--color-bg-alt);
}

.about-grid {
  display: grid;
  gap: var(--space-16);
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 380px 1fr;
    gap: var(--space-20);
    align-items: center;
  }
}

/* Photo */
.about-photo-wrap {
  position: relative;
  width: fit-content;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .about-photo-wrap { margin-inline: 0; }
}

.about-photo-frame {
  width: 280px;
  height: 330px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-border);
  box-shadow: var(--shadow-xl);
}
@media (min-width: 768px) {
  .about-photo-frame { width: 340px; height: 400px; }
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--duration-slow) var(--ease-out);
}
.about-photo-frame:hover .about-photo { transform: scale(1.03); }

/* Placeholder when image not found */
.photo-placeholder {
  background: linear-gradient(135deg, var(--color-border) 0%, var(--color-bg-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-placeholder::after {
  content: '📸 headshot.jpg';
  font-size: var(--size-sm);
  color: var(--color-text-faint);
}

.about-photo-badge {
  position: absolute;
  bottom: -var(--space-3);
  right: -var(--space-3);
  bottom: -12px;
  right: -12px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--size-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.status-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* About text */
.about-text {
  max-width: 600px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.about-body p {
  font-size: var(--size-base);
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* Skills */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skill-tag {
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--size-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--duration-base);
}
.skill-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-bg);
}


/* ── 9. EXPERIENCE / TIMELINE ─────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

/* The vertical rail */
.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 11px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--color-accent),
    var(--color-border) 80%
  );
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-10);
}
.timeline-item:last-child { padding-bottom: 0; }

/* Dot on rail */
.timeline-marker {
  position: absolute;
  top: 8px;
  left: calc(-1 * var(--space-8) + 5px);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  transition: background var(--duration-base);
  z-index: 1;
}
.timeline-item:hover .timeline-marker {
  background: var(--color-accent);
}

/* Card */
.timeline-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base), border-color var(--duration-base), transform var(--duration-base);
}
.timeline-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.timeline-card-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
@media (min-width: 640px) {
  .timeline-card-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.timeline-role {
  font-size: var(--size-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.timeline-org {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.timeline-period {
  font-size: var(--size-xs);
  font-weight: 500;
  color: var(--color-accent);
  white-space: nowrap;
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent-bg);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  height: fit-content;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
  list-style: disc;
}
.timeline-bullets li {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}


/* ── 10. PROJECTS ─────────────────────────────────────────────── */
.projects {
  background: var(--color-bg-alt);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
}

/* Project card */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out),
              border-color var(--duration-base);
}
.project-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: rgba(91, 76, 245, 0.3);
}

.project-card-image-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.project-card:hover .project-card-image { transform: scale(1.04); }

/* Placeholder when image not found */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-border) 100%);
}
.img-placeholder::after {
  content: '📸 project image';
  font-size: var(--size-sm);
  color: var(--color-text-faint);
}

.project-card-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  padding: 2px 10px;
}

.project-card-body {
  flex: 1;
  padding: var(--space-6);
}

.project-card-title {
  font-size: var(--size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.project-card-desc {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}
.project-card-tags li {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-faint);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 2px 10px;
}

.project-card-footer {
  padding: var(--space-4) var(--space-6) var(--space-5);
  border-top: 1px solid var(--color-border);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-accent);
  transition: gap var(--duration-base);
}
.project-link:hover { gap: var(--space-3); }


/* ── 11. CONTACT ──────────────────────────────────────────────── */
.contact-inner {
  display: grid;
  gap: var(--space-16);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
    align-items: center;
  }
}

.contact-sub {
  font-size: var(--size-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-8);
  max-width: 440px;
}

.resume-download {
  display: inline-flex;
  gap: var(--space-2);
}

/* Contact cards */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
}
.contact-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.contact-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-bg);
  color: var(--color-accent);
  flex-shrink: 0;
  transition: background var(--duration-base);
}
.contact-card:hover .contact-card-icon {
  background: var(--color-accent);
  color: #fff;
}

.contact-card-body { flex: 1; min-width: 0; }

.contact-card-label {
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 2px;
}

.contact-card-value {
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-card-arrow {
  font-size: var(--size-lg);
  color: var(--color-text-faint);
  transition: all var(--duration-base);
  flex-shrink: 0;
}
.contact-card:hover .contact-card-arrow {
  color: var(--color-accent);
  transform: translateX(3px);
}


/* ── 12. FOOTER ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-10);
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-name {
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.footer-tagline {
  font-size: var(--size-xs);
  color: var(--color-text-faint);
  margin-top: 2px;
  letter-spacing: 0.06em;
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-link {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  transition: color var(--duration-base);
}
.footer-link:hover { color: var(--color-accent); }

.footer-copy {
  display: flex;
  gap: var(--space-3);
  font-size: var(--size-xs);
  color: var(--color-text-faint);
}


/* ── 13. SCROLL ANIMATIONS ─────────────────────────────────────── */

/* Initial hidden state */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

/* Staggered delays */
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 420ms; }
.reveal-delay-5 { transition-delay: 540ms; }

/* Visible state — added by JS IntersectionObserver */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
