/* ================================================================
   style.css — Porto2 Portfolio — Complete Styling
   ================================================================ */

/* ── CSS Custom Properties ─────────────────────────────────────── */
:root {
  --bg: transparent;
  --bg-alt: rgba(255, 255, 255, 0.4);
  --text: #1a1a24;
  --text-muted: #5a5a68;
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --accent3: #3da89b;
  --nav-bg: rgba(255, 255, 255, 0.6);
  --card-bg: rgba(255, 255, 255, 0.5);
  --card-border: rgba(255, 255, 255, 0.7);
  --card-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  --glow: 0 0 16px rgba(255, 255, 255, 0.8);
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
  background-color: #f2f5f8;
}

/* ── Glassmorphism Mesh Background ─────────────────────── */
.glass-mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  background: #fdfbfb;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.7;
  animation: blob-float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.mesh-1 {
  width: 800px;
  height: 800px;
  background: #ffe4e1;
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.mesh-2 {
  width: 700px;
  height: 700px;
  background: #e0ffff;
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}

.mesh-3 {
  width: 600px;
  height: 600px;
  background: #e0f2fe;
  top: 40%;
  left: 50%;
  animation-delay: -10s;
}

.mesh-4 {
  width: 500px;
  height: 500px;
  background: #fff0f5;
  bottom: 10%;
  left: -100px;
  animation-delay: -15s;
}

[data-theme="dark"] .glass-mesh-bg {
  background: #000000;
}

[data-theme="dark"] .mesh-1 {
  background: #06153f;
}

[data-theme="dark"] .mesh-2 {
  background: #05354b;
}

[data-theme="dark"] .mesh-3 {
  background: #051c29;
}

[data-theme="dark"] .mesh-4 {
  background: #380431;
}

[data-theme="dark"] {
  --bg-alt: rgba(0, 0, 0, 0.4);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --nav-bg: rgba(15, 23, 42, 0.65);
  --card-bg: rgba(15, 23, 42, 0.55);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --glow: 0 0 20px rgba(59, 130, 246, 0.3);

  /* Neon Accents (Jangan biru semua!) */
  --accent: #33c1fe;
  /* Neon Emerald Green */
  --accent2: #494ffe;
  /* Neon Magenta Pink */
  --accent3: #ffaa00;
  /* Neon Yellow-Orange */
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
}

@keyframes blob-float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(100px, 50px) scale(1.1);
  }

  100% {
    transform: translate(-50px, 100px) scale(0.9);
  }
}

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

html {
  scroll-behavior: smooth
}

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

@media(pointer:coarse) {
  body {
    cursor: auto
  }
}

img,
svg {
  display: inline-block;
  max-width: 100%;
  height: auto
}

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

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

ul {
  list-style: none
}

