/* ============================================
   halfism Portfolio
   Apple Design Language — Neumorphism + Glassmorphism
   Inspired by iOS 18 / macOS Sequoia / iPadOS 18
   With Dark Mode + Command Palette + Animations
   ============================================ */

:root {
  /* ── Apple System Colors ── */
  --system-blue: #007AFF;
  --system-purple: #AF52DE;
  --system-teal: #5AC8FA;
  --system-green: #34C759;
  --system-orange: #FF9500;
  --system-pink: #FF2D55;
  --system-indigo: #5856D6;
  --system-mint: #00C7BE;
  --system-red: #FF3B30;
  --system-yellow: #FFCC00;

  /* ── Surfaces (Light) ── */
  --bg: #f2f2f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: rgba(118, 120, 128, 0.08);
  --bg-grouped: #f2f2f7;

  /* ── Glass Materials ── */
  --glass-ultra-thin: rgba(255, 255, 255, 0.55);
  --glass-thin: rgba(255, 255, 255, 0.65);
  --glass-regular: rgba(255, 255, 255, 0.78);
  --glass-thick: rgba(255, 255, 255, 0.86);
  --glass-chrome: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-border-subtle: rgba(255, 255, 255, 0.4);

  /* ── Text ── */
  --text-primary: #1c1c1e;
  --text-secondary: rgba(60, 60, 67, 0.6);
  --text-tertiary: rgba(60, 60, 67, 0.3);
  --text-quaternary: rgba(60, 60, 67, 0.18);
  --text-link: var(--system-blue);

  /* ── Separators ── */
  --separator: rgba(60, 60, 67, 0.12);
  --separator-opaque: #c6c6c8;

  /* ── Neumorphism (Apple-soft) ── */
  --neu-shadow-light: rgba(255, 255, 255, 0.8);
  --neu-shadow-dark: rgba(174, 174, 178, 0.4);
  --neu-raised:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.04),
    -3px -3px 8px var(--neu-shadow-light),
    3px 3px 8px var(--neu-shadow-dark);
  --neu-flat:
    -2px -2px 6px var(--neu-shadow-light),
    2px 2px 6px var(--neu-shadow-dark);
  --neu-pressed:
    inset 1px 1px 4px rgba(0, 0, 0, 0.06),
    inset -1px -1px 4px rgba(255, 255, 255, 0.5);
  --neu-concave:
    inset 2px 2px 6px rgba(0, 0, 0, 0.05),
    inset -2px -2px 6px rgba(255, 255, 255, 0.7);
  --neu-hover:
    0 6px 20px rgba(0, 0, 0, 0.08),
    -4px -4px 12px var(--neu-shadow-light),
    4px 4px 12px var(--neu-shadow-dark);

  /* ── Radius ── */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 100px;

  /* ── Spring motion ── */
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.075);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.4s var(--ease-out);

  /* ── Color accents for tags ── */
  --accent-blue-bg: rgba(0, 122, 255, 0.1);
  --accent-blue-fg: var(--system-blue);
  --accent-green-bg: rgba(52, 199, 89, 0.1);
  --accent-green-fg: var(--system-green);
  --accent-purple-bg: rgba(175, 82, 222, 0.1);
  --accent-purple-fg: var(--system-purple);
  --accent-orange-bg: rgba(255, 149, 0, 0.1);
  --accent-orange-fg: var(--system-orange);
  --accent-teal-bg: rgba(90, 200, 250, 0.1);
  --accent-teal-fg: var(--system-teal);
}

