/* styles.css */

/* General Body and Font Styles */
body {
    font-family: 'Lora', serif;
    background-color: #E7E7FF; /* Very light rose/pink */
    color: #333333; /* Dark charcoal for readability */
    margin: 0; /* Remove default body margin to prevent gaps */
    padding: 0; /* Remove default body padding */
}

/* Header and Navigation */
header {
    position: relative;
    z-index: 10; /* Ensure nav stays above hero */
    width: 100%; /* Ensure header takes full width */
}

nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem; 
    padding: 1rem 0;
    background-color: #04041C;
    margin: 0;
    width: 100%; /* Ensure nav takes full width */
    box-sizing: border-box; /* Include padding in width calculation */
    min-width: 100vw;
    overflow: hidden;
}

/* Custom Font Classes */
.font-playfair {
    font-family: 'Great Vibes', cursive;
}

.font-lato {
    font-family: 'Lora', serif;
}

/* Navigation Item Styling */
.nav-item {
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none; /* Ensure no default underline */
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #D4AF37; /* Muted gold accent */
    transition: all 0.3s ease-in-out;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
    left: 0;
}

.nav-item.active,
.nav-item:hover {
    color: #D4AF37; /* Muted gold accent */
}

/* Page Section Styling */
.page-section {
    min-height: calc(100vh - 100px); /* Adjusted to match header + footer height (e.g., ~100px total) */
    padding-top: 0; /* Remove top padding to align with hero */
    padding-bottom: 2rem;
}

/* Hero Wrapper Adjustment */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 75%; /* 4:3 aspect ratio */
    top: 0; /* Ensure it starts at the top */
    margin-top: -1px; /* Overlap slightly to cover any pixel gap */
}

/* Hero Container Adjustment */
.hero-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ensure it fills the wrapper */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
}

/* Full-width gradient and hero-gradient */
.full-width-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px; /* Adjust this height to cover the text area + padding */
    background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0));
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
}

/* Button Styles */
.btn-primary {
    background-color: #04041C; /* Deep Red */
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    background-color: #D4AF37; /* Muted Gold on hover */
    color: #04041C; /* Dark Blue text on hover for contrast */
}

/* General Link Styling within content */
main a {
    color: #04041C; /* Deep Red for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

main a:hover {
    color: #D4AF37; /* Muted Gold on hover */
    text-decoration: underline;
}

/* Album Card Styling - Updated to respect font-playfair and text-4xl */
.album-card {
    background-color: white;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #D4AF37; /* Gold accent to distinguish from other sections */
}

.album-card h3 {
    font-size: 2.25rem; /* Matches text-4xl */
    font-weight: bold;
    color: #04041C; /* Dark blue to match Original Creations */
    margin-bottom: 1rem;
    font-family: 'Great Vibes', cursive; /* Ensures font-playfair is applied */
}

/* Song list within album card */
.album-card ol {
    margin-left: 1.5rem;
    padding-left: 0;
}

.album-card li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .hero-wrapper {
        padding-top: 75%; /* Maintain aspect ratio on desktop */
    }
}

/* Ensure the container can handle the gradient */
.container.mx-auto.px-6.pb-12 {
    position: relative;
    margin-left: +1%; /* Moves left by 20% of the container width */
    transform: translateY(20%); /* Moves down by 20% of the hero-container height */
    width: 100%;
    max-width: 48rem;
    padding-left: 1rem;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .bg-fixed {
        background-attachment: scroll;
    }
    .container.mx-auto.px-6.pb-12 {
        margin-left: -10%; /* Less left shift on mobile */
        transform: translateY(10%); /* Less down shift on mobile */
    }
    .page-section {
        min-height: calc(100vh - 100px); /* Adjusted for mobile */
        padding-top: 0;
        padding-bottom: 2rem;
    }
    .nav-item {
        display: block;
        margin: 0.5rem 0;
    }
    .hero-wrapper {
        padding-top: 75%; /* Squarer aspect on mobile for better visibility */
    }

    /* Responsive album card */
    .album-card {
        margin: 1rem 0;
        padding: 1rem;
    }

    .album-card h3 {
        font-size: 1.75rem; /* Adjusted text-4xl for mobile readability */
    }
}

/* Optimize bg-fixed for performance */
.bg-fixed {
    will-change: transform;
    background-attachment: fixed;
}