/* ==========================================================================
   VAISHNAV S NAIR — PORTFOLIO STYLESHEET
   Modest, clean dark theme with creative animations
   ========================================================================== */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg:          #0d0f14;
  --bg-2:        #12151c;
  --bg-3:        #181c26;
  --card:        #161a24;
  --card-hover:  #1c2130;
  --border:      rgba(255,255,255,0.07);
  --border-act:  rgba(124,231,200,0.35);

  --accent:      #7ce7c8;   /* soft teal */
  --accent-2:    #a78bfa;   /* lavender */
  --accent-3:    #f4a261;   /* amber  — used sparingly */

  --txt-1:  #e8edf5;
  --txt-2:  #8b96a8;
  --txt-3:  #505a6b;

  --mono: 'JetBrains Mono', monospace;
  --sans: 'Plus Jakarta Sans', 'Inter', sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ease: cubic-bezier(.16,1,.3,1);
  --ease-b: cubic-bezier(.34,1.56,.64,1);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; color-scheme: dark; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--txt-1);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Hero Action Dock & Resume Toolbar ────────────────────────────────────── */
.hero-action-dock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
  width: fit-content;
}

.hero-primary-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-main {
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-main .icon-slide {
  transition: transform 0.25s var(--ease);
}
.btn-hero-main:hover .icon-slide {
  transform: translateX(4px);
}

.btn-hero-main .icon-fade {
  transition: transform 0.25s var(--ease);
}
.btn-hero-main:hover .icon-fade {
  transform: rotate(-12deg) scale(1.1);
}

/* Cohesive Resume Dock */
.hero-resume-dock {
  display: inline-flex;
  align-items: center;
  background: rgba(20, 24, 34, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  width: fit-content;
}

.hero-resume-dock:hover {
  border-color: rgba(124, 231, 200, 0.3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.resume-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--txt-3);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.resume-dock-actions {
  display: flex;
  align-items: center;
  padding: 0 2px;
}

.resume-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--txt-2);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.resume-dock-btn i {
  font-size: 0.8rem;
  transition: transform 0.25s var(--ease);
}

/* Download CV hover */
.resume-dock-btn.cv-btn-download:hover {
  color: var(--accent);
  background: rgba(124, 231, 200, 0.1);
}
.resume-dock-btn.cv-btn-download:hover i {
  transform: translateY(2px);
}

/* View CV hover */
.resume-dock-btn.cv-btn-view:hover {
  color: var(--accent-2);
  background: rgba(167, 139, 250, 0.1);
}
.resume-dock-btn.cv-btn-view:hover i {
  transform: translate(2px, -2px);
}

.resume-dock-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 2px;
}





img, canvas { display: block; max-width: 100%; }
input, textarea, button, select { font: inherit; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Background Canvas ───────────────────────────────────────────────────── */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
}

/* ── Custom Cursor ───────────────────────────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .2s;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: width .1s, height .1s;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(124,231,200,.5);
  transform: translate(-50%, -50%);
  transition: width .22s var(--ease), height .22s var(--ease), border-color .2s;
}
body.cursor-hover .cursor-dot  { width: 10px; height: 10px; }
body.cursor-hover .cursor-ring { width: 50px; height: 50px; border-color: var(--accent); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0;
  transition: background .35s var(--ease), padding .3s var(--ease), border-bottom .3s;
}
.site-header.scrolled {
  padding: 14px 0;
  background: rgba(13,15,20,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
}
.brand-logo {
  display: flex; align-items: center; gap: 8px;
}
.logo-monogram {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .06em;
  position: relative;
}
.logo-monogram::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.brand-logo:hover .logo-monogram::after { transform: scaleX(1); }

.nav-list { display: flex; gap: 28px; }
.nav-link {
  font-size: .9rem; font-weight: 500;
  color: var(--txt-2);
  position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--txt-1); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--txt-2);
  transition: all .3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--accent); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--accent); }

/* Mobile Drawer */
.mobile-drawer {
  position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  padding: 90px 28px 40px;
  z-index: 900;
  transition: right .38s var(--ease);
}
.mobile-drawer.open { right: 0; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 24px; }
.mobile-nav-link {
  font-size: 1.3rem; font-weight: 700;
  color: var(--txt-2);
  transition: color .2s;
}
.mobile-nav-link:hover { color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--accent);
  color: #0d0f14;
  font-weight: 700;
  box-shadow: 0 0 0 0 rgba(124,231,200,0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,231,200,.22);
}
.btn-ghost {
  background: transparent;
  color: var(--txt-2);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--txt-1);
  transform: translateY(-2px);
}

