/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════════ */
:root {
  --bg:            #0B0B0B;
  --surface:       #141414;
  --text-primary:  #F5F5F5;
  --text-secondary:#8A8A8A;
  --accent:        #C8FF00;
  --border-subtle: #222222;
  --overlay:       rgba(11,11,11,0.92);

  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --max-width:     1200px;
  --px:            clamp(20px, 6vw, 80px);
  --section-py:    clamp(80px, 12vh, 140px);
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) {
  body { cursor: auto; }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Focus visible — keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   PRELOADER
═══════════════════════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#preloader-logo {
  position: absolute;
  top: 32px;
  left: 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

#preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#preloader-counter {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

#preloader-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.8s ease;
}

#preloader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
}

@media (max-width: 768px) {
  #preloader-logo { top: 20px; left: 20px; }
  #preloader-counter { font-size: clamp(4rem, 18vw, 6rem); }
  #preloader-name { font-size: 1.1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════════════════════════════ */
#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition-property: width, height, border-color, background-color;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

#cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
}

#cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent);
  background: transparent;
  transition-duration: 0.25s;
}

#cursor-ring.cursor-hover {
  width: 48px;
  height: 48px;
}

@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
}

#plexus-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;              /* behind everything */
  pointer-events: none;    /* never blocks clicks */
  opacity: 1;              /* JS controls alpha per-draw, not this */
}

/* Make sure all sections sit ABOVE the canvas */
nav,
section,
footer,
.preloader {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(11,11,11,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border-subtle);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1;
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Active indicator dot above link */
.nav-link.active::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-overlay.open {
  transform: translateX(0);
}

.mobile-overlay-close {
  position: absolute;
  top: 24px; right: var(--px);
  font-size: 1.4rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.mobile-overlay-close:hover { color: var(--accent); }

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

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.2s ease;
  opacity: 0;
  transform: translateY(20px);
}
.mobile-nav-link:hover { color: var(--accent); }

.mobile-overlay.open .mobile-nav-link {
  animation: mobileNavIn 0.4s ease forwards;
}
.mobile-overlay.open .mobile-nav-links li:nth-child(1) .mobile-nav-link { animation-delay: 0.1s; }
.mobile-overlay.open .mobile-nav-links li:nth-child(2) .mobile-nav-link { animation-delay: 0.17s; }
.mobile-overlay.open .mobile-nav-links li:nth-child(3) .mobile-nav-link { animation-delay: 0.24s; }
.mobile-overlay.open .mobile-nav-links li:nth-child(4) .mobile-nav-link { animation-delay: 0.31s; }
.mobile-overlay.open .mobile-nav-links li:nth-child(5) .mobile-nav-link { animation-delay: 0.38s; }
.mobile-overlay.open .mobile-nav-links li:nth-child(6) .mobile-nav-link { animation-delay: 0.45s; }

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

/* ═══════════════════════════════════════════════════════════════
   SECTION LAYOUT
═══════════════════════════════════════════════════════════════ */
.section {
  padding: var(--section-py) 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px);
}

.section-marker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 36px;
  display: block;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  line-height: 1.5;
}

/* Character split name */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.92;
  display: flex;
  flex-direction: column;
}

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

.char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.char-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 4px;
  transition: all 0.25s ease;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-filled {
  background: var(--accent);
  color: #0B0B0B;
  border: 1.5px solid var(--accent);
}
.btn-filled:hover {
  background: transparent;
  color: var(--accent);
}

