/* ============================================================
   Nandraj Rathod — Portfolio
   Dark, premium developer portfolio
   ============================================================ */

:root {
  --bg: #060609;
  --bg-soft: #0a0a12;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8e8f2;
  --muted: #9a9ab2;
  --faint: #6b6b82;
  --cyan: #4dd8ff;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --accent: linear-gradient(135deg, #4dd8ff 0%, #8b5cf6 55%, #f472b6 100%);
  --glow-cyan: rgba(77, 216, 255, 0.35);
  --glow-violet: rgba(139, 92, 246, 0.35);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --nav-h: 72px;
  --radius: 18px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* subtle grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

::selection { background: rgba(77, 216, 255, 0.3); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #26263a;
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #343452; }

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

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ---------- ambient background ---------- */
canvas#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.glow-a {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(77, 216, 255, 0.16), transparent 65%);
  top: -140px; right: -120px;
}
.glow-b {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 65%);
  bottom: -180px; left: -160px;
}

.mouse-glow {
  position: fixed;
  width: 480px; height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(77, 216, 255, 0.05), transparent 65%);
  transform: translate(-50%, -50%);
  transition: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a12;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(77, 216, 255, 0.4);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.btn-sm { padding: 9px 16px; font-size: 0.85rem; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }
.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 6, 9, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: min(1160px, 92%);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent);
  color: #0a0a12;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo-dot { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  padding: 11px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.hero-inner {
  width: min(1160px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(77, 216, 255, 0.08);
  border: 1px solid rgba(77, 216, 255, 0.25);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(77, 216, 255, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(77, 216, 255, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(77, 216, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 216, 255, 0); }
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.grad-text {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-typing {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--cyan);
  min-height: 1.6em;
  margin-bottom: 20px;
}
.caret {
  display: inline-block;
  width: 3px;
  height: 1.4em;
  margin-left: 3px;
  background: var(--cyan);
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 54ch;
  margin-bottom: 30px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 560px;
}
.hero-stats li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-plus { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--faint); }
.stat-label {
  display: block;
  font-size: 0.74rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* hero visual */
.hero-visual { position: relative; display: grid; place-items: center; }
.photo-frame {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 533 / 498;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 60px rgba(139, 92, 246, 0.15);
  transition: transform 0.3s ease;
}
.photo { width: 100%; height: 100%; object-fit: cover; }
.photo-ring {
  position: absolute;
  inset: -14px;
  border-radius: 36px;
  background: var(--accent);
  z-index: -1;
  opacity: 0.55;
  filter: blur(18px);
}
.float-chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(10, 10, 18, 0.8);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: floaty 5s ease-in-out infinite;
}
.chip-1 { top: 8%; left: -10%; animation-delay: 0s; }
.chip-2 { top: 38%; right: -14%; animation-delay: 1.2s; }
.chip-3 { bottom: 34%; left: -12%; animation-delay: 0.6s; }
.chip-4 { bottom: 8%; right: -8%; animation-delay: 1.8s; }
.chip-5 { top: -6%; right: 6%; animation-delay: 0.9s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll span:first-child {
  width: 26px; height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  position: relative;
}
.hero-scroll span:first-child::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--cyan);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}
.hero-scroll-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- sections ---------- */
.section { position: relative; padding: 110px 0; }
.section-head { margin-bottom: 60px; }
.section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
}
.section-sub { color: var(--muted); margin-top: 12px; max-width: 60ch; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.about-copy .lead {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 18px;
}
.about-copy p { color: var(--muted); margin-bottom: 18px; }
.about-copy p strong { color: var(--text); }
.about-facts {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}
.fact {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.93rem;
  color: var(--muted);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.fact:hover { transform: translateX(6px); border-color: var(--border-strong); color: var(--text); }
.fact-icon { font-size: 1.15rem; }
.fact a { color: var(--cyan); }
.fact a:hover { text-decoration: underline; }
.soft-skills { display: flex; flex-wrap: wrap; gap: 10px; }
.soft-skills li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.02);
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.about-card-title, .skill-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 22px;
}
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.contact-list span span { display: block; }
.contact-list small { color: var(--faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.contact-list a:hover { color: var(--cyan); }

/* ---------- skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}
.skill-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.skill-bars { display: grid; gap: 16px; }
.skill-bar { display: grid; grid-template-columns: 170px 1fr 44px; align-items: center; gap: 14px; }
.skill-name { font-size: 0.88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: width 1.4s cubic-bezier(0.25, 0.8, 0.3, 1);
}
.skill-panel.in-view .bar-fill { width: var(--fill); }
.skill-val { font-family: var(--font-mono); font-size: 0.78rem; color: var(--faint); text-align: right; }

.skill-chips { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
  padding: 7px 15px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.chip:hover {
  color: var(--cyan);
  border-color: rgba(77, 216, 255, 0.4);
  background: rgba(77, 216, 255, 0.07);
  transform: translateY(-2px);
}

/* skill categories (tech stack) */
.skill-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.skill-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.skill-cat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; gap: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--violet) 60%, var(--pink));
  opacity: 0.4;
}
.timeline-item { position: relative; padding-left: 60px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 30px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 0 6px rgba(77, 216, 255, 0.08), 0 0 16px rgba(77, 216, 255, 0.5);
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.timeline-card:hover {
  transform: translateX(8px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.timeline-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 10px; flex-wrap: wrap; }
.timeline-role { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.timeline-org { color: var(--muted); font-size: 0.9rem; }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  border: 1px solid rgba(77, 216, 255, 0.3);
  background: rgba(77, 216, 255, 0.07);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.timeline-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.timeline-card .chips { margin-top: 4px; }

/* ---------- projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 200px at 15% 0%, rgba(77, 216, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.project-card:hover::before { opacity: 1; }
.project-card.featured { background: var(--surface-2); border-color: rgba(139, 92, 246, 0.3); }
.project-icon {
  font-size: 1.9rem;
  margin-bottom: 18px;
  filter: drop-shadow(0 6px 14px rgba(139, 92, 246, 0.35));
}
.project-body { display: flex; flex-direction: column; flex: 1; }
.project-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.project-desc { color: var(--muted); font-size: 0.92rem; flex: 1; margin-bottom: 18px; }
.project-links { display: flex; gap: 14px; align-items: center; }
.project-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.project-links a:hover { border-bottom-color: var(--cyan); }
.project-links-muted {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--faint);
}

/* ---------- certifications ---------- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.cert-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.cert-logo { font-size: 2rem; margin-bottom: 14px; }
.cert-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}
.cert-detail { font-size: 0.8rem; color: var(--muted); }

.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.edu-card {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.edu-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.edu-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(77, 216, 255, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid var(--border-strong);
  font-size: 1.6rem;
  flex-shrink: 0;
}
.edu-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.edu-org { color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; }
.edu-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  border: 1px solid rgba(77, 216, 255, 0.3);
  background: rgba(77, 216, 255, 0.07);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(6, 6, 9, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus {
  border-color: rgba(77, 216, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(77, 216, 255, 0.12);
}
.form-note { font-size: 0.85rem; color: var(--cyan); min-height: 1.2em; }

.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.social-card:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 216, 255, 0.4);
  background: var(--surface-2);
}
.social-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.social-name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; display: block; }
.social-handle { font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.footer-text { color: var(--faint); font-size: 0.85rem; }
.footer-top {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--muted);
  font-size: 1.1rem;
  transition: all 0.25s ease;
}
.footer-top:hover { color: var(--cyan); border-color: rgba(77, 216, 255, 0.4); transform: translateY(-2px); }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { gap: 36px; }
  .chip-2 { right: -4%; }
  .chip-3 { left: -4%; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(6, 6, 9, 0.97);
    backdrop-filter: blur(20px);
    padding: 18px 6%;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.3, 1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 14px; justify-content: center; }
  .hamburger { display: inline-flex; }

  .hero { padding-top: calc(var(--nav-h) + 30px); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); width: 100%; max-width: 480px; }
  .hero-visual { margin-top: 30px; }
  .about-grid, .skills-grid, .contact-grid, .edu-grid { grid-template-columns: 1fr; }
  .skill-cats { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .skill-bar { grid-template-columns: 130px 1fr 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .socials { grid-template-columns: 1fr 1fr; }
  .timeline-item { padding-left: 44px; }
  .timeline::before { left: 16px; }
  .timeline-item::before { left: 7px; }
  .section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .socials { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .project-card, .timeline-card, .about-card, .contact-form { padding: 22px; }
  .float-chip { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip, .pulse-dot, .caret, .hero-scroll span:first-child::before { animation: none; }
  .bar-fill { transition: none; }
}
