/* ===================================
   CSS Custom Properties (Variables)
   =================================== */
:root {
  /* Color Palette - Dark Mode */
  --bg-primary: #0a0a0a;
  --bg-secondary: #131313;
  --bg-tertiary: #1a1a1a;
  --bg-card: rgba(26, 26, 26, 0.8);
  --bg-card-hover: rgba(35, 35, 35, 0.95);
  
  --text-primary: #f5f5f5;
  --text-secondary: #b8b8b8;
  --text-tertiary: #888888;
  
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #ec4899;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  
  /* Music-inspired accent colors */
  --music-note: #fbbf24;
  --tech-blue: #3b82f6;
  --creative-purple: #a855f7;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Typography - Using system fonts for best performance */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-display: Georgia, 'Times New Roman', Times, serif;
  
  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

/* Light Mode */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #e8e8e8;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(248, 248, 248, 0.95);
  
  --text-primary: #0a0a0a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #737373;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

/* ===================================
   Base Styles & Reset
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Force proper theme transitions on mobile */
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 0.01s, color 0.01s, border-color 0.01s !important;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  position: relative;
}

::selection {
  background: var(--accent-primary);
  color: white;
}

/* ===================================
   WebGL Fluid Canvas Background
   =================================== */
#fluid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.15s ease-out;
  mix-blend-mode: screen;
}

#fluid-canvas.loaded {
  opacity: 0.7;
}

[data-theme="light"] #fluid-canvas {
  mix-blend-mode: multiply;
}

[data-theme="light"] #fluid-canvas.loaded {
  opacity: 0.5;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-base);
}

/* ===================================
   Container & Layout
   =================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none;
  transition: all var(--transition-base);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.nav-brand {
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  align-items: center;
  flex: 1;
  justify-content: center;
}

/* Fixed Controls */
.fixed-controls {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

[dir="rtl"] .fixed-controls {
  right: auto;
  left: var(--spacing-xl);
}

@media (max-width: 768px) {
  .fixed-controls {
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
  }
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.logo-svg {
  width: 50px;
  height: 50px;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-svg {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

@media (max-width: 768px) {
  .logo-svg {
    width: 40px;
    height: 40px;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

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

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

/* Theme Toggle - Sliding Switch */
.theme-toggle {
  width: 80px;
  height: 40px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 2px solid var(--accent-primary);
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(139, 92, 246, 0.3);
  flex-shrink: 0;
}

[data-theme="light"] .theme-toggle {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(255, 193, 7, 0.3);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.theme-toggle:hover::before {
  opacity: 0.1;
}

.theme-toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(139, 92, 246, 0.5),
    0 0 20px rgba(139, 92, 246, 0.3);
  z-index: 2;
}

[data-theme="light"] .theme-toggle-slider {
  left: calc(100% - 35px);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 
    0 4px 12px rgba(251, 191, 36, 0.5),
    0 0 20px rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .theme-toggle-slider .moon-icon {
  display: block;
}

[data-theme="light"] .theme-toggle-slider .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle-slider::after {
  display: none;
}

.theme-toggle-slider .moon-icon {
  display: block;
  position: relative;
  color: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
  width: 16px;
  height: 16px;
  padding-bottom: 1px;
}

.theme-toggle-slider .sun-icon-slider {
  display: none;
  position: relative;
  color: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
  width: 16px;
  height: 16px;
  padding-bottom: 1px;
}

[data-theme="dark"] .theme-toggle-slider .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-slider .sun-icon-slider {
  display: none;
}

[data-theme="light"] .theme-toggle-slider .moon-icon {
  display: none;
}

[data-theme="light"] .theme-toggle-slider .sun-icon-slider {
  display: block;
}

[data-theme="dark"] .theme-toggle-slider::after {
  display: none;
}

[data-theme="light"] .theme-toggle-slider::after {
  display: none;
}

[data-theme="light"] .theme-toggle-slider::before {
  display: none;
}

.theme-toggle:hover .theme-toggle-slider {
  transform: scale(1.1);
}

.theme-toggle:active .theme-toggle-slider {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .theme-toggle {
    width: 70px;
    height: 36px;
  }
  
  .theme-toggle-slider {
    width: 28px;
    height: 28px;
  }
  
  [data-theme="light"] .theme-toggle-slider {
    left: calc(100% - 31px);
  }
}

.theme-toggle-slider .moon-icon {
  display: block;
  position: relative;
  color: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
  width: 18px;
  height: 18px;
}

/* Language Toggle Button */
.language-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.language-toggle-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-primary);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.language-toggle-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .language-toggle-btn {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }
}

.lang-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.lang-code {
  font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  width: 100%;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 70px;
    padding-bottom: var(--spacing-lg);
    min-height: 100vh;
    align-items: flex-start;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.hero-image {
  position: relative;
  animation: heroImageEntrance 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes heroImageEntrance {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-15deg);
    filter: blur(20px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) rotate(2deg);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0px);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: visible;
  border: 4px solid transparent;
  background: var(--accent-gradient);
  padding: 4px;
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.4));
  animation: pulseGlow 3s ease-in-out infinite 1.8s;
}

@keyframes pulseGlow {
  0%, 100% {
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 50px rgba(139, 92, 246, 0.6));
  }
}

.image-wrapper::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #6366f1 0deg,
    #8b5cf6 60deg,
    #a855f7 120deg,
    #ec4899 180deg,
    #f59e0b 240deg,
    #06b6d4 300deg,
    #6366f1 360deg
  );
  animation: waveRotate 8s linear infinite 1.5s, auraExpand 1.2s ease-out 0.5s both;
  z-index: -1;
  filter: blur(12px);
  opacity: 0;
}

@keyframes auraExpand {
  0% {
    transform: scale(0.5);
    opacity: 0;
    filter: blur(30px);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(12px);
  }
}

.image-wrapper::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(
    from 45deg,
    transparent 0deg,
    rgba(99, 102, 241, 0.6) 30deg,
    rgba(168, 85, 247, 0.6) 90deg,
    transparent 120deg,
    rgba(236, 72, 153, 0.6) 180deg,
    rgba(245, 158, 11, 0.6) 240deg,
    transparent 270deg,
    rgba(6, 182, 212, 0.6) 330deg,
    transparent 360deg
  );
  animation: waveRotate 12s linear infinite reverse 1.7s, auraExpand 1.4s ease-out 0.7s both;
  z-index: -2;
  filter: blur(20px);
  opacity: 0;
}

