/* =========================================
   DIGGAJ NIRAULA — PORTFOLIO
   "Technical Energy × Bold Future"
   ========================================= */

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

:root {
  --bg:          #050508;
  --bg-rgb:      5, 5, 8;
  --surface:     #0c0c14;
  --surface-2:   #12121e;
  --surface-3:   #1a1a2a;
  --border:      rgba(255,255,255,0.06);
  --border-h:    rgba(255,255,255,0.12);
  --text:        #a8a8c0;
  --text-muted:  #5e5e80;
  --heading:     #f0f0ff;

  --teal:        #00f5d4;
  --teal-rgb:    0, 245, 212;
  --electric:    #7b61ff;
  --electric-rgb:123, 97, 255;
  --lime:        #b8ff57;
  --lime-rgb:    184, 255, 87;
  --orange:      #ff8a50;
  --orange-rgb:  255, 138, 80;
  --hot:         #ff3d71;
  --hot-rgb:     255, 61, 113;

  --font:        'DM Sans', -apple-system, sans-serif;
  --font-display:'Outfit', sans-serif;
  --font-mono:   'Space Mono', monospace;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --nav-h:       72px;
  --radius:      14px;
}

html.light {
  --bg:          #f4f4f8;
  --bg-rgb:      244, 244, 248;
  --surface:     #eaeaf0;
  --surface-2:   #e0e0ea;
  --surface-3:   #d4d4e2;
  --border:      rgba(0,0,0,0.07);
  --border-h:    rgba(0,0,0,0.14);
  --text:        #4a4a66;
  --text-muted:  #8888a8;
  --heading:     #0a0a12;
  --teal:        #00c4a8;
  --teal-rgb:    0, 196, 168;
  --electric:    #6246ea;
  --electric-rgb:98, 70, 234;
  --lime:        #4a9d00;
  --lime-rgb:    74, 157, 0;
  --orange:      #e06830;
  --orange-rgb:  224, 104, 48;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

::selection { background: rgba(var(--teal-rgb), 0.3); color: #fff; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---- Cursor glow ---- */
.cursor-glow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(var(--teal-rgb), 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
}
.cursor-glow.active { opacity: 1; }
@media (max-width: 768px) { .cursor-glow { display: none; } }

/* ==========================
   NAVIGATION
   ========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.15);
}
.nav__inner {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.nav__logo {
  display: flex; align-items: center; gap: 4px; z-index: 10;
  transition: transform 0.3s var(--ease-spring);
}
.nav__logo:hover { transform: scale(1.05); }
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.4rem;
  background: linear-gradient(135deg, var(--teal), var(--electric));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__logo-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(var(--teal-rgb), 0.8);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.nav__links { display: flex; gap: 4px; }
.nav__link {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav__link:hover {
  color: var(--heading);
  background: rgba(var(--teal-rgb), 0.06);
}
.nav__link.active {
  color: var(--teal);
  background: rgba(var(--teal-rgb), 0.1);
  box-shadow: 0 0 12px rgba(var(--teal-rgb), 0.1);
}

.nav__right { display: flex; align-items: center; gap: 8px; z-index: 10; }

/* Theme toggle - pill switch */
.theme-btn {
  padding: 3px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.theme-btn:hover { border-color: var(--border-h); }
.theme-btn__track { width: 44px; height: 24px; position: relative; }
.theme-btn__thumb {
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--electric));
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease-spring);
  color: #050508;
}
html.light .theme-btn__thumb { transform: translateX(20px); }
.theme-btn__moon { display: none; }
html.light .theme-btn__sun { display: none; }
html.light .theme-btn__moon { display: block; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  justify-content: center; padding: 8px;
}
.nav__burger span {
  height: 2px; background: var(--heading); border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: rgba(var(--bg-rgb), 0.97);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    padding: 12px 24px 28px; gap: 2px;
    transform: translateY(-120%); opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
    border-bottom: 1px solid var(--border);
  }
  .nav__links.open { transform: translateY(0); opacity: 1; }
  .nav__link { font-size: 0.9rem; padding: 14px 16px; }
}

/* ==========================
   HERO
   ========================== */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 20px) 28px 80px;
}