/* ── Typography ────────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15
}

.gradient-text,
.section-title {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.code-inline {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-style: normal
}

.highlight {
  color: var(--accent);
  font-weight: 600
}

/* ── Layout ────────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem
}

section {
  padding: 5rem 0;
  position: relative
}

/* ── Custom Cursor ─────────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: none
}

#cursor-ring {
  position: fixed;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width .25s, height .25s, top .05s, left .05s;
  opacity: .5
}

#cursor-ring.cursor-hover {
  width: 56px;
  height: 56px;
  top: -28px;
  left: -28px;
  border-color: var(--accent2);
  opacity: .7
}

@media(pointer:coarse) {

  #cursor-dot,
  #cursor-ring {
    display: none
  }
}

/* ── Navbar ────────────────────────────────────────────────────── */
nav#navbar {
  position: sticky;
  top: 1rem;
  width: 95%;
  margin: 0 auto;
  border-radius: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg);
  z-index: 1000;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.badge {
  background: var(--card-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.timeline-items {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-form-wrapper {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.8rem;
  padding: 0 1.25rem;
  max-width: 1140px;
  margin: 0 auto
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

[data-theme="dark"] .logo-light {
  display: none !important;
}

[data-theme="dark"] .logo-dark {
  display: block !important;
}

.nav-links {
  display: flex;
  gap: 1.8rem
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s
}

.nav-link:hover {
  color: var(--accent)
}

.nav-link:hover::after {
  width: 100%
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .6rem
}

/* Theme toggle */
#theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  transition: background .3s
}

#theme-toggle:hover {
  background: rgba(127, 127, 127, .15)
}

#theme-toggle svg {
  stroke: var(--text);
  width: 20px;
  height: 20px
}

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

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

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

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

:root .icon-sun {
  display: none
}

:root .icon-moon {
  display: inline-block
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.hamburger.active span:nth-child(2) {
  opacity: 0
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

/* ── Hero ──────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0
}

.parallax-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden
}

.shape {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  opacity: .1;
  color: var(--accent);
  will-change: transform
}

[data-theme="dark"] .shape {
  text-shadow: 0 0 20px var(--accent)
}

.shape-1 {
  top: 8%;
  left: 18%;
  font-size: 2.8rem;
  animation: floatA 14s infinite ease-in-out
}

.shape-2 {
  top: 28%;
  left: 72%;
  font-size: 2.2rem;
  animation: floatB 18s infinite ease-in-out
}

.shape-3 {
  top: 62%;
  left: 12%;
  animation: floatA 12s 2s infinite ease-in-out
}

.shape-4 {
  top: 78%;
  left: 55%;
  font-size: 2.5rem;
  animation: floatB 16s 1s infinite ease-in-out
}

.shape-5 {
  top: 38%;
  left: 88%;
  animation: floatA 20s 3s infinite ease-in-out
}

.shape-6 {
  top: 18%;
  left: 48%;
  font-size: 2.2rem;
  animation: floatB 15s .5s infinite ease-in-out
}

.shape-7 {
  top: 72%;
  left: 32%;
  animation: floatA 17s 1.5s infinite ease-in-out
}

.shape-8 {
  top: 52%;
  left: 68%;
  font-size: 2rem;
  animation: floatB 13s 2.5s infinite ease-in-out
}

@keyframes floatA {

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

  50% {
    transform: translateY(-25px) rotate(8deg)
  }
}

@keyframes floatB {

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

  50% {
    transform: translateY(20px) rotate(-6deg)
  }
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  z-index: 1;
  padding: 0 1.5rem;
  max-width: 1100px;
  width: 100%
}

.hero-text {
  flex: 1;
  text-align: left;
  order: 1
}

/* ── Photo Stack Card ──────────────────────────────────────────── */
.hero-photo-stack {
  position: relative;
  width: 280px;
  height: 340px;
  flex-shrink: 0;
  cursor: pointer;
  perspective: 800px;
  order: 2
}

.stack-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .5s ease, box-shadow .5s ease;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.stack-card .photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem
}

/* Stack positions: card behind = offset + rotated */
.stack-card:nth-child(3) {
  transform: rotate(6deg) translate(12px, 8px) scale(.94);
  z-index: 1;
  opacity: .5
}

.stack-card:nth-child(2) {
  transform: rotate(-3deg) translate(-6px, 4px) scale(.97);
  z-index: 2;
  opacity: .7
}

.stack-card:nth-child(1) {
  transform: rotate(0) translate(0, 0) scale(1);
  z-index: 3;
  opacity: 1
}

/* Active card (on top) */
.stack-card.stack-active {
  transform: rotate(0) translate(0, 0) scale(1) !important;
  z-index: 10 !important;
  opacity: 1 !important
}

.stack-card.stack-active:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
  transform: rotate(0) translate(0, -4px) scale(1.01) !important
}

[data-theme="dark"] .stack-card.stack-active {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 255, 170, 0.15);
}

[data-theme="dark"] .stack-card.stack-active:hover {
  box-shadow: 0 0 40px rgba(0, 255, 170, 0.25);
}

/* Swipe-out animation */
.stack-card.stack-out {
  transform: translateX(-120%) rotate(-15deg) scale(.8) !important;
  opacity: 0 !important;
  z-index: 0 !important;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .4s ease
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .9rem;
  background: var(--accent2);
  color: #fff;
  border-radius: 2rem;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 1.2rem
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 2s infinite
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .4
  }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  margin-bottom: .2rem
}

.title-line {
  display: block;
  -webkit-text-fill-color: var(--text);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: .3rem
}

.hero-typewriter {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-top: .8rem;
  min-height: 2rem;
  font-family: 'JetBrains Mono', monospace
}

.typewriter-prefix {
  color: var(--text-muted)
}

.typewriter-target {
  color: var(--accent);
  font-weight: 600
}

