/* ═══════════════════════════════════════════
   Xiangyu Chen — Personal Portfolio
   Color: Violet / Dark Theme
   ═══════════════════════════════════════════ */

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

:root {
  /* Violet palette */
  --violet-50:  #f5f3ff;
  --violet-100: #ede9fe;
  --violet-200: #ddd6fe;
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --violet-800: #5b21b6;
  --violet-900: #4c1d95;

  /* Dark background tones */
  --bg-primary:   #0a0a0f;
  --bg-secondary: #111118;
  --bg-card:      #16161f;
  --bg-elevated:  #1c1c28;

  /* Text */
  --text-primary:   #f0eef6;
  --text-secondary: #a09cb5;
  --text-muted:     #6b6785;

  /* Accents */
  --accent:      var(--violet-500);
  --accent-glow: rgba(139, 92, 246, 0.35);

  /* Spacing */
  --nav-height: 72px;
  --section-padding: 120px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--violet-600);
  color: white;
}

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

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

/* ── Canvas Background ── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

#main-nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(139, 92, 246, 0.1);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
  z-index: 1001;
}

.logo-glyph {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--violet-600), var(--violet-400));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.logo-text {
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
  letter-spacing: 0.02em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s, transform 0.3s;
}

.mobile-menu a:hover {
  color: var(--accent);
  transform: translateX(8px);
}

/* ── Hero Section ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: 0 24px;
}

.hero-content {
  max-width: 900px;
}

.hero-greeting {
  font-size: 1.125rem;
  color: var(--violet-400);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-name {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero-name-line {
  display: block;
}

.hero-name-line.accent {
  background: linear-gradient(135deg, var(--violet-400), var(--violet-600), #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 4px;
  margin-bottom: 28px;
}

.role-tag {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 12px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 100px;
  transition: all 0.3s;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.01em;
}

.role-tag:hover {
  border-color: var(--violet-500);
  color: var(--violet-300);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.role-divider {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-tagline em {
  color: var(--violet-300);
  font-style: italic;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet-600), var(--violet-500));
  color: white;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-ghost:hover {
  border-color: var(--violet-500);
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.08);
}

/* ── Scroll Hint ── */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 1s 2s both;
}

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

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--violet-400);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

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

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

/* ── Sections ── */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--violet-500);
  opacity: 0.8;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

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

.avatar-frame {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.15);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder svg {
  width: 100%;
  height: 100%;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.about-text strong {
  color: var(--text-primary);
}

.about-text em {
  color: var(--violet-300);
  font-style: italic;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(139, 92, 246, 0.12);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--violet-400);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}

.stat-plus {
  font-size: 1.5rem;
  color: var(--violet-400);
  font-weight: 600;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.03em;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.08);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet-500), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.skill-card:hover {
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(139, 92, 246, 0.08);
}

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

.skill-icon {
  width: 48px;
  height: 48px;
  color: var(--violet-400);
  margin-bottom: 20px;
}

.skill-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.skill-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.skill-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tools span {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.25s;
}

.skill-tools .tool-primary {
  background: rgba(139, 92, 246, 0.15);
  color: var(--violet-200);
  border-color: rgba(139, 92, 246, 0.25);
}

.skill-tools .tool-secondary {
  background: rgba(139, 92, 246, 0.06);
  color: var(--violet-300);
  border-color: rgba(139, 92, 246, 0.12);
}

.skill-tools .tool-aux {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(139, 92, 246, 0.08);
}


/* ── Portfolio ── */
.portfolio-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--violet-600);
  border-color: var(--violet-600);
  color: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.06);
  transition: all 0.4s var(--ease-out);
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  border-color: rgba(139, 92, 246, 0.15);
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    hsl(var(--ph-hue, 270) 60% 12%),
    hsl(var(--ph-hue, 270) 50% 18%)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease-out);
}

.portfolio-placeholder svg {
  width: 60%;
  height: 60%;
}

.portfolio-item:hover .portfolio-placeholder {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.portfolio-view {
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  transition: all 0.3s;
}

.portfolio-view:hover {
  background: var(--violet-600);
  border-color: var(--violet-600);
}

.portfolio-info {
  padding: 20px 24px 24px;
}

.portfolio-cat {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--violet-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
}

.portfolio-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 8px 0 6px;
  letter-spacing: -0.01em;
}

