:root {
    /* Music Theme - Deep Purple & Electric Blue */
    --color-base-bg: #f8f9fc;
    --color-base-surface: #ffffff;
    --color-base-text: #1a1a2e;
    --color-base-text-muted: #4a4a6a;

    /* Theme Accents - Sound Wave Colors */
    --color-accent-1: #7c3aed;
    --color-accent-2: #4f46e5;
    --color-accent-3: #06b6d4;
    --color-accent-light: #ede9fe;
    --color-accent-glow: rgba(124, 58, 237, 0.15);

    /* Functional Colors */
    --color-shadow: rgba(124, 58, 237, 0.12);
    --color-border: rgba(124, 58, 237, 0.12);
    --color-hover: rgba(124, 58, 237, 0.08);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2), var(--color-accent-3));
    --gradient-subtle: linear-gradient(180deg, var(--color-base-bg) 0%, var(--color-accent-light) 100%);
    --gradient-hero: linear-gradient(135deg, #f8f9fc 0%, #ede9fe 50%, #e0f2fe 100%);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-theme: 0 10px 30px var(--color-shadow), 0 4px 10px rgba(0, 0, 0, 0.06);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(2rem, 1.6rem + 2vw, 2.5rem);
    --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-sans);
    background: var(--color-base-bg);
    color: var(--color-base-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent-1);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: var(--space-md);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) var(--space-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.navbar-brand {
    font-size: var(--text-lg);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
    padding: var(--space-xs) var(--space-sm);
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    opacity: 0.5;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    list-style: none;
}

.navbar-nav li {
    position: relative;
}

.navbar-nav a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-base-text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.navbar-nav a:hover,
.navbar-nav a:focus {
    color: var(--color-accent-1);
    background: var(--color-hover);
}

/* Hero Section */
.hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + var(--space-4xl)) var(--space-xl) var(--space-3xl);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, var(--color-accent-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-svg {
    width: 280px;
    height: 280px;
    margin: 0 auto var(--space-2xl);
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-base-text-muted);
    font-weight: 500;
}

.hero-subtitle a {
    color: var(--color-accent-1);
    text-decoration: none;
    position: relative;
}

.hero-subtitle a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.hero-subtitle a:hover::after {
    transform: scaleX(1);
}

/* SVG Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes soundWave {

    0%,
    100% {
        transform: scaleY(0.3);
    }

    50% {
        transform: scaleY(1);
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.3;
    }
}

.svg-disc {
    animation: rotate 20s linear infinite;
    transform-origin: center;
}

.svg-note-1 {
    animation: float 4s ease-in-out infinite;
}

.svg-note-2 {
    animation: float 5s ease-in-out infinite 0.5s;
}

.svg-note-3 {
    animation: float 4.5s ease-in-out infinite 1s;
}

.svg-wave {
    animation: soundWave 1.5s ease-in-out infinite;
    transform-origin: bottom;
}

.svg-wave:nth-child(2) {
    animation-delay: 0.1s;
}

.svg-wave:nth-child(3) {
    animation-delay: 0.2s;
}

.svg-wave:nth-child(4) {
    animation-delay: 0.3s;
}

.svg-wave:nth-child(5) {
    animation-delay: 0.4s;
}

.svg-wave:nth-child(6) {
    animation-delay: 0.5s;
}

.svg-wave:nth-child(7) {
    animation-delay: 0.6s;
}

.svg-glow {
    animation: pulse 3s ease-in-out infinite;
}

.svg-sparkle {
    animation: shimmer 2s ease-in-out infinite;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
    font-size: var(--text-lg);
    color: var(--color-base-text-muted);
    line-height: 1.8;
}

/* Music List Grid */
.music-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    counter-reset: music-counter;
}

.music-list li {
    counter-increment: music-counter;
    background: var(--color-base-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.music-list li::before {
    content: counter(music-counter, decimal-leading-zero);
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-accent-1);
    opacity: 0.4;
    font-family: var(--font-sans);
}

.music-list li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.music-list li:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-theme);
}

.music-list li:hover::after {
    transform: scaleY(1);
}

.music-list li span[property="name"] {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-base-text);
    display: block;
    padding-left: var(--space-sm);
}

/* Different accent colors for variety */
.music-list li:nth-child(4n+1)::after {
    background: linear-gradient(180deg, var(--color-accent-1), var(--color-accent-2));
}

.music-list li:nth-child(4n+2)::after {
    background: linear-gradient(180deg, var(--color-accent-2), var(--color-accent-3));
}

.music-list li:nth-child(4n+3)::after {
    background: linear-gradient(180deg, var(--color-accent-3), var(--color-accent-1));
}

.music-list li:nth-child(4n+4)::after {
    background: linear-gradient(180deg, #ec4899, var(--color-accent-1));
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--color-base-bg), var(--color-accent-light));
    padding: var(--space-3xl) var(--space-xl);
    margin-top: var(--space-4xl);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-wave {
    width: 100%;
    height: 60px;
    margin-bottom: var(--space-2xl);
}

.language-selector {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-2xl);
    list-style: none;
}

.language-selector li {
    margin: 0;
    padding: 0;
}

.language-selector a {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-base-text-muted);
    background: var(--color-base-surface);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.language-selector a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.language-selector .highlight a {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--color-base-text-muted);
}

.footer-copyright a {
    color: var(--color-accent-1);
    text-decoration: none;
}

/* Floating Decorative Elements */
.floating-note {
    position: fixed;
    pointer-events: none;
    opacity: 0.08;
    z-index: 0;
}

.floating-note-1 {
    top: 20%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.floating-note-2 {
    top: 60%;
    right: 8%;
    animation: float 8s ease-in-out infinite 1s;
}

.floating-note-3 {
    bottom: 20%;
    left: 10%;
    animation: float 7s ease-in-out infinite 2s;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: var(--space-sm) var(--space-md);
    }

    .navbar-inner {
        justify-content: center;
    }

    .navbar-nav {
        gap: var(--space-xs);
    }

    .navbar-nav a {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
    }

    .hero {
        min-height: 50vh;
        padding: calc(70px + var(--space-2xl)) var(--space-md) var(--space-2xl);
    }

    .hero-svg {
        width: 200px;
        height: 200px;
    }

    .main-content {
        padding: var(--space-2xl) var(--space-md);
    }

    .music-list {
        grid-template-columns: 1fr;
    }

    .floating-note {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: var(--text-base);
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .language-selector {
        gap: var(--space-xs);
    }

    .language-selector a {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-xs);
    }
}
