﻿:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(13, 19, 34, 0.72);
  --panel-strong: rgba(16, 26, 48, 0.92);
  --text: #f6f9ff;
  --muted: #aab7d1;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #3ee7ff;
  --lime: #b7ff57;
  --rose: #ff5fa2;
  --violet: #9d7cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(62, 231, 255, 0.22), transparent 31rem),
    radial-gradient(circle at 82% 20%, rgba(255, 95, 162, 0.14), transparent 28rem),
    linear-gradient(135deg, #05070d 0%, #0a1020 52%, #06131f 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

#neural-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(62, 231, 255, 0.55);
  border-radius: 0.7rem;
  background: linear-gradient(145deg, rgba(62, 231, 255, 0.22), rgba(183, 255, 87, 0.12));
  box-shadow: 0 0 28px rgba(62, 231, 255, 0.23);
  font-family: "JetBrains Mono", monospace;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-header nav a:hover {
  color: var(--text);
}

.section-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  min-height: calc(100vh - 74px);
  gap: clamp(2.5rem, 6vw, 5rem);
  perspective: 1400px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--lime);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 830px;
  margin-bottom: 1.2rem;
  font-size: clamp(3.3rem, 9vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero-lede {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions,
.dual-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button,
.project-card a,
.section-heading a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border-radius: 0.85rem;
  font-weight: 800;
}

.button {
  padding: 0 1.2rem;
  border: 1px solid var(--line);
}

.button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  color: #031018;
  box-shadow: 0 16px 48px rgba(62, 231, 255, 0.2);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 560px;
  margin: 2rem 0 0;
}

.hero-stats div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.7rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  transform-style: preserve-3d;
}

.portrait-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 50% 20%, rgba(62, 231, 255, 0.22), transparent 18rem);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateX(5deg) rotateY(-8deg);
}

.portrait-stage::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.2rem;
  pointer-events: none;
}

.portrait-stage img {
  position: relative;
  z-index: 2;
  width: min(92%, 430px);
  max-height: 570px;
  object-fit: cover;
  object-position: center top;
  border-radius: 1.2rem;
  filter: saturate(1.08) contrast(1.04);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(62, 231, 255, 0.38);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbit-one {
  width: 430px;
  height: 430px;
  animation: spin 16s linear infinite;
}

.orbit-two {
  width: 320px;
  height: 620px;
  border-color: rgba(183, 255, 87, 0.33);
  transform: rotate(63deg);
  animation: spinReverse 22s linear infinite;
}

.floating-chip {
  position: absolute;
  z-index: 3;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
}

.chip-top {
  top: 2rem;
  right: 1.5rem;
}

.chip-bottom {
  left: 1.5rem;
  bottom: 2rem;
}

.marquee-panel {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.marquee-track span {
  flex: 1 0 auto;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 7vw, 5rem);
}

.about-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-heading a {
  flex: 0 0 auto;
  padding: 0 1rem;
  border: 1px solid rgba(62, 231, 255, 0.4);
  color: var(--cyan);
}

.project-grid,
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  perspective: 1200px;
}

.project-card,
.cert-card,
.timeline article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.project-card {
  min-height: 290px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.project-card:hover {
  border-color: rgba(62, 231, 255, 0.55);
  background: var(--panel-strong);
  transform: translateY(-8px) rotateX(4deg) rotateY(-4deg);
}

.project-card.featured {
  grid-column: span 1;
  background:
    linear-gradient(155deg, rgba(62, 231, 255, 0.16), rgba(255, 255, 255, 0.055)),
    var(--panel);
}

.project-tag {
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(183, 255, 87, 0.3);
  border-radius: 999px;
  color: var(--lime);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.project-card p,
.timeline p,
.cert-card span {
  color: var(--muted);
}

.project-card a {
  width: fit-content;
  min-height: auto;
  color: var(--cyan);
  font-weight: 900;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-cloud span {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline article {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 1.45rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0.45rem rgba(62, 231, 255, 0.12);
}

.timeline time {
  color: var(--lime);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 800;
}

.cert-card {
  display: grid;
  gap: 0.5rem;
  min-height: 150px;
  padding: 1.25rem;
  transition: transform 220ms ease, border-color 220ms ease;
}

.cert-card:hover {
  border-color: rgba(183, 255, 87, 0.55);
  transform: translateY(-6px) rotateX(3deg);
}

.cert-card strong {
  font-size: 1.15rem;
}

.contact-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
}

.contact-card a,
.contact-card span {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.contact-card a:hover {
  color: var(--cyan);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4.5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  to {
    transform: rotate(-297deg);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .portrait-stage {
    min-height: 540px;
    transform: none;
  }

  .project-grid,
  .cert-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .hero-stats,
  .project-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.5rem);
  }

  .portrait-stage {
    min-height: 480px;
  }

  .floating-chip {
    position: static;
    margin: 0.4rem;
  }

  .marquee-track {
    flex-direction: column;
  }

  footer {
    flex-direction: column;
  }
}

/* Premium motion upgrade */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 38%, rgba(62, 231, 255, 0.08) 46%, transparent 54% 100%),
    radial-gradient(circle at var(--mx, 50%) var(--my, 40%), rgba(183, 255, 87, 0.12), transparent 18rem);
  mix-blend-mode: screen;
  transition: background-position 500ms ease;
}

.motion-ready .section-shell:not(.hero) {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.motion-ready .section-shell.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.button,
.project-card,
.cert-card,
.skill-cloud span,
.timeline article,
.achievement-card {
  will-change: transform;
}

.button {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -45% -80%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-80%) rotate(14deg);
  transition: transform 600ms ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 52px rgba(62, 231, 255, 0.18);
}

.button:hover::after {
  transform: translateX(80%) rotate(14deg);
}

.portrait-stage {
  animation: portraitFloat 6.5s ease-in-out infinite;
}

.portrait-stage::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 90deg, transparent, rgba(62, 231, 255, 0.18), transparent, rgba(183, 255, 87, 0.16), transparent);
  animation: haloSpin 12s linear infinite;
}