/* ══════════════════════════════════════════════
   DARK MODE (iOS dark palette)
   ══════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg: #000000;
  --bg-secondary: #1c1c1e;
  --bg-tertiary: rgba(118, 120, 128, 0.24);
  --bg-grouped: #000000;

  --glass-ultra-thin: rgba(30, 30, 30, 0.55);
  --glass-thin: rgba(30, 30, 30, 0.65);
  --glass-regular: rgba(30, 30, 30, 0.78);
  --glass-thick: rgba(40, 40, 40, 0.86);
  --glass-chrome: rgba(44, 44, 46, 0.92);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-subtle: rgba(255, 255, 255, 0.06);

  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(235, 235, 245, 0.6);
  --text-tertiary: rgba(235, 235, 245, 0.3);
  --text-quaternary: rgba(235, 235, 245, 0.18);

  --separator: rgba(84, 84, 88, 0.65);
  --separator-opaque: #38383a;

  --neu-shadow-light: rgba(60, 60, 60, 0.3);
  --neu-shadow-dark: rgba(0, 0, 0, 0.5);
  --neu-raised:
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.15),
    -2px -2px 6px var(--neu-shadow-light),
    3px 3px 8px var(--neu-shadow-dark);
  --neu-flat:
    -2px -2px 6px var(--neu-shadow-light),
    2px 2px 6px var(--neu-shadow-dark);
  --neu-pressed:
    inset 1px 1px 4px rgba(0, 0, 0, 0.2),
    inset -1px -1px 4px rgba(255, 255, 255, 0.04);
  --neu-concave:
    inset 2px 2px 6px rgba(0, 0, 0, 0.15),
    inset -2px -2px 6px rgba(255, 255, 255, 0.03);
  --neu-hover:
    0 6px 20px rgba(0, 0, 0, 0.3),
    -4px -4px 12px var(--neu-shadow-light),
    4px 4px 12px var(--neu-shadow-dark);

  --accent-blue-bg: rgba(0, 122, 255, 0.2);
  --accent-green-bg: rgba(52, 199, 89, 0.2);
  --accent-purple-bg: rgba(175, 82, 222, 0.2);
  --accent-orange-bg: rgba(255, 149, 0, 0.2);
  --accent-teal-bg: rgba(90, 200, 250, 0.2);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont,
    'SF Pro Display', 'SF Pro Text',
    'Helvetica Neue', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei',
    sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.47;
  letter-spacing: -0.022em;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.5s var(--ease-out), color 0.3s var(--ease-out);
}

/* Subtle color bleed */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 25% 15%, rgba(0, 122, 255, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 75% 85%, rgba(175, 82, 222, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(90, 200, 250, 0.025) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s var(--ease-out);
}

[data-theme="dark"] body::before {
  opacity: 0.4;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─────────────────── Progress Bar ─────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--system-blue), var(--system-purple), var(--system-teal));
  z-index: 10000;
  transition: width 0.15s linear;
  border-radius: 0 1px 1px 0;
}

/* ─────────────────── NAVIGATION (macOS pill bar) ─────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 8px 0;
  transition: padding 0.4s var(--ease-out);
}

.navbar.scrolled { padding: 4px 0; }

.navbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-chrome);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--neu-raised);
  padding: 10px 24px;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.nav-logo:hover { opacity: 0.7; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.nav-links a:hover {
  color: var(--system-blue);
  background: var(--bg-tertiary);
}

.nav-links a.active {
  color: var(--system-blue);
  background: rgba(0, 122, 255, 0.1);
}

/* ── Theme Toggle (iOS Control Center style) ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 0.5px solid var(--glass-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.35s var(--ease-out);
  box-shadow: var(--neu-flat);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  color: var(--system-orange);
  box-shadow: var(--neu-raised);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.92);
  box-shadow: var(--neu-pressed);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: all 0.4s var(--spring);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  transform: scale(0) rotate(180deg);
  opacity: 0;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}
:not([data-theme="dark"]) .theme-toggle .icon-moon {
  transform: scale(0) rotate(-180deg);
  opacity: 0;
}
:not([data-theme="dark"]) .theme-toggle .icon-sun {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* ── Command Palette trigger button ── */
.cmd-trigger {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 0.5px solid var(--glass-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 0.7rem;
  font-weight: 600;
  transition: all 0.35s var(--ease-out);
  box-shadow: var(--neu-flat);
  font-family: inherit;
}

.cmd-trigger:hover {
  color: var(--system-blue);
  box-shadow: var(--neu-raised);
  transform: scale(1.05);
}

.cmd-trigger:active {
  transform: scale(0.92);
  box-shadow: var(--neu-pressed);
}

.mobile-toggle {
  display: none;
  background: var(--glass-regular);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  box-shadow: var(--neu-flat);
  transition: var(--transition);
}

.mobile-toggle:active { box-shadow: var(--neu-pressed); }

.mobile-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text-secondary);
  margin: 3px 0;
  border-radius: 1px;
  transition: all 0.3s var(--ease-out);
}

