/* Base styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #F8F5F2; /* Light beige background */
    color: #3D3D3D;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

body.fade-transition {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

body.is-fading-out {
    opacity: 0;
}

body.modal-open {
  padding-right: 15px; /* Adjust this value if your scrollbar is wider */
}

.font-tangerine {
    font-family: 'Tangerine', cursive;

}

/* Navigation Links */
.nav-link {
    transition: color 0.3s ease;
    color: white; /* Changed to white explicitly, assuming it's for hero text or mobile menu */
    position: relative;
    padding-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: #ae3546;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ae3546;
}

#nav-links-container:not(.hidden) .nav-link-hero {
    color: white; /* Links inside the opened mobile menu should be white */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* Slightly stronger shadow for readability */
}

#nav-links-container:not(.hidden) .nav-link-hero:hover,
#nav-links-container:not(.hidden) .nav-link-hero.active {
    color: #ae3546; /* Keep pink on hover/active even in mobile menu */
}

/* Mobile Menu Specific Styles */
#mobile-menu .nav-link-hero {
    color: white;
}

#mobile-menu .nav-link-hero:hover,
#mobile-menu .nav-link-hero.active {
    color: white; /* Ensures text color stays white on hover or when active */
}

#mobile-menu .nav-link-hero.active::after {
    background-color: #ae3546; /* Ensures the underline is also pink */
}

/* For the small vertical dividers above section titles */
.section-title-container::before {
    content: '';
    display: block;
    width: 2px;
    height: 2rem; /* 32px */
    background-color: currentColor; /* Automatically uses the parent's text color */
    opacity: 0.5; /* Makes the divider slightly faded */
    margin: 0 auto 1rem auto; /* Centers the divider and adds space below it */
}


/* =================================================================== */
/* --- ACCESSIBILITY FOCUS STYLES ---                                  */
/* =================================================================== */



:is(a, button):focus-visible {
    outline: 3px solid #ae3546;
    outline-offset: 2px;
    transition: outline-offset 0.1s ease-in-out;
}

/* Specific fix for modal close button */
.modal-close-btn:focus-visible {
    outline-offset: 4px;
}

/* =================================================================== */
/* --- HOVER EFFECTS ---                                               */
/* =================================================================== */

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

.album-card:hover,
.collaborator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* New styles for the navigation links in the hero section */
.nav-link-hero {
    transition: color 0.3s ease;
    color: black; /* Changed to black for initial state */
    position: relative;
    padding-bottom: 4px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.4); /* Keep shadow for contrast on transparent background */
}

.nav-link-hero:hover,
.nav-link-hero.active {
    color: #ae3546;
}

.nav-link-hero.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ae3546;
}

.logo-subtitle {
    letter-spacing: 0.2em;
    text-shadow: -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white;
}

/* Hero Section with angled bottom */
.hero-section {
    background-image: url('img/althea_top.avif');
    background-size: cover;
    background-position: center bottom; /* Keep this to position the image effectively */
    height: 90vh; /* Keep this height, or slightly increase/decrease as needed */
    min-height: 550px;
    position: relative;
    z-index: 10; /* Keep z-index higher than the section below */

    /* Adjusted clip-path to create the desired cut directly on the image */
    clip-path: polygon(
        0 0,        /* Top-left */
        100% 0,     /* Top-right */
        100% 95%,   /* Right edge, ends higher up (e.g., 88%) */
        80% 98%,    /* First dip down (e.g., 98%) */
        60% 92%,    /* Back up (e.g., 88%) */
        40% 98%,    /* Second dip down (e.g., 98%) */
        20% 92%,    /* Back up (e.g., 88%) */
        0 98%       /* Left edge, dips down (e.g., 98%) */
    );
}

.hero-section-press {
    background-image: url('img/althea_top2.avif');
    background-size: cover;
    background-position: center 30%;
    height: 60vh;
    min-height: 400px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 80% 100%, 60% 90%, 40% 100%, 20% 90%, 0 90%);
}

.featured-music-video-title {
    min-height: 4em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* =================================================================== */
/* --- UNIFIED FOOTER STYLES (ALL PAGES) ---             */
/* =================================================================== */

.site-footer {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    color: white;
    background-color: #1a1a1a;
    display: grid;
    place-items: center;
    padding: 4rem 1.5rem;
}

.site-footer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
}

.site-footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        repeating-linear-gradient(
            45deg,
            rgba(212, 40, 56, 0.2),
            rgba(212, 40, 56, 0.2) 150px,
            rgba(246, 195, 36, 0.2) 150px,
            rgba(246, 195, 36, 0.2) 300px,
            rgba(0, 155, 72, 0.2) 150px,
            rgba(0, 155, 72, 0.2) 450px
        );
}

