/* ============================================
   Vedant Parnaik — Portfolio
   ============================================ */

:root {
  --bg: #FAFAF7;           /* warm off-white */
  --bg-elev: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F5F4EE;
  --bg-soft: #F2F1EB;
  --border: #E8E5DE;
  --border-strong: #D4D1C8;
  --text: #18181B;         /* near black */
  --text-dim: #52525B;
  --text-muted: #8C8B85;
  --accent: #0D9488;       /* deep teal */
  --accent-soft: #E6F5F3;
  --accent-2: #6366F1;     /* indigo */
  --accent-3: #EC4899;     /* pink */
  --accent-glow: rgba(13, 148, 136, 0.25);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 50px -20px rgba(15, 23, 42, 0.18), 0 8px 20px -10px rgba(15, 23, 42, 0.08);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --radius: 12px;
  --radius-lg: 18px;

  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

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

ul { list-style: none; }

/* ============================================
   Background effects
   ============================================ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}

.bg-glow {
  position: fixed;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 40%, rgba(13, 148, 136, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(236, 72, 153, 0.10) 0%, transparent 55%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  animation: glow-shift 14s ease-in-out infinite alternate;
}

@keyframes glow-shift {
  0%   { transform: translateX(-60%) translateY(0); }
  100% { transform: translateX(-40%) translateY(50px); }
}

/* ============================================
   Container
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, padding .25s ease, background .25s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.logo-mark {
  color: var(--accent);
  font-size: 18px;
  animation: spin 12s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

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

.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  position: relative;
}

.nav-links a:hover { color: var(--text); }

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}

.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.35);
  background: #000;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s ease;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .005em;
  cursor: pointer;
  transition: all .2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.35);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-large {
  padding: 16px 32px;
  font-size: 15px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 50px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text { max-width: 720px; }

/* Portrait */
.hero-portrait {
  position: relative;
  justify-self: center;
}

.portrait-frame {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.portrait-bg {
  position: absolute;
  inset: -16px -16px auto auto;
  width: 340px;
  height: 340px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  filter: blur(40px);
  opacity: .25;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  background: rgba(13, 148, 136, 0.06);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  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 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.hero-title .line {
  display: block;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-subtitle strong { color: var(--text); font-weight: 600; }

.inline-link {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.inline-link:hover { border-bottom-color: var(--accent); }

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .01em;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: .55;
  transition: opacity .25s ease;
}

.scroll-indicator:hover { opacity: 1; }

.mouse {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  position: relative;
}

.wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--text-dim);
  border-radius: 2px;
  animation: scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 100px 0;
  position: relative;
}

#about { padding-top: 65px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 56px;
}

.section-head.center {
  justify-content: center;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: .05em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

.about-photo {
  position: relative;
  display: block;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s ease;
}

.about-card:hover .about-photo img { transform: scale(1.03); }

.about-photo figcaption {
  position: absolute;
  inset: 0 0 auto 0;
  padding: 22px 22px 28px;
  background: linear-gradient(180deg, rgba(7,9,13,.92) 0%, rgba(7,9,13,.65) 60%, transparent 100%);
  color: #fff;
}

.about-photo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.about-photo-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding: 3px 9px;
  background: rgba(13, 148, 136, 0.18);
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 6px;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.about-photo h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}

.about-photo p {
  font-size: 13.5px;
  color: rgba(255,255,255,.82);
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   Timeline / Experience
   ============================================ */
.timeline {
  position: relative;
  padding-left: 40px;
  border-left: 1px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 56px;
}

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

.timeline-marker {
  position: absolute;
  left: -47px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.exp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.exp-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.role-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: 6px;
  font-weight: 500;
  vertical-align: middle;
}

.company {
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
}

.exp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.sep { opacity: .5; }

.exp-points {
  margin-bottom: 18px;
}

.exp-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

.exp-points li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 13px;
  top: 4px;
}

.exp-points strong { color: var(--text); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  transition: all .2s ease;
}

.tags span:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   Gallery — 4 columns in a zigzag pattern
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

/* Zigzag: lift odd items, drop even items */
.gallery-item:nth-child(odd) {
  transform: translateY(0);
}

.gallery-item:nth-child(even) {
  margin-top: 64px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s ease;
}

.gallery-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-item figcaption {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--border);
}

.gallery-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding: 3px 9px;
  background: var(--accent-soft);
  border-radius: 6px;
  margin-bottom: 10px;
  letter-spacing: .03em;
}

.gallery-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
  color: var(--text);
}

.gallery-item p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============================================
   Skills
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.skill-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}

.skill-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.skill-card:hover::before { opacity: 1; }

.skill-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.skill-icon svg { width: 22px; height: 22px; }

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

.skill-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-card li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
}

/* ============================================
   Projects
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.project-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-card.featured {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.07) 0%, rgba(99, 102, 241, 0.06) 100%);
  border-color: rgba(13, 148, 136, 0.3);
  grid-column: span 2;
}

.project-tag-row { margin-bottom: 12px; }

.featured-pill {
  display: inline-block;
  padding: 5px 11px;
  background: var(--accent);
  color: #06241f;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.project-card.featured .project-title { font-size: 1.7rem; }

.project-subtitle {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

.project-desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 8px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  font-family: var(--font-mono);
  transition: color .2s ease;
}

.project-links a:hover { color: var(--accent); }

.project-links .status {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(236, 72, 153, 0.1);
  color: var(--accent-3);
  border-radius: 6px;
}

.project-card .tags { margin-bottom: 18px; }

.more-link-wrap {
  text-align: center;
  margin-top: 40px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: all .2s ease;
}

.more-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* ============================================
   Publications
   ============================================ */
.pubs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pub {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .25s ease;
}

.pub:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.pub-venue {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .03em;
  margin-bottom: 10px;
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 6px;
}

.pub-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.pub-authors {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.pub-abstract {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.pub-link:hover { text-decoration: underline; }

/* ============================================
   Contact
   ============================================ */
.contact-section {
  text-align: center;
}

.contact-section .section-head { justify-content: center; }

.contact-lead {
  max-width: 640px;
  margin: 0 auto 50px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 50px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  transition: all .25s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 14.5px;
  color: var(--text);
  font-weight: 500;
}

.contact-cta { margin-top: 30px; }

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-tag {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-right p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   Reveal animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: .1s; }
.fade-in:nth-child(2) { animation-delay: .25s; }
.fade-in:nth-child(3) { animation-delay: .4s; }
.fade-in:nth-child(4) { animation-delay: .55s; }
.fade-in:nth-child(5) { animation-delay: .7s; }

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-card { position: static; }

  .project-card.featured { grid-column: span 1; }
  .project-card.featured .project-title { font-size: 1.4rem; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }
  .hero-portrait { order: -1; justify-self: start; }
  .portrait-frame, .portrait-bg { width: 220px; height: 220px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(even) { margin-top: 0; }
}

@media (max-width: 768px) {
  .container, .nav-inner, .hero-inner { padding: 0 22px; }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    flex-direction: column;
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform .3s ease;
    align-items: flex-start;
  }

  .nav-links.open { transform: translateY(0); }

  .nav-toggle { display: flex; }

  .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); }

  .section { padding: 70px 0; }
  .section-head { margin-bottom: 36px; }

  .hero { padding: 100px 0 60px; }
  .hero-cta { margin-bottom: 56px; }

  .timeline { padding-left: 28px; }
  .timeline-marker { left: -34px; }

  .exp-header { flex-direction: column; gap: 4px; align-items: flex-start; }

  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }

  .skill-card, .project-card, .pub { padding: 22px; }

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