/* ── Section Shared ──────────────────────────────────────────────────────── */
.section { padding: 110px 0; position: relative; z-index: 1; }

.section-label {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--accent);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
}

.section-heading {
  font-family: var(--sans);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--txt-1);
  line-height: 1.15;
  margin-bottom: 48px;
}

.text-accent { color: var(--accent); }

.body-text {
  font-size: 1.025rem;
  color: var(--txt-2);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 18px;
}

/* ── Scroll Reveal ───────────────────────────────────────────────────────── */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero Section ────────────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  padding: 180px 0 100px;
  display: flex; flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; }

.hero-available-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  color: var(--txt-2);
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: var(--r-md);
  width: fit-content; margin-bottom: 28px;
  animation: badgePop .6s var(--ease-b) both;
  animation-delay: .2s;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-green 2s infinite;
}

.hero-name {
  font-family: var(--sans);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.0;
  color: var(--txt-1);
  margin-bottom: 24px;
}
.name-accent { color: var(--accent); }
.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

.hero-role {
  font-size: 1.2rem;
  color: var(--txt-2);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 6px;
  height: 1.6em;
}
.role-prefix { color: var(--txt-2); }
.role-type-wrapper {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 500;
}
.role-typed::after {
  content: '|';
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--txt-2);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}


.hero-links {
  display: flex; gap: 14px;
}
.hero-icon-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--txt-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  transition: all .25s var(--ease);
}
.hero-icon-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* Code Card */
.hero-visual { position: relative; display: flex; justify-content: center; }

.code-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: visible;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  animation: heroCardEntrance .9s var(--ease-b) both;
  animation-delay: .4s;
}