.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ─────────────────── COMMAND PALETTE ─────────────────── */
.cmd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-out), visibility 0.25s;
}

.cmd-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cmd-palette {
  width: 520px;
  max-width: calc(100vw - 32px);
  background: var(--glass-chrome);
  backdrop-filter: saturate(180%) blur(40px);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.18),
    0 0 0 0.5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transform: scale(0.96) translateY(-8px);
  transition: transform 0.3s var(--spring);
}

.cmd-overlay.open .cmd-palette {
  transform: scale(1) translateY(0);
}

.cmd-input-wrap {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--separator);
  gap: 10px;
}

.cmd-input-wrap i {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.cmd-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.cmd-input::placeholder {
  color: var(--text-tertiary);
}

.cmd-kbd {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  font-family: inherit;
}

.cmd-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.cmd-item:hover,
.cmd-item.selected {
  background: var(--accent-blue-bg);
}

.cmd-item i {
  width: 20px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.cmd-item .cmd-item-label {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}

.cmd-item .cmd-item-hint {
  font-size: 0.6875rem;
  color: var(--text-quaternary);
}

/* ─────────────────── HERO ─────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--system-blue);
  background: var(--accent-blue-bg);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  letter-spacing: 0;
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--system-green);
  animation: blink 2s ease-in-out infinite;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.55;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.35s var(--ease-out);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--system-blue);
  color: white;
  box-shadow:
    0 1px 3px rgba(0, 122, 255, 0.25),
    0 4px 12px rgba(0, 122, 255, 0.15);
}

.btn-primary:hover {
  background: #0a84ff;
  transform: scale(1.02);
  box-shadow:
    0 2px 6px rgba(0, 122, 255, 0.3),
    0 8px 24px rgba(0, 122, 255, 0.2);
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: var(--glass-thick);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  color: var(--text-primary);
  border: 0.5px solid var(--glass-border);
  box-shadow: var(--neu-flat);
}

.btn-secondary:hover {
  background: var(--glass-chrome);
  transform: scale(1.02);
  box-shadow: var(--neu-raised);
}

.btn-secondary:active { transform: scale(0.98); box-shadow: var(--neu-pressed); }

/* ── Hero Visual ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-avatar-ring {
  width: 280px; height: 280px;
  border-radius: var(--radius-xl);
  background: var(--glass-thick);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid var(--glass-border);
  box-shadow: var(--neu-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.5s var(--spring);
}

.hero-avatar-ring:hover {
  transform: scale(1.03);
  box-shadow: var(--neu-hover);
}

.hero-letter {
  font-size: 7.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--system-blue), var(--system-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Floating badges */
.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-chrome);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 8px 16px 8px 10px;
  box-shadow: var(--neu-raised);
  animation: float 5s ease-in-out infinite;
  white-space: nowrap;
}

.hero-badge:nth-child(2) { top: -16px; left: -48px; animation-delay: 0s; }
.hero-badge:nth-child(3) { bottom: -16px; right: -48px; animation-delay: 2s; }

.badge-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  box-shadow: var(--neu-pressed);
}

.badge-icon.blue { background: var(--accent-blue-bg); color: var(--system-blue); }
.badge-icon.green { background: var(--accent-green-bg); color: var(--system-green); }

.badge-text { font-size: 0.75rem; font-weight: 600; color: var(--text-primary); }
.badge-sub { font-size: 0.6875rem; color: var(--text-tertiary); }

.hero-glow {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.1), rgba(175, 82, 222, 0.06), transparent 70%);
  filter: blur(40px);
  animation: pulse-glow 5s ease-in-out infinite;
  pointer-events: none;
}

