:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #0071e3;
    --secondary-bg: #111111;
    --nav-bg: rgba(0, 0, 0, 0.72);
    --card-radius: 22px;
    --section-padding: 120px 20px;
    --container-width: 1100px;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--section-padding);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: -0.015em;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.92;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.75rem;
    font-weight: 400;
    transition: color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.nav-links a:hover {
    color: var(--text-color);
}

/* First Section Styling (Hero override) */
.first-section {
    padding-top: 140px;
}

.carousel-wrapper {
    position: relative;
}

.carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 20px 0;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    aspect-ratio: 16 / 9;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--secondary-bg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.carousel-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Music Section Redesign (3D Box) */
.album-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: var(--secondary-bg);
    padding: 80px 40px;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    perspective: 1500px;
    overflow: hidden;
}

/* This is the most reliable way to center a transformed element within a relative parent. */
/* You need to make sure these rules take precedence over existing conflicting styles. */
#box {
    /* This is critical for centering a transformed element within a relative parent */
    position: absolute !important;

    /* Place the element's top-left corner at the parent's center */
    top: 50% !important;
    left: 50% !important;

    /* Combine the centering translate with your existing scale and rotate transforms */
    /* The translate(-50%, -50%) MUST come *first* in the transform chain */
    transform: translate(-50%, -50%) scale(0.55) rotateX(-15deg) rotateY(-20deg) !important;

    /* Ensure no margins or other properties interfere with the absolute positioning */
    margin: 0 !important;
    transform-origin: center center !important;
    /* Ensure the transform originates from the visual center */

    /* Retain original authored dimensions as translate(-50%, -50%) relies on them */
    width: 784px;
    height: 572px;
}

/* Reconfirm your parent's styles for .album-3d-wrapper */
.album-3d-wrapper {
    position: relative;
    /* Essential for #box's absolute positioning */
    display: flex;
    /* Good for general layout if other children exist */
    justify-content: center;
    /* Centers its content horizontally if it's a flex container */
    align-items: center;
    /* Centers its content vertically if it's a flex container */
    width: 100%;
    /* Allows it to be responsive to viewport width */
    height: 260px;
    /* This fixed height might still be a concern if the 3D element needs more vertical space on mobile */
    /* Consider using aspect-ratio if you want a fluid height: */
    /* height: 0; */
    /* padding-bottom: calc(100% * (260/310)); */
    /* aspect-ratio: 310 / 260; */
}

/* User Snippet Helper Classes */
.absolute {
    position: absolute;
}

.transition-transform {
    transition: transform 0.3s ease-out;
}

.duration-2000 {
    transition-duration: 2s;
}

.m-0 {
    margin: 0;
}

.block {
    display: block;
}

.bg-no-repeat {
    background-repeat: no-repeat;
}

@keyframes rotate-cd {
    from {
        transform: translateZ(-6px) rotateZ(0deg);
    }

    to {
        transform: translateZ(-6px) rotateZ(360deg);
    }
}

.es-rotate-cd-digi {
    animation: rotate-cd 10s linear infinite;
}

.album-details {
    flex: 1;
    z-index: 10;
}

.album-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.album-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Responsive considerations for the button container */
.cta-buttons {
    display: flex;
    /* Arrange buttons side-by-side initially */
    gap: 16px;
    /* Space between buttons */
    flex-wrap: wrap;
    /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    /* Center buttons when they wrap */
    margin-top: 20px;
    /* Example margin for spacing */
}

.cta-buttons .btn {
    display: flex;
    /* Use flexbox to align icon and text */
    align-items: center;
    /* Vertically center icon and text */
    justify-content: center;
    /* Center content horizontally */
    gap: 8px;
    /* Add some space between the icon and the text */
    text-decoration: none;
    /* Ensure no underline */
    padding: 16px 32px;
    /* Keep consistent padding */
    font-size: 1rem;
    /* Keep consistent font size */
    border-radius: 500px;
    /* Make them pill-shaped, common for CTA buttons */
    transition: all 0.3s ease;
    /* Smooth transitions for hover effects */
    white-space: nowrap;
    /* Prevent text from wrapping */
}

/* Specific styling for the Spotify button */
.cta-buttons .spotify-btn {
    /* Assuming .btn-primary is now .spotify-btn or has this class */
    background-color: #1DB954;
    /* Spotify green */
    color: #FFFFFF;
    /* White text */
    border: 1px solid #1DB954;
    /* Matching border */
}

.cta-buttons .spotify-btn:hover {
    background-color: #1ed760;
    /* Slightly lighter green on hover */
    border-color: #1ed760;
    cursor: pointer;
}

/* Styling for the icon inside the Spotify button */
.cta-buttons .spotify-btn .spotify-icon {
    font-size: 1.2em;
    /* Slightly larger icon */
}

/* Specific styling for the other button (e.g., Download) */
.cta-buttons .other-btn {
    /* Assuming .btn-secondary is now .other-btn or has this class */
    background-color: #3c54ae;
    color: #FFFFFF;
    border: 1px solid #3c54ae;
}

.cta-buttons .other-btn:hover {
    background-color: #4862c1;
    /* Slightly more opaque on hover */
    border-color: #4862c1;
    cursor: pointer;
}

/* Styling for the icon inside the other button */
.cta-buttons .other-btn .download-icon {
    font-size: 1.2em;
}

.btn {
    display: inline-block;
    width: 260px;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Merch Section */
.merch-iframe-wrapper {
    background: #ffffff;
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.about-text p {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.5;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.gallery-item {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #111;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Footer */
.footer {
    padding: 80px 20px;
    background: #000;
    text-align: center;
}

.footer-content p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Animations */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive Redesign (Pico + Custom) */
@media (max-width: 1100px) {
    .section-title {
        font-size: 2.75rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .album-feature {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0 !important;
        padding: 40px 20px !important;
        overflow: hidden !important;
    }

    .album-details {
        margin-top: -10px !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .cta-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 300px !important;
        align-items: center !important;
        margin-top: 20px !important;
    }

    .btn {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        display: block !important;
        text-align: center !important;
    }

    .carousel-item {
        flex: 0 0 100%;
    }

    .album-3d-wrapper {
        height: 350px;
    }
}

/* Styles for tablet and smaller screens */
@media (max-width: 768px) {
    #box {
        transform: translate(-50%, -50%) scale(0.35) rotateX(-15deg) rotateY(-20deg) !important;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .gallery-grid {
        gap: 12px;
    }

    .nav-content {
        justify-content: center;
    }

    .album-name {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        /* Stack buttons vertically on small screens */
        align-items: center;
        /* Center stacked buttons */
    }
}