.code-card-header {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.code-filename {
  font-family: var(--mono); font-size: .78rem;
  color: var(--txt-3); margin-left: 8px;
}

.code-card-body { padding: 22px 20px; }
.code-block {
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.75;
  white-space: pre;
  overflow-x: auto;
}
/* Syntax colors */
.c-keyword { color: #c792ea; }
.c-class    { color: #82aaff; }
.c-str      { color: var(--accent); }
.c-num      { color: #f78c6c; }
.c-op       { color: var(--txt-2); }
.c-fn       { color: #82aaff; }
.c-self     { color: #f78c6c; }

/* Floating stat chips on code card */
.stat-chip {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  background: rgba(18,21,28,.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  color: var(--txt-1);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 5;
}
.stat-chip i { color: var(--accent); }
.chip-a { top: -18px; right: -18px; }
.chip-b { bottom: -18px; left: -18px; }

/* ── Interactive Orbital Scroll Beacon ────────────────────────────────────── */
.scroll-beacon {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  z-index: 10;
  animation: beaconFadeIn 1s 0.6s var(--ease) both;
  transition: transform 0.35s var(--ease), opacity 0.4s ease;
}

@keyframes beaconFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.beacon-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Concentric radar pulse ripples */
.beacon-ripple {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  pointer-events: none;
  animation: beaconPulse 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.beacon-ripple.ripple-2 {
  animation-delay: 1.4s;
}

@keyframes beaconPulse {
  0%   { transform: scale(0.7); opacity: 0.65; border-color: var(--accent); }
  60%  { border-color: var(--accent-2); }
  100% { transform: scale(1.85); opacity: 0; }
}

/* Orbital SVG ring */
.beacon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beacon-svg {
  width: 100%;
  height: 100%;
  transform-origin: center;
  animation: beaconSpin 12s linear infinite;
}

.beacon-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
}

.beacon-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 45 100;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(124, 231, 200, 0.5));
  transition: stroke 0.3s;
}

@keyframes beaconSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Orbiting satellite photon */
.beacon-satellite {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 18px var(--accent);
  top: 50%;
  left: 50%;
  margin: -3px 0 0 -3px;
  animation: satelliteOrbit 4s linear infinite;
  pointer-events: none;
}

@keyframes satelliteOrbit {
  0%   { transform: rotate(0deg) translateX(25px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(25px) rotate(-360deg); }
}

/* Central core glass button */
.beacon-core {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(18, 21, 28, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.35s var(--ease);
  z-index: 2;
}

/* Cascading laser chevrons */
.beacon-core i {
  font-size: 0.65rem;
  color: var(--accent);
  line-height: 0.85;
  transition: color 0.3s;
  animation: chevronCascade 1.8s ease-in-out infinite;
}
.beacon-core .chevron-top { animation-delay: 0s; }
.beacon-core .chevron-mid { animation-delay: 0.25s; opacity: 0.6; }
.beacon-core .chevron-bot { animation-delay: 0.5s; opacity: 0.3; }

@keyframes chevronCascade {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.85);
  }
  40% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80% {
    opacity: 0.3;
    transform: translateY(6px) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }
}

/* Beacon interactive label */
.beacon-label {
  position: relative;
  height: 16px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--txt-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: color 0.3s;
}

.label-default,
.label-hover {
  display: block;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.label-default {
  transform: translateY(0);
  opacity: 0.8;
}

.label-hover {
  position: absolute;
  top: 0;
  transform: translateY(100%);
  opacity: 0;
  color: var(--accent);
}

/* Interactive Hover States */
.scroll-beacon:hover {
  transform: translateX(-50%) translateY(-4px) scale(1.06);
}

.scroll-beacon:hover .beacon-core {
  background: rgba(124, 231, 200, 0.12);
  border-color: rgba(124, 231, 200, 0.6);
  box-shadow: 0 0 30px rgba(124, 231, 200, 0.35);
}

.scroll-beacon:hover .beacon-arc {
  stroke: var(--accent);
  filter: drop-shadow(0 0 10px var(--accent));
}

.scroll-beacon:hover .beacon-svg {
  animation-duration: 4s;
}

.scroll-beacon:hover .beacon-satellite {
  animation-duration: 1.6s;
  background: #fff;
  box-shadow: 0 0 14px var(--accent);
}

.scroll-beacon:hover .beacon-label {
  color: var(--accent);
}

.scroll-beacon:hover .label-default {
  transform: translateY(-100%);
  opacity: 0;
}

.scroll-beacon:hover .label-hover {
  transform: translateY(0);
  opacity: 1;
}

/* Faded state when scrolled past hero */
.scroll-beacon.scrolled-past {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

/* ── About ───────────────────────────────────────────────────────────────── */
.about-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: start;
}

.about-quick-facts {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 28px;
}
.fact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--txt-2);
}
.fact-item i { color: var(--accent); width: 16px; }
.fact-item a:hover { color: var(--accent); }

/* Stats Grid */
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  text-align: center;
  transition: border-color .25s, transform .25s var(--ease);
}
.stat-box:hover {
  border-color: var(--border-act);
  transform: translateY(-4px);
}
.stat-box .stat-num {
  display: block;
  font-family: var(--mono);
  font-size: 2rem; font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-box .stat-label {
  font-size: .75rem;
  color: var(--txt-3);
  font-weight: 600;
  line-height: 1.35;
}

/* ── Skills ──────────────────────────────────────────────────────────────── */
.skills-section { background: var(--bg-2); }

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
}
.skill-group-title {
  font-size: .85rem; font-weight: 700;
  color: var(--txt-2);
  letter-spacing: .04em;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.skill-group-title i { color: var(--accent); }

.skill-pills { display: flex; flex-wrap: wrap; gap: 10px; }

.skill-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .84rem; font-weight: 500;
  color: var(--txt-2);
  cursor: default;
  /* staggered entrance */
  opacity: 0; transform: translateY(12px);
  transition:
    opacity .4s calc(var(--i) * 0.06s) var(--ease),
    transform .4s calc(var(--i) * 0.06s) var(--ease),
    border-color .2s, color .2s, background .2s;
}
.skill-group.visible .skill-pill {
  opacity: 1; transform: translateY(0);
}
.skill-pill:hover {
  border-color: var(--border-act);
  color: var(--accent);
  background: rgba(124,231,200,.05);
  transform: translateY(-3px);
}
.pill-icon { font-size: .85rem; color: var(--accent); }

/* ── Projects ────────────────────────────────────────────────────────────── */
.projects-section { background: var(--bg); }

.projects-list { display: flex; flex-direction: column; gap: 28px; }

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 28px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 34px 34px 34px 28px;
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
  cursor: default;
}
/* Left stripe glow on hover */
.project-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
  border-radius: 4px 0 0 4px;
}
.project-card:hover {
  border-color: var(--border-act);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,.4);
}
.project-card:hover::before { transform: scaleY(1); }

.project-number {
  font-family: var(--mono);
  font-size: .72rem; font-weight: 500;
  color: var(--txt-3);
  padding-top: 4px;
}

.project-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

.project-title {
  font-size: 1.25rem; font-weight: 700;
  color: var(--txt-1);
  line-height: 1.3;
  transition: color .2s;
}
.project-card:hover .project-title { color: var(--accent); }