.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero__gradient {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(var(--electric-rgb), 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(var(--teal-rgb), 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 80% 70%, rgba(var(--lime-rgb), 0.06) 0%, transparent 50%);
}

.hero__noise {
  position: absolute; inset: 0; z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
}

.hero__split {
  position: relative; z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1120px;
  width: 100%;
  padding: 0 28px;
}

.hero__text {
  text-align: left;
  flex: 1;
  min-width: 0;
}

/* Hero badge */
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--teal);
  padding: 8px 20px;
  background: rgba(var(--teal-rgb), 0.06);
  border: 1px solid rgba(var(--teal-rgb), 0.15);
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero__badge-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(var(--teal-rgb), 0.7);
  animation: dotPulse 2s ease-in-out infinite;
}

/* Hero title — massive, bold, fully visible */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
html.light .hero__title { color: #0a0a12; text-shadow: none; }

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

/* ---- Hero Photo (right side) ---- */
.hero__photo-wrap {
  position: relative;
  width: 320px; height: 320px;
  flex-shrink: 0;
  transition: transform 0.15s ease-out;
}

.hero__photo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 240px; height: 240px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 3;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero__photo-wrap:hover .hero__photo {
  transform: translate(-50%, -50%) scale(1.04);
}

.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
/* When img loads, hide avatar */
.hero__photo img.loaded ~ .hero__avatar { display: none; }

/* ---- Animated Avatar Placeholder ---- */
.hero__avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border: 2px solid rgba(var(--teal-rgb), 0.2);
  box-shadow:
    0 0 60px rgba(var(--teal-rgb), 0.2),
    0 0 120px rgba(var(--electric-rgb), 0.1),
    inset 0 0 40px rgba(0,0,0,0.3);
}

.hero__avatar-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(var(--teal-rgb), 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(var(--electric-rgb), 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(var(--lime-rgb), 0.05) 0%, transparent 40%);
  animation: meshShift 8s ease-in-out infinite alternate;
}
@keyframes meshShift {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1) rotate(-3deg); }
}

.hero__avatar-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70%; height: 70%;
  z-index: 2;
  filter: drop-shadow(0 4px 20px rgba(var(--teal-rgb), 0.3));
}

/* Floating particles inside */
.hero__avatar-particles {
  position: absolute; inset: 0; z-index: 3;
}
.hero__avatar-particles span {
  position: absolute;
  left: var(--px); top: var(--py);
  width: var(--ps); height: var(--ps);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px rgba(var(--teal-rgb), 0.6);
  animation: avatarParticle var(--pd) ease-in-out infinite alternate;
}
@keyframes avatarParticle {
  0% { transform: translateY(0) scale(1); opacity: 0.4; }
  100% { transform: translateY(-12px) scale(1.3); opacity: 0.9; }
}

.hero__avatar-initials {
  position: absolute;
  bottom: 14%; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(var(--teal-rgb), 0.15);
  z-index: 1;
  user-select: none;
}

/* ---- Spinning SVG border ring ---- */
.hero__photo-border {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 310px; height: 310px;
  z-index: 2;
  pointer-events: none;
}

/* Corner accent marks */
.hero__photo-corners {
  position: absolute;
  top: 50%; left: 50%;
  width: 280px; height: 280px;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}
.hero__photo-corners span {
  position: absolute;
  width: 16px; height: 16px;
  border-color: rgba(var(--teal-rgb), 0.3);
  border-style: solid;
  border-width: 0;
}
.hero__photo-corners span:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-radius: 4px 0 0 0; }
.hero__photo-corners span:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-radius: 0 4px 0 0; }
.hero__photo-corners span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-radius: 0 0 0 4px; }
.hero__photo-corners span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-radius: 0 0 4px 0; }

.hero__photo-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--teal-rgb), 0.15) 0%, rgba(var(--electric-rgb), 0.05) 40%, transparent 70%);
  z-index: 0;
  filter: blur(40px);
  animation: glowPulse 4s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero__photo-orbit {
  position: absolute; inset: 0;
  animation: ringRotate 16s linear infinite;
  z-index: 4;
}
.hero__photo-orbit span {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 14px var(--c), 0 0 6px var(--c);
  top: 50%; left: 50%;
  transform: rotate(var(--a)) translateX(150px) rotate(calc(-1 * var(--a)));
}