.typewriter-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink .75s step-end infinite;
  margin-left: 2px
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.hero-description {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
  flex-wrap: wrap
}

.stat-item {
  text-align: center
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent)
}

.stat-suffix {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent)
}

.stat-label {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .15rem;
  text-transform: uppercase;
  letter-spacing: .05em
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--card-border)
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .75rem;
  animation: fadeInUp 1s 1.5s both
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 4px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.8s infinite
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px)
  }
}

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

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

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: .6rem;
  font-weight: 600;
  font-size: .95rem;
  transition: all .3s
}

.btn svg {
  display: inline-block
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 212, 232, .25)
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 232, .35)
}

.btn-ghost {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  border-color: var(--accent);
}

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

/* ── Section Headers ───────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem
}

.section-tag {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: .85rem;
  letter-spacing: .02em
}

.section-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  margin-top: .4rem
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: .5rem;
  font-size: 1rem
}

/* ── About ─────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted)
}

.about-text strong {
  color: var(--text);
  font-weight: 600
}

.skill-group-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--accent)
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: .9rem
}

.skill-item .skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: .3rem
}

.skill-name {
  font-size: .9rem;
  font-weight: 500
}

.skill-pct {
  font-size: .82rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace
}

.skill-bar {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  /* Default */
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(.22, .61, .36, 1)
}

/* Colorful Skill Bars */
.skill-item:nth-child(1) .skill-fill {
  background: var(--nord11);
}

.skill-item:nth-child(2) .skill-fill {
  background: var(--nord12);
}

.skill-item:nth-child(3) .skill-fill {
  background: var(--nord13);
}

.skill-item:nth-child(4) .skill-fill {
  background: var(--nord14);
}

.skill-item:nth-child(5) .skill-fill {
  background: var(--nord15);
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem
}

.badge {
  padding: .35rem .75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  font-size: .82rem;
  font-weight: 500;
  transition: all .25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Colorful Badges */
.badge:nth-child(5n+1) {
  border-color: var(--nord11);
  color: var(--nord11);
}

.badge:nth-child(5n+2) {
  border-color: var(--nord12);
  color: var(--nord12);
}

.badge:nth-child(5n+3) {
  border-color: var(--nord13);
  color: var(--nord13);
}

.badge:nth-child(5n+4) {
  border-color: var(--nord14);
  color: var(--nord14);
}

.badge:nth-child(5n+5) {
  border-color: var(--nord15);
  color: var(--nord15);
}

.badge:hover {
  background: var(--card-border);
  color: var(--text);
  box-shadow: none;
}

/* ── Experience & Education Timeline ───────────────────────────── */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.timeline-column {
  position: relative;
}

.timeline-col-title {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
}

.timeline-col-title .col-icon {
  font-size: 1.5rem;
}

.timeline-items {
  position: relative;
  border-left: 2px solid var(--card-border);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent2);
  box-shadow: 0 0 15px var(--accent2);
  transform: scale(1.3);
}

.timeline-header {
  margin-bottom: 0.5rem;
}

.timeline-date {
  display: inline-block;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.timeline-org {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-gpa {
  display: inline-block;
  font-size: 0.8rem;
  background: rgba(0, 245, 255, 0.1);
  color: var(--accent);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.25rem;
  font-weight: 600;
}

.timeline-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-body li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  padding-left: 1rem;
}

.timeline-body li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
}

/* ── Projects ──────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2rem
}

.filter-btn {
  padding: .4rem .9rem;
  border-radius: 2rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: .85rem;
  font-weight: 500;
  transition: all .25s
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--glow)
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr)
}

.projects-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted)
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--card-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto .8rem
}

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

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow);
  border-color: var(--accent)
}

[data-theme="dark"] .project-card:hover {
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.12), var(--card-shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem 0
}

.card-icon {
  font-size: 1.6rem
}

.card-featured {
  font-size: .72rem;
  color: var(--accent2);
  font-weight: 600;
  background: rgba(124, 58, 237, .1);
  padding: .2rem .5rem;
  border-radius: 1rem
}

.card-content {
  padding: .6rem 1rem 1rem;
  flex: 1
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: .4rem
}

.card-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: .8rem
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem
}

.tag {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: .72rem;
  padding: .2rem .55rem;
  border-radius: 1rem;
  font-weight: 500
}

/* Colorful Tags */
.tag:nth-child(3n+1) {
  color: var(--nord14);
  border-color: var(--nord14);
}