.project-tech {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.project-tech span {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  color: var(--txt-3);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 3px 9px; border-radius: var(--r-sm);
}

.project-desc {
  font-size: .92rem; color: var(--txt-2);
  line-height: 1.65; margin-bottom: 18px;
}

.project-highlights {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px;
}
.project-highlights li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .87rem; color: var(--txt-2);
}
.project-highlights li i { color: var(--accent); font-size: .7rem; margin-top: 5px; }

.project-links { display: flex; gap: 12px; }
.btn-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
  color: var(--txt-2);
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: var(--r-sm);
  transition: all .2s;
}
.btn-link:hover { border-color: var(--accent); color: var(--accent); }

/* Glyph icon right-side */
.project-visual {
  display: flex; align-items: center; justify-content: center;
}
.project-glyph {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: rgba(124,231,200,.07);
  border: 1px solid rgba(124,231,200,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--accent);
  transition: all .3s var(--ease);
}
.project-card:hover .project-glyph {
  background: rgba(124,231,200,.13);
  transform: rotate(6deg) scale(1.08);
}

/* ── Experience / Timeline ───────────────────────────────────────────────── */
.experience-section { background: var(--bg-2); }

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute; left: 15px; top: 10px; bottom: 10px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(124,231,200,0) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 54px;
  margin-bottom: 36px;
  animation-fill-mode: both;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute; left: 7.5px; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 10px rgba(124,231,200,.4);
  transition: box-shadow .3s;
}
.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 20px rgba(124,231,200,.7);
}

.timeline-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  transition: border-color .25s, transform .25s var(--ease);
}
.timeline-item:hover .timeline-content {
  border-color: var(--border-act);
  transform: translateX(4px);
}

.timeline-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.timeline-date {
  font-family: var(--mono); font-size: .76rem;
  color: var(--txt-3);
}
.timeline-type {
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .06em;
}
.timeline-type.training { background: rgba(167,139,250,.12); color: var(--accent-2); }
.timeline-type.cert     { background: rgba(244,162,97,.12);  color: var(--accent-3); }
.timeline-type.education{ background: rgba(124,231,200,.1);  color: var(--accent);   }

.timeline-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--txt-1); margin-bottom: 4px;
}
.timeline-org {
  font-size: .88rem; color: var(--txt-2); margin-bottom: 8px;
}
.timeline-desc {
  font-size: .88rem; color: var(--txt-3); line-height: 1.55;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-section { background: var(--bg); }

.contact-sub {
  font-size: 1.05rem; color: var(--txt-2);
  max-width: 540px; margin-bottom: 56px; line-height: 1.7;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 48px; align-items: start;
}

.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  transition: all .25s var(--ease);
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(124,231,200,.05), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.contact-card:hover {
  border-color: var(--border-act);
  transform: translateX(5px);
}
.contact-card:hover::after { opacity: 1; }

.contact-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: rgba(124,231,200,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: var(--accent);
  flex-shrink: 0;
}
.contact-detail { display: flex; flex-direction: column; flex: 1; }
.contact-label {
  font-size: .72rem; font-weight: 600;
  color: var(--txt-3); text-transform: uppercase; letter-spacing: .06em;
}
.contact-val { font-size: .9rem; color: var(--txt-2); }
.contact-arrow {
  color: var(--txt-3); font-size: .85rem;
  transition: transform .25s var(--ease), color .2s;
}
.contact-card:hover .contact-arrow {
  transform: translate(3px,-3px);
  color: var(--accent);
}

/* Contact Form */
.contact-form {
  display: flex; flex-direction: column; gap: 18px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: .83rem; font-weight: 600;
  color: var(--txt-2);
}
.form-group input,
.form-group textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  color: var(--txt-1);
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,231,200,.1);
}
.form-group textarea { resize: vertical; }

.form-note {
  font-family: var(--mono); font-size: .8rem;
  color: var(--txt-3); min-height: 20px;
  text-align: center;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-2);
  position: relative; z-index: 1;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--mono); font-size: .95rem; font-weight: 500;
  color: var(--accent);
}
.footer-copy {
  font-size: .82rem; color: var(--txt-3);
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  color: var(--txt-3); font-size: 1rem;
  transition: color .2s, transform .2s;
}
.footer-socials a:hover { color: var(--accent); transform: translateY(-2px); }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast-wrap {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--card);
  border: 1px solid var(--border-act);
  border-radius: var(--r-md);
  padding: 12px 18px;
  font-size: .88rem; color: var(--txt-1);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: slideUp .3s var(--ease) both;
  display: flex; align-items: center; gap: 10px;
}
.toast i { color: var(--accent); }

