/* ===== Design Tokens ===== */
:root {
  --bg: #07070d;
  --bg-2: #0e0e18;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --accent: #00e5c7;
  --accent-2: #7c5cff;
  --accent-3: #ff6b4a;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  --font-display: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-h: 72px;
  --section-gap: clamp(80px, 12vw, 140px);
  --container: min(1120px, calc(100% - 40px));
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.5vw, 15px);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== Background ===== */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

/* ===== Aurora & Atmosphere ===== */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transition: transform 0.6s ease-out;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: auroraFloat 18s ease-in-out infinite;
}

.aurora-blob-1 {
  width: 55vw;
  height: 55vw;
  max-width: 600px;
  max-height: 600px;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(0, 229, 199, 0.35) 0%, transparent 70%);
}

.aurora-blob-2 {
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  bottom: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.4) 0%, transparent 70%);
  animation-delay: -6s;
  animation-duration: 22s;
}

.aurora-blob-3 {
  width: 35vw;
  height: 35vw;
  max-width: 400px;
  max-height: 400px;
  top: 40%;
  left: 35%;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.25) 0%, transparent 70%);
  animation-delay: -12s;
  animation-duration: 26s;
}

@keyframes auroraFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, 8%) scale(1.08); }
  66% { transform: translate(-4%, -6%) scale(0.95); }
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 199, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 199, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 75%);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===== Custom Cursor ===== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot,
  .cursor-ring { opacity: 1; }
  body { cursor: none; }
  a, button { cursor: none; }
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent);
  z-index: 10001;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 229, 199, 0.5);
  z-index: 10000;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s, opacity 0.3s;
}

.cursor-ring.hovering {
  width: 64px;
  height: 64px;
  border-color: rgba(124, 92, 255, 0.7);
  background: rgba(124, 92, 255, 0.06);
}

.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 199, 0.09) 0%, rgba(124, 92, 255, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
  mix-blend-mode: screen;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-glow { opacity: 1; }
}

/* ===== Layout ===== */
main, .site-header, .site-footer, .nav-mobile {
  position: relative;
  z-index: 2;
}

.section {
  width: var(--container);
  margin-inline: auto;
  padding-block: var(--section-gap);
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(0, 229, 199, 0.12),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.spotlight:hover::before { opacity: 1; }

.spotlight > * { position: relative; z-index: 1; }

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.35s var(--ease), border-color 0.35s;
}

.tilt-card:hover {
  border-color: rgba(0, 229, 199, 0.25);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 229, 199, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100% - 1120px) / 2));
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(7, 7, 13, 0.85);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  background-size: 200% 200%;
  animation: shimmerShift 4s ease infinite;
  border-radius: 10px;
  color: var(--bg);
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(0, 229, 199, 0.3);
}

.nav-desktop {
  display: flex;
  gap: 32px;
}

.nav-desktop a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-desktop a:hover { color: var(--text); }
.nav-desktop a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle.active span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle.active span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(7, 7, 13, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
  z-index: 99;
}

