/* ================================================================
   PRANAYA KHADKA — Portfolio  |  Professional editorial design
   ================================================================ */

:root {
  --white:   #ffffff;
  --off:     #f5f5f5;
  --border:  #e6e6e6;
  --muted:   #737373;
  --body:    #3d3d3d;
  --heading: #111111;

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Syne', var(--font);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --max: 1400px;
  --pad: clamp(24px, 4vw, 64px);
  --nav-h: 60px;
  --yellow: #FFD600;
  --yellow-dim: #CC9E00;
}

/* ================================================================
   DARK MODE
   ================================================================ */
body.dark {
  --white:   #111111;
  --off:     #1b1b1b;
  --border:  #2c2c2c;
  --muted:   #666666;
  --body:    #a8a8a8;
  --heading: #f0f0f0;
}

/* Smooth colour transitions */
body,
.nav, .about-section, .resume-section, .contact-section,
.footer, .form-group input, .form-group textarea,
.stack-chip, .proj-repo-btn, .nav-cta, .nav-link,
.project-img-frame, .resume-placeholder-box {
  transition-property: background-color, color, border-color, box-shadow;
  transition-duration: 0.35s;
  transition-timing-function: ease;
}

body.dark .nav {
  background: rgba(22,22,22,0.95);
  border-color: rgba(255,255,255,0.10);
}

/* ================================================================
   SCROLL PROGRESS BAR
   ================================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow), #ff9f1c);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ================================================================
   CUSTOM CURSOR DOT
   ================================================================ */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease), opacity 0.3s ease, width 0.2s ease, height 0.2s ease;
  opacity: 0;
}
.cursor-dot.visible { opacity: 1; }
.cursor-dot.hovering {
  width: 32px; height: 32px;
  background: transparent;
  border: 1.5px solid var(--yellow);
}

/* Hide on touch devices */
@media (hover: none) { .cursor-dot { display: none; } }


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: #f6edd9; /* Cream base, blocky colors come from SVG */
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Dark mode: deeper jewel tones */
body.dark {
  background: #181a1b;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ================================================================
   DYNAMIC ISLAND NAV
   ================================================================ */
/* Animated gradient ring property for @property API */
@property --ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Page-load entrance keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadePhoto {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes islandDrop {
  from { opacity: 0; transform: translateX(-50%) translateY(-32px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes ring-spin {
  to { --ring-angle: 360deg; }
}

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  height: 52px;
  width: auto;
  max-width: min(860px, calc(100vw - 24px));
  min-width: 280px;
  /* Always-dark island: works in both light & dark mode */
  background: rgba(14, 14, 14, 0.94);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
  /* Page-load animation */
  animation: islandDrop 0.7s var(--ease) 0.05s both;
}
.nav.scrolled {
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
}

.nav-inner {
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
/* Logo link — no container, just let the image show naturally */
.nav-logo-link {
  display: flex; align-items: center; flex-shrink: 0;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.nav-logo-link:hover { opacity: 1; }
.nav-logo { height: 34px; width: auto; }
.nav-links { display: flex; gap: 2px; }
.nav-link {
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,0.60);
  padding: 6px 13px; border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.10);
}
/* Contact CTA — frosted pill, distinct from plain nav links */
.nav-cta {
  font-size: 13px; font-weight: 600; padding: 7px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.22);
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: rgba(255,255,255,0.26);
  border-color: rgba(255,255,255,0.35);
}

/* ── SUN / MOON TOGGLE ── */
.theme-btn {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  width: 38px; height: 38px;
  border-radius: 50%; padding: 0; flex-shrink: 0;
  transition: background 0.2s;
}
.theme-btn:hover { background: rgba(255,255,255,0.12); }

/* Sun: shown in light mode */
.sun-icon {
  width: 22px; height: 22px;
  color: #f59e0b;
  display: block;
  animation: sun-glow 3s ease-in-out infinite;
  transition: color 0.3s;
}
/* Moon: shown in dark mode */
.moon-icon {
  width: 22px; height: 22px;
  color: #a78bfa;
  display: none;
  animation: moon-glow 3s ease-in-out infinite;
}
body.dark .sun-icon  { display: none; }
body.dark .moon-icon { display: block; }

/* Sun spins on hover — overrides glow */
.theme-btn:hover .sun-icon {
  animation: sun-spin 1.2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(245,158,11,0.9));
}

@keyframes sun-glow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(245,158,11,0.6))  drop-shadow(0 0 8px rgba(245,158,11,0.25)); }
  50%       { filter: drop-shadow(0 0 7px rgba(245,158,11,1.0))  drop-shadow(0 0 18px rgba(245,158,11,0.5)); }
}
@keyframes sun-spin {
  to { transform: rotate(360deg); }
}
@keyframes moon-glow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(167,139,250,0.5)); }
  50%       { filter: drop-shadow(0 0 8px rgba(167,139,250,0.95)) drop-shadow(0 0 16px rgba(167,139,250,0.4)); }
}