/* ── Animations & Keyframes ──────────────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 6px #4ade80; }
  50%       { box-shadow: 0 0 14px #4ade80; }
}
@keyframes badgePop {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroCardEntrance {
  from { opacity: 0; transform: translateY(30px) rotate(-1deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0deg); }
}
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes chipFloat-a {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes chipFloat-b {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}
.float-a { animation: chipFloat-a 4s ease-in-out infinite; }
.float-b { animation: chipFloat-b 4.5s ease-in-out infinite .8s; }

/* ── Magnetic tilt (set via JS) ──────────────────────────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform .18s var(--ease);
}

/* ── Hero Hackathon Badge ────────────────────────────────────────────────── */
.hero-hackathon-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
  overflow: hidden;
  width: fit-content;
  margin-bottom: 22px;
  padding: 7px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
  cursor: default;
  transition: border-color .3s, background .3s;
}
.hero-hackathon-badge:hover {
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.1);
}

.hack-trophy {
  font-size: 1rem;
  animation: trophyBob 2.4s ease-in-out infinite;
}
.hack-text {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  color: #fbbf24;
  letter-spacing: .03em;
}
/* Animated shimmer sweep across the badge */
.hack-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(251, 191, 36, 0.18) 50%,
    transparent 80%
  );
  background-size: 200% 100%;
  animation: badgeShimmer 2.4s linear infinite;
  pointer-events: none;
}

@keyframes trophyBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%       { transform: translateY(-4px) rotate(-6deg); }
  75%       { transform: translateY(-2px) rotate(5deg); }
}
@keyframes badgeShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Achievements Section ────────────────────────────────────────────────── */
.achievements-section { background: var(--bg-2); }

.achievement-card {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 36px;
  align-items: start;
  background: var(--card);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--r-xl);
  padding: 40px;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s;
}
.achievement-card:hover {
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,.45), 0 0 32px rgba(251,191,36,.07);
}

/* Left: Trophy + rank */
.ach-left {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 4px;
}
.ach-trophy-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ach-trophy-icon {
  font-size: 3.4rem;
  line-height: 1;
  animation: trophyFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(251,191,36,.5));
}
.ach-rank {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.25);
  padding: 3px 10px;
  border-radius: var(--r-sm);
}

/* Right: Body */
.ach-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.ach-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.2);
  padding: 3px 10px;
  border-radius: var(--r-sm);
}
.ach-year {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--txt-3);
}
.ach-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--txt-1);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.ach-org {
  font-size: .9rem;
  color: var(--txt-2);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ach-org i { color: var(--accent); }

.ach-desc {
  font-size: .97rem;
  color: var(--txt-2);
  line-height: 1.7;
  margin-bottom: 22px;
}
.ach-desc strong { color: var(--txt-1); }

.ach-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ach-tags span {
  font-family: var(--mono);
  font-size: .73rem;
  font-weight: 500;
  color: var(--txt-3);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: var(--r-sm);
  transition: border-color .2s, color .2s;
}
.achievement-card:hover .ach-tags span {
  border-color: rgba(251,191,36,.2);
  color: var(--txt-2);
}

/* Decorative animated shimmer lines across the card */
.ach-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(251,191,36,.06) 50%,
    transparent 70%
  );
  background-size: 250% 100%;
  animation: cardShimmer 4s linear infinite;
  border-radius: inherit;
}
/* Top accent line */
.achievement-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(251,191,36,.6) 40%,
    rgba(251,191,36,.6) 60%,
    transparent
  );
  animation: accentLinePulse 2.5s ease-in-out infinite;
}

@keyframes trophyFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes cardShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes accentLinePulse {
  0%, 100% { opacity: .5; }
  50%       { opacity: 1; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid  { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 48px 1fr; }
  .project-visual { display: none; }
  .skills-layout { grid-template-columns: 1fr; }
  .achievement-card { grid-template-columns: 1fr; }
  .ach-left { display: flex; flex-direction: row; align-items: center; gap: 16px; }
  .ach-trophy-wrap { flex-direction: row; }
}
@media (max-width: 640px) {
  .desktop-nav { display: none; }
  .hamburger   { display: flex; }
  .section { padding: 80px 0; }
  .hero-section { padding-top: 140px; padding-bottom: 80px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
  .ach-title { font-size: 1.25rem; }
  .achievement-card { padding: 28px 22px; }
}