.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
  position: relative;
  z-index: 0;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient);
  background-size: 200% 200%;
  animation: shimmerShift 6s ease infinite;
  color: var(--bg);
  box-shadow: 0 0 30px rgba(0, 229, 199, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0%, 70%, 100% { transform: translateX(-120%); }
  85% { transform: translateX(120%); }
}

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(0, 229, 199, 0.35);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-muted);
  width: fit-content;
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 229, 199, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(0, 229, 199, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title .line { display: block; }

.gradient-text {
  background: var(--gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shimmer-text {
  animation: shimmerShift 5s ease infinite;
}

@keyframes shimmerShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerShift 5s ease infinite;
  opacity: 0;
  pointer-events: none;
}

.hero-name.visible::before,
.hero-name.visible::after {
  opacity: 0.7;
}

.glitch-text::before {
  animation: glitchTop 4s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
  animation: glitchBottom 3s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitchTop {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  91% { transform: translate(-3px, 1px); opacity: 0.8; filter: hue-rotate(90deg); }
  93% { transform: translate(3px, -1px); opacity: 0.6; }
  95% { transform: translate(-2px, 0); opacity: 0; }
}

@keyframes glitchBottom {
  0%, 88%, 100% { transform: translate(0); opacity: 0; }
  89% { transform: translate(3px, 1px); opacity: 0.7; filter: hue-rotate(-60deg); }
  92% { transform: translate(-3px, -1px); opacity: 0.5; }
  94% { transform: translate(2px, 0); opacity: 0; }
}

.hero-line-1.visible { transition-delay: 0.1s; }
.hero-line-2.visible { transition-delay: 0.35s; }
.hero-sub.reveal.visible { transition-delay: 0.55s; }
.hero-actions.reveal.visible { transition-delay: 0.7s; }
.hero-stats.reveal.visible { transition-delay: 0.85s; }
.hero-badge.reveal.visible { transition-delay: 0s; }

.hero-sub {
  max-width: 560px;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  margin-bottom: 36px;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 5vw, 56px);
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-item { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  background-size: 200% 200%;
  animation: shimmerShift 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  margin-left: 2px;
}

.stat-item {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
}

.stat-label {
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== Section Head ===== */
.section-head { margin-bottom: 48px; }

.section-tag {
  display: block;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  animation: shimmerShift 4s ease infinite;
  background-size: 200% 200%;
}

.section-desc {
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 480px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.about-card { padding: clamp(24px, 4vw, 40px); }

.about-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-card p { color: var(--text-muted); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.about-tags span {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}

.about-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 229, 199, 0.06);
}

/* ===== Bento Projects ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bento-card {
  padding: clamp(24px, 3vw, 32px);
  position: relative;
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 229, 199, 0.3), transparent 40%, rgba(124, 92, 255, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.bento-card:hover::after { opacity: 1; }

.bento-featured {
  grid-row: span 2;
}

.bento-wide { grid-column: span 2; }

.bento-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.tag-accent {
  background: rgba(0, 229, 199, 0.12);
  color: var(--accent);
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.bento-tech {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-tech li {
  font-size: 0.72rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

.bento-footer { margin-top: 20px; }

.status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status.live { color: var(--accent); }

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
}

.skill-group { padding: clamp(24px, 3vw, 32px); }

.skill-group h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 24px;
  color: var(--accent);
}

.skill-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  background-size: 200% 100%;
  animation: shimmerShift 4s ease infinite;
  border-radius: 4px;
  transition: width 1.4s var(--ease);
  box-shadow: 0 0 12px rgba(0, 229, 199, 0.4);
}

.skill-bars.animated .bar i { width: var(--w, 0); }

.skill-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.icon-cell {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.3s var(--ease);
}

.icon-cell:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 229, 199, 0.15);
  border-color: rgba(0, 229, 199, 0.3);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(0, 229, 199, 0.4);
  animation: pulse 2s infinite;
}

.timeline-year {
  display: block;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.timeline-content { padding: 24px 28px; }

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-content p { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Contact ===== */
.contact-inner {
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}

.contact-inner .section-head { margin-bottom: 40px; }
.contact-inner .section-desc { margin-inline: auto; }

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.contact-links--duo {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
  margin-inline: auto;
}

.contact-card {
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 199, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 229, 199, 0.12);
}

.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--gradient);
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s;
  filter: blur(12px);
}

.glow-card:hover::before { opacity: 0.35; }

.contact-label {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ===== Footer ===== */
.site-footer {
  width: var(--container);
  margin-inline: auto;
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.back-top {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.25s;
}

.back-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  background: rgba(14, 14, 24, 0.95);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  z-index: 200;
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-scale {
  transform: translateY(40px) scale(0.9);
}

.reveal-scale.visible {
  transform: translateY(0) scale(1);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .bento-featured { grid-row: span 1; }
  .bento-wide { grid-column: span 1; }
  .bento-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-icons {
    grid-template-columns: repeat(6, 1fr);
  }
  .icon-cell { width: auto; height: 56px; }
  .contact-links { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-desktop, .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .hero-stats { gap: 20px; }
  .skill-row { grid-template-columns: 1fr; gap: 6px; }
  .site-footer { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .skill-icons { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  body, a, button { cursor: auto; }
  .skill-bars .bar i { width: var(--w, 0); }
}