/* ─────────────────── SECTIONS ─────────────────── */
.section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.47;
}

.section-divider {
  width: 32px; height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--system-blue), var(--system-purple));
  margin: 14px auto 0;
}

/* ─────────────────── APPLE CARD ─────────────────── */
.apple-card {
  background: var(--glass-thick);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-raised);
  padding: 24px;
  transition: all 0.4s var(--ease-out);
}

.apple-card:hover {
  box-shadow: var(--neu-hover);
  transform: translateY(-2px) scale(1.005);
}

.apple-card-flat {
  background: var(--glass-thin);
  backdrop-filter: saturate(120%) blur(12px);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  border: 0.5px solid var(--glass-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-flat);
  padding: 24px;
  transition: all 0.4s var(--ease-out);
}

.apple-card-flat:hover {
  box-shadow: var(--neu-raised);
  transform: translateY(-1px);
}

/* ─────────────────── ABOUT ─────────────────── */
.about-card {
  background: var(--glass-chrome);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--neu-raised);
  padding: 36px;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

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

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  background: var(--glass-regular);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.5px solid var(--glass-border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--neu-flat);
  transition: all 0.4s var(--ease-out);
}

.about-feature:hover {
  box-shadow: var(--neu-raised);
  transform: translateY(-2px) scale(1.01);
}

.about-feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.1rem;
  box-shadow: var(--neu-pressed);
}

.about-feature-icon.blue { background: var(--accent-blue-bg); color: var(--system-blue); }
.about-feature-icon.green { background: var(--accent-green-bg); color: var(--system-green); }
.about-feature-icon.purple { background: var(--accent-purple-bg); color: var(--system-purple); }

.about-feature h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ─────────────────── SKILLS ─────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.skill-bar-group { margin-bottom: 18px; }
.skill-bar-group:last-child { margin-bottom: 0; }

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-bar-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.skill-bar-pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--system-blue);
  font-variant-numeric: tabular-nums;
}

.skill-bar-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-tertiary);
  box-shadow: var(--neu-concave);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--system-blue), var(--system-purple));
  transition: width 1s var(--ease-out);
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
}

/* ── Skill Radar Chart ── */
.radar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radar-svg {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
}

.radar-axis-label {
  font-size: 0.6875rem;
  font-weight: 600;
  fill: var(--text-secondary);
  letter-spacing: -0.01em;
}

.radar-grid-line {
  stroke: var(--separator);
  stroke-width: 0.5;
  fill: none;
}

.radar-data-polygon {
  fill: rgba(0, 122, 255, 0.12);
  stroke: var(--system-blue);
  stroke-width: 1.5;
  transition: all 0.6s var(--ease-out);
}

.radar-data-polygon:hover {
  fill: rgba(0, 122, 255, 0.2);
  stroke-width: 2;
}

.radar-dot {
  fill: var(--system-blue);
  stroke: white;
  stroke-width: 1.5;
  transition: r 0.3s var(--ease-out);
}

.radar-dot:hover { r: 5; }

.tags-section h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--glass-thick);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid var(--glass-border-subtle);
  color: var(--text-secondary);
  box-shadow: var(--neu-flat);
  transition: all 0.3s var(--ease-out);
}

.tag:hover {
  color: var(--system-blue);
  background: rgba(0, 122, 255, 0.06);
  box-shadow: var(--neu-raised);
  transform: translateY(-1px);
}