@keyframes waveRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg-secondary);
  animation: imageReveal 1s ease-out 0.8s both;
}

@keyframes imageReveal {
  0% {
    opacity: 0;
    transform: scale(1.2);
    filter: brightness(0.3) blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) blur(0px);
  }
}

.image-glow {
  display: none;
}

@keyframes waveGlow {
  0%, 100% { 
    transform: rotate(0deg) scale(1); 
    opacity: 0.5;
  }
  50% { 
    transform: rotate(180deg) scale(1.2); 
    opacity: 0.7;
  }
}

/* Musical Notes Animation */
.musical-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.note {
  position: absolute;
  font-size: 2.5rem;
  color: #ff9500;
  opacity: 0;
  animation: noteFloat 8s ease-in-out infinite;
  text-shadow: 
    0 0 15px rgba(255, 149, 0, 0.8),
    0 0 30px rgba(255, 149, 0, 0.6),
    0 3px 8px rgba(0, 0, 0, 0.5);
  filter: drop-shadow(0 5px 15px rgba(255, 149, 0, 0.6));
  font-weight: 900;
}

[data-theme="light"] .note {
  color: #ff6b00;
  text-shadow: 
    0 0 20px rgba(255, 107, 0, 0.9),
    0 0 35px rgba(255, 107, 0, 0.7),
    0 3px 10px rgba(0, 0, 0, 0.4);
  filter: drop-shadow(0 6px 18px rgba(255, 107, 0, 0.7));
}

.note:nth-child(1) { top: 5%; left: 5%; animation-delay: 0s; }
.note:nth-child(2) { top: 15%; right: 0%; animation-delay: 1.5s; }
.note:nth-child(3) { bottom: 10%; left: 10%; animation-delay: 3s; }
.note:nth-child(4) { bottom: 25%; right: 5%; animation-delay: 4.5s; }
.note:nth-child(5) { top: 60%; left: -5%; animation-delay: 6s; }

@keyframes noteFloat {
  0%, 100% { opacity: 0; transform: translateY(0) rotate(0deg); }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-30px) rotate(360deg); }
}

/* Code Symbols Animation */
.code-symbols {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.code-symbols .code {
  position: absolute;
  font-size: 1.75rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: codeFloat 8s ease-in-out infinite;
}

.code-symbols .code:nth-child(1) { top: 5%; right: 10%; animation-delay: 0.5s; }
.code-symbols .code:nth-child(2) { top: 50%; left: 0%; animation-delay: 2s; }
.code-symbols .code:nth-child(3) { bottom: 15%; right: 0%; animation-delay: 3.5s; }
.code-symbols .code:nth-child(4) { bottom: 5%; left: 5%; animation-delay: 5s; }
.code-symbols .code:nth-child(5) { top: 35%; right: -5%; animation-delay: 6.5s; }

@keyframes codeFloat {
  0%, 100% { opacity: 0; transform: translateY(0) translateX(0) rotate(0deg); }
  10% { opacity: 0.9; }
  90% { opacity: 0.9; }
  100% { transform: translateY(-25px) translateX(10px) rotate(-15deg); }
}

/* Hero Text */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.greeting {
  display: block;
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  animation: fadeInUp 0.8s ease-out;
}

.name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: nowrap;
  gap: var(--spacing-sm);
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
  line-height: 1.6;
  white-space: nowrap;
}

.typed-text {
  position: relative;
  color: var(--text-primary);
  font-weight: 500;
}

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

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
  margin-top: var(--spacing-sm);
  text-align: justify;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  margin-top: calc(var(--spacing-lg) + var(--spacing-xs));
  animation: fadeInUp 0.8s ease-out 0.8s backwards;
  flex-wrap: wrap;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Musical Background - Rainbow Animated Notes */
.hero-musical-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-note {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0;
  animation: rainbowFloat 8s ease-in-out infinite, rainbowColor 6s linear infinite, fadeInOut 8s ease-in-out infinite;
  text-shadow: 
    0 0 20px currentColor,
    0 0 40px currentColor,
    0 4px 12px rgba(0, 0, 0, 0.3);
  filter: blur(0.5px);
}

.floating-note:nth-child(1) {
  left: 10%;
  top: 15%;
  animation-delay: 0s, 0s, 0s;
}

.floating-note:nth-child(2) {
  left: 25%;
  top: 60%;
  animation-delay: 1.5s, 1.5s, 1.5s;
  font-size: 2rem;
}

.floating-note:nth-child(3) {
  left: 40%;
  top: 30%;
  animation-delay: 3s, 3s, 3s;
  font-size: 3rem;
}

.floating-note:nth-child(4) {
  left: 55%;
  top: 70%;
  animation-delay: 4.5s, 4.5s, 4.5s;
  font-size: 2.2rem;
}

.floating-note:nth-child(5) {
  left: 70%;
  top: 20%;
  animation-delay: 6s, 6s, 6s;
  font-size: 2.8rem;
}

.floating-note:nth-child(6) {
  left: 85%;
  top: 50%;
  animation-delay: 0.8s, 0.8s, 0.8s;
  font-size: 2.4rem;
}

.floating-note:nth-child(7) {
  left: 15%;
  top: 80%;
  animation-delay: 2.3s, 2.3s, 2.3s;
  font-size: 2.6rem;
}

.floating-note:nth-child(8) {
  left: 90%;
  top: 25%;
  animation-delay: 3.8s, 3.8s, 3.8s;
  font-size: 2rem;
}

.floating-note:nth-child(9) {
  left: 5%;
  top: 45%;
  animation-delay: 5.3s, 5.3s, 5.3s;
  font-size: 2.3rem;
}

.floating-note:nth-child(10) {
  left: 60%;
  top: 10%;
  animation-delay: 1.2s, 1.2s, 1.2s;
  font-size: 2.7rem;
}

.floating-note:nth-child(11) {
  left: 35%;
  top: 85%;
  animation-delay: 2.8s, 2.8s, 2.8s;
  font-size: 2.1rem;
}