.btn-outlined {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outlined:hover {
  background: var(--accent);
  color: #0B0B0B;
}

.hero-scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

/* Particle canvas */
.hero-canvas-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.particle-canvas {
  width: 100%;
  height: 480px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════════════════ */
.about-section {
  border-top: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 60px;
}

.about-bio p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 540px;
  font-size: 1rem;
}
.about-bio p:last-child { margin-bottom: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s ease;
}
.stat-box:hover, .stat-box:focus { border-color: var(--accent); }

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-unit {
  font-size: 1rem;
  color: var(--text-secondary);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  line-height: 1.4;
}
.stat-label small { font-size: 0.65rem; }

/* Ticker */
.ticker-wrapper {
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  background: var(--surface);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

.ticker-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  padding-right: 0;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════
   EXPERIENCE SECTION
═══════════════════════════════════════════════════════════════ */
.experience-section {
  border-top: 1px solid var(--border-subtle);
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-entry {
  position: relative;
  margin-bottom: 64px;
}
.timeline-entry:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -47px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

.exp-role {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.exp-org {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.exp-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 16px;
}
.exp-description:last-of-type { margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════════════════
   TECH PILLS (shared)
═══════════════════════════════════════════════════════════════ */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #C0C0C0;
  background: var(--surface);
  border: 1px solid #2A2A2A;
  border-radius: 4px;
  padding: 4px 12px;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS SECTION
═══════════════════════════════════════════════════════════════ */
.projects-section {
  border-top: 1px solid var(--border-subtle);
}

.project-block {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 40px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-subtle);
  border-left: 3px solid transparent;
  padding-left: 16px;
  margin-left: -19px;
  transition: border-left-color 0.3s ease;
}
.project-block:first-of-type { border-top: 1px solid var(--border-subtle); }
.project-block:hover { border-left-color: var(--accent); }

.project-index {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: #1E1E1E;
  line-height: 1;
  align-self: start;
  letter-spacing: -0.03em;
  user-select: none;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(200, 255, 0, 0.12);
  color: var(--accent);
  border: 1px solid rgba(200, 255, 0, 0.3);
  border-radius: 100px;
  padding: 4px 14px;
  letter-spacing: 0.04em;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.project-tagline {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
}

.project-description {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 680px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  width: fit-content;
  margin-top: 4px;
}
.project-link:hover { color: var(--accent); }

.project-arrow {
  transition: transform 0.25s ease;
}
.project-link:hover .project-arrow { transform: translateX(6px); }

/* ═══════════════════════════════════════════════════════════════
   RESEARCH SECTION
═══════════════════════════════════════════════════════════════ */
.research-section {
  border-top: 1px solid var(--border-subtle);
}

.research-entry {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.research-entry:first-of-type { border-top: 1px solid var(--border-subtle); }

.research-index {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: #1E1E1E;
  line-height: 1;
  letter-spacing: -0.03em;
  align-self: start;
  user-select: none;
}

.research-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.research-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.conference-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(200, 255, 0, 0.35);
  border-radius: 100px;
  padding: 3px 12px;
  width: fit-content;
}

.research-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 620px;
}

.research-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  width: fit-content;
}
.research-link:hover { color: var(--accent); }
.research-link:hover .project-arrow { transform: translateX(6px); }

/* ═══════════════════════════════════════════════════════════════
   SKILLS SECTION
═══════════════════════════════════════════════════════════════ */
.skills-section {
  border-top: 1px solid var(--border-subtle);
}

/* ── SKILLS MARQUEE ────────────────────────────────────── */

.skills-marquee-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}

.skill-row {
  display: flex;
  align-items: center;
  border-top: 1px solid #1E1E1E;
  padding: 18px 0;
  gap: 0;
}

.skill-row:last-child {
  border-bottom: 1px solid #1E1E1E;
}

/* Pinned category label — fixed width, does NOT scroll */
.skill-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 400;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  width: 140px;
  min-width: 140px;
  flex-shrink: 0;
  padding-right: 24px;
}

/* Scrolling area — clips overflow, fades edges */
.marquee-track-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Gradient fade on left and right edges */
.fade-edges {
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

/* The track — always wide enough for content × 2 */
.marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
}

/* Pause on hover */
.skill-row:hover .marquee-track {
  animation-play-state: paused;
}

/* Scroll LEFT (→) */
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll RIGHT (←) */
@keyframes scroll-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.scroll-left {
  animation: scroll-left linear infinite;
}

.scroll-right {
  animation: scroll-right linear infinite;
}

/* Pill styling */
.s-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: #141414;
  border: 1px solid #262626;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.80rem;
  color: #AAAAAA;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
  cursor: default;
}