/* Typing */
.hero__type {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 2em;
  display: flex; align-items: center; justify-content: flex-start;
  gap: 6px; flex-wrap: wrap;
}
.hero__type-static { font-weight: 300; }
.hero__type-dynamic {
  font-weight: 600;
  background: linear-gradient(90deg, var(--teal), var(--electric));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__type-cursor {
  display: inline-block;
  width: 2px; height: 1.2em;
  background: var(--teal);
  animation: cursorBlink 0.8s step-end infinite;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(var(--teal-rgb), 0.5);
}
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero__desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-muted); max-width: 540px;
  margin: 0 0 36px; line-height: 1.8;
}
.hero__desc em {
  font-style: normal;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-weight: 500;
}

/* Hero actions */
.hero__actions {
  display: flex; gap: 12px; justify-content: flex-start;
  flex-wrap: wrap; align-items: center;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: var(--border-h);
  position: relative; overflow: hidden;
  border-radius: 1px;
}
.hero__scroll-energy {
  position: absolute; top: -10px; left: 0;
  width: 100%; height: 10px;
  background: linear-gradient(to bottom, transparent, var(--teal));
  animation: scrollEnergy 2s ease-in-out infinite;
  border-radius: 1px;
}
@keyframes scrollEnergy {
  0% { top: -10px; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 48px; opacity: 0; }
}

/* Scroll is now inside hero__split sibling */

/* Hero pop-in animation */
.anim-pop {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  animation: popIn 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 0.12s + 0.3s);
}
@keyframes popIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================
   BUTTONS
   ========================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem; font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  position: relative; overflow: hidden;
  transition: all 0.35s var(--ease);
}

.btn--glow {
  background: linear-gradient(135deg, var(--teal), #00c4b0);
  color: #050508;
  box-shadow: 0 4px 20px rgba(var(--teal-rgb), 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn--glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(var(--teal-rgb), 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn__shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 70%, 100% { transform: translateX(-100%); }
  85% { transform: translateX(100%); }
}

.btn--outline {
  border: 1.5px solid var(--border-h);
  color: var(--heading);
  background: rgba(var(--bg-rgb), 0.4);
  backdrop-filter: blur(8px);
}
.btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(var(--teal-rgb), 0.06);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(var(--teal-rgb), 0.15);
}

.btn--icon {
  width: 48px; height: 48px; padding: 0;
  justify-content: center;
  border: 1.5px solid var(--border-h);
  border-radius: 12px;
  color: var(--text-muted);
}
.btn--icon:hover {
  border-color: var(--electric);
  color: var(--electric);
  background: rgba(var(--electric-rgb), 0.06);
  transform: translateY(-3px);
}

.btn--full { width: 100%; justify-content: center; }

/* ==========================
   SECTIONS (shared)
   ========================== */
.section {
  padding: 110px 0;
  position: relative;
}
.section--dark {
  background: var(--surface);
  position: relative;
}
.section__bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(var(--teal-rgb), 0.03) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-tag__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(var(--teal-rgb), 0.6);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; color: var(--heading);
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.section-heading--center { text-align: center; }

.accent-dot {
  color: var(--teal);
  font-size: 1.1em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--electric), var(--lime));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 56px;
  max-width: 460px;
  margin-left: auto; margin-right: auto;
}
.section-sub--left { text-align: left; margin-left: 0; }

/* Highlight text */
.highlight {
  font-style: normal;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-weight: 600;
}

/* ==========================
   WAVE DIVIDER
   ========================== */
.divider-wave {
  position: relative;
  margin-top: -2px;
  z-index: 6;
  line-height: 0;
}
.divider-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ==========================
   ABOUT — BENTO GRID
   ========================== */
.section--about {
  background: var(--surface);
  padding-top: 60px;
}

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

.about-header {
  margin-bottom: 40px;
}

/* Bento layout */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.bento__card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.bento__card:hover {
  border-color: rgba(var(--teal-rgb), 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

/* Glow blob inside card */
.bento__card-glow {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.12;
}
.bento__card-glow--teal {
  top: -40px; right: -40px;
  background: var(--teal);
}
.bento__card-glow--electric {
  bottom: -40px; left: -20px;
  background: var(--electric);
}

/* Bio card — spans 4 columns */
.bento__card--bio {
  grid-column: span 4;
  padding: 36px 40px;
}
.bento__bio {
  font-size: 1.05rem;
  line-height: 1.85;
  position: relative;
  z-index: 1;
}
.bento__bio + .bento__bio { margin-top: 14px; }
.bento__bio strong { color: var(--heading); font-weight: 600; }

/* Stats card — spans 2 columns */
.bento__card--stats {
  grid-column: span 2;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.bento__stat { text-align: center; position: relative; z-index: 1; }
.bento__stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 900;
  color: var(--teal);
  line-height: 1;
}
.bento__stat-plus {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 900;
  color: var(--teal);
}
.bento__stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.bento__stat-divider {
  width: 32px; height: 1px;
  background: var(--border-h);
}

/* Skill bento cards — each spans 1 column */
.bento__card--skill {
  grid-column: span 1;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: default;
  position: relative;
  overflow: hidden;
}

/* Animated level bar at bottom of skill card */
.skill-card__bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--electric));
  border-radius: 0 3px 0 0;
  width: 0;
  transition: width 1.2s var(--ease) 0.4s;
}
.bento__card--skill.visible .skill-card__bar {
  width: calc(var(--level, 0) * 1%);
}

.bento__skill-icon {
  transition: transform 0.3s var(--ease-spring);
}
.bento__card--skill:hover .bento__skill-icon {
  transform: scale(1.2) rotate(-8deg);
}

.bento__skill-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading);
}

.bento__skill-level {
  font-family: var(--font-mono);
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}
.bento__skill-level--teal { color: var(--teal); background: rgba(var(--teal-rgb), 0.1); }
.bento__skill-level--electric { color: var(--electric); background: rgba(var(--electric-rgb), 0.1); }
.bento__skill-level--lime { color: var(--lime); background: rgba(var(--lime-rgb), 0.1); }
.bento__skill-level--orange { color: var(--orange); background: rgba(var(--orange-rgb), 0.1); }

/* ==========================
   EDUCATION
   ========================== */
.edu-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.edu-card {
  position: relative;
  padding: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.edu-card:hover {
  border-color: rgba(var(--teal-rgb), 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.edu-card--active { border-color: rgba(var(--teal-rgb), 0.15); }
.edu-card__glow {
  position: absolute; top: -80px; right: -80px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(var(--teal-rgb), 0.08), transparent 70%);
  pointer-events: none;
}

.edu-card__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}

.edu-card__badge {
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 100px;
  color: var(--text-muted);
  background: var(--surface-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.edu-card__badge--live {
  color: var(--teal);
  background: rgba(var(--teal-rgb), 0.08);
  border: 1px solid rgba(var(--teal-rgb), 0.15);
}
.edu-card__badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(var(--teal-rgb), 0.6);
  animation: dotPulse 2s ease-in-out infinite;
}

.edu-card__year {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.edu-card__degree {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800;
  color: var(--heading);
  margin-bottom: 12px; line-height: 1.25;
}

.edu-card__school {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--heading);
  font-size: 0.9rem; margin-bottom: 2px;
}

.edu-card__uni {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  padding-left: 24px;
}

.edu-card__loc {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 16px;
}

.edu-card__desc {
  font-size: 0.88rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 16px;
}

.edu-card__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.edu-card__tags span {
  font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--text-muted);
  background: var(--surface-3);
  border: 1px solid var(--border);
}

/* ==========================
   PROJECTS
   ========================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.proj {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  cursor: default;
}
.proj:hover {
  border-color: rgba(var(--teal-rgb), 0.25);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 48px rgba(0,0,0,0.25);
}

.proj__visual {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.proj__visual--1 { background: linear-gradient(135deg, rgba(var(--teal-rgb),0.08), rgba(var(--electric-rgb),0.04)); color: var(--teal); }
.proj__visual--2 { background: linear-gradient(135deg, rgba(var(--electric-rgb),0.08), rgba(var(--teal-rgb),0.04)); color: var(--electric); }
.proj__visual--3 { background: linear-gradient(135deg, rgba(var(--orange-rgb),0.08), rgba(var(--teal-rgb),0.04)); color: var(--orange); }
.proj__visual--4 { background: linear-gradient(135deg, rgba(var(--lime-rgb),0.06), rgba(var(--teal-rgb),0.06)); color: var(--lime); }

.proj__icon-wrap {
  position: relative; z-index: 2;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(var(--bg-rgb), 0.5);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease-spring);
}
.proj:hover .proj__icon-wrap {
  transform: scale(1.15) rotate(-5deg);
  border-color: rgba(var(--teal-rgb), 0.3);
}

.proj__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(var(--teal-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--teal-rgb), 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.proj__body { padding: 24px 28px 28px; }

.proj__num {
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 800;
  color: var(--teal);
  opacity: 0.4;
  margin-bottom: 8px; display: block;
}

.proj__title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px; line-height: 1.3;
}

.proj__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.proj__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.proj__tags span {
  font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.proj:hover .proj__tags span {
  border-color: rgba(var(--teal-rgb), 0.15);
}

/* ==========================
   CONTACT
   ========================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info__text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 16px; margin-bottom: 32px;
}

.contact-links { display: flex; flex-direction: column; gap: 10px; }

.contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.35s var(--ease);
  position: relative;
}
a.contact-link:hover {
  border-color: rgba(var(--teal-rgb), 0.2);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.contact-link__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--teal-rgb), 0.06);
  border-radius: 10px; flex-shrink: 0;
  color: var(--teal);
}

.contact-link__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-link__value {
  display: block;
  font-size: 0.9rem; font-weight: 500;
  color: var(--heading); margin-top: 1px;
}
.contact-link__arrow {
  margin-left: auto;
  color: var(--text-muted);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all 0.35s var(--ease);
}
a.contact-link:hover .contact-link__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* Form */
.contact-form {
  display: flex; flex-direction: column; gap: 20px;
}

.form-field {
  position: relative;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--heading);
  padding: 22px 18px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s var(--ease);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.08);
}

