/* ============================================================
   styles.css — Naga Vignesh Portfolio
   Dark, cinematic, infrastructure-grade
   ============================================================ */

/* ── Design tokens ── */
:root {
  --bg-primary:   #050508;
  --bg-secondary: #0d0d14;
  --bg-card:      rgba(255, 255, 255, 0.03);
  --accent-cyan:  #00d4ff;
  --accent-purple:#7b2fff;
  --accent-green: #00ff88;
  --text-primary: #f0f2f8;
  --text-muted:   #4a5568;
  --border:       rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 212, 255, 0.4);
  --glow-cyan:    0 0 40px rgba(0, 212, 255, 0.15);
  --radius:       16px;
  --container:    1140px;
  --nav-h:        72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: 0; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ── Base ── */
html, body { background: var(--bg-primary); }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent-cyan); color: #001018; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050508; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent-cyan), var(--accent-purple));
  border-radius: 4px;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── THREE.JS CANVAS ── */
#hero-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── MATRIX CANVAS (easter egg) ── */
.matrix-canvas {
  position: fixed; inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.matrix-canvas.active { opacity: 1; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex; align-items: center;
  transition: background 300ms, backdrop-filter 300ms, border-color 300ms;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-hex {
  position: relative;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
}
.logo-hex span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 800;
  color: #04111a;
}

/* Desktop nav */
.nav-desktop {
  display: flex; gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px; padding: 4px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 200ms, background 200ms;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active {
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.nav-hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--text-primary);
  transition: transform 220ms, opacity 200ms, background 200ms;
  border-radius: 2px;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile fullscreen overlay */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity 300ms ease;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav-close {
  position: absolute; top: 24px; right: 24px;
  color: var(--text-muted);
  transition: color 200ms;
}
.mobile-nav-close:hover { color: var(--accent-cyan); }
.mobile-nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px; font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  transition: color 200ms;
}
.mobile-nav-link:hover { color: var(--accent-cyan); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center;
  /* Transparent — Three.js canvas shows through */
  background: transparent;
  /* Fallback gradient (CSS mesh) for mobile / when Three.js is off */
}
@media (max-width: 768px) {
  .hero-section {
    background:
      radial-gradient(ellipse 100% 60% at 20% 40%, rgba(0, 212, 255, 0.07), transparent),
      radial-gradient(ellipse 80% 60% at 80% 70%, rgba(123, 47, 255, 0.08), transparent),
      var(--bg-primary);
  }
}

.hero-overlay {
  position: relative; z-index: 10;
  width: 100%;
  padding-top: var(--nav-h);
}
.hero-content {
  max-width: 680px;
  padding: 100px 0 160px;
}

.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
  animation: heroFade 0.8s ease both;
}
.status-square {
  font-size: 10px;
  animation: statusBlink 1.4s ease-in-out infinite;
}
@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #a0d8ef 35%, var(--accent-purple) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  animation: heroFade 0.8s 0.15s ease both;
}

.hero-typed-wrap {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(16px, 2.2vw, 22px);
  color: rgba(240, 242, 248, 0.65);
  min-height: 1.6em;
  margin-bottom: 24px;
  animation: heroFade 0.8s 0.3s ease both;
}
.hero-typed { color: var(--text-primary); }

.hero-bio {
  font-size: 16px;
  color: rgba(240, 242, 248, 0.6);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 36px;
  animation: heroFade 0.8s 0.45s ease both;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: heroFade 0.8s 0.6s ease both;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: heroFade 1s 1s ease both;
}
.scroll-line {
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scrollAnim 2.4s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}
.scroll-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(240, 242, 248, 0.35);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 200ms, box-shadow 200ms, background 200ms, border-color 200ms, color 200ms;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-outline {
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(0, 212, 255, 0.08);
  box-shadow: var(--glow-cyan);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: rgba(240, 242, 248, 0.6);
  background: transparent;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}
.btn-submit {
  width: 100%; justify-content: center;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #04111a;
  border: none;
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.2);
}
.btn-submit:hover { box-shadow: 0 8px 32px rgba(0, 212, 255, 0.35); }