.s-pill:hover {
  border-color: #C8FF00;
  color: #F5F5F5;
}

/* Mobile: hide category label, full width marquee */
@media (max-width: 600px) {
  .skill-label {
    display: none;
  }
  .skill-row {
    padding: 14px 0;
  }
  .s-pill {
    font-size: 0.74rem;
    padding: 6px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CERTIFICATIONS SECTION
═══════════════════════════════════════════════════════════════ */
.certs-section {
  border-top: 1px solid var(--border-subtle);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.2s ease;
  position: relative;
}
.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cert-icon {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 255, 0, 0.08);
  border-radius: 6px;
}

.cert-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cert-issuer {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.cert-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.cert-cta {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: letter-spacing 0.2s ease;
  margin-top: 4px;
}
.cert-card:hover .cert-cta { letter-spacing: 0.04em; }

/* Certificate Modal */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cert-modal.open {
  opacity: 1;
  pointer-events: all;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,11,11,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cert-modal-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.cert-modal.open .cert-modal-content { transform: scale(1); }

.cert-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 1.2rem;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}
.cert-modal-close:hover {
  color: var(--accent);
  background: rgba(200, 255, 0, 0.08);
}

#cert-modal-img {
  width: 100%;
  border-radius: 6px;
  margin-top: 16px;
}

.cert-placeholder-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--border-subtle);
  border-radius: 6px;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   ACHIEVEMENTS SECTION
═══════════════════════════════════════════════════════════════ */
.achievements-section {
  border-top: 1px solid var(--border-subtle);
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.achievement-group-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.achievement-list {
  display: flex;
  flex-direction: column;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #1E1E1E;
}
.achievement-item:last-child { border-bottom: none; }

.achievement-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ach-logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.amazon-logo {
  filter: brightness(0) invert(1); /* makes it white */
  width: 48px;  /* Amazon logo is wide, give it more horizontal space */
  height: auto;
  max-height: 22px;
  object-fit: contain;
}

.un-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  /* UN logo is already blue-white — looks good on dark bg */
  opacity: 0.9;
}

.hackfest-logo {
  width: 80px;
  height: auto;
  max-height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.logo-fallback {
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #C8FF00;
  border: 1px solid #C8FF00;
  border-radius: 4px;
}

.hackprix-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.vmedha-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.vmedha-fallback {
  display: none;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #F5F5F5;
  background: #1A1A1A;
  border: 1px solid #333;
  border-radius: 50%;
}

.achievement-main {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.achievement-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════════════════════ */
.contact-section {
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 80px;
  align-items: start;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0;
}

.contact-accent {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.contact-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 380px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  position: relative;
}
.contact-link::before {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}
.contact-link:hover::before { width: 100%; }
.contact-link:hover { color: var(--accent); }
.contact-link:hover .contact-link-icon { transform: translateX(6px); }

.contact-link-arrow {
  color: var(--accent);
  font-size: 1.1rem;
}
.contact-link-label { flex: 1; }
.contact-link-icon { transition: transform 0.25s ease; }

.contact-links li:first-child .contact-link {
  border-top: 1px solid var(--border-subtle);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid #1E1E1E;
  padding: 28px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #555;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL (initial hidden states managed by GSAP)
═══════════════════════════════════════════════════════════════ */
.reveal-heading,
.reveal-content {
  /* GSAP sets opacity / y before reveal */
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-canvas-col {
    order: -1;
  }
  .particle-canvas {
    height: 260px;
    max-width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-name {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .project-block {
    grid-template-columns: 1fr;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
  .project-block:hover { border-left: none; }
  .project-index { font-size: 3.5rem; }

  .research-entry {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .research-index { font-size: 3rem; }

  .skills-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .timeline { padding-left: 20px; }
  .timeline-line { display: none; }
  .timeline-dot { left: -27px; }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .char-inner { transform: none !important; }
}