.portfolio-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.portfolio-item.hidden {
  display: none;
}

/* ── Music ── */
.music-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.music-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.06);
  border-radius: 16px;
  transition: all 0.3s var(--ease-out);
}

.music-card:hover {
  border-color: rgba(139, 92, 246, 0.2);
  background: var(--bg-elevated);
}

.music-visual {
  flex-shrink: 0;
  width: 80px;
  height: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100%;
}

.music-bars span {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--violet-700), var(--violet-400));
  animation: musicBar 1.2s ease-in-out infinite;
  animation-play-state: paused;
}

.music-card:hover .music-bars span {
  animation-play-state: running;
}

.music-bars span:nth-child(1)  { height: 30%; animation-delay: 0.0s; }
.music-bars span:nth-child(2)  { height: 50%; animation-delay: 0.1s; }
.music-bars span:nth-child(3)  { height: 70%; animation-delay: 0.2s; }
.music-bars span:nth-child(4)  { height: 40%; animation-delay: 0.05s; }
.music-bars span:nth-child(5)  { height: 60%; animation-delay: 0.15s; }
.music-bars span:nth-child(6)  { height: 80%; animation-delay: 0.25s; }
.music-bars span:nth-child(7)  { height: 45%; animation-delay: 0.08s; }
.music-bars span:nth-child(8)  { height: 65%; animation-delay: 0.18s; }
.music-bars span:nth-child(9)  { height: 35%; animation-delay: 0.03s; }
.music-bars span:nth-child(10) { height: 55%; animation-delay: 0.13s; }
.music-bars span:nth-child(11) { height: 75%; animation-delay: 0.23s; }
.music-bars span:nth-child(12) { height: 50%; animation-delay: 0.07s; }
.music-bars span:nth-child(13) { height: 60%; animation-delay: 0.17s; }
.music-bars span:nth-child(14) { height: 40%; animation-delay: 0.02s; }
.music-bars span:nth-child(15) { height: 70%; animation-delay: 0.12s; }
.music-bars span:nth-child(16) { height: 45%; animation-delay: 0.22s; }
.music-bars span:nth-child(17) { height: 55%; animation-delay: 0.06s; }
.music-bars span:nth-child(18) { height: 65%; animation-delay: 0.16s; }
.music-bars span:nth-child(19) { height: 35%; animation-delay: 0.01s; }
.music-bars span:nth-child(20) { height: 50%; animation-delay: 0.11s; }

@keyframes musicBar {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

.music-info {
  flex: 1;
}

.music-info h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.music-genre {
  font-size: 0.75rem;
  color: var(--violet-400);
  font-family: 'JetBrains Mono', monospace;
}

.music-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.music-play {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.3);
  background: transparent;
  color: var(--violet-400);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.music-play svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.music-play:hover {
  background: var(--violet-600);
  border-color: var(--violet-600);
  color: white;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}

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

.contact-intro {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 36px;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.06);
  transition: all 0.3s;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--violet-400);
}

.contact-link:hover {
  border-color: rgba(139, 92, 246, 0.2);
  background: var(--bg-elevated);
  color: var(--text-primary);
  transform: translateX(4px);
}

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

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  padding-top: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--violet-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-group label {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s var(--ease-out);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 8px;
  font-size: 0.6875rem;
  color: var(--violet-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-submit {
  align-self: flex-start;
}

.btn-submit svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.btn-submit:hover svg {
  transform: translateX(4px);
}

/* ── Footer ── */
#footer {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid rgba(139, 92, 246, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--violet-400);
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .avatar-frame {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }

  .about-stats {
    justify-content: center;
  }

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

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


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

  .hero-roles {
    gap: 8px;
  }

  .role-divider {
    display: none;
  }

  .music-card {
    flex-wrap: wrap;
    gap: 16px;
  }

  .music-visual {
    width: 60px;
    height: 40px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section-title {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

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

  .about-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 2rem;
  }
}
