/* ═══════════════════════════════════════════════
   PARIKSHIT SINGH PORTFOLIO — styles.css
   Mobile-first approach: base = mobile, scale up
   ═══════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --bg:       #07080a;
  --bg2:      #0d0f12;
  --bg3:      #12151a;
  --surface:  #161a20;
  --surface2: #1c2128;
  --border:   rgba(255,255,255,0.06);
  --border2:  rgba(255,255,255,0.12);
  --accent:   #00e5ff;
  --accent2:  #7c5cfc;
  --accent3:  #ff6b35;
  --text:     #e8eaed;
  --muted:    #6b7280;
  --muted2:   #9ca3af;
  --green:    #00d68f;

  --font-display: 'Oswald', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Spacing scale */
  --section-pad: 70px;
}

/* ─── 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;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 2px; }

/* ─── CUSTOM CURSOR — pointer devices only ─── */
#cursor-dot,
#cursor-ring { display: none; }

@media (pointer: fine) {
  body { cursor: none; }
  a, button, .btn-primary, .btn-secondary, #back-to-top { cursor: none; }

  #cursor-dot {
    display: block;
    position: fixed;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    /* Only animate size/colour — JS owns position via rAF */
    transition: width 0.2s, height 0.2s, background 0.2s, opacity 0.3s;
    box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(0,229,255,0.3);
  }

  #cursor-ring {
    display: block;
    position: fixed;
    width: 36px; height: 36px;
    border: 1.5px solid rgba(0,229,255,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    /* Only animate size/colour — JS owns position via rAF */
    transition:
      width  0.35s cubic-bezier(0.25,0.46,0.45,0.94),
      height 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
      border-color 0.3s,
      background 0.3s,
      opacity 0.3s;
  }

  body.cursor-hover #cursor-dot  { width: 10px; height: 10px; background: var(--accent2); box-shadow: 0 0 14px var(--accent2); }
  body.cursor-hover #cursor-ring { width: 52px; height: 52px; border-color: rgba(124,92,252,0.6); background: rgba(124,92,252,0.04); }
  body.cursor-click #cursor-dot  { width: 4px; height: 4px; }
  body.cursor-click #cursor-ring { width: 28px; height: 28px; }
}

/* ─── BACKGROUND TEXTURE ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 1;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;       /* mobile base */
  position: relative;
  z-index: 2;
}
section { padding: var(--section-pad) 0; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(7,8,10,0.85);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

/* Desktop nav links — hidden on mobile by default */
.nav-links {
  display: none;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted2);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  display: none;   /* hidden on mobile */
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(0,229,255,0.3);
  padding: 8px 18px;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
  border-radius: 2px;
}
.nav-cta:hover { background: rgba(0,229,255,0.08); border-color: var(--accent); }

/* Hamburger — shown on mobile */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 2px;
  padding: 8px;
}
.menu-btn span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(7,8,10,0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.menu-close {
  position: absolute;
  top: 20px; right: 20px;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--muted2);
  font-size: 18px;
  width: 36px; height: 36px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.menu-close:hover { color: var(--accent); border-color: rgba(0,229,255,0.4); }

.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted2);
  text-decoration: none;
  transition: color 0.2s;
  padding: 6px 0;
}
.mobile-link:hover { color: var(--accent); }
.mobile-hire {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--accent);
  border: 1px solid rgba(0,229,255,0.3);
  padding: 12px 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(14px, 3vw, 16px);
}
.mobile-hire:hover { background: rgba(0,229,255,0.08); }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero-glow {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.07) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.hero-glow2 {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,252,0.08) 0%, transparent 70%);
  bottom: 0; left: -100px;
  pointer-events: none;
}

/* Mobile hero: single column */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  width: 100%;
  padding: 100px 0 60px;
}

/* Stats panel hidden on mobile */
.hero-stats-panel { display: none; }

.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--accent);
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