/* Buttons — hardcoded so they DON'T flip with --heading in dark mode */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 26px; border-radius: 8px; font-family: var(--font);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; line-height: 1;
  transition: transform 0.2s var(--ease), opacity 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

/* Light mode: dark button */
.btn-dark  { background: #111111; color: #ffffff; border-color: #111111; }
.btn-dark:hover { opacity: 0.82; transform: translateY(-1px); }

/* Dark mode: invert — white button with dark text so it's always readable */
body.dark .btn-dark  { background: #efefef; color: #111111; border-color: #efefef; }

/* Outline button */
.btn-outline { background: transparent; color: #111111; border-color: rgba(0,0,0,0.22); }
.btn-outline:hover { border-color: #111111; transform: translateY(-1px); }
body.dark .btn-outline { color: #efefef; border-color: rgba(255,255,255,0.28); }
body.dark .btn-outline:hover { border-color: #efefef; }

.btn-block { width: 100%; justify-content: center; }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .project-img-frame { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ================================================================
   SHARED TYPOGRAPHY
   ================================================================ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--yellow-dim); margin-bottom: 20px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1.5px;
  background: var(--yellow-dim);
  flex-shrink: 0;
}
body.dark .section-eyebrow { color: var(--yellow); }
body.dark .section-eyebrow::before { background: var(--yellow); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  max-width: 1100px; /* Hero stays compact, other sections use wider --max */
  margin: 0 auto;
  padding: calc(52px + 16px + 64px) var(--pad) 96px;
  display: grid;
  grid-template-columns: 1fr 490px;
  gap: 56px;
  align-items: center;
  min-height: 96vh;
  position: relative;
  /* Removed overflow: hidden so background can bleed out */
}

.hero-content, .hero-visual { position: relative; z-index: 2; }

.hero-tech-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: 1; /* Fully visible for SVG block colors */
  overflow: hidden; /* Prevent SVG bleeding into next section */
}
.hero-tech-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hidden on mobile to keep it clean */
@media (max-width: 900px) { .hero-tech-bg { display: none; } }

/* Page-load stagger on hero text */
.hero-eyebrow { animation: fadeUp 0.7s var(--ease) 0.18s both; }
.hero-name    { animation: fadeUp 0.9s var(--ease) 0.28s both; }
.hero-bio     { animation: fadeUp 0.7s var(--ease) 0.44s both; }
.hero-actions { animation: fadeUp 0.7s var(--ease) 0.58s both; }

.hero-content { padding-right: 32px; }

.hero-eyebrow {
  font-size: 13px; font-weight: 600;
  color: #1a1e22;           /* dark almost black */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
body.dark .hero-eyebrow { color: #eeddae; }

.hero-name {
  font-size: clamp(64px, 9.5vw, 132px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
  color: var(--heading);
  margin-bottom: 32px;
}
/* Gradient text */
@supports (-webkit-background-clip: text) {
  .hero-name {
    background: linear-gradient(
      135deg,
      #1a1e22 0%,
      #29343f 40%,
      #13171a 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  body.dark .hero-name {
    background: linear-gradient(
      135deg,
      #f3e8cc 0%,
      #FFD600 55%,
      #458e9f 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

.hero-bio {
  font-size: 17px; color: var(--body); line-height: 1.7;
  max-width: 420px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-quote {
  max-width: 420px;
  padding-top: 24px;
  border-top: 1px solid rgba(26,30,34,0.1);
  animation: fadeUp 0.7s var(--ease) 0.65s both;
}
body.dark .hero-quote {
  border-top: 1px solid rgba(243,232,204,0.1);
}
.hero-quote p {
  font-family: Georgia, serif;
  font-size: 16.5px;
  font-style: italic;
  color: var(--heading);
  line-height: 1.6;
  margin-bottom: 10px;
}
.hero-quote cite {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #CC9E00; /* Yellow accent */
  font-style: normal;
}


.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  /* Page-load fade+scale on the photo */
  animation: fadePhoto 1.1s var(--ease) 0.30s both;
}

/* ── Animated gradient ring around circle photo ── */
.hero-photo-ring {
  width: 465px;
  height: 465px;
  border-radius: 50%;
  padding: 5px;
  /* Ring: monochrome to match BW photo — elegant silver/white spin */
  background: conic-gradient(
    from var(--ring-angle),
    #e0e0e0, #ffffff, #aaaaaa, #ffffff, #e0e0e0
  );
  animation: ring-spin 9s linear infinite;
  flex-shrink: 0;
  position: relative;
  filter: drop-shadow(0 0 18px rgba(0,0,0,0.18));
}

.hero-photo-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--off);
}
.hero-photo-wrap:hover { filter: brightness(1.03); }

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 65%;  /* shift down — shows face + body, not just trees */
  border-radius: 50%;
  transition: transform 0.6s var(--ease);
}
.hero-photo-ring:hover .hero-img { transform: scale(1.03); }

/* ================================================================
   PROJECTS — card grid + expandable detail
   ================================================================ */
.projects-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 100px;
}

/* Section header */
.projects-header { padding: 96px 0 56px; max-width: 560px; }
.projects-heading {
  font-size: clamp(36px, 5vw, 64px); font-weight: 800;
  letter-spacing: -0.045em; line-height: 1.0;
  color: var(--heading); margin-bottom: 16px;
}
.projects-sub { font-size: 16px; color: var(--body); line-height: 1.65; }

/* ── Card grid ── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 0;
}

/* Individual card — full-bleed landscape image */
.proj-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  background: var(--off);
  outline: none;
  box-shadow: 0 0 0 0 rgba(42,168,162,0);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.proj-card:hover { transform: translateY(-6px) scale(1.01); }
.proj-card.active {
  box-shadow:
    0 0 0 3px #CC9E00,
    0 20px 60px rgba(255,214,0,0.22);
  transform: translateY(-6px) scale(1.01);
}
.proj-card:focus-visible {
  box-shadow: 0 0 0 3px #CC9E00;
}

/* Card image */
.proj-card > img {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.proj-card:hover > img,
.proj-card.active > img { transform: scale(1.06); }

/* Gradient overlay */
.proj-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.10) 40%,
    rgba(0,0,0,0.72) 100%
  );
  transition: background 0.35s ease;
}
.proj-card:hover .proj-card-overlay,
.proj-card.active .proj-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.12) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.82) 100%
  );
}

/* Top row: tag + number */
.proj-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.proj-card-tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 5px 11px; border-radius: 100px;
}
.proj-card-num {
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.45); letter-spacing: 0.05em;
}