.floating-note:nth-child(12) {
  left: 78%;
  top: 65%;
  animation-delay: 4.2s, 4.2s, 4.2s;
  font-size: 2.9rem;
}

.floating-note:nth-child(13) {
  left: 50%;
  top: 5%;
  animation-delay: 5.8s, 5.8s, 5.8s;
  font-size: 2.5rem;
}

.floating-note:nth-child(14) {
  left: 20%;
  top: 40%;
  animation-delay: 0.5s, 0.5s, 0.5s;
  font-size: 2.2rem;
}

.floating-note:nth-child(15) {
  left: 65%;
  top: 90%;
  animation-delay: 2s, 2s, 2s;
  font-size: 2.4rem;
}

@keyframes rainbowFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-30px) rotate(5deg) scale(1.1);
  }
  50% {
    transform: translateY(-50px) rotate(-5deg) scale(0.9);
  }
  75% {
    transform: translateY(-30px) rotate(3deg) scale(1.05);
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
  }
}

@keyframes rainbowColor {
  0% { color: #ff0080; }
  14% { color: #ff8c00; }
  28% { color: #ffd700; }
  42% { color: #00ff00; }
  57% { color: #00bfff; }
  71% { color: #8a2be2; }
  85% { color: #ff1493; }
  100% { color: #ff0080; }
}

@media (max-width: 768px) {
  .floating-note {
    font-size: 1.8rem;
  }
  
  .floating-note:nth-child(3),
  .floating-note:nth-child(5),
  .floating-note:nth-child(10),
  .floating-note:nth-child(12) {
    font-size: 2rem;
  }
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: var(--bg-card);
  border: 2px solid rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 2rem;
  font-size: 1.05rem;
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(5px);
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-family: var(--font-display);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.section-icon {
  font-size: 2.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  text-align: justify;
}

.section-cta {
  text-align: center;
  margin-top: var(--spacing-2xl);
}

/* ===================================
   Music Section
   =================================== */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--spacing-xl);
}

.music-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.music-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg);
}

.card-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.music-card:hover .card-media img {
  transform: scale(1.1);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.music-card:hover .play-overlay {
  opacity: 1;
}

.play-icon {
  color: white;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-base);
}

.music-card:hover .play-icon {
  transform: scale(1.1);
}

.youtube-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: #ff0000;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.card-content {
  padding: var(--spacing-lg);
}

.card-year {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.card-tags {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.tag {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ===================================
   Teaching Section
   =================================== */
.teaching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.teaching-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.teaching-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.teaching-card:hover::before {
  transform: scaleX(1);
}

.teaching-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  color: var(--accent-primary);
  transition: all var(--transition-base);
}

.teaching-card:hover .card-icon {
  background: rgba(99, 102, 241, 0.2);
  transform: rotateY(360deg);
}

/* Featured Teaching Card */
.teaching-card-featured {
  border: 2px solid rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, 
              rgba(99, 102, 241, 0.05) 0%, 
              rgba(168, 85, 247, 0.03) 100%);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.teaching-card-featured::before {
  height: 6px;
  transform: scaleX(1);
}

.teaching-card-featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Coming Soon Cards */
.teaching-card-coming-soon {
  position: relative;
  opacity: 0.7;
}

.teaching-card-coming-soon:hover {
  transform: translateY(-4px);
  opacity: 0.8;
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
              rgba(99, 102, 241, 0.03), 
              rgba(168, 85, 247, 0.02));
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  z-index: 1;
  pointer-events: none;
}



.card-subtitle {
  color: var(--accent-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.card-meta {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.meta-item {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ===================================
   Spotlight Section (Vivace)
   =================================== */
.spotlight-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.spotlight-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-3xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.spotlight-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--spacing-sm);
}

.spotlight-title {
  font-family: var(--font-display);
  font-size: 3rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
}

.spotlight-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
  text-align: justify;
}

.spotlight-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  color: var(--text-primary);
  font-weight: 500;
}

.feature-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.spotlight-visual {
  position: relative;
}

.visual-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.visual-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.visual-glow {
  position: absolute;
  inset: -30%;
  background: var(--accent-gradient);
  filter: blur(50px);
  opacity: 0.2;
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

/* ===================================
   Projects Section
   =================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--spacing-xl);
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

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

.card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.project-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent-secondary);
  flex-shrink: 0;
}

.card-links {
  display: flex;
  gap: var(--spacing-md);
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-base);
}

.link-item:hover {
  color: var(--accent-secondary);
  transform: translateX(3px);
}

.card-tech {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  margin-top: auto;
}

.tech-tag {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===================================
   Publications Section
   =================================== */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.publication-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  transition: all var(--transition-smooth);
}

.publication-item:hover {
  transform: translateX(8px);
  border-left-color: var(--accent-secondary);
  box-shadow: var(--shadow-md);
}

.pub-meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  align-items: center;
}

.pub-type {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pub-year {
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 0.9rem;
}

.pub-title {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  line-height: 1.4;
}

.pub-venue {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.pub-authors {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.pub-links {
  display: flex;
  gap: var(--spacing-md);
}

.pub-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.pub-link:hover {
  color: var(--accent-secondary);
  transform: translateX(3px);
}

/* ===================================
   Students Section
   =================================== */
.students-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.student-project {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
}

.student-project:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.project-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.student-project:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
}

.project-tag {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.project-info {
  padding: var(--spacing-xl);
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.project-students {
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.project-tech-tags {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

/* ===================================
   Personal Section
   =================================== */
.personal-section {
  background: var(--bg-secondary);
  padding: var(--spacing-2xl) 0;
}

.personal-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.personal-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 340deg,
    var(--accent-primary) 340deg 360deg
  );
  animation: rotate 4s linear infinite;
  opacity: 0.1;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.personal-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  animation: iconSpin 10s linear infinite;
}

@keyframes iconSpin {
  0%, 90% { transform: rotate(0deg); }
  95% { transform: rotate(-15deg); }
  100% { transform: rotate(360deg); }
}

.personal-text {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

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

.personal-subtext {
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
  background: var(--bg-secondary);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.contact-item:hover {
  border-color: var(--border-hover);
  transform: translateX(8px);
}

.contact-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.contact-link {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
  transition: color var(--transition-base);
}

.contact-link:hover {
  color: var(--accent-primary);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-top: var(--spacing-xl);
}

.social-link {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
}

.footer-tagline {
  color: var(--text-secondary);
  font-style: italic;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-column a {
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.footer-column a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer-credit {
  margin-top: var(--spacing-xs);
  font-style: italic;
}

/* ===================================
   Scroll Animations
   =================================== */
[data-scroll] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-scroll].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Advanced Scroll Reveal Animations
   =================================== */

/* Base state - sections hidden before scroll */
.reveal-section {
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide from left */
.reveal-left {
    transform: translateX(-100px);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.reveal-right {
    transform: translateX(100px);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from bottom */
.reveal-bottom {
    transform: translateY(80px);
}

.reveal-bottom.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Scale up fade in */
.reveal-scale {
    transform: scale(0.85);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Rotate fade in */
.reveal-rotate {
    transform: rotateY(-15deg) scale(0.95);
    transform-origin: center;
    perspective: 1000px;
}

.reveal-rotate.revealed {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
}

/* Blur fade in */
.reveal-blur {
    filter: blur(10px);
    transform: translateY(30px);
}

.reveal-blur.revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Clip path reveal */
.reveal-clip {
    clip-path: inset(0 100% 0 0);
}

.reveal-clip.revealed {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition: clip-path 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Stagger children for cards */
.reveal-stagger .card,
.reveal-stagger .composition-card,
.reveal-stagger .course-card,
.reveal-stagger .teaching-card,
.reveal-stagger .music-card,
.reveal-stagger .project-card,
.reveal-stagger .student-project,
.reveal-stagger .publication-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.revealed .card,
.reveal-stagger.revealed .composition-card,
.reveal-stagger.revealed .course-card,
.reveal-stagger.revealed .teaching-card,
.reveal-stagger.revealed .music-card,
.reveal-stagger.revealed .project-card,
.reveal-stagger.revealed .student-project,
.reveal-stagger.revealed .publication-item {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.revealed .card:nth-child(1),
.reveal-stagger.revealed .composition-card:nth-child(1),
.reveal-stagger.revealed .course-card:nth-child(1),
.reveal-stagger.revealed .teaching-card:nth-child(1),
.reveal-stagger.revealed .music-card:nth-child(1),
.reveal-stagger.revealed .project-card:nth-child(1),
.reveal-stagger.revealed .student-project:nth-child(1),
.reveal-stagger.revealed .publication-item:nth-child(1) { transition-delay: 0.1s; }

.reveal-stagger.revealed .card:nth-child(2),
.reveal-stagger.revealed .composition-card:nth-child(2),
.reveal-stagger.revealed .course-card:nth-child(2),
.reveal-stagger.revealed .teaching-card:nth-child(2),
.reveal-stagger.revealed .music-card:nth-child(2),
.reveal-stagger.revealed .project-card:nth-child(2),
.reveal-stagger.revealed .student-project:nth-child(2),
.reveal-stagger.revealed .publication-item:nth-child(2) { transition-delay: 0.2s; }

.reveal-stagger.revealed .card:nth-child(3),
.reveal-stagger.revealed .composition-card:nth-child(3),
.reveal-stagger.revealed .course-card:nth-child(3),
.reveal-stagger.revealed .teaching-card:nth-child(3),
.reveal-stagger.revealed .music-card:nth-child(3),
.reveal-stagger.revealed .project-card:nth-child(3),
.reveal-stagger.revealed .publication-item:nth-child(3) { transition-delay: 0.3s; }

.reveal-stagger.revealed .card:nth-child(4),
.reveal-stagger.revealed .composition-card:nth-child(4),
.reveal-stagger.revealed .music-card:nth-child(4),
.reveal-stagger.revealed .publication-item:nth-child(4) { transition-delay: 0.4s; }

.reveal-stagger.revealed .card:nth-child(5),
.reveal-stagger.revealed .composition-card:nth-child(5),
.reveal-stagger.revealed .music-card:nth-child(5) { transition-delay: 0.5s; }

.reveal-stagger.revealed .card:nth-child(6),
.reveal-stagger.revealed .composition-card:nth-child(6),
.reveal-stagger.revealed .music-card:nth-child(6) { transition-delay: 0.6s; }

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
  @keyframes menuSlideIn {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }
  
  @keyframes menuSlideOut {
    from {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    to {
      opacity: 0;
      transform: translateX(-50%) translateY(-20px);
    }
  }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: 10px;
    left: 1rem;
    right: 1rem;
    transform: none;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(236, 72, 153, 0.2);
    border-radius: var(--radius-lg);
    flex-direction: column !important;
    gap: 0.25rem;
    z-index: 998;
    align-items: stretch !important;
  }
  
  .nav-menu.active {
    display: flex !important;
    animation: menuFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  
  .nav-menu.closing {
    display: flex !important;
    animation: menuFadeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  
  @keyframes menuFadeIn {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  @keyframes menuFadeOut {
    from {
      opacity: 1;
      transform: scale(1);
    }
    to {
      opacity: 0;
      transform: scale(0.95);
    }
  }
  
  .nav-menu li {
    width: 100%;
    display: block;
  }
  
  .nav-menu .nav-link {
    display: block;
    padding: 1rem 1.25rem;
    text-align: left;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .nav-menu .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-gradient);
    transform: scaleY(0);
    transition: transform 0.2s ease;
  }
  
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background: rgba(236, 72, 153, 0.15);
    color: #fff;
    padding-left: 1.75rem;
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
  }
  
  .nav-menu .nav-link:hover::before,
  .nav-menu .nav-link.active::before {
    transform: scaleY(1);
  }
  
  [data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(236, 72, 153, 0.2);
  }
  
  [data-theme="light"] .nav-menu .nav-link {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
  }
  
  [data-theme="light"] .nav-menu .nav-link:hover,
  [data-theme="light"] .nav-menu .nav-link.active {
    color: var(--accent-pink);
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
  }
  
  .mobile-menu-toggle {
    display: flex;
    z-index: 999;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-image {
    order: -1;
    margin: 0 auto;
  }
  
  .hero-text {
    align-items: center;
  }
  
  .hero-description {
    max-width: 100%;
  }
  
  .spotlight-card {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
    overflow-x: hidden;
  }
  
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .container {
    max-width: 100%;
    padding: 0 var(--spacing-lg);
    overflow-x: hidden;
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
    overflow-x: hidden;
  }
  
  /* Hero Section Mobile */
  .hero {
    padding-top: 70px;
    padding-bottom: var(--spacing-xl);
  }
  
  .hero-content {
    flex-direction: column;
    gap: var(--spacing-xl);
    grid-template-columns: 1fr;
  }
  
  .hero-image {
    max-width: 100%;
    order: -1;
  }
  
  .image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero-text {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  /* Grid Layouts Mobile */
  .music-grid,
  .teaching-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .students-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* Cards Mobile */
  .teaching-card,
  .music-card,
  .project-card,
  .publication-item,
  .student-project {
    max-width: 100%;
    overflow: hidden;
  }
  
  .card-icon svg,
  .project-icon svg {
    width: 40px;
    height: 40px;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
  
  .card-description {
    font-size: 0.95rem;
  }
  
  /* Music Cards Mobile */
  .music-card .card-media {
    height: 200px;
  }
  
  .play-icon {
    width: 40px;
    height: 40px;
  }
  
  /* Hero CTA Mobile */
  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-sm);
  }
  
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Spotlight Section Mobile */
  .spotlight-card {
    padding: var(--spacing-xl);
    flex-direction: column;
    gap: var(--spacing-xl);
  }
  
  .spotlight-visual {
    order: -1;
  }
  
  .spotlight-content,
  .spotlight-visual {
    max-width: 100%;
  }
  
  .spotlight-title {
    font-size: 2rem;
  }
  
  .spotlight-tagline {
    font-size: 1rem;
  }
  
  .spotlight-description {
    font-size: 0.95rem;
  }
  
  .spotlight-features {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .feature-item {
    font-size: 0.9rem;
  }
  
  .vivace-stats {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  /* Publications Mobile */
  .publication-item {
    padding: var(--spacing-lg);
  }
  
  .pub-title {
    font-size: 1.1rem;
  }
  
  .pub-venue,
  .pub-authors {
    font-size: 0.9rem;
  }
  
  /* Student Projects Mobile */
  .student-project {
    flex-direction: column;
  }
  
  .project-image {
    height: 200px;
  }
  
  /* Section Headers Mobile */
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-icon {
    font-size: 2rem;
  }
  
  /* Contact Section Mobile */
  .contact-content {
    flex-direction: column;
  }
  
  .social-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
  }
  
  .social-link {
    width: 48px;
    height: 48px;
  }
  
  /* Personal Card Mobile */
  .personal-card {
    padding: var(--spacing-xl);
  }
  
  .personal-text {
    font-size: 1.1rem;
  }
  
  /* Footer Mobile */
  .footer-content {
    flex-direction: column;
    gap: var(--spacing-xl);
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  /* Width Constraints */
  .publications-list,
  .teaching-grid,
  .music-grid,
  .projects-grid {
    width: 100%;
  }
  
  /* Mobile Reveal Animations - Faster and Subtler */
  .reveal-left,
  .reveal-right {
    transform: translateY(20px);
  }
  
  .reveal-scale {
    transform: scale(0.98) translateY(10px);
  }
  
  .reveal-rotate {
    transform: translateY(20px);
    opacity: 0;
  }
  
  .reveal-blur {
    filter: blur(5px);
    transform: translateY(15px);
  }
  
  .reveal-bottom {
    transform: translateY(20px);
  }
  
  .reveal-stagger .card,
  .reveal-stagger .teaching-card,
  .reveal-stagger .music-card,
  .reveal-stagger .project-card,
  .reveal-stagger .student-project,
  .reveal-stagger .publication-item {
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .reveal-stagger.revealed .card:nth-child(n),
  .reveal-stagger.revealed .teaching-card:nth-child(n),
  .reveal-stagger.revealed .music-card:nth-child(n),
  .reveal-stagger.revealed .project-card:nth-child(n),
  .reveal-stagger.revealed .student-project:nth-child(n),
  .reveal-stagger.revealed .publication-item:nth-child(n) {
    transition-delay: 0.05s;
  }
}

@media (max-width: 480px) {
  html {
    overflow-x: hidden;
    font-size: 13px;
  }
  
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .container {
    padding: 0 var(--spacing-md);
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
    overflow-x: hidden;
  }
  
  /* Hero Section Small Mobile */
  .image-wrapper {
    max-width: 220px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
    gap: 0.25rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  /* Section Headers Small Mobile */
  .section-title {
    font-size: 1.6rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .section-icon {
    font-size: 1.75rem;
  }
  
  /* Spotlight Small Mobile */
  .spotlight-card {
    padding: var(--spacing-lg);
  }
  
  .spotlight-title {
    font-size: 1.5rem;
  }
  
  .spotlight-tagline {
    font-size: 0.9rem;
  }
  
  .spotlight-description {
    font-size: 0.85rem;
  }
  
  .vivace-logo-container img {
    max-width: 90%;
  }
  
  /* Cards Small Mobile */
  .teaching-card,
  .music-card,
  .project-card,
  .publication-item,
  .student-project {
    max-width: 100%;
    overflow: hidden;
    padding: var(--spacing-md);
  }
  
  .card-title {
    font-size: 1rem;
  }
  
  .card-description {
    font-size: 0.85rem;
  }
  
  .card-icon svg,
  .project-icon svg {
    width: 36px;
    height: 36px;
  }
  
  /* Music Cards Small Mobile */
  .music-card .card-media {
    height: 180px;
  }
  
  .play-icon {
    width: 36px;
    height: 36px;
  }
  
  .youtube-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* Publications Small Mobile */
  .publication-item {
    padding: var(--spacing-md);
  }
  
  .pub-title {
    font-size: 0.95rem;
  }
  
  .pub-venue,
  .pub-authors {
    font-size: 0.8rem;
  }
  
  .pub-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  /* Project Cards Small Mobile */
  .project-card {
    padding: var(--spacing-md);
  }
  
  .card-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .card-tech {
    gap: 0.5rem;
  }
  
  .tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* Student Projects Small Mobile */
  .student-project {
    flex-direction: column;
  }
  
  .project-image {
    height: 180px;
  }
  
  .project-students,
  .project-description {
    font-size: 0.85rem;
  }
  
  /* Buttons Small Mobile */
  .btn {
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
    white-space: nowrap;
  }
  
  /* Fix spotlight actions */
  .vivace-actions {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .vivace-actions .btn {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
  
  /* Feature Items Small Mobile */
  .feature-item {
    font-size: 0.85rem;
  }
  
  .feature-item svg {
    width: 20px;
    height: 20px;
  }
  
  /* Stats Small Mobile */
  .stat-item {
    font-size: 0.85rem;
  }
  
  /* Contact Small Mobile */
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .social-link {
    width: 44px;
    height: 44px;
  }
  
  /* Personal Card Small Mobile */
  .personal-card {
    padding: var(--spacing-lg);
  }
  
  .personal-icon {
    font-size: 2rem;
  }
  
  .personal-text {
    font-size: 1rem;
  }
  
  .personal-subtext {
    font-size: 0.85rem;
  }
  
  /* Footer Small Mobile */
  .footer-logo {
    font-size: 1.25rem;
  }
  
  .footer-tagline {
    font-size: 0.85rem;
  }
  
  .footer-column h4 {
    font-size: 0.95rem;
  }
  
  .footer-column ul li a {
    font-size: 0.85rem;
  }
  
  .separator {
    display: none;
  }
  
  /* Grids Small Mobile */
  .music-grid,
  .teaching-grid,
  .projects-grid,
  .students-grid {
    gap: var(--spacing-md);
  }
}

/* ===================================
   Accessibility
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* ===================================
   Utility Classes
   =================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===================================
   Video Modal - Fancy & Artistic
   =================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, 
              rgba(10, 10, 10, 0.95) 0%, 
              rgba(0, 0, 0, 0.98) 100%);
  backdrop-filter: blur(20px);
  animation: backdropFadeIn 0.5s ease-out;
}

.video-modal.active .modal-backdrop {
  animation: backdropPulse 3s ease-in-out infinite;
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes backdropPulse {
  0%, 100% { background: radial-gradient(circle at center, rgba(10, 10, 10, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%); }
  50% { background: radial-gradient(circle at center, rgba(20, 15, 30, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%); }
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1400px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, 
              rgba(26, 26, 26, 0.95) 0%, 
              rgba(15, 23, 42, 0.95) 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 100px rgba(99, 102, 241, 0.3),
              0 10px 50px rgba(168, 85, 247, 0.2),
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.8) translateY(50px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.6s ease-out;
  border: 2px solid;
  border-image: linear-gradient(135deg, 
                rgba(99, 102, 241, 0.5), 
                rgba(168, 85, 247, 0.5), 
                rgba(236, 72, 153, 0.5)) 1;
}

.video-modal.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Fancy Opening Animation */
.video-modal.opening .modal-content {
  animation: modalZoomIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.video-modal.opening .modal-backdrop {
  animation: backdropExpand 0.6s ease-out forwards;
}

.video-modal.opening .deco-circle {
  animation: circleExplode 0.8s ease-out forwards;
}

.video-modal.opening .deco-notes .note-float {
  animation: notesSpiral 1s ease-out forwards;
}

/* Fancy Closing Animation */
.video-modal.closing .modal-content {
  animation: modalZoomOut 0.5s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

.video-modal.closing .modal-backdrop {
  animation: backdropCollapse 0.5s ease-in forwards;
}

.video-modal.closing .deco-circle {
  animation: circleImplode 0.5s ease-in forwards;
}

@keyframes modalZoomIn {
  0% {
    transform: scale(0.3) translateY(100px) rotateX(30deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.05) translateY(-10px) rotateX(-5deg);
  }
  100% {
    transform: scale(1) translateY(0) rotateX(0);
    opacity: 1;
  }
}

@keyframes modalZoomOut {
  0% {
    transform: scale(1) translateY(0) rotateX(0);
    opacity: 1;
  }
  100% {
    transform: scale(0.3) translateY(-100px) rotateX(-30deg);
    opacity: 0;
  }
}

@keyframes backdropExpand {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes backdropCollapse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

@keyframes circleExplode {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: scale(1) rotate(180deg);
    opacity: 0.3;
  }
}

@keyframes circleImplode {
  0% {
    transform: scale(1) rotate(180deg);
    opacity: 0.3;
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}

@keyframes notesSpiral {
  0% {
    transform: scale(0) rotate(0deg) translateY(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(720deg) translateY(-20px);
    opacity: 0.8;
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.modal-close:hover {
  background: rgba(168, 85, 247, 1);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
}

.modal-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.modal-video-wrapper iframe {
  border-radius: 20px;
}

/* Decorative Elements */
.modal-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, 
              rgba(99, 102, 241, 0.3), 
              transparent);
  animation: floatCircle 8s ease-in-out infinite;
}

.deco-1 {
  width: 200px;
  height: 200px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.deco-2 {
  width: 150px;
  height: 150px;
  bottom: -75px;
  right: 10%;
  background: radial-gradient(circle, 
              rgba(168, 85, 247, 0.25), 
              transparent);
  animation-delay: 2s;
}

.deco-3 {
  width: 180px;
  height: 180px;
  top: 20%;
  right: -90px;
  background: radial-gradient(circle, 
              rgba(236, 72, 153, 0.2), 
              transparent);
  animation-delay: 4s;
}

@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.1); }
  66% { transform: translate(-10px, 10px) scale(0.9); }
}

.deco-notes {
  position: absolute;
  inset: 0;
}

.note-float {
  position: absolute;
  font-size: 2.5rem;
  color: rgba(251, 191, 36, 0.3);
  animation: noteFloat 6s ease-in-out infinite;
}

.note-float:nth-child(1) {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.note-float:nth-child(2) {
  bottom: 20%;
  left: 15%;
  animation-delay: 2s;
}

.note-float:nth-child(3) {
  top: 30%;
  right: 10%;
  animation-delay: 4s;
}

@keyframes noteFloat {
  0%, 100% { 
    opacity: 0.2; 
    transform: translateY(0) rotate(0deg); 
  }
  50% { 
    opacity: 0.4; 
    transform: translateY(-30px) rotate(15deg); 
  }
}

/* Music Card Play Overlay Enhancement */
.card-media {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.4s ease;
}

.card-media:hover .play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
}

.play-icon {
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 8px 20px rgba(99, 102, 241, 0.6));
}

.card-media:hover .play-icon {
  transform: scale(1);
  animation: pulsePlay 1.5s ease-in-out infinite;
}

@keyframes pulsePlay {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    border-radius: 16px;
  }
  
  .modal-close {
    width: 40px;
    height: 40px;
    top: 1rem;
    right: 1rem;
  }
  
  .deco-circle {
    display: none;
  }
  
  .note-float {
    font-size: 1.5rem;
  }
}

/* ===================================
   Publication Stats & Controls
   =================================== */
.pub-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.stat-card {
  background: var(--bg-card);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pub-controls {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
  align-items: center;
}

.pub-search {
  flex: 1;
  min-width: 250px;
  position: relative;
  display: flex;
  align-items: center;
}

.pub-search svg {
  position: absolute;
  left: 1.25rem;
  color: var(--accent-primary);
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
  transition: all var(--transition-base);
}

.pub-search:focus-within svg {
  opacity: 1;
  transform: scale(1.1);
}

.pub-search input {
  width: 100%;
  padding: 1.15rem 1.5rem 1.15rem 3.75rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(99, 102, 241, 0.15);
  border-radius: calc(var(--radius-lg) + 4px);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
  position: relative;
}

.pub-search input:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 6px 20px rgba(99, 102, 241, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.pub-search input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 0 0 4px rgba(99, 102, 241, 0.12), 
    0 8px 24px rgba(99, 102, 241, 0.2),
    inset 0 1px 3px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.pub-search input::placeholder {
  color: var(--text-tertiary);
  opacity: 0.6;
}

.pub-filters {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(99, 102, 241, 0.12);
  border-radius: calc(var(--radius-md) + 2px);
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-color: transparent;
  color: white;
  box-shadow: 
    0 6px 20px rgba(99, 102, 241, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.filter-btn.active:hover {
  box-shadow: 
    0 8px 24px rgba(99, 102, 241, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Coming Soon Section */
.coming-soon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  padding: var(--spacing-xl) 0;
}

.coming-soon-card {
  max-width: 700px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xxl);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Coming Soon Hero */
.coming-soon-hero {
  position: relative;
  min-height: 750px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacing-xxl) * 2) var(--spacing-xl);
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.05) 0%, 
    rgba(168, 85, 247, 0.05) 50%,
    rgba(236, 72, 153, 0.05) 100%);
  margin: var(--spacing-xxl) 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

/* Animated Grid Overlay */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  opacity: 0.5;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Floating Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 15s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.particle:nth-child(2) {
  left: 25%;
  animation-delay: -3s;
  animation-duration: 15s;
}

.particle:nth-child(3) {
  left: 40%;
  animation-delay: -6s;
  animation-duration: 13s;
}

.particle:nth-child(4) {
  left: 60%;
  animation-delay: -2s;
  animation-duration: 14s;
}

.particle:nth-child(5) {
  left: 75%;
  animation-delay: -8s;
  animation-duration: 16s;
}

.particle:nth-child(6) {
  left: 85%;
  animation-delay: -4s;
  animation-duration: 11s;
}

.particle:nth-child(7) {
  left: 50%;
  animation-delay: -5s;
  animation-duration: 17s;
}

.particle:nth-child(8) {
  left: 30%;
  animation-delay: -7s;
  animation-duration: 13s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  animation: float 25s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  bottom: -150px;
  right: -150px;
  animation-delay: -10s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(50px, -50px) scale(1.2) rotate(120deg);
  }
  66% {
    transform: translate(-40px, 40px) scale(0.9) rotate(240deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-xxl) * 1.5);
  align-items: center;
  padding: var(--spacing-xl);
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-icon-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
}

.hero-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 30px 80px rgba(99, 102, 241, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 60px rgba(255, 255, 255, 0.1);
  animation: iconPulse 4s ease-in-out infinite;
  z-index: 2;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.hero-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shimmerRotate 3s linear infinite;
}

@keyframes shimmerRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hero-icon svg {
  color: white;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 1;
}

@keyframes iconPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 
      0 30px 80px rgba(99, 102, 241, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      inset 0 0 60px rgba(255, 255, 255, 0.1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 
      0 35px 90px rgba(99, 102, 241, 0.8),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      inset 0 0 80px rgba(255, 255, 255, 0.15);
  }
}

.icon-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid;
  border-radius: 50%;
  opacity: 0;
  animation: ripple 4s ease-out infinite;
}

.ring-1 {
  border-color: rgba(99, 102, 241, 0.6);
  animation-delay: 0s;
}

.ring-2 {
  border-color: rgba(168, 85, 247, 0.6);
  animation-delay: 1.33s;
}

.ring-3 {
  border-color: rgba(99, 102, 241, 0.6);
  animation-delay: 2.66s;
}

@keyframes ripple {
  0% {
    width: 160px;
    height: 160px;
    opacity: 1;
  }
  100% {
    width: 320px;
    height: 320px;
    opacity: 0;
  }
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
  color: var(--text-primary);
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.title-line:nth-child(1) {
  animation-delay: 0.1s;
}

.title-line:nth-child(2) {
  animation-delay: 0.2s;
}

.title-line:nth-child(3) {
  animation-delay: 0.3s;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease infinite;
  background-size: 200% 200%;
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.3));
}

@keyframes gradientFlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: calc(var(--spacing-xl) * 1.5);
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
  padding: 0 var(--spacing-sm);
  text-align: justify;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  width: 100%;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 1.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-tag:nth-child(1) { animation-delay: 0.5s; }
.feature-tag:nth-child(2) { animation-delay: 0.6s; }
.feature-tag:nth-child(3) { animation-delay: 0.7s; }
.feature-tag:nth-child(4) { animation-delay: 0.8s; }

.feature-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
  transition: left 0.6s ease;
}

.feature-tag:hover::before {
  left: 100%;
}

.feature-tag::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-tag:hover::after {
  opacity: 1;
}

.feature-tag:hover {
  transform: translateX(12px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 
    0 8px 24px rgba(99, 102, 241, 0.3),
    inset 0 0 30px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.tag-icon {
  font-size: 1.4rem;
  filter: grayscale(0);
  position: relative;
  z-index: 1;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.feature-tag span:last-child {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 1.1rem 2.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
  border: 2px solid rgba(99, 102, 241, 0.5);
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-primary);
  box-shadow: 
    0 10px 40px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  margin-top: var(--spacing-md);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 0.9s forwards;
  opacity: 0;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

.badge-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 
    0 0 15px var(--accent-primary),
    0 0 30px rgba(99, 102, 241, 0.5);
  position: relative;
  z-index: 1;
}

.badge-text {
  position: relative;
  z-index: 1;
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
    padding: var(--spacing-md);
  }
  
  .hero-right {
    align-items: center;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .feature-tag:hover {
    transform: translateX(0) translateY(-4px) scale(1.02);
  }
}

@media (max-width: 768px) {
  .coming-soon-hero {
    min-height: auto;
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .hero-content {
    padding: var(--spacing-md);
    gap: var(--spacing-xl);
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
    gap: 0.15rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
    padding: 0;
    line-height: 1.6;
  }
  
  .hero-icon-wrapper {
    width: 150px;
    height: 150px;
  }
  
  .hero-icon {
    width: 100px;
    height: 100px;
    border-radius: 25px;
  }
  
  .hero-icon svg {
    width: 60px;
    height: 60px;
  }
  
  .feature-tag {
    font-size: 0.85rem;
    padding: 1.1rem 1.5rem;
  }
  
  .tag-icon {
    font-size: 1.25rem;
  }
}

.project-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-category-card:hover::before {
  transform: scaleX(1);
}

.project-category-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
  background: var(--bg-tertiary);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  transition: all var(--transition-base);
}

.project-category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
}

.category-icon svg {
  color: var(--accent-primary);
}

.category-icon.research svg { color: #6366f1; }
.category-icon.students svg { color: #8b5cf6; }
.category-icon.opensource svg { color: #06b6d4; }
.category-icon.music svg { color: #ec4899; }

.category-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: var(--bg-primary);
}

.category-status.preparing {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.category-status.organizing {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

.category-status.developing {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.1);
}

.category-status.experimenting {
  color: #ec4899;
  background: rgba(236, 72, 153, 0.1);
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.category-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  min-height: 3.2em;
}

.category-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-primary);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
  position: relative;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Timeline Preview */
.timeline-preview {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  border: 2px solid rgba(99, 102, 241, 0.1);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--bg-tertiary);
}

.timeline-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.timeline-badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  color: var(--accent-primary);
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  position: relative;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.timeline-item:hover {
  background: var(--bg-tertiary);
  transform: translateX(8px);
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 0 6px rgba(99, 102, 241, 0.2);
  flex-shrink: 0;
  position: relative;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Projects CTA */
.projects-cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  border-radius: var(--radius-lg);
  padding: var(--spacing-xxl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-xl);
  border: 2px solid rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
}

.projects-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
}

.projects-cta .btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  white-space: nowrap;
}

.projects-cta .btn svg {
  transition: transform var(--transition-base);
}

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

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-cta {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-xl);
  }
  
  .timeline-header {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
  }
}

.coming-soon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.coming-soon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--spacing-lg);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.coming-soon-icon svg {
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

.coming-soon-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.coming-soon-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

.coming-soon-features {
  display: grid;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.feature-item:hover {
  background: var(--bg-tertiary);
  transform: translateX(8px);
}

.feature-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.feature-item span {
  color: var(--text-primary);
  font-weight: 500;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(168, 85, 247, 0.95));
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  transition: all var(--transition-base);
}

.coming-soon-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

.badge-text {
  color: white;
}

.badge-pulse {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* YouTube Highlight Card Styles */
.youtube-highlight-card {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.08), rgba(255, 0, 0, 0.04));
  border: 2px solid rgba(255, 0, 0, 0.4);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.12);
}

.youtube-highlight-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.08) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.youtube-highlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 0, 0, 0.65);
  box-shadow: 0 12px 36px rgba(255, 0, 0, 0.22);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.12), rgba(255, 0, 0, 0.06));
}

.youtube-card-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.youtube-icon-wrapper {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-icon {
  display: block;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 3px 10px rgba(255, 0, 0, 0.4));
  animation: float-icon 3.5s ease-in-out infinite;
}

@keyframes float-icon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.youtube-text {
  flex: 1;
  min-width: 0;
}

.youtube-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #FF0000;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(255, 0, 0, 0.25);
  letter-spacing: -0.01em;
}

[data-theme="light"] .youtube-title {
  color: #CC0000;
  text-shadow: 0 2px 6px rgba(204, 0, 0, 0.2);
}

.youtube-emoji {
  display: inline-block;
  font-size: 1.25rem;
  margin-right: 0.25rem;
  animation: bounce-emoji 2.5s ease-in-out infinite;
}

@keyframes bounce-emoji {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) rotate(-4deg);
  }
  75% {
    transform: translateY(-2px) rotate(4deg);
  }
}

.youtube-description {
  margin: 0 0 1rem 0;
  font-size: 0.925rem;
  opacity: 0.9;
  line-height: 1.5;
  color: var(--text-primary);
}

.youtube-subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF0000, #CC0000);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.875rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.youtube-subscribe-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.youtube-subscribe-btn:hover::before {
  width: 300px;
  height: 300px;
}

.youtube-subscribe-btn:hover {
  background: linear-gradient(135deg, #E60000, #B30000);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(255, 0, 0, 0.5);
}

.youtube-subscribe-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .youtube-card-content {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
  
  .youtube-highlight-card {
    padding: 1.5rem;
  }
  
  .youtube-title {
    font-size: 1.1rem;
  }
  
  .youtube-description {
    font-size: 0.9rem;
  }
  
  .youtube-subscribe-btn {
    width: 100%;
    padding: 1rem 1.5rem;
  }
}


@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}