/* ─────────────────── PROJECTS ─────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--glass-thick);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-raised);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  box-shadow: var(--neu-hover);
  transform: translateY(-4px) scale(1.01);
  color: inherit;
}

.project-icon-wrap {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.06), rgba(175, 82, 222, 0.06));
  position: relative;
  overflow: hidden;
}

.project-icon-wrap i {
  font-size: 2.5rem;
  color: var(--system-blue);
  opacity: 0.7;
  transition: all 0.4s var(--ease-out);
}

.project-card:hover .project-icon-wrap i {
  opacity: 1;
  transform: scale(1.08);
}

.project-icon-wrap::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.04);
}

.project-category {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--glass-chrome);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid var(--glass-border);
  color: var(--text-secondary);
  box-shadow: var(--neu-flat);
}

.project-body { padding: 18px; }

.project-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.project-desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 0.5px solid var(--separator);
}

.project-meta {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.project-meta i { margin-right: 3px; }

.project-link {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.project-link:hover { color: var(--system-blue); }

/* ─────────────────── RESOURCES ─────────────────── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.resource-card {
  background: var(--glass-thick);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-raised);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.4s var(--ease-out);
}

.resource-card:hover {
  box-shadow: var(--neu-hover);
  transform: translateY(-3px) scale(1.01);
  color: inherit;
}

.resource-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--neu-pressed);
}

.resource-icon.blue { background: var(--accent-blue-bg); color: var(--system-blue); }
.resource-icon.purple { background: var(--accent-purple-bg); color: var(--system-purple); }
.resource-icon.green { background: var(--accent-green-bg); color: var(--system-green); }
.resource-icon.orange { background: var(--accent-orange-bg); color: var(--system-orange); }

.resource-body { flex: 1; }

.resource-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.resource-desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.resource-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}

/* ─────────────────── DAILY ─────────────────── */
.daily-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.daily-card {
  background: var(--glass-thick);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-raised);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.4s var(--ease-out);
}

.daily-card:hover {
  box-shadow: var(--neu-hover);
  transform: translateY(-3px) scale(1.01);
  color: inherit;
}

.daily-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.daily-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.daily-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.daily-desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.daily-date {
  font-size: 0.75rem;
  color: var(--text-quaternary);
  font-variant-numeric: tabular-nums;
}

.daily-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* ─────────────────── GALLERY ─────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--neu-raised);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}

.gallery-item:hover {
  box-shadow: var(--neu-hover);
  transform: translateY(-3px) scale(1.02);
  z-index: 1;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-caption {
  font-size: 0.75rem;
  color: white;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-out);
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4);
  object-fit: contain;
  transition: transform 0.4s var(--spring);
  transform: scale(0.9);
}

.lightbox.open img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s var(--ease-out);
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.05); }

/* ─────────────────── RESUME ─────────────────── */
.resume-card {
  background: var(--glass-chrome);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--neu-raised);
  padding: 36px;
  max-width: 780px;
  margin: 0 auto;
}

.resume-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid var(--separator);
}

.resume-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--system-blue), var(--system-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
  flex-shrink: 0;
}

.resume-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.resume-tagline {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.resume-section { margin-bottom: 24px; }
.resume-section:last-child { margin-bottom: 0; }

.resume-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--system-blue);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.resume-item {
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--separator);
  position: relative;
}

.resume-item::before {
  content: '';
  position: absolute;
  left: -5px; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--system-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.resume-item:last-child { margin-bottom: 0; }

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.resume-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.resume-item-date {
  font-size: 0.75rem;
  color: var(--text-quaternary);
  font-variant-numeric: tabular-nums;
}

.resume-item-sub {
  font-size: 0.8125rem;
  color: var(--system-blue);
  font-weight: 500;
  margin-bottom: 4px;
}

.resume-item-desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.resume-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.resume-skill-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-blue-bg);
  color: var(--system-blue);
  border: 0.5px solid rgba(0, 122, 255, 0.12);
}

.resume-download {
  margin-top: 24px;
  text-align: center;
  padding-top: 20px;
  border-top: 0.5px solid var(--separator);
}

/* ─────────────────── TIMELINE (logs) ─────────────────── */
.timeline {
  max-width: 660px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0; bottom: 0;
  width: 1.5px;
  background: linear-gradient(180deg, var(--system-blue), var(--system-purple), var(--system-teal));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-left: 44px;
  padding-bottom: 28px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 8px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--glass-chrome);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--system-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.08);
  z-index: 1;
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.timeline-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-right: 6px;
  letter-spacing: 0.02em;
}