/* Bottom: title + hint */
.proj-card-bottom { display: flex; flex-direction: column; gap: 8px; }
.proj-card-title {
  font-size: clamp(15px, 1.6vw, 18px); font-weight: 700;
  color: #fff; line-height: 1.25; letter-spacing: -0.02em;
  text-align: left;
}
.proj-card-hint {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,0.55);
  transform: translateY(4px); opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s ease;
}
.proj-card:hover .proj-card-hint,
.proj-card.active .proj-card-hint {
  transform: translateY(0); opacity: 1;
}

/* ── Expandable detail panel ── */
.proj-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.65s var(--ease),
    opacity    0.45s ease,
    margin-top 0.45s var(--ease);
  margin-top: 0;
}
.proj-detail.open {
  max-height: 900px;   /* larger than any detail panel */
  opacity: 1;
  margin-top: 24px;
  margin-bottom: 24px;
}

.proj-detail-inner {
  position: relative;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 48px 48px;
}

/* Close button */
.proj-detail-close {
  position: absolute; top: 20px; right: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  color: var(--heading);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.proj-detail-close:hover {
  background: var(--heading); color: var(--white);
  transform: rotate(90deg);
}

.project-item-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.project-item-inner--flip .project-img-col { order: 2; }
.project-item-inner--flip .project-content-col { order: 1; }

/* ── PROJECT IMAGE FRAME — clean, no tilt/spin ── */
.project-img-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--off);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

