/* ============================================================
   Pugazharasan — Portfolio
   Light editorial-tech aesthetic — sandal / cream
   ============================================================ */

:root {
  /* Color system */
  --bg: #f0e6d2;
  --bg-2: #e6d9bd;
  --surface: rgba(255, 251, 244, 0.55);
  --surface-2: rgba(255, 251, 244, 0.8);
  --border: rgba(35, 28, 20, 0.12);
  --border-strong: rgba(35, 28, 20, 0.22);
  --grid-line: rgba(35, 28, 20, 0.05);

  --text: #2a2420;
  --text-muted: #6b6055;
  --text-faint: #a49889;

  --accent: #0f766e;          /* deep teal */
  --accent-2: #c2703d;         /* terracotta */
  --accent-3: #b8862c;         /* muted gold */
  --accent-glow: rgba(15, 118, 110, 0.25);

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ol, ul { list-style: none; }

/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */
.bg-orbs {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: .18;
  will-change: transform;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -10%; left: -10%;
  animation: drift1 22s var(--ease) infinite alternate;
}
.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  bottom: -15%; right: -10%;
  animation: drift2 28s var(--ease) infinite alternate;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-3), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  opacity: .15;
  animation: drift3 18s var(--ease) infinite alternate;
}
@keyframes drift1 { to { transform: translate(80px, 60px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-100px, -80px) scale(.95); } }
@keyframes drift3 { to { transform: translate(-50%, -50%) rotate(120deg) scale(1.15); } }

.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

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

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; position: relative; }
.section-tight { padding: 40px 0; }

.section-head {
  margin-bottom: 56px;
  max-width: 900px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: lowercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 144;
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.accent { color: var(--accent); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: rgba(240, 230, 210, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), padding .3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  padding: 12px 32px;
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -.01em;
}
.nav-brand img { width: 28px; height: 28px; }
.nav-brand .dot { color: var(--accent); }

.nav-links {
  display: flex; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 999px;
}
.nav-links a {
  display: block;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 999px;
  transition: all .3s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--bg);
  background: var(--text);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav { padding: 14px 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; right: 16px; left: 16px;
    flex-direction: column;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(240, 230, 210, 0.95);
    backdrop-filter: blur(20px);
    transform: translateY(-10px); opacity: 0;
    pointer-events: none;
    transition: all .3s var(--ease);
  }
  .nav-links.open {
    transform: translateY(0); opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 12px 16px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: .65;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(15,118,110,.12), transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(194,112,61,.1), transparent 50%),
    linear-gradient(180deg, rgba(240,230,210,.2) 0%, rgba(240,230,210,.6) 100%);
}

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

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 12px rgba(15,118,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,118,110,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-sub strong { color: var(--text); font-weight: 500; }

.hero-roles {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 40px;
}
.role-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all .3s var(--ease);
}
.role-chip i { color: var(--accent); font-size: 12px; }
.role-chip:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-2px);
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: all .3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px var(--accent-glow);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute; bottom: -40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: float 3s var(--ease) infinite;
}
.mouse {
  width: 22px; height: 36px;
  border: 1.5px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}
.wheel {
  position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px;
  background: var(--accent);
  border-radius: 2px;
  animation: wheel 2s var(--ease) infinite;
}
@keyframes wheel { 0%,100% { transform: translate(-50%, 0); opacity: 1; } 50% { transform: translate(-50%, 10px); opacity: 0; } }
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text .lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -.01em;
  margin-bottom: 24px;
}
.about-text p { color: var(--text-muted); margin-bottom: 18px; max-width: 56ch; }
.about-text strong { color: var(--text); font-weight: 500; }

