/* ═══════════════════════════════════════════════
   PROJECT 3 — BEST OF BOTH WORLDS PORTFOLIO
   Combined: P1 (aurora PFP, sparkles, VanillaTilt, Lenis)
           + P2 (dark premium, loader, dual cursor, grain, Three.js, bento skills, horizontal projects, timeline)
   ═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg: #0A0A0A;
  --bg-2: #111111;
  --bg-3: #161616;
  --border: rgba(255, 255, 255, 0.07);
  --accent-blue: #00D4FF;
  --accent-violet: #8B5CF6;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --text-primary: #F0F0F0;
  --text-secondary: rgba(240, 240, 240, 0.55);
  --text-muted: rgba(240, 240, 240, 0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --section-pad: clamp(80px, 10vw, 140px);
  --max-w: 1280px;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
  --bg: #F5F5F7;
  --bg-2: #FFFFFF;
  --bg-3: #EBEBEB;
  --border: rgba(0, 0, 0, 0.1);
  --text-primary: #111111;
  --text-secondary: rgba(17, 17, 17, 0.62);
  --text-muted: rgba(17, 17, 17, 0.38);
}

[data-theme="light"] body {
  color: var(--text-primary);
}

[data-theme="light"] #navbar.scrolled {
  background: rgba(245, 245, 247, 0.88);
}

[data-theme="light"] .hero-name {
  background: linear-gradient(135deg, #111111 40%, rgba(17, 17, 17, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] #hero-canvas {
  opacity: 0.2;
}

[data-theme="light"] .grain-overlay {
  opacity: 0.1;
}

[data-theme="light"] #loader {
  background: var(--bg);
}

[data-theme="light"] .skill-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .tl-card,
[data-theme="light"] .contact-item,
[data-theme="light"] .project-card,
[data-theme="light"] .quick-fact {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .project-card {
  background: var(--bg-2);
}

[data-theme="light"] .pfp-aurora {
  opacity: 0.5;
}

[data-theme="dark"] .skill-logo-dark {
  filter: invert(1);
}

[data-theme="light"] .skill-logo-light {
  filter: invert(1) brightness(0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
}

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

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

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

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-violet);
  border-radius: 99px;
}

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

  button {
    cursor: pointer;
  }
}

/* ── GRAIN OVERLAY ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.35;
  mix-blend-mode: overlay;
}

/* ── LOADER ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--transition), visibility 0.6s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet));
  border-radius: 99px;
  transition: width 0.3s ease;
}

.loader-text {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── CUSTOM CURSOR ── */
#cursor-outer,
#cursor-inner {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

#cursor-outer {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

#cursor-inner {
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
}

body:has(.magnetic:hover) #cursor-outer {
  width: 60px;
  height: 60px;
  border-color: var(--accent-violet);
}

@media (hover: none) {

  #cursor-outer,
  #cursor-inner {
    display: none;
  }
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 32px;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding-top: 14px;
  padding-bottom: 14px;
}

[data-theme="light"] #navbar.scrolled {
  background: rgba(245, 245, 247, 0.88);
}

.nav-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.accent {
  color: var(--accent-blue);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  display: flex;
  font-size: 14px;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, transform 0.3s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--accent-blue);
}

.theme-toggle svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
}

.theme-toggle.spinning svg {
  transform: rotate(360deg);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 212, 255, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--text-primary);
}

/* ── SECTION HELPERS ── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.05);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-timeline {
  opacity: 0;
  transform: translateY(30px);
}

/* ══ HERO ══ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

/* Floating code symbols */
.code-symbols {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.code-symbol {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--accent-blue);
  opacity: 0;
  user-select: none;
  animation: codeFloat var(--duration) linear infinite alternate, codeFade ease-in-out infinite alternate;
  animation-delay: var(--delay);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}

@keyframes codeFloat {
  0% {
    transform: translate(0, 0) rotate(-10deg);
  }

  100% {
    transform: translate(40px, -80px) rotate(15deg);
  }
}

@keyframes codeFade {

  0%,
  100% {
    opacity: 0
  }

  50% {
    opacity: 0.25
  }
}

/* Sparkles container */
.sparkle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  background: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue), 0 0 24px var(--accent-blue);
  animation: sparkleFloat var(--duration) ease-in infinite;
  animation-delay: var(--delay);
}

.sparkle.purple {
  background: var(--accent-violet);
  box-shadow: 0 0 12px var(--accent-violet), 0 0 24px var(--accent-violet);
}

.sparkle.pink {
  background: #ec4899;
  box-shadow: 0 0 12px #ec4899, 0 0 24px #ec4899;
}

.sparkle.emerald {
  background: #10b981;
  box-shadow: 0 0 12px #10b981, 0 0 24px #10b981;
}

@keyframes sparkleFloat {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }

  20% {
    opacity: 0.8;
    transform: translateY(-20px) scale(1);
  }

  100% {
    transform: translateY(-100px) scale(0);
    opacity: 0;
  }
}

/* ── MERGED HERO / ABOUT SECTIONS ── */
#about {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0;
}

/* Vanta / Gradient background inside #about */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-gradient-1 {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  animation: heroFloat1 8s ease-in-out infinite;
}