.floating-chip {
  animation: chipFloat 4.6s ease-in-out infinite;
}

.chip-bottom {
  animation-delay: -1.8s;
}

.marquee-track {
  width: max-content;
  min-width: 100%;
  animation: glide 22s linear infinite;
}

.project-card,
.cert-card {
  position: relative;
  overflow: hidden;
}

.project-card::before,
.cert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--card-x, 50%) var(--card-y, 50%), rgba(62, 231, 255, 0.24), transparent 14rem);
  transition: opacity 220ms ease;
}

.project-card:hover::before,
.cert-card:hover::before {
  opacity: 1;
}

.project-card > *,
.cert-card > * {
  position: relative;
  z-index: 1;
}

.skill-cloud span {
  animation: skillPulse 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -120ms);
  transition: transform 220ms ease, border-color 220ms ease, color 220ms ease;
}

.skill-cloud span:hover {
  border-color: rgba(183, 255, 87, 0.7);
  color: var(--lime);
  transform: translateY(-6px) rotateX(12deg);
}

.hackathon-section {
  padding-top: clamp(4rem, 8vw, 6rem);
}

.achievement-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  overflow: hidden;
  min-height: 320px;
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 1px solid rgba(183, 255, 87, 0.28);
  border-radius: 1.2rem;
  background:
    linear-gradient(135deg, rgba(62, 231, 255, 0.18), rgba(255, 95, 162, 0.08)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  transform-style: preserve-3d;
}

.achievement-card p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.achievement-orb {
  position: absolute;
  right: 7%;
  top: 12%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(62, 231, 255, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), rgba(62, 231, 255, 0.12) 36%, transparent 70%);
  box-shadow: inset -24px -30px 60px rgba(0, 0, 0, 0.35), 0 0 70px rgba(62, 231, 255, 0.24);
  animation: orbDrift 7s ease-in-out infinite;
}

.cursor-orb {
  position: fixed;
  z-index: 30;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(183, 255, 87, 0.9);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 36px rgba(62, 231, 255, 0.42);
  mix-blend-mode: screen;
}

@keyframes portraitFloat {
  0%, 100% { transform: rotateX(5deg) rotateY(-8deg) translateY(0); }
  50% { transform: rotateX(8deg) rotateY(-3deg) translateY(-16px); }
}

@keyframes haloSpin {
  to { transform: rotate(360deg); }
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0) translateZ(30px); }
  50% { transform: translateY(-12px) translateZ(70px); }
}

@keyframes glide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-18%); }
}

@keyframes skillPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18); }
  50% { box-shadow: 0 16px 42px rgba(62, 231, 255, 0.16); }
}

@keyframes orbDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-24px, 18px, 80px) rotate(14deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .achievement-card {
    grid-template-columns: 1fr;
  }

  .achievement-orb {
    opacity: 0.45;
  }
}


/* Refined realistic finish */
.hero {
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 9%;
  width: min(620px, 70vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(62, 231, 255, 0.52), transparent);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-lede {
  max-width: 720px;
}

.portrait-stage {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 50% 16%, rgba(62, 231, 255, 0.2), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.project-card.featured {
  border-color: rgba(62, 231, 255, 0.26);
}

.timeline article,
.contact-card,
.cert-card,
.project-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(13, 19, 34, 0.72);
}

.live-note {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(62, 231, 255, 0.28);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
}