.about-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.about-meta > div { display: flex; flex-direction: column; gap: 4px; }
.about-meta span { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.about-meta strong { font-weight: 500; font-size: 14px; color: var(--text); }

.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.about-photo:hover img { transform: scale(1.05); }
.about-photo-frame {
  position: absolute; inset: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  pointer-events: none;
  background: linear-gradient(135deg, transparent 60%, rgba(15,118,110,.06));
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 360px; }
  .about-meta { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--bg-2);
  padding: 36px 28px;
  text-align: center;
  transition: background .3s var(--ease);
}
.stat:hover { background: var(--surface); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num::after { content: '+'; color: var(--accent); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .05em;
}
@media (max-width: 800px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.skill-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all .4s var(--ease);
}
.skill-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-4px);
}
.skill-card-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.skill-card-head i {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
  border-radius: 10px;
  font-size: 16px;
}
.skill-card-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -.01em;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  transition: all .25s var(--ease);
  cursor: default;
}
.chip:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.chip-accent {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--accent);
  font-weight: 500;
}
.chip-accent:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
@media (max-width: 800px) { .skills-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 32px;
  max-width: 880px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 8px; bottom: 8px; left: 7px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  opacity: .5;
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -29px; top: 24px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(15,118,110,.1);
}
.timeline-card {
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: all .4s var(--ease);
}
.timeline-card:hover {
  border-color: var(--border-strong);
  transform: translateX(6px);
}
.timeline-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.timeline-head .mono { font-size: 13px; }
.badge {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 12px;
  background: rgba(184, 134, 44, 0.12);
  color: var(--accent-3);
  border-radius: 999px;
  border: 1px solid rgba(184, 134, 44, 0.25);
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  margin-bottom: 4px;
  line-height: 1.3;
}
.timeline-card p { color: var(--text-muted); font-size: 14px; }

/* ============================================================
   CERTIFICATES
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.cert {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .4s var(--ease);
  backdrop-filter: blur(10px);
}
.cert:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
}
.cert-img {
  aspect-ratio: 16/10;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.cert-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.cert:hover .cert-img img { transform: scale(1.06); }
.cert-body {
  padding: 22px 24px;
  display: flex; flex-direction: column;
  flex-grow: 1;
}
.cert-issuer {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.cert-issuer img {
  width: 22px; height: 22px;
  border-radius: 4px;
  object-fit: contain;
  background: white;
  padding: 2px;
}
.cert-issuer span {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .03em;
}
.cert-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -.01em;
  margin-bottom: 10px;
  color: var(--text);
}
.cert-body .small { margin-bottom: 16px; }
.cert-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--accent);
  font-family: var(--font-mono);
  transition: gap .3s var(--ease);
}
.cert-link:hover { gap: 12px; }
.cert-link i { font-size: 11px; }

/* ============================================================
   CTA
   ============================================================ */
.cta-section { padding: 80px 0 120px; }
.cta {
  text-align: center;
  padding: 80px 32px;
  background:
    radial-gradient(ellipse at top, rgba(15,118,110,.08), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 880px;
  margin: 0 auto;
}
.cta p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 16px auto 32px;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(240, 230, 210, 0.6);
  backdrop-filter: blur(10px);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 36px 24px;
  flex-wrap: wrap; gap: 24px;
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all .3s var(--ease);
}
.socials a:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.footer-base {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 16px 24px;
  font-size: 12px;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s var(--ease) var(--d, 0s),
    transform .9s var(--ease) var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection { background: var(--accent); color: var(--bg); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   PAGE HEADER (used on Projects, Experience, Contact)
   ============================================================ */
.page-hero {
  padding: 180px 24px 80px;
  position: relative;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(15,118,110,.1), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 70%, rgba(194,112,61,.06), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .eyebrow { font-size: 14px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .98;
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 144;
  margin-top: 12px;
}
.page-hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p {
  margin: 24px auto 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .4s var(--ease);
  backdrop-filter: blur(10px);
}
.project:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.6);
}
.project-img {
  aspect-ratio: 16/10;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.project:hover .project-img img { transform: scale(1.07); }
.project-tag {
  position: absolute;
  top: 14px; right: 14px;
  padding: 4px 12px;
  background: rgba(240, 230, 210, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--accent);
  z-index: 2;
}
.project-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column;
  flex-grow: 1;
}
.project-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.project-body p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.project-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
}
.project-stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}
.project-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--accent);
  transition: gap .3s var(--ease);
}
.project-link:hover { gap: 12px; }