/* ============================================================
   SECTIONS — common
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
  padding: 140px 0;
}
.section-alt { background: var(--bg-secondary); }

.section-label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  padding: 4px 10px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
}
.section-title-small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-heading {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--text-primary);
}
.about-bio {
  color: rgba(240, 242, 248, 0.65);
  font-size: 15px;
  margin-bottom: 18px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.stat {
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 250ms, box-shadow 250ms;
}
.stat:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-cyan);
}
.stat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px; font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Terminal */
.terminal-card {
  background: #08090f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), var(--glow-cyan);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f56; } .dot-y { background: #ffbd2e; } .dot-g { background: #27c93f; }
.terminal-title {
  margin-left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text-muted);
}
.terminal-body {
  padding: 22px 22px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  display: flex; flex-direction: column; gap: 6px;
}
.t-line { white-space: pre-wrap; color: rgba(240, 242, 248, 0.7); }
.t-prompt { color: var(--accent-green); margin-right: 6px; }
.t-out { color: var(--accent-green); padding-left: 20px; font-weight: 500; }
.t-cursor {
  display: inline-block; width: 9px; height: 15px;
  background: var(--accent-cyan); vertical-align: middle;
  animation: blinkCursor 1s steps(2, start) infinite;
}
@keyframes blinkCursor { 50% { opacity: 0; } }

/* ============================================================
   EXPERIENCE — timeline
   ============================================================ */
.timeline {
  position: relative;
}
.timeline-track {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-left: 52px;
  padding-bottom: 48px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -6px; top: 24px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15), 0 0 16px var(--accent-cyan);
}
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  transition: border-color 250ms, box-shadow 250ms, transform 250ms;
}
.timeline-card:hover {
  border-left-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateX(4px);
}
.timeline-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--text-muted);
}
.badge-current {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em;
  padding: 3px 10px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
  color: var(--accent-cyan);
}
.timeline-role {
  font-size: 20px; font-weight: 700;
  margin-bottom: 4px;
}
.timeline-company {
  font-size: 14px; color: var(--accent-cyan);
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
}
.timeline-bullets {
  list-style: disc;
  padding-left: 20px;
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px;
}
.timeline-bullets li {
  color: rgba(240, 242, 248, 0.7);
  font-size: 14.5px;
  line-height: 1.7;
}
.timeline-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.timeline-tags span {
  padding: 4px 10px;
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 6px;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.skill-cat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 250ms;
}
.skill-cat:hover { border-color: var(--border-hover); }
.skill-cat-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.skill-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  font-size: 13px;
  color: rgba(240, 242, 248, 0.75);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 200ms, background 200ms, color 200ms;
}
.pill:hover {
  border-color: var(--border-hover);
  background: rgba(0, 212, 255, 0.05);
  color: var(--text-primary);
}
.pill i { font-size: 15px; }

/* ============================================================
   PROJECTS
   ============================================================ */