h1.hero-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 14vw, 108px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
  text-transform: uppercase;
}
h1.hero-name .accent  { color: var(--accent); }
h1.hero-name .accent2 { color: var(--accent2); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(11px, 2.5vw, 16px);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}
.hero-desc {
  font-size: 15px;
  color: var(--muted2);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 36px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s 0.65s forwards;
}
.hero-desc strong { color: var(--text); font-weight: 500; }
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,229,255,0.25); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--border2);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,229,255,0.04); }

/* ─── STATS PANEL (desktop only) ─── */
.hero-stats-panel {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeLeft 0.9s 0.9s forwards;
}
.hero-stats-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.panel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.stat-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.stat-label { font-size: 13px; color: var(--muted2); font-weight: 300; }
.stat-value { font-family: var(--font-mono); font-size: 14px; color: var(--text); font-weight: 500; }
.stat-value.green  { color: var(--green); }
.stat-value.accent  { color: var(--accent); }
.stat-value.accent2 { color: var(--accent2); }
.bar-wrap { margin-top: 20px; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; }
.bar-label span { font-size: 12px; font-family: var(--font-mono); }
.bar-label span:first-child { color: var(--muted); }
.bar-label span:last-child  { color: var(--muted2); }
.bar-track {
  height: 3px;
  background: var(--border2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1) 1.2s;
}

/* ─── SECTION COMMON ─── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }

h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}
h2.section-title .dim { color: var(--muted); }

.section-sub {
  font-size: 15px;
  color: var(--muted2);
  max-width: 540px;
  line-height: 1.7;
  font-weight: 300;
}

/* ─── METRICS ─── */
#metrics {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* Mobile: 2 columns */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.metric-item {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
/* Every 2nd item in mobile has no right border — we handle with nth-child */
.metric-item:nth-child(odd)  { border-right: 1px solid var(--border); }
.metric-item:nth-child(3),
.metric-item:nth-child(4)    { border-bottom: none; }
.metric-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.metric-item:hover { background: var(--surface); }
.metric-item:hover::before { transform: scaleX(1); }
.metric-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 52px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.metric-number .unit { font-size: 22px; color: var(--accent); }
.metric-label { font-size: 12px; color: var(--muted); font-weight: 300; line-height: 1.4; }
.metric-sub   { font-family: var(--font-mono); font-size: 10px; color: var(--accent2); margin-top: 4px; }

/* ─── ABOUT ─── */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.about-text p {
  font-size: 15px;
  color: var(--muted2);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 20px;
}
.about-text p strong { color: var(--text); font-weight: 500; }
.tech-stack { margin-top: 28px; }
.tech-stack:first-child { margin-top: 0; }
.tech-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted2);
  border: 1px solid var(--border2);
  padding: 6px 12px;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  letter-spacing: 0.04em;
}
.tech-tag:hover { color: var(--accent); border-color: rgba(0,229,255,0.4); background: rgba(0,229,255,0.04); }