.tag:nth-child(3n+2) {
  color: var(--nord8);
  border-color: var(--nord8);
}

.tag:nth-child(3n+3) {
  color: var(--nord15);
  border-color: var(--nord15);
}

.card-footer {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1rem;
  border-top: 1px solid var(--card-border)
}

.card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--accent);
  transition: color .2s
}

.card-link-btn:hover {
  color: var(--accent2)
}

.card-link-btn svg {
  display: inline-block;
  width: 16px;
  height: 16px
}

.card-year {
  margin-left: auto;
  font-size: .75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace
}

/* ── Stack ─────────────────────────────────────────────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem
}

.stack-category {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: .8rem;
  padding: 1.5rem;
  transition: border-color .3s, box-shadow .3s
}

.stack-category:hover {
  border-color: var(--accent);
  box-shadow: var(--glow)
}

.stack-cat-title {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem
}

.stack-cat-icon {
  font-size: 1.3rem
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem
}

.stack-item {
  padding: .35rem .75rem;
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  font-size: .82rem;
  font-weight: 500;
  transition: all .25s
}

.stack-item:hover {
  border-color: var(--accent);
  color: var(--accent)
}

/* ── Contact ───────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start
}

.contact-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: .8rem
}

.contact-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem .9rem;
  border: 1px solid var(--card-border);
  border-radius: .6rem;
  transition: all .25s
}

.contact-link:hover {
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: translateX(4px)
}

.contact-link-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: .5rem;
  flex-shrink: 0
}

.contact-link-icon svg {
  stroke: var(--accent);
  display: inline-block
}

.contact-link-label {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em
}

.contact-link-value {
  font-weight: 500;
  font-size: .92rem
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.form-group {
  display: flex;
  flex-direction: column
}

.form-group label {
  margin-bottom: .3rem;
  font-weight: 500;
  font-size: .9rem
}

.form-group input,
.form-group textarea {
  padding: .65rem .85rem;
  border: 1px solid var(--card-border);
  border-radius: .5rem;
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
  outline: none
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 232, .12)
}

.form-group textarea {
  resize: vertical;
  min-height: 120px
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--card-border);
  padding: 2.5rem 0;
  text-align: center
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  gap: 2px;
  margin-bottom: .3rem
}

.footer-copy {
  color: var(--text-muted);
  font-size: .88rem
}

.heart {
  color: #e25555
}

.footer-sub {
  color: var(--text-muted);
  font-size: .78rem;
  opacity: .7
}

/* ── Back to Top ───────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 212, 232, .3)
}

#back-to-top.show {
  opacity: 1;
  pointer-events: auto
}

#back-to-top:hover {
  transform: translateY(-3px)
}

#back-to-top svg {
  display: inline-block
}

/* ── Toast ─────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  background: var(--accent2);
  color: #fff;
  padding: .75rem 1.2rem;
  border-radius: .5rem;
  font-size: .9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(15px);
  transition: all .35s;
  z-index: 9999;
  pointer-events: none
}

.toast.show {
  opacity: 1;
  transform: translateY(0)
}

/* ── Reveal Animations ─────────────────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--delay, 0s)
}

.reveal-up {
  transform: translateY(35px)
}

.reveal-left {
  transform: translateX(-35px)
}

.reveal-right {
  transform: translateX(35px)
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none
}

/* ── Responsive ────────────────────────────────────────────────── */
@media(max-width:1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .stack-grid {
    grid-template-columns: 1fr 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr
  }

  .about-grid {
    grid-template-columns: 1fr
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media(max-width:768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 3.8rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.25rem;
    gap: .8rem;
    border-bottom: 1px solid var(--card-border)
  }

  .nav-links.mobile-open {
    display: flex
  }

  .hamburger {
    display: flex
  }

  .projects-grid {
    grid-template-columns: 1fr
  }

  .stack-grid {
    grid-template-columns: 1fr
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem
  }

  .hero-text {
    text-align: center
  }

  .hero-photo-stack {
    width: 200px;
    height: 250px;
    order: 2
  }

  .hero-stats {
    gap: 1rem;
    justify-content: center
  }

  .hero-actions {
    justify-content: center
  }

  .stat-number {
    font-size: 1.5rem
  }

  section {
    padding: 3.5rem 0
  }
}