/* ==========================================================================
   VlaSalV – Main Stylesheet
   ========================================================================== */

/* --- Custom Properties --- */
:root {
    --primary: #ffffff;
    --accent: #d4a574;
    --accent-light: #e8c9a8;
    --accent-glow: rgba(212, 165, 116, 0.12);
    --secondary: #a8a8a8;
    --bg: #080808;
    --bg-card: #0e0e0e;
    --bg-card-hover: #111111;
    --text: #d8d8d8;
    --border: #1e1e1e;
    --border-hover: #2a2a2a;
    --radius: 2px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* Clean background — no texture */

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    color: var(--primary);
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 1.75rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    text-align: center;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

section {
    padding: 8rem 0;
}

section:not(:last-child) {
    border-bottom: none;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
}

nav.scrolled {
    background: rgba(8, 8, 8, 0.97);
    border-bottom-color: var(--border);
    padding: 0.9rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.nav-brand a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
}

.nav-brand a:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.3s var(--ease);
    position: relative;
    padding-bottom: 4px;
}

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

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--secondary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease);
    border-radius: var(--radius);
}

.menu-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Hero Section --- */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    padding-top: 4rem;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 400;
    opacity: 0;
    animation: heroFadeUp 0.8s var(--ease-out) 0.1s forwards;
}

#hero h1 {
    opacity: 0;
    animation: heroFadeUp 0.8s var(--ease-out) 0.25s forwards;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 3rem;
    color: var(--secondary);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: heroFadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-divider {
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto;
    opacity: 0;
    animation: expandLine 0.8s var(--ease-out) 0.55s forwards;
}

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

@keyframes expandLine {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 40px;
    }
}

/* --- Buttons --- */
.cta-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    text-decoration: none;
    border: 1.5px solid var(--border-hover);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
    background: transparent;
    border-radius: var(--radius);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.35s var(--ease);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: var(--bg);
    border-color: var(--accent);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 600;
}

.btn-primary::before {
    background: var(--primary);
}

.btn-primary:hover {
    color: var(--bg);
}

/* --- Section Intro --- */
.section-intro {
    max-width: 660px;
    margin: 0 auto 3.5rem;
    text-align: center;
    font-size: 1.05rem;
    color: var(--secondary);
    line-height: 1.85;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.artist-card {
    border: 1px solid var(--border);
    padding: 2.75rem;
    background: var(--bg-card);
    transition: border-color 0.5s var(--ease), background 0.5s var(--ease);
    border-radius: var(--radius);
}

.artist-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* Genre pills */
.artist-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.genre-pill {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--secondary);
    background: none;
    border: none;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.artist-genres {
    gap: 0.25rem;
}

.artist-genres .genre-pill:not(:last-child)::after {
    content: '\00b7';
    margin-left: 0.5rem;
    color: var(--border-hover);
}

.artist-name {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.artist-description {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.75;
    font-size: 0.95rem;
}

/* Audio player */
.audio-wrapper {
    margin: 1.5rem 0;
    padding: 0;
}

.audio-player {
    width: 100%;
    height: 36px;
    filter: invert(1) hue-rotate(180deg) brightness(0.8) contrast(0.9);
    opacity: 0.7;
    transition: opacity 0.3s var(--ease);
}

.audio-player:hover {
    opacity: 1;
}

.bandcamp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s var(--ease);
}

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

.bandcamp-link::after {
    content: '\2192';
    font-size: 1.1em;
    transition: transform 0.3s var(--ease);
}

.bandcamp-link:hover::after {
    transform: translateX(4px);
}

/* --- About Section --- */
.about-content {
    max-width: 640px;
    margin: 2rem auto;
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content b,
.about-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* --- Footer --- */
footer {
    background: var(--bg);
    color: var(--secondary);
    padding: 5rem 0 3rem;
    text-align: center;
    border-top: none;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-brand {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s var(--ease);
}

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

.footer-divider {
    width: 40px;
    height: 1px;
    background: var(--border);
    margin: 0 auto 1.5rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #555;
    letter-spacing: 0.03em;
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for portfolio cards */
.artist-card.fade-in:nth-child(1) { transition-delay: 0s; }
.artist-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.artist-card.fade-in:nth-child(3) { transition-delay: 0.2s; }
.artist-card.fade-in:nth-child(4) { transition-delay: 0.3s; }
.artist-card.fade-in:nth-child(5) { transition-delay: 0.4s; }
.artist-card.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8, 8, 8, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 2rem 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-10px);
        opacity: 0;
        transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        animation: menuSlideDown 0.3s var(--ease-out) forwards;
    }

    @keyframes menuSlideDown {
        from {
            transform: translateY(-10px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .menu-toggle {
        display: block;
    }

    .cta-group {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    section {
        padding: 5rem 0;
    }

    #hero {
        min-height: 70vh;
    }

    .artist-card {
        padding: 2rem;
    }

    .container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .artist-name {
        font-size: 1.3rem;
    }
}
