@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=DM+Mono:wght@400;500&display=swap');

:root {
    --bg: #080a0f;
    --surface: rgba(255,255,255,0.04);
    --surface-hover: rgba(255,255,255,0.08);
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.18);
    --text: #f0f2f7;
    --text-soft: rgba(240,242,247,0.55);
    --accent: #a8c8ff;
    --accent-warm: #ffd9a0;
    --chord-color: #b8d4ff;
}

/* ── Base ── */
* { box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Subtle noise grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.section-heading h2 {
    font-family: 'Syne', sans-serif;
}

/* ── Navbar ── */
.glass-nav {
    background: rgba(8, 10, 15, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04);
    transition: background 0.3s ease;
}

/* ── Logo ── */
.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 24px rgba(168,200,255,0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: rotate(-8deg) scale(1.07);
    box-shadow: 0 0 0 2px rgba(168,200,255,0.35), 0 12px 32px rgba(168,200,255,0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-short {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text);
}

.logo-full {
    font-size: 0.68rem;
    font-weight: 300;
    color: var(--text-soft);
    letter-spacing: 0.3px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-soft) !important;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    padding: 0.4rem 0.9rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
}

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

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

/* ── Hero ── */
.hero-section {
    min-height: 100vh;
    padding-top: 90px;
    background:
        linear-gradient(180deg, rgba(8,10,15,0.55) 0%, rgba(8,10,15,0.85) 100%),
        url('https://images.unsplash.com/photo-1511379938547-c1f69419868d?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Radial glow behind hero box */
.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(168,200,255,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-box {
    max-width: 780px;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--border);
    padding: 3.5rem 4rem;
    border-radius: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 32px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(168,200,255,0.1);
    border: 1px solid rgba(168,200,255,0.2);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    color: var(--accent);
    text-transform: uppercase;
}

.hero-box h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.hero-box .lead {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.65;
}

/* ── Section headings ── */
.section-heading {
    max-width: 560px;
}

.section-label {
    font-family: 'DM Mono', monospace;
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-heading h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 0.6rem;
}

.section-heading p {
    font-weight: 300;
    color: var(--text-soft);
    font-size: 0.97rem;
}

/* ── Song Cards ── */
.song-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    height: 100%;
}

.song-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    border-color: var(--border-hover);
}

.song-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.song-card:hover img {
    transform: scale(1.04);
}

.song-content {
    padding: 1.4rem;
}

.song-content h5 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    letter-spacing: -0.2px;
}

.song-meta {
    color: var(--text-soft);
    font-size: 0.87rem;
    font-weight: 400;
}

/* Badge override */
.badge.text-bg-light {
    background: rgba(168,200,255,0.12) !important;
    color: var(--accent) !important;
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.35em 0.7em;
    border-radius: 6px;
    border: 1px solid rgba(168,200,255,0.18);
}

/* ── Song detail page ── */
.song-page {
    padding-top: 120px !important;
}

.detail-cover {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.content-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.8rem;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

pre.chord-block {
    white-space: pre-wrap;
    margin: 0;
    color: var(--chord-color);
    font-family: 'DM Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.9;
}

.inline-image {
    width: 100%;
    border-radius: 14px;
}

/* ── Buttons ── */
.btn-outline-light {
    border-color: var(--border-hover);
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-outline-light:hover {
    background: var(--surface-hover);
    border-color: rgba(255,255,255,0.3);
    color: var(--text);
}

.btn-light {
    font-weight: 600;
    border-radius: 10px;
    font-size: 0.95rem;
}

.glass-button {
    backdrop-filter: blur(10px);
}

/* ── Footer ── */
footer {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(12px);
}

.footer-logo {
    width: 60px;
    height: 60px;
    margin: auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 12px 32px rgba(168,200,255,0.15);
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.2px;
}

audio {
    width: 100%;
    border-radius: 8px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-box {
        padding: 2rem 1.6rem;
        border-radius: 20px;
    }

    .hero-box h1 {
        font-size: 2rem;
    }

    .section-heading h2 {
        font-size: 1.75rem;
    }
}