/* ─── SKILLS ─── */
#skills { background: var(--bg2); }
/* Mobile: single column */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 40px;
}
.skill-card {
  background: var(--surface);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  border: 1px solid var(--border);
}
.skill-card:hover { background: var(--surface2); }
.skill-card::after {
  content: attr(data-num);
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--border2);
  letter-spacing: 0.1em;
}
.skill-icon { width: 40px; height: 40px; margin-bottom: 16px; }
.skill-icon-shape {
  width: 40px; height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.skill-card:nth-child(2) .skill-icon-shape { border-color: var(--accent2); }
.skill-card:nth-child(3) .skill-icon-shape { border-color: var(--accent3); }
.skill-card:nth-child(4) .skill-icon-shape { border-color: var(--green); }
.skill-card:nth-child(5) .skill-icon-shape { border-color: var(--accent); }
.skill-card:nth-child(6) .skill-icon-shape { border-color: var(--accent2); }
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.skill-list { list-style: none; }
.skill-list li {
  font-size: 13px;
  color: var(--muted2);
  padding: 5px 0 5px 16px;
  position: relative;
  font-weight: 300;
  border-bottom: 1px solid var(--border);
}
.skill-list li:last-child { border-bottom: none; }
.skill-list li::before { content: '›'; position: absolute; left: 0; color: var(--accent); font-size: 14px; }

/* ─── EXPERIENCE ─── */
#experience { position: relative; }
.exp-timeline {
  margin-top: 40px;
  position: relative;
  padding-left: 28px;    /* tighter on mobile */
}
.exp-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
}
.exp-item {
  position: relative;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.exp-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.exp-item::before {
  content: '';
  position: absolute;
  left: -32px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.exp-item:nth-child(2)::before { background: var(--accent2); box-shadow: 0 0 12px var(--accent2); }
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.exp-role {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.exp-company { font-size: 13px; color: var(--accent); font-family: var(--font-mono); letter-spacing: 0.04em; }
.exp-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 2px;
  white-space: nowrap;
  letter-spacing: 0.06em;
}
.exp-period.current { color: var(--green); border-color: rgba(0,214,143,0.3); background: rgba(0,214,143,0.06); }
.exp-bullets { list-style: none; }
.exp-bullets li {
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.7;
  padding: 10px 0 10px 22px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-weight: 300;
}
.exp-bullets li:last-child { border-bottom: none; }
.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 20px;
  width: 8px; height: 1px;
  background: var(--accent);
}
.exp-bullets li strong { color: var(--text); font-weight: 500; }
.exp-bullets li .highlight { color: var(--accent); font-family: var(--font-mono); font-size: 13px; }

/* ─── PROJECTS ─── */
#projects { background: var(--bg2); }
/* Mobile: single column */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 40px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, background 0.3s;
  display: flex;
  flex-direction: column;
}
.project-card:hover { background: var(--surface2); transform: translateY(-4px); }
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover::before { opacity: 1; }
.project-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
}
.project-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.project-desc {
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
  margin-bottom: 16px;
}
.project-impact {
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  margin-top: auto;
}
.project-link:hover { color: var(--accent); }