/* On hover: clean lift + scale, no rotation */
.project-item:hover .project-img-frame {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,0.11);
}

.project-img-frame img {
  width: 100%;
  height: auto;          /* FULL image — no cropping */
  object-fit: contain;
  display: block;
}

/* Content */
.project-content-col { display: flex; flex-direction: column; gap: 16px; }

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.proj-type {
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
}
.proj-repo-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--heading);
  padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 6px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.proj-repo-btn:hover {
  background: var(--heading); color: #fff;
  border-color: var(--heading); transform: translateY(-1px);
}

.proj-title {
  font-size: clamp(26px, 3vw, 38px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.1; color: var(--heading);
}
.proj-desc {
  font-size: 15.5px; color: var(--body); line-height: 1.65;
}

.proj-stack-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.stack-chip {
  font-size: 12.5px; font-weight: 500; color: var(--heading);
  background: var(--off); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 4px; letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
}
.stack-chip:hover { background: var(--heading); color: var(--white); }

/* ================================================================
   ABOUT
   ================================================================ */
.about-section {
  background: var(--white);
  padding: 96px var(--pad);
  border-top: 1px solid var(--border);
}
.about-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.about-title {
  font-size: clamp(30px, 3.5vw, 46px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.1; color: var(--heading); margin-bottom: 24px;
}
.about-p {
  font-size: 16px; color: var(--body); line-height: 1.7;
  margin-bottom: 14px; max-width: 460px;
}
.about-p:last-child { margin-bottom: 0; }

.about-skills { display: flex; flex-direction: column; gap: 28px; }
.skill-row { display: flex; flex-direction: column; gap: 10px; }
.skill-label {
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ================================================================
   RESUME — Timeline layout
   ================================================================ */
.resume-section { padding: 96px var(--pad); background: var(--off); }
.resume-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.35fr;
  gap: 80px; align-items: start;
}
.resume-copy { position: sticky; top: calc(52px + 30px); }
.resume-title {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.1; color: var(--heading); margin-bottom: 16px;
}
.resume-p { font-size: 16px; color: var(--body); line-height: 1.65; margin-bottom: 28px; }
.resume-dl-btn { margin-top: 0; }

/* Timeline */
.resume-timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.timeline-item:first-child { padding-top: 0; }
.timeline-item:last-child  { border-bottom: none; padding-bottom: 0; }
.tl-year {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); padding-top: 4px; line-height: 1.4;
}
.tl-title {
  font-size: 16.5px; font-weight: 700;
  color: var(--heading); margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.tl-place {
  font-size: 13px; font-weight: 500;
  color: #CC9E00;  /* yellow accent */
  margin-bottom: 8px;
}
body.dark .tl-place { color: #FFD600; }
.tl-desc {
  font-size: 14.5px; color: var(--body); line-height: 1.65;
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact-section { padding: 96px var(--pad); }
.contact-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 80px; align-items: start;
}
.contact-title {
  font-size: clamp(32px, 4vw, 56px); font-weight: 700;
  letter-spacing: -0.045em; line-height: 1.04; color: var(--heading); margin-bottom: 16px;
}
.contact-p { font-size: 16px; color: var(--body); line-height: 1.65; margin-bottom: 32px; }
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-links a { font-size: 15px; font-weight: 500; color: var(--heading); transition: color 0.2s; }
.contact-links a:hover { color: #CC9E00; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--heading); }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--off);
  font-family: var(--font); font-size: 15px; color: var(--heading);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--heading); background: var(--white);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.06);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ================================================================
   FOOTER — upgraded
   ================================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px var(--pad);
  background: var(--white);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer-left {
  display: flex; flex-direction: column; gap: 3px;
}
.footer-name {
  font-size: 14px; font-weight: 700;
  color: var(--heading); letter-spacing: -0.02em;
  font-family: var(--font-display);
}
.footer-tagline {
  font-size: 12px; color: var(--muted);
}
.footer-links {
  display: flex; gap: 24px;
}
.footer-links a {
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--heading); }
.footer-copy {
  font-size: 12px; color: var(--muted);
  text-align: right;
}

/* ================================================================
   PROFESSIONAL UPGRADES
   ================================================================ */

/* Syne display font on all major headings */
.hero-name,
.projects-heading,
.about-title,
.resume-title,
.contact-title,
.proj-title {
  font-family: var(--font-display);
}

/* ── Available for work badge ── */
.hero-available {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
body.dark .hero-available {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.2);
}
.available-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
  animation: pulse-green 2s ease-in-out infinite;
}
body.dark .available-dot { background: #4ade80; }
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(22,163,74,0); }
}