/* ============================================================
   FEATURED PROJECT
   ============================================================ */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.featured.reverse { grid-template-columns: 1fr 1.1fr; }
.featured.reverse .featured-img { order: 2; }
.featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--bg-2);
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-body .eyebrow { font-size: 13px; }
.featured-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 12px 0 18px;
}
.featured-body > p {
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.7;
}
.featured-bullets {
  list-style: none;
  margin-bottom: 24px;
}
.featured-bullets li {
  display: flex; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.featured-bullets li:last-child { border-bottom: 0; }
.featured-bullets i {
  color: var(--accent);
  margin-top: 4px;
  font-size: 13px;
}
.featured-bullets strong { color: var(--text); margin-right: 4px; }
.featured-bullets span { color: var(--text-muted); }
@media (max-width: 880px) {
  .featured, .featured.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }
  .featured.reverse .featured-img { order: 0; }
}

/* ============================================================
   EXPERIENCE TIMELINE (rich)
   ============================================================ */
.exp-timeline {
  position: relative;
  padding-left: 36px;
  max-width: 940px;
}
.exp-timeline::before {
  content: '';
  position: absolute;
  top: 8px; bottom: 8px; left: 7px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  opacity: .5;
}
.exp-item {
  position: relative;
  padding-bottom: 40px;
}
.exp-item:last-child { padding-bottom: 0; }
.exp-dot {
  position: absolute;
  left: -33px; top: 28px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(15,118,110,.1);
}
.exp-card {
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all .4s var(--ease);
}
.exp-card:hover {
  border-color: var(--border-strong);
  transform: translateX(6px);
}
.exp-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 6px;
}
.exp-period {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  padding: 5px 12px;
  background: rgba(15,118,110,.1);
  border: 1px solid rgba(15,118,110,.25);
  border-radius: 999px;
}
.exp-title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.exp-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -.01em;
}
.exp-card .at {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 14px;
}
.exp-card .at strong { color: var(--accent-2); }
.exp-card > p {
  color: var(--text-muted);
  margin: 14px 0;
  line-height: 1.7;
}
.exp-bullets {
  margin: 18px 0;
}
.exp-bullets li {
  display: flex; gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.exp-bullets li::before {
  content: '▸';
  color: var(--accent);
  flex-shrink: 0;
}
.exp-stack {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s var(--ease);
}
.contact-card:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}
.contact-card .ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(15,118,110,.1);
  color: var(--accent);
  border-radius: 12px;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.contact-card p, .contact-card a {
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}
.contact-card a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(10px);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.contact-form .sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all .3s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(15,118,110,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-header {
  padding: 160px 0 60px;
  position: relative;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1;
  font-variation-settings: "opsz" 144;
  margin-top: 16px;
  margin-bottom: 24px;
}
.page-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================================
   FILTER BAR (Projects page)
   ============================================================ */
.filter-bar {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-btn {
  padding: 9px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: .01em;
  transition: all .25s var(--ease);
}
.filter-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ============================================================
   PROJECT GRID
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .4s var(--ease);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: inherit;
}
.project-card.hide { display: none; }
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
}
.project-img {
  aspect-ratio: 16/10;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.project-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(240,230,210,.55));
}
.project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.project-card:hover .project-img img { transform: scale(1.06); }

.project-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column;
  flex-grow: 1;
}
.project-tags {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15,118,110,.08);
  color: var(--accent);
  border: 1px solid rgba(15,118,110,.2);
  letter-spacing: .02em;
}
.project-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.3;
}
.project-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}
.project-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  transition: gap .3s var(--ease);
  margin-top: auto;
}
.project-link i { font-size: 11px; }
.project-card:hover .project-link { gap: 12px; }