.timeline-tag.feat { background: var(--accent-blue-bg); color: var(--system-blue); }
.timeline-tag.code { background: var(--accent-green-bg); color: var(--system-green); }
.timeline-tag.api { background: var(--accent-purple-bg); color: var(--system-purple); }

.timeline-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline;
}

.timeline-desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-top: 6px;
}

/* ─────────────────── CONTACT ─────────────────── */
.contact-section {
  background: linear-gradient(135deg, var(--system-blue), var(--system-purple));
  border-radius: var(--radius-xl);
  padding: 56px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 122, 255, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -60%; right: -30%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.contact-section::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -20%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.contact-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: white;
  margin-bottom: 8px;
  position: relative; z-index: 1;
}

.contact-subtitle {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 1.47;
  position: relative; z-index: 1;
}

.contact-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.35s var(--ease-out);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  position: relative;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.02);
}

.btn-glass:active { transform: scale(0.98); }

.btn-copy {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-copy:hover { background: rgba(255, 255, 255, 0.35); transform: scale(1.02); }
.btn-copy:active { transform: scale(0.98); }

.btn-white {
  background: white;
  color: var(--system-blue);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.35s var(--ease-out);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  font-family: inherit;
}

.btn-white:hover { transform: scale(1.02); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
.btn-white:active { transform: scale(0.98); }

.contact-divider {
  width: 40px; height: 0.5px;
  background: rgba(255, 255, 255, 0.25);
  margin: 28px auto;
  position: relative; z-index: 1;
}

.contact-collab-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 6px;
  position: relative; z-index: 1;
}

.contact-collab-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
  position: relative; z-index: 1;
}

/* ─────────────────── FOOTER ─────────────────── */
.footer {
  text-align: center;
  padding: 36px 0;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  position: relative; z-index: 1;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-thick);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.5px solid var(--glass-border-subtle);
  box-shadow: var(--neu-flat);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.35s var(--ease-out);
  font-size: 0.9375rem;
}

.footer-social-link:hover {
  box-shadow: var(--neu-raised);
  color: var(--system-blue);
  transform: translateY(-2px) scale(1.04);
}

/* ─────────────────── SCROLL TO TOP ─────────────────── */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--glass-chrome);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid var(--glass-border);
  box-shadow: var(--neu-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.4s var(--ease-out);
  opacity: 0; visibility: hidden;
  z-index: 999;
}

.scroll-top.visible { opacity: 1; visibility: visible; }

.scroll-top:hover {
  box-shadow: var(--neu-hover);
  color: var(--system-blue);
  transform: translateY(-2px) scale(1.04);
}

.scroll-top:active { transform: scale(0.95); box-shadow: var(--neu-pressed); }

/* ─────────────────── TOAST NOTIFICATION ─────────────────── */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--glass-chrome);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--spring);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

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

.toast i {
  color: var(--system-green);
  font-size: 1rem;
}

/* ─────────────────── ANIMATIONS ─────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered children */
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }

/* ─────────────────── REDUCED MOTION ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .animate-on-scroll { opacity: 1; transform: none; }
}

/* ─────────────────── RESPONSIVE ─────────────────── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-subtitle { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }

  .hero-avatar-ring { width: 200px; height: 200px; }
  .hero-letter { font-size: 5rem; }
  .hero-title { font-size: 2.6rem; }

  .hero-badge:nth-child(2) { top: -12px; left: -24px; }
  .hero-badge:nth-child(3) { bottom: -12px; right: -24px; }

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

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

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

  .daily-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resume-card { padding: 24px; }

  .about-features {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 32px auto 0;
  }

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 8px; right: 8px;
    background: var(--glass-chrome);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 0.5px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--neu-raised);
    padding: 8px;
    flex-direction: column;
    margin-top: 6px;
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.3s var(--spring), opacity 0.25s ease;
  }

  .nav-links.open {
    display: flex;
    transform: scaleY(1);
    opacity: 1;
  }

  .mobile-toggle { display: block; }

  .cmd-trigger { display: none; }

  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.6rem; }
  .contact-section { padding: 40px 20px; }
}

/* ─────────────────── SCROLLBAR ─────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); }

[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }
