/* ============================================================
   Aman Kumar — AI Software Engineer portfolio
   Theme: futuristic AI / holographic sci-fi
   ============================================================ */

:root {
  --bg: #04060f;
  --surface: rgba(120, 140, 255, 0.045);
  --surface-strong: rgba(10, 14, 32, 0.75);
  --surface-border: rgba(140, 160, 255, 0.16);
  --text: #d6dcf5;
  --text-muted: #8390b5;
  --heading: #eef1ff;
  --accent: #22d3ee;
  --accent-2: #a855f7;
  --accent-3: #34d399;
  --accent-soft: rgba(34, 211, 238, 0.1);
  --gradient: linear-gradient(110deg, #22d3ee, #a855f7 50%, #34d399);
  --header-h: 4.5rem;
  --radius: 16px;
  --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.25);
  --glow-violet: 0 0 30px rgba(168, 85, 247, 0.3);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* faint CRT scanlines over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  opacity: 0.5;
  mix-blend-mode: overlay;
}

h1, h2, h3 { font-family: var(--font-display); }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.accent { color: var(--accent); }

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

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding: 6rem 0 2rem; }

/* ---------- gradient shimmer text ---------- */
.gradient-text {
  background: linear-gradient(100deg, #eef1ff 0%, #22d3ee 25%, #a855f7 50%, #34d399 70%, #eef1ff 90%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 250% 0; }
  100% { background-position: -250% 0; }
}

/* ---------- scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.7);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 300;
  pointer-events: none;
}

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: fixed;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, rgba(168, 85, 247, 0.05) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
}
body.cursor-active .cursor-glow { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ---------- aurora background ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(140, 160, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 160, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}

.bg-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.35;
}
.bg-glow--one {
  width: 55vw; height: 55vw;
  min-width: 480px; min-height: 480px;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.5), rgba(168, 85, 247, 0.35) 60%, transparent 75%);
  top: -22vw; left: -12vw;
  animation: aurora-one 20s ease-in-out infinite alternate;
}
.bg-glow--two {
  width: 48vw; height: 48vw;
  min-width: 420px; min-height: 420px;
  background: radial-gradient(circle at 70% 70%, rgba(52, 211, 153, 0.4), rgba(168, 85, 247, 0.3) 55%, transparent 75%);
  bottom: -20vw; right: -10vw;
  animation: aurora-two 26s ease-in-out infinite alternate;
}
@keyframes aurora-one {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(9vw, 7vh) scale(1.15); }
  100% { transform: translate(3vw, 12vh) scale(0.95); }
}
@keyframes aurora-two {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8vw, -6vh) scale(1.12); }
  100% { transform: translate(-2vw, -12vh) scale(1.02); }
}

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(4, 6, 15, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  border-bottom-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 8px 40px rgba(88, 50, 200, 0.15);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--heading);
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}
.nav__logo-bracket { color: var(--accent-2); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s, text-shadow 0.25s;
}
.nav__link:hover, .nav__link.active-link {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.6);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--heading);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: var(--accent);
  background: rgba(34, 211, 238, 0.05);
  box-shadow: var(--glow-cyan), inset 0 0 14px rgba(34, 211, 238, 0.06);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.4), inset 0 0 18px rgba(34, 211, 238, 0.1);
}

.btn--primary {
  background: var(--gradient);
  border: none;
  color: #030614;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.45);
}
.btn--primary:hover {
  background: var(--gradient);
  box-shadow: 0 0 44px rgba(168, 85, 247, 0.65), 0 0 20px rgba(34, 211, 238, 0.4);
}

.btn--ghost { background: transparent; }

.btn--small {
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
}

.btn--large { padding: 1rem 2.4rem; font-size: 1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 3rem);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
}
.hero__container, .hero__stats { position: relative; z-index: 1; }

/* hero entrance stagger (plays once on load) */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow, .hero__title, .hero__subtitle,
.hero__description, .hero__actions, .hero__socials {
  opacity: 0;
  animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__eyebrow { animation-delay: 0.1s; }
.hero__title { animation-delay: 0.22s; }
.hero__subtitle { animation-delay: 0.34s; }
.hero__description { animation-delay: 0.46s; }
.hero__actions { animation-delay: 0.58s; }
.hero__socials { animation-delay: 0.7s; }
.hero__visual {
  opacity: 0;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}
.hero__stats .stat {
  opacity: 0;
  animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__stats .stat:nth-child(1) { animation-delay: 0.75s; }
.hero__stats .stat:nth-child(2) { animation-delay: 0.85s; }
.hero__stats .stat:nth-child(3) { animation-delay: 0.95s; }
.hero__stats .stat:nth-child(4) { animation-delay: 1.05s; }

.hero__container {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero__eyebrow {
  color: var(--accent);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.5);
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin-top: 0.7rem;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 600;
  color: var(--text-muted);
}
.hero__typed {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}
.hero__cursor {
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__description {
  margin-top: 1.4rem;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.02rem;
}
.hero__description strong { color: var(--text); }

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.hero__socials {
  display: flex;
  gap: 1.3rem;
  margin-top: 2.4rem;
}
.hero__socials a {
  color: var(--text-muted);
  transition: color 0.25s, transform 0.25s, filter 0.25s;
  display: inline-flex;
}
.hero__socials a:hover {
  color: var(--accent);
  transform: translateY(-3px);
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.7));
}

.hero__visual {
  position: relative;
  justify-self: center;
  perspective: 900px;
}

.hero__img-wrap {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 1;
  transform-style: preserve-3d;
}

.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 30px;
  position: relative;
  z-index: 1;
  filter: saturate(1.02);
  border: 1px solid rgba(140, 160, 255, 0.25);
}

/* holographic aura behind the photo */
.hero__img-ring {
  position: absolute;
  inset: -14px;
  border-radius: 40px;
  background: conic-gradient(from 0deg, #22d3ee, #a855f7, #ec4899, #22d3ee);
  filter: blur(18px);
  opacity: 0.55;
  z-index: 0;
  animation: auraPulse 5s ease-in-out infinite alternate;
}
@keyframes auraPulse {
  from { opacity: 0.4; transform: scale(0.98) rotate(0deg); }
  to { opacity: 0.75; transform: scale(1.04) rotate(6deg); }
}

.hero__badge {
  position: absolute;
  z-index: 2;
  background: rgba(6, 9, 22, 0.85);
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  color: var(--accent);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.3);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.hero__badge--one { top: 6%; left: -16%; animation: float 5s ease-in-out infinite; }
.hero__badge--two { bottom: 8%; right: -12%; animation: float 5s ease-in-out 2.5s infinite; border-color: rgba(52, 211, 153, 0.45); color: #6ee7b7; box-shadow: 0 0 18px rgba(52, 211, 153, 0.3); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 4.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--surface-border);
}
.stat { text-align: center; }
.stat__value {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.45));
}
.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- tech marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  background: rgba(10, 12, 28, 0.6);
  box-shadow: inset 0 0 40px rgba(88, 50, 200, 0.12);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: marquee 36s linear infinite;
  will-change: transform;
}
.marquee__track span:nth-child(4n + 2) {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}
.marquee__track span:nth-child(8n + 6) {
  color: #6ee7b7;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- section titles ---------- */
.section__title {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.section__number {
  color: var(--accent);
  font-size: 0.8em;
  font-weight: 500;
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.6);
}
.section__title::after {
  content: "";
  flex: 1;
  max-width: 260px;
  height: 1px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.6), transparent);
  margin-left: 0.5rem;
}

/* ---------- holo glass cards (shared) ---------- */
.about__card, .skill-card, .feature__terminal, .education__card, .timeline__content {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* HUD corner brackets (about card + timeline) */
.about__card::before, .timeline__content::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-top-left-radius: var(--radius);
  opacity: 0.8;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.8));
  pointer-events: none;
}
.about__card::after, .timeline__content::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 16px; height: 16px;
  border-bottom: 2px solid var(--accent-3);
  border-right: 2px solid var(--accent-3);
  border-bottom-right-radius: var(--radius);
  opacity: 0.8;
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.8));
  pointer-events: none;
}
.timeline__content { position: relative; }

/* ---------- about ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about__text p { margin-bottom: 1.1rem; color: var(--text-muted); }
.about__text strong { color: var(--text); }
.about__highlight { color: var(--text) !important; font-weight: 600; }

.about__list {
  display: grid;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.about__list li {
  position: relative;
  padding-left: 1.4rem;
}
.about__list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

.about__card {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.8rem;
}
.about__card-title {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}
.about__card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}
.about__card p:last-child { margin-bottom: 0; }
.about__card strong { color: var(--text); }

/* ---------- experience timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
  --progress: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(140, 160, 255, 0.15);
}
.timeline::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
  transform: scaleY(var(--progress));
  transform-origin: top;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
}

.timeline__item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline__marker {
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15), 0 0 14px rgba(34, 211, 238, 0.7);
  animation: markerPulse 3s ease-in-out infinite;
}
@keyframes markerPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15), 0 0 10px rgba(34, 211, 238, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.1), 0 0 20px rgba(34, 211, 238, 0.9); }
}

.timeline__content {
  padding: 1.6rem 1.8rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.timeline__content:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: var(--glow-cyan);
}

.timeline__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.timeline__header h3 {
  color: var(--heading);
  font-size: 1.08rem;
  font-weight: 700;
}
.timeline__date { font-size: 0.8rem; color: var(--text-muted); }

.timeline__points {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.timeline__points li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.timeline__points li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

.timeline__tags, .skill-card__tags, .feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.timeline__tags span, .skill-card__tags span, .feature__tags span {
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.3);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.timeline__tags span:hover, .skill-card__tags span:hover, .feature__tags span:hover {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}

/* ---------- skills ---------- */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  perspective: 1400px;
}

.skill-card {
  padding: 1.8rem;
}
.skill-card:hover {
  box-shadow: var(--glow-violet);
}
.skill-card__icon {
  color: var(--accent);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.7));
}
.skill-card h3 {
  color: var(--heading);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* ---------- projects: terminal features ---------- */
.projects__list { display: grid; gap: 4rem; }

.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.8rem;
  align-items: center;
}
.feature:nth-of-type(even) .feature__terminal { order: 2; }

.feature__terminal {
  font-size: 0.84rem;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.55);
}
.feature__terminal:hover {
  box-shadow: var(--glow-cyan), 0 24px 70px rgba(2, 6, 23, 0.65);
}

.feature__terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--surface-border);
}
.feature__terminal-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.feature__terminal-bar span:nth-child(1) { background: var(--accent); box-shadow: 0 0 8px rgba(34, 211, 238, 0.7); }
.feature__terminal-bar span:nth-child(2) { background: var(--accent-2); box-shadow: 0 0 8px rgba(168, 85, 247, 0.7); }
.feature__terminal-bar span:nth-child(3) { background: var(--accent-3); box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }
.feature__terminal-bar p {
  margin-inline: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.feature__terminal-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: grid;
  gap: 0.5rem;
}
.feature__terminal-body p { line-height: 1.5; }
.t-prompt { color: var(--accent); text-shadow: 0 0 10px rgba(34, 211, 238, 0.6); }
.t-dim { color: var(--text-muted); }
.t-ok { color: var(--accent-3); text-shadow: 0 0 10px rgba(52, 211, 153, 0.45); }
.t-cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
.t-typed { color: var(--heading); text-shadow: 0 0 10px rgba(34, 211, 238, 0.35); }

/* terminal lines type in when scrolled into view */
.feature__terminal-body p {
  opacity: 0;
  transform: translateY(6px);
}
.feature.visible .feature__terminal-body p { animation: lineIn 0.35s ease forwards; }
.feature.visible .feature__terminal-body p:nth-child(1) { animation-delay: 0.25s; }
.feature.visible .feature__terminal-body p:nth-child(2) { animation-delay: 0.5s; }
.feature.visible .feature__terminal-body p:nth-child(3) { animation-delay: 0.75s; }
.feature.visible .feature__terminal-body p:nth-child(4) { animation-delay: 1s; }
.feature.visible .feature__terminal-body p:nth-child(5) { animation-delay: 1.2s; }
.feature.visible .feature__terminal-body p:nth-child(6) { animation-delay: 1.4s; }
.feature.visible .feature__terminal-body p:nth-child(7) { animation-delay: 1.65s; }
@keyframes lineIn {
  to { opacity: 1; transform: translateY(0); }
}

.feature__label {
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.5);
}
.feature__info h3 {
  color: var(--heading);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  margin: 0.5rem 0 0.9rem;
}
.feature__desc {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 1.3rem;
}

