/* Universal Box-Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Body Styles */
body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #7197df 0%, #df4d8a 100%);
    color: #f4f1e8;
    line-height: 1.6;
    min-height: 100vh; /* Ensures body takes at least full viewport height for scrolling */
}

/* Smooth Scrolling for scrollIntoView */
html {
    scroll-behavior: smooth;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #444;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: none; /* Initially hidden, shown by JS */
    z-index: 1000;
}

#backToTop:hover {
    background-color: #222;
}

/* General Container for Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    text-align: center;
    border-bottom: 3px solid #d4af37;
}

.logo {
    font-size: 3em;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2px; /* Reduce space below heading */
}

.logo-img {
    width: 15vw;    /* Responsive: 15% of viewport width */
    max-width: 180px; /* Prevents it from getting too large */
    min-width: 80px;  /* Prevents it from getting too small */
    height: auto;
}

@media (max-width: 768px) {
    .logo-img {
        width: 80px; /* Smaller logo on mobile */
    }
}

.tagline {
    font-size: 1.2em;
    color: #f4f1e8;
    font-style: italic;
    margin-top: 0; /* Remove space above tagline */
}

.logo-row {
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally in container */
    gap: 20px; /* Space between logo and text */
}

/* Navigation Styles */
nav {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    text-align: center;
}

nav a {
    color: #f4f1e8; /* Default color for nav links */
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.1em;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #d4af37;
}

/* Section Display Control (Crucial for JS-driven sections) */
.section {
    padding: 40px 0;
    display: none; /* All sections are hidden by default */
}

.section.active {
    display: block; /* Only the active section is shown */
}

.section h2 {
    font-size: 2.5em;
    color: #d4af37;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Video Section Specific Styles (now nested inside #home .section) */
.video-container {
    max-width: 700px;
    margin: auto;
    padding: 20px;
    background: #111;
    color: white;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    /* Removed padding here as the parent .section now has it. */
    /* If you want additional spacing around the video content inside the section, keep padding here. */
}
.video-block {
    margin-bottom: 30px;
}
video {
    width: 100%;
    border-radius: 8px;
}
h2, h3 { /* General styles for h2, h3 - consider if all h3 should be centered */
    text-align: center;
}

/* Music Section: Songs Grid */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.song-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.song-card:hover {
    transform: translateY(-5px);
}

.song-card h3 {
    color: #d4af37;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.song-card p {
    margin-bottom: 15px;
    color: #ccc;
}

.audio-player {
    background: #222;
    border-radius: 5px;
    padding: 10px;
    margin: 15px 0;
}

.audio-player audio {
    width: 100%;
}

.lyrics-preview {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid #d4af37;
    padding: 15px;
    margin: 15px 0;
    font-style: italic;
    color: #f4f1e8;
}

.purchase-btn {
    background: #d4af37;
    color: #000;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.purchase-btn:hover {
    background: #b8941f;
}

/* About Section Specific Styles */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.8;
}

/* Contact Section Specific Styles */
.contact-info {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 30px;
    margin: 30px auto;
    max-width: 600px;
    text-align: center;
}

.contact-info h3 {
    color: #d4af37;
    margin-bottom: 20px;
}

/* Footer Styles */
footer {
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 2px solid #d4af37;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 2em;
    }
    
    nav a {
        display: block;
        margin: 10px 0;
    }
    
    .songs-grid {
        grid-template-columns: 1fr;
    }
}