/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Base typography: Neue Haas Grotesk Display Pro */
    font-family: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #000000;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* Headings */
h1 {
    font-family: "Baskerville", "Libre Baskerville", serif;
    font-weight: normal;
    font-size: 36pt;
}

h2,
h3,
p {
    font-family: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 
 * 1. Header 
 */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    padding: 20px 20px 20px 40px;
    /* Top, Right, Bottom, Left */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.logo-group {
    display: flex;
    flex-direction: column;
}

.tagline {
    margin-top: 10px;
}

.nav-knobs {
    display: flex;
    gap: 15px;
    /* Spacing between the two knobs */
    align-items: flex-start; /* Prevent stretching when dropdown is open on mobile */
}

.knob {
    width: 125px;
    height: 50px;
    background-color: transparent;
    border: 1px solid #ffffff;
    border-radius: 0;
    color: #ffffff;
    font-family: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.knob:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Contact knob expand animation */
.knob-contact {
    width: 125px;
    white-space: nowrap;
    overflow: hidden;
    transition: width 0.35s ease, background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.knob-contact.expanded {
    width: 215px;
    background-color: #ffffff;
    color: #000000;
}

/* Dropdown for Booking request */
.knob-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 50px;
    /* height of knob */
    left: 0;
    z-index: 100;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.6);
}

.knob-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    width: 170px;
    min-height: 50px;
    background-color: #ffffff;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    color: #000000;
    font-family: inherit;
    font-size: 11px;
    /* Adjusted for long text */
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 12px;
    transition: background-color 0.2s, color 0.2s;
    line-height: 1.3;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #0037ff;
    color: #ffffff;
}

/* Email Modal Styling */
.email-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 60px 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    color: #000000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    font-family: "Baskerville", "Libre Baskerville", serif;
    font-size: 28px;
    margin-bottom: 25px;
    color: #000000;
}

.modal-email-box {
    background-color: #f9f9f9;
    padding: 20px;
    font-family: "Neue Haas Grotesk Display Pro", sans-serif;
    font-size: 18px;
    margin-bottom: 30px;
    word-break: break-all;
    border: 1px solid #eeeeee;
    color: #0037ff;
    font-weight: bold;
}

.modal-copy-btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-copy-btn:hover {
    background-color: #0037ff;
    transform: translateY(-2px);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    cursor: pointer;
    color: #000000;
    line-height: 1;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}


/* Parallax Wrapper */
.hero-parallax {
    position: sticky;
    top: 0;
    z-index: 0;
}

.content-parallax {
    position: relative;
    z-index: 1;
    background-color: #000000;
    /* Prevent margin collapse which could break the overlay */
    padding-top: 0.1px; 
}

/* 
 * 2. Hero Image 
 */
.header-image-container {
    width: 100%;
    height: 70vh;
    /* 70% of the screen height */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* From top side as mentioned, but we'll center the image itself */
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image fills the space but maintains aspect ratio */
    object-position: top;
    /* Aligns the picture to the top */
}

/* 
 * 3. Latest Releases 
 */
.latest-releases {
    margin-top: 60px; /* Hero to Latest Releases */
    padding: 0 40px;
    text-align: center;
}

/* 
 * 5. Shows Header & Widget
 */
.shows-header {
    margin-top: 110px;
    padding: 0 40px;
    text-align: center;
}

.tour-dates {
    margin-top: 100px;
    padding-bottom: 100px;
    width: 100%;
}

/* 
 * 4. Carousel 
 */
.carousel-container {
    margin-top: 150px;
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    background-color: #000000;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll-left 45s linear infinite;
    /* 25% faster (60s -> 45s) */
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(70%);
    transition: filter 0.12s ease-in-out;
}

.carousel-item:hover img,
.carousel-item.clicked img {
    filter: grayscale(0%) brightness(100%);
}

.carousel-click-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    /* Remove semi-transparent background since rows are full color */
}

.carousel-item.clicked .carousel-click-menu {
    opacity: 1;
    pointer-events: auto;
}