/* ── Timeline vertical line + animated dots ── */
.resume-timeline { position: relative; }
.resume-timeline::before {
  content: '';
  position: absolute;
  top: 6px; bottom: 6px;
  left: 39px;
  width: 1px;
  background: linear-gradient(to bottom, var(--yellow) 0%, var(--border) 70%, transparent);
}
.timeline-item {
  transition: transform 0.25s var(--ease);
}
.timeline-item:hover { transform: translateX(6px); }
.timeline-item::before {
  content: '';
  position: absolute;
  top: 32px; left: 34px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--yellow);
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
}
body.dark .timeline-item::before { background: var(--off); }
.timeline-item:hover::before {
  background: var(--yellow);
  transform: scale(1.25);
}

/* ── Contact links — row style with arrows ── */
.contact-links {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border);
}
.contact-links a {
  font-size: 15px; font-weight: 500;
  color: var(--heading);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.2s, padding-left 0.2s var(--ease);
}
.contact-links a:hover {
  color: var(--yellow-dim);
  padding-left: 10px;
}
.contact-links a::after {
  content: '↗';
  font-size: 13px;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.2s;
}
.contact-links a:hover::after {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ── About section section divider ── */
.about-section {
  border-top: 1px solid var(--border);
}

/* ── Section number labels ── */
.section-number {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--yellow-dim);
  margin-bottom: 6px;
}
body.dark .section-number { color: var(--yellow); }

/* ── Improved skill chips ── */
.stack-chip {
  transition: all 0.2s var(--ease) !important;
}
.stack-chip:hover {
  background: var(--heading) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* ── Scroll reveal scale ── */
.reveal {
  transform: translateY(24px) scale(0.98);
}
.reveal.in-view {
  transform: translateY(0) scale(1);
}


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  /* Island: hide nav links on tablet/mobile */
  .nav-links, .nav-cta { display: none; }
  .hero {
    grid-template-columns: 1fr; min-height: auto;
    gap: 48px; padding-bottom: 64px;
    text-align: left;
  }
  .hero-content { padding-right: 0; order: 1; }
  .hero-visual { order: 2; justify-content: flex-start; animation: none; }
  /* Scale down circle ring on mobile */
  .hero-photo-ring { width: 300px; height: 300px; }
  .hero-bio { max-width: 100%; }

  .proj-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .proj-detail-inner { padding: 32px 24px; }
  .projects-header { padding: 64px 0 40px; }
  .resume-inner { grid-template-columns: 1fr; gap: 40px; }
  .resume-copy { position: static; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .projects-header { padding: 64px 0 48px; }
}
@media (max-width: 540px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .hero-name { font-size: 56px; }
  .hero-photo-ring { width: 240px; height: 240px; }
  .proj-grid { grid-template-columns: 1fr; }
}