.hero-gradient-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  animation: heroFloat2 10s ease-in-out infinite;
}

.hero-gradient-3 {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.07) 0%, transparent 70%);
  animation: heroFloat3 12s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

[data-theme="light"] .hero-gradient-1 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .hero-grid {
  background-image: linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
}

@keyframes heroFloat1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -40px);
  }
}

@keyframes heroFloat2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-40px, 30px);
  }
}

@keyframes heroFloat3 {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -30px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 clamp(24px, 5vw, 64px);
  max-width: 900px;
}

/* ── HERO BADGE ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-blue);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 99px;
  padding: 7px 16px;
  margin-bottom: 32px;
  background: rgba(0, 212, 255, 0.06);
  opacity: 0;
  transform: translateY(20px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

/* ── AURORA PFP ── */
.hero-pfp-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 36px;
  cursor: pointer;
}

.pfp-aurora {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #00D4FF, #8B5CF6, #EC4899, #10B981, #00D4FF);
  opacity: 0.5;
  filter: blur(20px);
  animation: auroraRotate 6s linear infinite;
  z-index: 0;
}

.pfp-aurora-2 {
  inset: -30px;
  opacity: 0.2;
  filter: blur(35px);
  animation-duration: 9s;
  animation-direction: reverse;
}

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

.pfp-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 1;
}

.pfp-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet), #EC4899);
  animation: ringRotate 4s linear infinite;
  z-index: 2;
}

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

.pfp-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 4px solid var(--bg);
  z-index: 3;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-pfp-wrap:hover .pfp-img {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.pfp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── HERO TEXT ── */
.hero-name {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-name-word {
  display: inline-block;
  margin-right: 0.2em;
  overflow: hidden;
}

.hero-role-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
}


.hero-role {
  font-weight: 700;
  color: var(--accent-blue);
}


.type-caret {
  font-weight: 400;
  color: var(--accent-blue);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-location svg {
  color: var(--accent-blue);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  opacity: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
}

.h-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.h-stat strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.h-stat span {
  font-size: 12px;
  color: var(--text-muted);
}

.h-stat-div {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 1s 2.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(0.7);
  }
}

.hero-scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ══ ABOUT ══ */
/* ── Vanta / Gradient background ── */
/* ── Vanta / Gradient background ── */
/* ── Vanta / Gradient background ── */
/* ── Vanta / Gradient background ── */
/* Hero Avatar Box Styles inside About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-visual-col {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-glass-card {
  background: rgba(var(--bg-rgb), 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 16px;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-glass-outline {
  background: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  position: relative;
  z-index: 10;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.tag svg {
  color: var(--accent-blue);
  flex-shrink: 0;
}

.tag:hover {
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.about-quick-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.quick-fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s;
}

.quick-fact:hover {
  border-color: rgba(0, 212, 255, 0.25);
}

.qf-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.quick-fact div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-fact strong {
  font-size: 14px;
  font-weight: 600;
}

.quick-fact span {
  font-size: 13px;
  color: var(--text-muted);
}

.about-visual-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-avatar-wrap {
  position: relative;
  width: 280px;
  margin: 0 auto;
  cursor: pointer;
}

.avatar-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.about-avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(0, 212, 255, 0.3);
  position: relative;
  z-index: 1;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.3s, transform 0.3s;
}

.about-avatar:hover {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.03);
}

.avatar-badge {
  position: absolute;
  bottom: 10px;
  right: -10px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  color: #fff;
}

.about-stats-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  min-width: 90px;
}

.about-stat .stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-blue);
}

.about-stat .stat-plus {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.about-stat .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Expertise cards (About right col) ── */
.expertise-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expertise-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.expertise-card:hover {
  border-color: rgba(0, 212, 255, 0.28);
  background: rgba(0, 212, 255, 0.03);
  transform: translateX(4px);
}

.ex-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}

.ex-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ex-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ══ SKILLS ══ */
#skills {
  padding: var(--section-pad) 0;
}

.skills-constellation-wrap {
  position: relative;
  height: 300px;
  margin-bottom: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
}

#skills-canvas {
  width: 100%;
  height: 100%;
}

.skills-legend {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.skills-bento {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  cursor: default;
  animation: cardFloat var(--float-delay, 0s) ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 212, 255, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
}

.skill-card.learning {
  border-style: dashed;
}

.skill-card.learning:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.skill-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.skill-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.skill-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet));
  border-radius: 99px;
  transition: width 0s;
}

.skill-pct {
  font-size: 11px;
  color: var(--text-muted);
}

.skill-fill-learning {
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(139, 92, 246, 0.3) 0, rgba(139, 92, 246, 0.3) 4px, transparent 4px, transparent 8px);
  border-radius: 99px;
}

.learning-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-violet);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 99px;
  padding: 2px 10px;
}

/* ══ PROJECTS ══ */
#projects {
  padding: var(--section-pad) 0 0;
}

.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.projects-header .section-title {
  margin-bottom: 0;
}

.view-all-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.view-all-link:hover {
  color: var(--accent-blue);
}