.site-footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* --- Overrides for the Press Page Footer --- */
.footer-press {
    min-height: 680px;
    margin-top: -2rem;
    clip-path: polygon(0% 10%, 20% 6%, 40% 12%, 60% 3%, 80% 16%, 100% 23%, 100% 100%, 0% 100%);
}


#menu-toggle-btn svg {
    color: black;
    transition: color 0.3s ease;
}

.sticky-nav-bar.scrolled #menu-toggle-btn svg {
    color: white;
}

#menu-toggle-btn:hover svg {
    color: #ae3546;
}

/* Promo section styling */
.promo-section {
    background-color: #3A4D5C;
    color: white;
    /* Adjusted padding-top as bio-section is now separate. This creates space above Featured Music content */
    padding-top: 14rem; /* Adjust as needed for desired spacing from bio section */
    padding-bottom: 2rem; /* Keep existing padding-bottom */
    
    /* Adjusted margin-top to position it correctly relative to the clipped hero-section */
    margin-top: -150px; /* Adjust this value to control overlap with hero image */
    position: relative;
    z-index: 1; /* Keep z-index lower than hero-section */


}

/* NEW BIO SECTION STYLES - Now independent */
.bio-section {
    background-color: #3A4D5C;
    position: relative;
    padding-top: 8rem; 
    padding-bottom: 4rem; /* Keep existing padding-bottom */
    /* Adjust margin-top to control overlap with hero. This will now be on the beige background */
    margin-top: -50px; /* Adjust as needed for desired overlap with hero image */
    z-index: 15; /* Ensure it's above the hero section's clipping point */
}

.bio-top-spacer {
    height: 8rem; /* Adjust this value (e.g., 6rem, 10rem) for desired space */
    width: 100%; /* Ensures it takes full width */
    /* background-color: rgba(255, 255, 0, 0.2); /* Uncomment for debugging to see the spacer */ */
}

/* Call to Action section styling */
.cta-section {
    background-color: #1a1a1a;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        repeating-linear-gradient(
            45deg,
            rgba(212, 40, 56, 0.2),
            rgba(212, 40, 56, 0.2) 150px,
            rgba(246, 195, 36, 0.2) 150px,
            rgba(246, 195, 36, 0.2) 300px,
            rgba(0, 155, 72, 0.2) 150px,
            rgba(0, 155, 72, 0.2) 450px
        ),
        url('img/man-person-technology-music.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='blur'%3E%3CfeGaussianBlur stdDeviation='1.5' /%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M0,5 L20,5 L40,15 L60,5 L80,20 L90,15 L100,5 V100 H0 Z' fill='black' filter='url(%23blur)' /%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='blur'%3E%3CfeGaussianBlur stdDeviation='1.5' /%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M0,5 L20,5 L40,15 L60,5 L80,20 L90,15 L100,5 V100 H0 Z' fill='black' filter='url(%23blur)' /%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Button styles */
.btn-dark {
    background-color: #3D3D3D;
    color: white;
    transition: background-color 0.3s ease;
}

.btn-dark:hover {
    background-color: #555555;
}

.btn-pink {
    background-color: #ae3546;
    color: white;
    transition: background-color 0.3s ease;
}

.btn-pink:hover {
    background-color: #c77a8f;
}

/* Social icon styles */
.social-icon:hover svg {
    fill: #ae3546;
}

.social-icon i.fab {
    font-size: 2rem;
    color: currentColor;
    transition: color 0.3s ease;
}

.social-icon svg {
    width: 2rem;
    height: 2rem;
}

.social-icon:hover i.fab {
    color: #ae3546;
}

.text-ae-pink {
    color: #ae3546;
    transition: color 0.3s ease;
}

.text-ae-pink:hover {
    color: #962d3b;
}

/* Opacity overlay for hero section */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Ensure content is on top of the overlay */
.hero-section>div,
.cta-section>div {
    position: relative;
    z-index: 2;
}

/* CSS for the scroll animation */
.fade-in-element {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.scroll-animate-down {
    transform: translateY(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Styles for the play button overlay */
.glightbox-video .play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.glightbox-video:hover .play-button-overlay {
    opacity: 1;
}

.glightbox-video .play-button-overlay svg {
    width: 64px; /* Size of the play icon */
    height: 64px;
    color: white; /* Color of the play icon */
}


/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.modal-body {
    font-family: 'Inter', sans-serif;
    color: #4A4A4A;
}

/* Default modal content width for smaller screens (mobile-first) */
.modal-content {
    background-color: #F8F5F2;
    width: 90%; /* Default for smaller screens */
    height: auto;
    max-height: 90vh;
    border-radius: 0.5rem;
    position: relative;
    overflow-y: auto;
    box-sizing: border-box; /* Crucial for width calculations */
}

.accent-color {
    color: #D48C70;
}

.accent-bg {
    background-color: #D48C70;
}

.border-accent {
    border-color: #EAE0D5;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 40vh;
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #FFFFFF;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.track-item {
    display: none;
}

.track-item.visible {
    display: table-row;
}

[x-cloak] {
    display: none !important;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #3D3D3D;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1010;
}

.modal-close-btn:hover {
    color: #d9939d;
}

.album-title-fixed-height {
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#albums-container a,
#singles-table-body a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

#albums-container a i,
#singles-table-body a i {
    font-size: 1.75rem;
}

#albums-container a:hover,
#singles-table-body a:hover {
    color: #ae3546;
}

.sticky-nav-bar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    transition: background-color 0.3s ease-in-out;
}

.sticky-nav-bar.scrolled {
    background-color: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.sticky-nav-bar.scrolled .nav-link-hero {
    color: white;
}

.sticky-nav-bar.scrolled .nav-link-hero:hover,
.sticky-nav-bar.scrolled .nav-link-hero.active {
    color: #d9939d;
}

.modal-nav-btn {
    position: fixed; /* Keep fixed for sticky behavior */
    top: 50%;
    transform: translateY(-50%);
    /* Fixed positioning of buttons */
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-nav-btn.prev {
    left: 1rem; /* Positioning for previous button */
    animation: pulse-arrow-left 2s infinite;
}

.modal-nav-btn.next {
    right: 1rem; /* Positioning for next button */
    animation: pulse-arrow-right 2s infinite;
}

@keyframes pulse-arrow-left {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-5px); }
}

@keyframes pulse-arrow-right {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(5px); }
}

/* Add this new rule for the "More From Althea" section */
.more-althea-section {
    background-color: #F8F5F2; /* The same dark color from the promo section */
    color: #3D3D3D; /* Set the default text color to dark grey */

}

/* NEW BIO SECTION STYLES - Now independent (as per original interpretation) */
.bio-section {
    background-color: #3A4D5C; /* Explicitly set background color */
    position: relative;
    padding-bottom: 4rem; /* Keep existing padding-bottom */
    /* Adjust margin-top to control overlap with hero. This will now be on the beige background */
    margin-top: -120px; /* Adjust as needed for desired overlap with hero image */
    z-index: 15; /* Ensure it's above the hero section's clipping point */
}





@media (max-width: 767px) {
  .more-althea-section .grid {
    /* Disable the grid on mobile to allow simple stacking */
    display: block;
  }

  .more-althea-section .space-y-12 {
    background-color: rgba(244, 255, 244, 0.2); /* Light beige at 85% opacity */
    color: #3D3D3D; /* CHANGE THIS to a dark color for readability */
    padding: 3rem 1.5rem;
    margin-top: -18rem; 
    position: relative;
    z-index: 5;
    text-align: center;
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    backdrop-filter: blur(10px);         /* Standard syntax */
  }

  .more-althea-section .space-y-12 > div {
    /* Add space between the "Background Vocals" and "Music Coaching" sections */
    margin-bottom: 2.5rem;
  }
  
  .more-althea-section .space-y-12 > div:last-child {
    /* Remove the margin from the last item to prevent extra space at the bottom */
    margin-bottom: 0;
  }
}



/* For screens up to 639px (Mobile) */
@media (max-width: 639px) {
    .social-icon i.fab {
        font-size: 1.5rem; /* 24px */
    }

    .social-icon svg {
        width: 1.5rem; /* 24px */
        height: 1.5rem; /* 24px */
    }

   
}



/* For screens 768px and up (Tablets, small desktops) */
@media (min-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

/* For screens 1024px and up (Laptops, desktops) */
@media (min-width: 1024px) {
    .modal-content {
        width: 70%; /* Adjust modal width for larger screens */
        max-width: 1024px; /* Example max-width for desktop modals */
    }

        /* Add or update the hero-section clip-path specifically for this breakpoint */
    .hero-section {
        /* You might need to adjust height as well for this breakpoint */
        height: 90vh; /* Example: adjust height for larger screens */
        background-position: center bottom; /* Re-confirm background position */
    }
}

/* For screens 1280px and up (Large desktops) */
@media (min-width: 1280px) {
    .modal-content {
        width: 60%; /* Even larger modal on very large screens */
    }
}