.click-row {
    height: 75px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Full color backgrounds for rows */
.row-beatport { background-color: #02fe95; }
.row-bandcamp { background-color: #3b8db2; }
.row-spotify { background-color: #1ed760; }
.row-more-info { background-color: #000000; }

.info-box {
    height: 75px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    cursor: default;
}

.row-icon {
    width: 24px;
    height: 24px;
    transition: filter 0.2s ease;
}

.click-row:last-child {
    border-bottom: none;
}

.click-row:hover {
    background-color: #ffffff !important;
    color: #000000;
}

.click-row:hover .row-icon {
    filter: invert(1);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Translate left by exactly one set of images (6 * 300px) */
        transform: translateX(-1800px);
    }
}

/* 
 * 5. Footer (Placeholder)
 */
.main-footer {
    width: 100%;
    height: 200px;
    background-color: #0037ff;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-left h1 {
    font-family: "Baskerville", "Libre Baskerville", serif;
    font-weight: normal;
    font-size: 36pt;
    margin: 0;
    line-height: 1;
}

.footer-right {
    display: flex;
    gap: 25px;
}

.social-icon {
    color: #ffffff;
    display: inline-flex;
    transition: opacity 0.2s ease;
}

.social-icon:hover {
    opacity: 0.7;
}

/* 
 * 6. Join Us & Newsletter 
 */
.join-us-header {
    margin-top: 60px;
    padding: 0 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 200px; /* +100px more space on the bottom */
}

.join-us-header .description {
    margin-top: 39px;
    /* Increased 30% from 30px */
    max-width: 600px;
    color: #ffffff;
    font-size: 16px;
    line-height: 27px;
    letter-spacing: 0.1em;
}

.newsletter-form {
    margin-top: 78px;
    /* Increased 30% from 60px */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    height: 85px;
    background-color: #ffffff;
    transition: box-shadow 0.3s ease;
}

.email-input {
    flex-grow: 1;
    height: 100%;
    background-color: transparent;
    border: none;
    color: #000000;
    padding: 0 25px;
    font-family: inherit;
    font-size: 16px;
    line-height: 27px;
    letter-spacing: 0.1em;
    outline: none;
    border-radius: 0;
}

.email-input::placeholder {
    color: #666666;
}

.submit-button {
    width: 85px;
    height: 100%;
    background-color: transparent;
    border: none;
    border-left: 1px solid #dddddd;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
}

/* Base icon visibility */
.submit-button .icon-arrow {
    display: none;
}


.newsletter-form.filled .submit-button {
    background-color: #0037ff;
    color: #ffffff;
    border-color: #0037ff;
}

.newsletter-form.filled .submit-button:hover {
    background-color: #3361ff;
    border-color: #3361ff;
}

.newsletter-form.filled .submit-button .icon-envelope {
    display: none;
}

.newsletter-form.filled .submit-button .icon-arrow {
    display: block;
}
/*
 * Mobile Optimization (Master Desktop Design as baseline, optimized for tap/readability)
 */
@media (max-width: 768px) {
    /* Base font size scales up a bit */
    /* Header fonts: make 'budakid' and 'tagline' uniform size */
    .logo-group h1, 
    .logo-group .tagline {
        font-size: 16pt !important;
        margin-top: 5px;
    }

    .tagline {
        line-height: 1.4;
        text-align: left;
        max-width: 90%;
    }

    /* Layout: Left/Top aligned logo as requested */
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px 30px 40px;
        height: 70vh; /* Match the hero image height to contain absolute elements properly */
    }

    .logo-group {
        align-items: flex-start;
        text-align: left;
    }

    /* Buttons: Centered, bigger, at the bottom of the hero image */
    .nav-knobs {
        position: absolute;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
    }

    .knob {
        width: 280px; /* Bigger button */
        height: 65px;  /* Easier to tap */
        font-size: 14px;
        letter-spacing: 0.1em;
    }

    .knob-contact.expanded {
        width: 280px; /* Keep consistent width when expanded on mobile */
    }

    .knob-dropdown .dropdown-content {
        left: 50%;
        transform: translateX(-50%);
        width: 280px;
        bottom: 65px; /* Expand UPWARDS on mobile */
        top: auto;
    }

    /* Disable sticky hover on mobile; rely on the .active class toggle instead */
    .knob-dropdown:hover .dropdown-content {
        display: none;
    }

    /* Toggle support for mobile click */
    .knob-dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-item {
        width: 100%;
        max-width: none;
        height: 60px;
        font-size: 13px;
    }

    /* Content spacing */
    .content-parallax {
        padding-top: 20px;
    }

    .latest-releases {
        margin-top: 40px;
        padding: 0 20px;
    }

    .latest-releases h1 {
        font-size: 28pt;
    }

    .carousel-container {
        margin-top: 80px;
        height: 250px; /* Slightly smaller for mobile ratio */
    }

    .carousel-item {
        width: 250px;
        height: 250px;
    }

    /* Shows & Newsletter */
    .shows-header {
        margin-top: 80px;
        padding: 0 20px;
    }

    .shows-header h1 {
        font-size: 28pt;
    }

    .tour-dates {
        margin-top: 60px;
        padding-bottom: 60px;
    }

    .join-us-header {
        margin-top: 40px;
        padding: 0 20px 100px;
    }

    .join-us-header h1 {
        font-size: 28pt;
    }

    .join-us-header .description {
        font-size: 14px;
        line-height: 1.6;
        margin-top: 25px;
    }

    .newsletter-form {
        margin-top: 50px;
        height: 70px;
    }

    .email-input {
        font-size: 14px;
    }

    .submit-button {
        width: 70px;
    }

    /* Footer */
    .main-footer {
        height: auto;
        padding: 60px 40px;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-left h1 {
        font-size: 30pt;
    }

    .footer-right {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}