.form-field label {
  position: absolute; top: 50%; left: 18px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 400;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.25s var(--ease);
}
.form-field textarea ~ label { top: 22px; transform: none; }

.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label {
  top: 12px; transform: none;
  font-size: 0.6rem; font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
}
.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label {
  top: 8px;
  font-size: 0.6rem; font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
}

/* Animated line under input on focus */
.form-field__line {
  position: absolute; bottom: 0; left: 12px; right: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--electric));
  border-radius: 0 0 12px 12px;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.form-field input:focus ~ .form-field__line,
.form-field textarea:focus ~ .form-field__line {
  transform: scaleX(1);
}

/* ==========================
   FOOTER
   ========================== */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__dn {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--teal), var(--electric));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.65rem; color: var(--text-muted);
}
.footer__links {
  display: flex; gap: 8px;
}
.footer__links a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}
.footer__links a:hover {
  color: var(--teal);
  border-color: rgba(var(--teal-rgb), 0.3);
  transform: translateY(-2px);
}
.footer__top {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}
.footer__top:hover {
  color: var(--teal);
  border-color: rgba(var(--teal-rgb), 0.3);
  transform: translateY(-3px);
}

/* ==========================
   REVEAL ANIMATIONS
   ========================== */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 0.08s);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento__card--bio { grid-column: span 4; }
  .bento__card--stats { grid-column: span 4; flex-direction: row; gap: 28px; }
  .bento__stat-divider { width: 1px; height: 32px; }
  .bento__card--skill { grid-column: span 2; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hero__split {
    flex-direction: column-reverse;
    gap: 32px;
    text-align: center;
  }
  .hero__text { text-align: center; }
  .hero__type { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__photo-wrap {
    width: 240px; height: 240px;
  }
  .hero__photo { width: 180px; height: 180px; }
  .hero__photo-border { width: 230px; height: 230px; }
  .hero__photo-corners { width: 210px; height: 210px; }
  .hero__photo-orbit span { transform: rotate(var(--a)) translateX(112px) rotate(calc(-1 * var(--a))); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--bio { grid-column: span 2; padding: 28px 24px; }
  .bento__card--stats { grid-column: span 2; flex-direction: row; gap: 20px; }
  .bento__stat-divider { width: 1px; height: 32px; }
  .bento__card--skill { grid-column: span 1; }
  .edu-cards { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero { padding: calc(var(--nav-h) + 16px) 0 60px; }
  .hero__split { padding: 0 18px; }
  .hero__photo-wrap { width: 200px; height: 200px; }
  .hero__photo { width: 150px; height: 150px; }
  .hero__photo-border { width: 192px; height: 192px; }
  .hero__photo-corners { width: 176px; height: 176px; }
  .hero__photo-orbit span { transform: rotate(var(--a)) translateX(92px) rotate(calc(-1 * var(--a))); }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__actions .btn--icon { width: 48px; }
  .hero__scroll { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .about__stats { flex-direction: row; gap: 12px; }
  .about__stat { flex: 1; }
  .section-heading { font-size: clamp(28px, 7vw, 36px); }
  .hero__title { font-size: clamp(42px, 12vw, 64px); }
}
