:root {
    --primary-background: #ffffff;
    --primary-text: #1a1a1a;
    --secondary-background: #f8f9fa;
    --secondary-text: #4a4a4a;
    --accent-color: #000000;
    --border-color: #dee2e6;
    --muted-text: #6c757d;
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--primary-text);
    background-color: var(--primary-background);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    text-decoration: none;
    color: var(--accent-color);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: opacity 0.3s ease;
}

button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

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

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
        word-wrap: break-word;
    }

    h2 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    h3 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .mobile-break {
        word-break: break-all;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 0.9375rem;
    }
}

/* ===== header ===== */
#header {
    background-color: var(--primary-background);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.navbar-brand {
    color: var(--primary-text) !important;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
    color: var(--primary-text) !important;
}

.nav-link {
    color: var(--secondary-text) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.mobile-menu-overlay {
    background-color: var(--primary-background);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    overflow-y: auto;
}

.mobile-link {
    color: var(--primary-text) !important;
    transition: color 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-weight: 500;
}

.mobile-link:hover {
    color: var(--accent-color) !important;
}

/* ===== hero_section ===== */
.hero-section {
    min-height: 100vh;
    background-attachment: fixed;
}

.hero-section h1 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.js-share-btn {
    transition: all 0.3s ease;
    background: transparent;
}

.js-share-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section {
        background-attachment: scroll;
    }
}

/* ===== about_artist ===== */
.about-section {
    width: 100%;
    overflow: hidden;
}

.about-image-wrapper {
    position: relative;
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover {
    transform: scale(1.02);
}

.about-content p {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* ===== detailed_bio ===== */
#biography .bio-content p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: 800;
    float: left;
    line-height: 1;
    padding-right: 12px;
    color: var(--accent-color);
}

#biography .bio-list-item strong {
    color: var(--accent-color);
}

#biography .bio-content h3 {
    position: relative;
}

#biography .bio-content h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* ===== music_career ===== */
#career {
    position: relative;
}

.js-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== album_list ===== */
#albums {
    position: relative;
    overflow: hidden;
}

.js-album-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.js-album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

.badge {
    padding: 0.5em 1em;
    border-radius: 0;
    font-weight: 600;
}

/* ===== popular_tracks ===== */
#songs .list-group-item {
    border-left: 4px solid transparent !important;
    transition: all 0.3s ease;
}

#songs .list-group-item:hover {
    border-left: 4px solid var(--accent-color) !important;
    transform: translateX(5px);
}

#songs .badge {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== awards_achievements ===== */
#awards {
    overflow: hidden;
}

.js-award-item {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.js-award-item:hover {
    border-left-color: var(--accent-color);
    background-color: var(--secondary-background);
}

/* ===== interesting_facts ===== */
#facts .js-fact-card {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transform: translateY(30px);
}

#facts .js-fact-card.visible {
    opacity: 1 !important;
    transform: translateY(0);
}

#facts .js-fact-card:hover div {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--border-color) !important;
}

/* ===== cultural_impact ===== */
#influence {
    border-bottom: 1px solid var(--border-color);
        overflow-x: hidden;
}

.js-influence-item {
    transition: transform 0.3s ease;
}

.js-influence-item:hover {
    transform: translateX(10px);
}

#influence img {
    transition: transform 0.5s ease;
}

#influence .position-relative:hover img {
    transform: scale(1.05);
}

/* ===== photo_gallery ===== */
#gallery {
    position: relative;
}

.gallery-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
}

.gallery-card {
    border: 1px solid var(--border-color);
    border-radius: 0;
    background-color: var(--primary-background);
    transition: transform 0.3s ease;
}

.gallery-image-wrapper {
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 5;
}

.gallery-image-wrapper img {
    object-fit: cover;
    height: 100%;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image-wrapper img {
    transform: scale(1.08);
}

/* ===== faq_section ===== */
#faq .accordion-button::after {
    display: none;
}

#faq .js-faq-icon {
    transition: transform 0.3s ease;
}

#faq .accordion-button:focus {
    box-shadow: none;
}

#faq .accordion-item {
    overflow: hidden;
    border-radius: 8px !important;
}

#faq .accordion-button:not(.collapsed) {
    background-color: var(--secondary-background) !important;
}

/* ===== footer ===== */
.footer-section {
    width: 100%;
    border-top: 1px solid var(--border-color);
}

.footer-brand {
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.footer-link {
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color) !important;
    opacity: 0.8;
}

.footer-disclaimer {
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 800px;
}