/* Accent chip */
.chip-accent {
  background: rgba(15,118,110,.1) !important;
  color: var(--accent) !important;
  border-color: rgba(15,118,110,.3) !important;
}
.chip-accent:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
}

/* ============================================================
   SPOTLIGHT (College/Research projects)
   ============================================================ */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0;
  margin-bottom: 24px;
}
.spotlight-rev .spotlight-img { order: 2; }
.spotlight-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
}
.spotlight-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(15,118,110,.08));
  pointer-events: none;
}
.spotlight-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.spotlight-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 14px 0 18px;
}
.spotlight-body p {
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.7;
  max-width: 56ch;
}
.spotlight-body strong { color: var(--text); font-weight: 500; }
.spotlight-list {
  display: grid;
  gap: 10px;
}
.spotlight-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px;
  color: var(--text);
}
.spotlight-list li i {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: rgba(15,118,110,.1);
  color: var(--accent);
  border-radius: 6px;
  font-size: 10px;
  margin-top: 2px;
}

@media (max-width: 800px) {
  .spotlight { grid-template-columns: 1fr; gap: 32px; padding: 24px 0; }
  .spotlight-rev .spotlight-img { order: 0; }
}

/* ============================================================
   EXPERIENCE PAGE — Timeline Pro
   ============================================================ */
.timeline-pro { max-width: 1000px; }
.timeline-card-feature {
  background: linear-gradient(135deg, var(--surface), rgba(15,118,110,.04));
  border-color: rgba(15,118,110,.2);
  padding: 32px;
}
.timeline-dot-active {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(15,118,110,.2), 0 0 20px rgba(15,118,110,.4);
}

.timeline-pro .timeline-head {
  align-items: flex-start;
  margin-bottom: 18px;
}
.timeline-pro .timeline-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -.01em;
  line-height: 1.25;
  margin: 6px 0 4px;
}
.timeline-pro .company {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.badge-live {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(15,118,110,.12);
  color: var(--accent);
  border-color: rgba(15,118,110,.3);
}

.role-summary {
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.7;
  max-width: 70ch;
}
.role-summary strong { color: var(--text); font-weight: 500; }

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.role-block {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s var(--ease);
}
.role-block:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.role-block i {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: rgba(15,118,110,.1);
  color: var(--accent);
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}
.role-block h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -.005em;
}
.role-block p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.stack-list {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.stack-list .mono { margin-right: 4px; font-size: 12px; }

@media (max-width: 700px) {
  .role-grid { grid-template-columns: 1fr; }
  .timeline-pro .timeline-head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}
.contact-info, .contact-form-wrap {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.info-head {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}

.info-list {
  margin: 28px 0 32px;
  display: grid;
  gap: 22px;
}
.info-list li {
  display: flex; gap: 16px;
  align-items: flex-start;
}
.info-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(15,118,110,.08);
  color: var(--accent);
  border: 1px solid rgba(15,118,110,.2);
  border-radius: 12px;
  font-size: 16px;
}
.info-list span.mono { display: block; margin-bottom: 4px; }
.info-list a, .info-list p {
  color: var(--text);
  font-size: 15px;
  word-break: break-word;
}
.info-list a:hover { color: var(--accent); }

.info-availability {
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(15,118,110,.08);
  border: 1px solid rgba(15,118,110,.2);
  border-radius: 999px;
  font-size: 13px;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: flex; flex-direction: column;
  gap: 6px;
}
.contact-form label > span {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: .03em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: all .25s var(--ease);
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-faint);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(15,118,110,.1);
}
.form-submit {
  align-self: flex-start;
  margin-top: 8px;
}
.form-status {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 4px;
  min-height: 18px;
}
.form-status.success { color: var(--accent); }
.form-status.error { color: var(--accent-2); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info, .contact-form-wrap { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
}