/* ---------- education ---------- */
.education__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  perspective: 1400px;
}
.education__card {
  padding: 1.6rem 1.8rem;
}
.education__card h3 {
  color: var(--heading);
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}
.education__card p { color: var(--text-muted); font-size: 0.92rem; }
.education__date {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

/* ---------- contact ---------- */
.contact { padding-bottom: 6rem; }
.contact__container {
  text-align: center;
  max-width: 640px;
}
.contact__eyebrow { font-size: 0.9rem; margin-bottom: 1rem; text-shadow: 0 0 16px rgba(34, 211, 238, 0.5); }
.contact__title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.4));
}
.contact__text { color: var(--text-muted); margin-bottom: 2.2rem; }
.contact__links {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.contact__links a { color: var(--text-muted); transition: color 0.25s, text-shadow 0.25s; }
.contact__links a:hover {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

/* ---------- footer ---------- */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 3D tilt ---------- */
[data-tilt] {
  position: relative;
  transition: opacity 0.7s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
[data-tilt].tilting { transition: opacity 0.7s ease, border-color 0.3s, box-shadow 0.3s; }

/* glare highlight following the cursor across cards */
.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(180, 220, 255, 0.1) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
[data-tilt].tilting .tilt-glare { opacity: 1; }
.hero__img-wrap .tilt-glare { z-index: 2; border-radius: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__badge, .gradient-text, .marquee__track, .bg-glow, .hero__img-ring, .timeline__marker { animation: none; }
  .hero__eyebrow, .hero__title, .hero__subtitle, .hero__description,
  .hero__actions, .hero__socials, .hero__visual, .hero__stats .stat {
    opacity: 1;
    animation: none;
  }
  .gradient-text { color: var(--heading); background: none; }
  .cursor-glow { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__container { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-top: 1rem; }
  .hero__img-wrap { width: min(230px, 60vw); }
  .about__grid { grid-template-columns: 1fr; }
  .about__card { position: static; }
  .skills__grid, .education__grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature:nth-of-type(even) .feature__terminal { order: 0; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
}

/* ============================================================
   Extra animation layer
   ============================================================ */

/* rotating holographic borders on skill / project / education cards */
@property --bang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.skill-card, .feature__terminal, .education__card {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(8, 11, 26, 0.85), rgba(8, 11, 26, 0.85)) padding-box,
    conic-gradient(from var(--bang),
      rgba(34, 211, 238, 0.55),
      rgba(168, 85, 247, 0.5) 30%,
      rgba(52, 211, 153, 0.45) 62%,
      rgba(34, 211, 238, 0.55)) border-box;
  animation: borderSpin 7s linear infinite;
}
.skill-card:hover, .feature__terminal:hover, .education__card:hover {
  animation-duration: 2.5s;
}
@keyframes borderSpin {
  to { --bang: 360deg; }
}

/* scan-line sweep across project cards on hover */
.feature__terminal .tilt-glare { overflow: hidden; }
.feature__terminal .tilt-glare::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -45%;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.12), transparent);
  opacity: 0;
}
.feature__terminal:hover .tilt-glare::after {
  opacity: 1;
  animation: scanSweep 1.1s ease-in-out infinite;
}
@keyframes scanSweep {
  from { transform: translateY(0); }
  to { transform: translateY(360%); }
}

/* orbiting satellites around the hero photo */
.hero__orbit {
  position: absolute;
  inset: -36px;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, 0.22);
  animation: orbitSpin 16s linear infinite;
  pointer-events: none;
  z-index: 2;
}
.hero__orbit span {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
}
.hero__orbit span:nth-child(1) {
  top: -5px; left: calc(50% - 5px);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.9), 0 0 26px rgba(34, 211, 238, 0.5);
}
.hero__orbit span:nth-child(2) {
  bottom: -5px; left: calc(50% - 5px);
  background: var(--accent-3);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.9), 0 0 26px rgba(52, 211, 153, 0.5);
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

/* skill icons gently bob */
.skill-card__icon svg {
  animation: iconBob 4.5s ease-in-out infinite;
}
.skill-card:nth-child(2) .skill-card__icon svg { animation-delay: 1.1s; }
.skill-card:nth-child(3) .skill-card__icon svg { animation-delay: 2.2s; }
.skill-card:nth-child(4) .skill-card__icon svg { animation-delay: 3.3s; }
@keyframes iconBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}

/* section title lines draw themselves in */
.section__title::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.section__title.visible::after { transform: scaleX(1); }

/* ---------- hero photo: blend into the theme ---------- */
.hero__img { filter: saturate(0.85) contrast(1.06) brightness(0.9); }
.hero__img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  z-index: 2;
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.3), rgba(168, 85, 247, 0.34) 55%, rgba(52, 211, 153, 0.26));
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  z-index: 2;
  box-shadow: inset 0 0 70px rgba(4, 6, 15, 0.65), inset 0 -34px 54px rgba(4, 6, 15, 0.4);
  background: linear-gradient(180deg, transparent 55%, rgba(88, 50, 200, 0.22));
  pointer-events: none;
}

/* ---------- 3D depth layers ---------- */
.feature__terminal { transform-style: preserve-3d; }
.feature__terminal-bar { transform: translateZ(22px); }
.feature__terminal-body { transform: translateZ(14px); }

.skill-card { transform-style: preserve-3d; }
.skill-card__icon { transform: translateZ(28px); }
.skill-card h3 { transform: translateZ(18px); }
.skill-card__tags { transform: translateZ(10px); }

@media (prefers-reduced-motion: reduce) {
  .skill-card, .feature__terminal, .education__card,
  .hero__orbit, .skill-card__icon svg { animation: none; }
  .feature__terminal:hover .tilt-glare::after { animation: none; opacity: 0; }
  .section__title::after { transform: scaleX(1); transition: none; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: rgba(4, 6, 15, 0.97);
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    padding: 2rem 0 2.5rem;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    z-index: 99;
  }
  .nav__menu.show { transform: translateY(0); }
  .hero__badge--one { left: -4%; }
  .hero__badge--two { right: -4%; }
}