.projects-horizontal {
  overflow-x: auto;
  cursor: grab;
  padding-bottom: 24px;
  scrollbar-width: none;
}

.projects-horizontal::-webkit-scrollbar {
  display: none;
}

.projects-horizontal.dragging {
  cursor: grabbing;
}

.projects-strip {
  display: flex;
  gap: 20px;
  padding: 0 clamp(24px, 5vw, 64px) 4px;
  width: max-content;
}

.project-card {
  width: 360px;
  flex-shrink: 0;
  background: var(--bg-2);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.project-card:hover {
  border-color: rgba(var(--card-color-rgb, 0, 212, 255), 0.4);
  transform: translateY(-6px);
}

.project-card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--card-color, var(--accent-blue));
  opacity: 0.06;
  filter: blur(40px);
  pointer-events: none;
}

.project-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.project-card:hover .project-num {
  color: var(--card-color);
  text-shadow: 0 0 24px rgba(99, 102, 241, 0.4);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.ptag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.project-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.project-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-metrics {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.pm {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pm strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pm span {
  font-size: 11px;
  color: var(--text-muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 16px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.project-link:hover {
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.05);
}

.projects-scroll-hint {
  padding: 12px clamp(24px, 5vw, 64px) clamp(40px, 6vw, 80px);
  font-size: 13px;
  color: var(--text-muted);
}

/* ══ TIMELINE ══ */
#timeline {
  padding: var(--section-pad) 0;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto 64px;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-violet), transparent);
  transform-origin: top center;
}

.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 48px;
}

.timeline-item[data-side="left"] {
  flex-direction: row-reverse;
  padding-right: calc(50% + 32px);
}

.timeline-item[data-side="right"] {
  padding-left: calc(50% + 32px);
}

.tl-dot {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 2px solid var(--bg);
  z-index: 2;
}

.current-pulse {
  background: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.05);
  }
}

.tl-card {
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s;
}

.tl-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
}

.current-card {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.03);
}

.tl-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
}

.tl-title {
  font-size: 1rem;
  font-weight: 700;
}

.tl-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tl-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: fit-content;
}

.active-badge {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
}

.tl-stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.tl-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tl-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-blue);
}

.tl-stat span {
  font-size: 1rem;
  color: var(--text-muted);
}

.tl-stat p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ══ CERTIFICATIONS ══ */
#certifications {
  padding: var(--section-pad) 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  text-decoration: none;
  color: inherit;
}

.cert-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.04);
  transform: translateY(-4px);
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-content {
  flex: 1;
}

.cert-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}

.cert-issuer {
  font-size: 12px;
  color: var(--text-muted);
}

.cert-arrow {
  font-size: 18px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.25s;
}

.cert-card:hover .cert-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-violet);
}

/* ══ BLOG ══ */
#blog {
  padding: var(--section-pad) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.blog-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, transform 0.25s;
  overflow: hidden;
}

.blog-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateY(-4px);
}

.blog-card-inner {
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.read-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
}

.blog-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-read-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-read-link:hover {
  gap: 8px;
}

.blog-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ══ CONTACT ══ */
#contact {
  padding: var(--section-pad) 0;
}

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

.contact-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s;
}

.contact-item:hover {
  border-color: rgba(0, 212, 255, 0.25);
}

.ci-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.ci-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.ci-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ci-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  margin-top: 4px;
  transition: border-color 0.2s, color 0.2s;
  width: fit-content;
}

.copy-btn:hover {
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--accent-blue);
}

.social-links {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-link:hover {
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.06);
}

/* ══ FOOTER ══ */
#footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.footer-edu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.footer-amity-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-edu span {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--accent-blue);
}

/* ══ TOAST ══ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 99px;
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 99999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══ MOBILE NAV ══ */
.mobile-nav-dropdown {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.96);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav-dropdown.open {
  display: flex;
}

.mobile-nav-dropdown a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mobile-nav-dropdown a:hover {
  color: var(--accent-blue);
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  #about {
    min-height: auto;
    padding: 100px 0 60px;
  }

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

  /* Disable sticky so it doesn't overlap bio text */
  .about-visual-col {
    order: -1;
    position: static;
    transform: none;
    width: 100%;
  }

  /* Prevent glass cards from overflowing viewport */
  .about-glass-card,
  .about-glass-outline {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .timeline-item[data-side="left"],
  .timeline-item[data-side="right"] {
    padding: 0 0 0 48px;
    flex-direction: column;
  }

  .timeline-line {
    left: 12px;
  }

  .tl-dot {
    left: 12px;
  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    gap: 16px;
  }

  /* Shrink the PFP on small phones — wrap AND img must match */
  .hero-pfp-wrap {
    width: 120px !important;
    height: 120px !important;
  }

  .pfp-img {
    width: 120px;
    height: 120px;
  }

  .hero-role-wrapper {
    font-size: 0.95rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-location {
    text-align: center;
  }

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

  .skills-bento {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .about-avatar-wrap,
  .about-avatar {
    width: 200px;
    height: 200px;
  }

  .social-links {
    grid-column: auto;
  }

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

  .about-quick-facts {
    gap: 12px;
  }
}