/* Featured */
.project-featured {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 24px;
  min-height: 400px;
  display: flex; align-items: center;
  transition: border-color 250ms, box-shadow 250ms;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(0, 212, 255, 0.06), transparent 60%),
    radial-gradient(ellipse at 30% 50%, rgba(123, 47, 255, 0.06), transparent 60%),
    var(--bg-card);
}
.project-featured:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-cyan);
}
.project-bg-num {
  position: absolute;
  right: 40px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 160px; font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  opacity: 0.04;
  pointer-events: none; user-select: none;
}
.project-bg-num.sm {
  font-size: 120px;
  right: 20px; top: 20px;
  transform: none;
  opacity: 0.04;
}
.project-featured-inner {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between;
  align-items: flex-end;
  gap: 32px; width: 100%;
}
.project-featured-content { max-width: 640px; }
.project-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.project-featured-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.project-featured-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 16px;
}
.project-desc {
  color: rgba(240, 242, 248, 0.65);
  font-size: 15px; line-height: 1.8;
  margin-bottom: 20px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags span {
  padding: 5px 12px;
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 6px;
}
.project-featured-links { flex-shrink: 0; }

/* Project grid cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  position: relative; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 250ms, border-color 250ms, box-shadow 250ms;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--glow-cyan);
}
.project-card-inner { padding: 28px 24px; }
.project-card h3 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 12px; margin-top: 8px;
}
.project-card p {
  color: rgba(240, 242, 248, 0.6);
  font-size: 14px; line-height: 1.75;
  margin-bottom: 18px;
}
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-family: 'JetBrains Mono', monospace;
  color: var(--accent-cyan);
  margin-top: 16px;
  transition: opacity 200ms;
}
.project-link:hover { opacity: 0.7; }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cert-card {
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 250ms ease, border-color 250ms, box-shadow 250ms, background 250ms;
}
a.cert-card:hover,
.cert-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--glow-cyan);
}

/* ── Badge image ── */
.cert-badge-wrap {
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  perspective: 600px;
}
.cert-badge {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.2));
  transition: transform 350ms ease, filter 350ms ease;
}
.cert-card:hover .cert-badge {
  transform: scale(1.1) rotate(3deg);
  filter: drop-shadow(0 0 28px rgba(0, 212, 255, 0.55));
}

/* ── Names + issuer ── */
.cert-card .cert-name {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.cert-issuer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 18px;
}

/* ── Footer (year + verify) ── */
.cert-footer {
  margin-top: auto;
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.cert-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text-muted);
}
.cert-verify {
  font-size: 13px; color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
  transition: opacity 200ms;
}
.cert-verify.muted { color: var(--text-muted); }
a.cert-card:hover .cert-verify { opacity: 0.85; }

/* ── Achievement (NCL Diamond-2) ── */
.cert-achievement {
  border-color: rgba(0, 255, 136, 0.22);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 255, 136, 0.05), transparent),
    rgba(0, 255, 136, 0.03);
}
.cert-achievement:hover {
  border-color: rgba(0, 255, 136, 0.4) !important;
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.12) !important;
}
.cert-diamond-wrap {
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.cert-diamond {
  font-size: 84px; line-height: 1;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
  animation: diamondGlow 3.2s ease-in-out infinite;
}
@keyframes diamondGlow {
  0%, 100% {
    filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.35));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(123, 47, 255, 0.6));
    transform: scale(1.05);
  }
}
.cert-name-gradient {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.achievement-issuer { color: var(--accent-green) !important; }
.cert-achievement-sub {
  color: rgba(240, 242, 248, 0.65);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-sub {
  color: rgba(240, 242, 248, 0.6);
  font-size: 16px; margin-bottom: 28px;
}
.contact-email {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  transition: opacity 200ms;
}
.contact-email:hover { opacity: 0.75; }
.contact-phone {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: rgba(240, 242, 248, 0.5);
  margin-bottom: 32px;
  transition: color 200ms;
}
.contact-phone:hover { color: var(--text-primary); }
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  color: rgba(240, 242, 248, 0.7);
  transition: border-color 200ms, color 200ms, background 200ms;
}
.contact-row:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.04);
}
.contact-row svg { flex-shrink: 0; color: var(--accent-cyan); }

.contact-form {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field input,
.form-field textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  outline: none;
  font-size: 14px;
  transition: border-color 200ms, box-shadow 200ms;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.form-status {
  font-size: 13px; min-height: 1.4em; margin: 0;
  color: var(--text-muted);
}
.form-status.success { color: var(--accent-green); }
.form-status.error { color: #ff5577; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative; z-index: 1;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy {
  font-size: 13px; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 200ms, border-color 200ms;
}
.footer-social a:hover { color: var(--accent-cyan); border-color: var(--border-hover); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-desktop { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 80px 0; }
  .section-heading { margin-bottom: 36px; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { padding: 28px 24px; min-height: auto; }
  .project-featured-inner { flex-direction: column; gap: 24px; }
  .project-bg-num { font-size: 100px; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 80px 0 140px; }
}

@media (max-width: 480px) {
  .certs-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