/* ─── AWARDS ─── */
.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* 2-col even on mobile */
  gap: 2px;
  margin-top: 40px;
}
.award-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.award-card:hover { background: var(--surface2); }
.award-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s, width 0.3s;
}
.award-card:hover::after { opacity: 1; width: 80px; }
.award-icon { font-size: 26px; margin-bottom: 12px; display: block; }
.award-title { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.award-desc   { font-size: 12px; color: var(--muted2); font-weight: 300; line-height: 1.5; }

/* ─── EDUCATION ─── */
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
}
.edu-icon    { font-size: 32px; flex-shrink: 0; }
.edu-degree  { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.edu-school  { font-size: 13px; color: var(--accent); font-family: var(--font-mono); }
.edu-year    { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ─── CONTACT ─── */
#contact { background: var(--bg2); position: relative; overflow: hidden; }
#contact::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,229,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.contact-inner { text-align: center; position: relative; z-index: 1; }
.contact-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.contact-inner h2 .line2 { color: var(--accent); }
.contact-inner p {
  font-size: 15px;
  color: var(--muted2);
  font-weight: 300;
  margin-bottom: 40px;
  line-height: 1.7;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted2);
  text-decoration: none;
  border: 1px solid var(--border2);
  padding: 10px 16px;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  letter-spacing: 0.04em;
}
.contact-link:hover { color: var(--accent); border-color: rgba(0,229,255,0.4); background: rgba(0,229,255,0.04); }

/* ─── FOOTER ─── */
footer {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.footer-copy span { color: var(--accent2); }

/* ─── BACK TO TOP ─── */
#back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  border-radius: 2px;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--surface2); }
#back-to-top svg { transition: transform 0.2s; }
#back-to-top:hover svg { transform: translateY(-2px); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.in-view           { opacity: 1; transform: translateY(0); }
.reveal-delay-1           { transition-delay: 0.1s; }
.reveal-delay-2           { transition-delay: 0.2s; }
.reveal-delay-3           { transition-delay: 0.3s; }
.reveal-delay-4           { transition-delay: 0.4s; }
.reveal-delay-5           { transition-delay: 0.5s; }

/* ─── DIVIDER ─── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

/* ═══════════════════════════════════════
   TABLET — 600px+
   ═══════════════════════════════════════ */
@media (min-width: 600px) {
  :root { --section-pad: 90px; }
  .container { padding: 0 28px; }
  .skills-grid   { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-item   { padding: 28px 32px; }
}

/* ═══════════════════════════════════════
   DESKTOP — 900px+
   ═══════════════════════════════════════ */
@media (min-width: 900px) {
  :root { --section-pad: 100px; }
  .container { padding: 0 32px; }

  /* Nav */
  .nav-links { display: flex; }
  .nav-cta   { display: inline-block; }
  .menu-btn  { display: none; }

  /* Hero — 2 column */
  .hero-inner {
    grid-template-columns: 1fr 380px;
    gap: 60px;
    padding: 120px 0 80px;
  }
  .hero-stats-panel { display: block; }

  /* Metrics — 4 column */
  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
  .metric-item  {
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
  .metric-item:nth-child(odd)  { border-right: 1px solid var(--border); }
  .metric-item:last-child { border-right: none; }
  .metric-item:nth-child(3),
  .metric-item:nth-child(4)    { border-bottom: none; }

  /* About — 2 column */
  #about .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; }

  /* Skills — 3 col */
  .skills-grid { grid-template-columns: repeat(3, 1fr); }

  /* Experience timeline — wider */
  .exp-timeline { padding-left: 40px; }
  .exp-item::before { left: -44px; }

  /* Projects — 3 col */
  .projects-grid { grid-template-columns: repeat(3, 1fr); }

  /* Awards — 4 col */
  .awards-grid { grid-template-columns: repeat(4, 1fr); }

  /* Footer — row */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  /* Edu card */
  .edu-card { max-width: 600px; }
}

/* ═══════════════════════════════════════
   SMALL MOBILE FIXES — max 480px
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  /* Hero: tighter vertical on small phones */
  .hero-inner    { padding: 90px 0 50px; gap: 32px; }
  h1.hero-name   { font-size: clamp(44px, 18vw, 78px); line-height: 0.88; }

  /* Metric numbers: readable at small size */
  .metric-number { font-size: clamp(28px, 9vw, 42px); }
  .metric-item   { padding: 18px 14px; }
  .metric-label  { font-size: 11px; }

  /* Hero desc: tighter */
  .hero-desc { font-size: 14px; }

  /* Experience: tighter timeline */
  .exp-timeline   { padding-left: 20px; }
  .exp-item::before { left: -24px; width: 8px; height: 8px; }
  .exp-role { font-size: clamp(17px, 5vw, 22px); }

  /* Awards: single column on tiny screens */
  .awards-grid { grid-template-columns: 1fr; }

  /* Contact links: stack vertically */
  .contact-links { flex-direction: column; align-items: stretch; }
  .contact-link  { justify-content: center; }

  /* Buttons: full width */
  .hero-actions  { flex-direction: column; }
  .btn-primary,
  .btn-secondary { justify-content: center; text-align: center; width: 100%; }

  /* Edu card: stack on tiny screens */
  .edu-card { flex-direction: column; text-align: center; gap: 12px; }
  .edu-card::before { width: 100%; height: 3px; top: 0; left: 0; right: 0; bottom: auto; }
}

/* ═══════════════════════════════════════
   TOUCH DEVICES — better tap targets
   ═══════════════════════════════════════ */
@media (pointer: coarse) {
  .contact-link  { padding: 14px 20px; }
  .tech-tag      { padding: 8px 14px; }
  .exp-period    { padding: 8px 14px; }
  .btn-primary,
  .btn-secondary { padding: 14px 28px; }
  /* Increase skill list line height for fat fingers */
  .skill-list li { padding-top: 8px; padding-bottom: 8px; }
}
