/* --- Global Styles & Variables --- */
:root {
    /* Dark Mode Colors */
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --primary-color: #00aaff; /* A bright blue for contrast */
    --secondary-color: #333333;
    --card-bg: #1e1e1e;
    --border-color: #444444;
    --link-hover-color: #50cdff;
    --button-hover-bg: #0088cc;

    /* Fonts */
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Orbitron', sans-serif; /* Sci-fi/tech feel */

    /* Spacing */
    --spacing-unit: 1rem; /* 16px base */
}

/* Basic Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px default */
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transitions */
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 1.5);
}

/* Headings and Text */
h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-unit);
    color: var(--primary-color);
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-top: calc(var(--spacing-unit) * 2); }
h3 { font-size: 1.8rem; color: var(--primary-color); margin-top: calc(var(--spacing-unit) * 1.5); } /* Adjusted H3 */
h4 { font-size: 1.4rem; color: var(--text-color); font-family: var(--font-heading); line-height: 1.3; margin-bottom: calc(var(--spacing-unit) * 0.5); } /* Style for music item titles */


p {
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: var(--link-hover-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(30, 30, 30, 0.9); /* Slightly transparent */
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-unit) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Frosted glass effect */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}
.logo:hover {
    color: var(--primary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: calc(var(--spacing-unit) * 1.5);
}

.nav-link {
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
    font-weight: 700;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
}

/* --- Page Sections --- */
.page-section {
    display: none; /* Hidden by default, shown by JS */
    padding: calc(var(--spacing-unit) * 3) 0;
    min-height: 70vh; /* Ensure sections take up decent space */
}

.page-section.active-section {
    display: block; /* Show the active section */
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.9)), url('images/sitebg.webp') no-repeat center center/cover;
    min-height: 40vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: calc(var(--spacing-unit) * 4) 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: #ccc; /* Slightly lighter than main text */
}

.music-stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-unit);
}

.store-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
}

.store-button:hover {
    background-color: #444;
    transform: translateY(-2px);
    color: var(--text-color); /* Keep text color on hover */
}

/* Specific store colors */
.store-button.spotify { border-left: 4px solid #1DB954; }
.store-button.apple { border-left: 4px solid #FC3C44; }
.store-button.amazon { border-left: 4px solid #FF9900; }
.store-button.iheart { border-left: 4px solid #C6002B; }
.store-button.youtube { border-left: 4px solid #FF0000; }
.store-button.soundcloud { border-left: 4px solid #FF7700; }


/* Latest Release */
.latest-release {
    padding: calc(var(--spacing-unit) * 3) 0;
    background-color: var(--card-bg); /* Slightly different background */
    margin-top: calc(var(--spacing-unit) * 3); /* Spacing after hero */
    border-radius: 8px; /* Added rounding */
}

.latest-release h2 {
    margin-top: 0;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    padding-left: calc(var(--spacing-unit) * 1.5);
    color: var(--primary-color); /* Use primary color for release title */
}

/* Upcoming Releases */
.upcoming-releases {
    padding: calc(var(--spacing-unit) * 3) 0;
    background-color: var(--card-bg); /* Slightly different background */
    margin-top: calc(var(--spacing-unit) * 3); /* Spacing */
    border-radius: 8px; /* Added rounding */
}

.upcoming-releases h2 {
    margin-top: 0;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    padding-left: calc(var(--spacing-unit) * 1.5);
    color: var(--primary-color); /* Use primary color for release title */
}

/* Release Item */
.release-item {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    align-items: center;
    background-color: var(--secondary-color);
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: 8px;
}

.release-cover {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.release-info h3 {
    margin-top: 0;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    color: var(--text-color); /* Use text color for release title */
    font-size: 1.6rem;
}

/* --- CTA Button (General Use) --- */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff; /* White text on primary button */
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    background-color: var(--button-hover-bg);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Bio Section --- */
.bio-content {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    align-items: flex-start; /* Align items to the top */
}

.bio-content.card {
    background-color: var(--card-bg); /* Slightly different background */
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px; /* Added rounding */
}

/* Horizontal line between bio sections */
.bio-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    margin: calc(var(--spacing-unit) * 2) 0;
}

.bio-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: calc(var(--spacing-unit) * 0.5); /* Align better with text */
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    background: var(--secondary-color);
}

/* Bio Text */
.bio-text {
    flex-grow: 1;
}

/* Bio Name */
.bio-name {
    margin-top: 0;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    color: var(--primary-color); /* Use primary color for name */
    font-size: 1.6rem;
    font-weight: bold;
}

/* --- Music Section --- */

/* Music Tabs */
.music-tabs {
    display: flex;
    gap: calc(var(--spacing-unit) * 0.5); /* Small gap between tabs */
    margin-bottom: calc(var(--spacing-unit) * 2);
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    padding: calc(var(--spacing-unit) * 0.8) calc(var(--spacing-unit) * 1.5);
    cursor: pointer;
    background-color: transparent; /* Default transparent */
    border: 1px solid transparent; /* Transparent border to maintain layout */
    border-bottom: none; /* Remove bottom border */
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px 5px 0 0; /* Rounded top corners */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    position: relative;
    top: 1px; /* Align with the content border */
}

.tab-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.tab-button.active-tab {
    background-color: var(--card-bg); /* Match card background */
    color: var(--primary-color);
    border-color: var(--border-color); /* Show border */
    border-bottom-color: var(--card-bg); /* Hide bottom border part that overlaps */
}

/* Music Content Area */
.music-content {
    display: none; /* Hidden by default */
    background-color: var(--card-bg); /* Optional: background for content */
    padding: calc(var(--spacing-unit) * 1.5);
    border: 1px solid var(--border-color);
    border-radius: 0 8px 8px 8px; /* Round corners except top-left */
    margin-top: -1px; /* Overlap with tab border */
}

.music-content.active-content {
    display: block; /* Show active content */
    animation: fadeIn 0.5s ease-in-out; /* Reuse fade-in */
}

.music-content h3 { /* Style for category titles */
    margin-top: 0; /* Remove default top margin */
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    font-size: 1.6rem;
}

/* Music Grid */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    /* Spacing handled by .music-content padding */
}

.music-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 1.5);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack items vertically */
    background-color: var(--secondary-color); /* Give items a distinct bg */
}

.music-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.1); /* Subtle glow */
}

.music-cover {
    width: 100%;
    max-width: 300px; /* Limit cover size */
    aspect-ratio: 1 / 1; /* Make it square */
    object-fit: cover;
    border-radius: 4px;
    margin: 0 auto calc(var(--spacing-unit) * 1.5) auto;
}

.music-item h4 { /* Adjusted selector */
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-size: 1.3rem; /* Kept size */
}

.music-item p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: var(--spacing-unit);
    flex-grow: 1; /* Allow paragraph to take available space */
}

.music-item .cta-button {
    margin-top: auto; /* Push button to bottom */
}

/* --- Merch Section --- */
.merch-content {
    text-align: center;
    padding: calc(var(--spacing-unit) * 4) 0;
}

.coming-soon {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.mailing-list-cta {
    margin-top: calc(var(--spacing-unit) * 2);
    background-color: var(--card-bg);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    display: inline-block; /* Center the box */
    max-width: 500px;
}

.mailing-list-cta p {
    margin-bottom: var(--spacing-unit);
}

/* --- Contact Section --- */
#contact-form {
    max-width: 600px;
    margin: calc(var(--spacing-unit) * 2) auto 0 auto; /* Center form */
    background-color: var(--card-bg);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.form-group label {
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-weight: bold;
    color: #ccc;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.3);
}

.form-group textarea {
    resize: vertical; /* Allow vertical resize */
    min-height: 120px;
}

.hcaptcha-placeholder {
    background-color: var(--secondary-color);
    padding: var(--spacing-unit);
    border-radius: 4px;
    text-align: center;
    color: #aaa;
    border: 1px dashed var(--border-color);
}

#contact-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.form-status {
    margin-top: var(--spacing-unit);
    text-align: center;
    font-weight: bold;
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color);
    color: #aaa;
    text-align: center;
    padding: calc(var(--spacing-unit) * 1.5) 0;
    margin-top: calc(var(--spacing-unit) * 3);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* Social Media Icons */
.social-links {
    margin-top: calc(var(--spacing-unit) * 1); /* Space between copyright and icons */
}

.social-links a {
    display: inline-block; /* Allows margin and prevents line breaks */
    margin: 0 calc(var(--spacing-unit) * 0.75); /* Horizontal space between icons */
    color: #aaa; /* Default icon color (matches footer text) */
    transition: color 0.2s ease; /* Smooth hover effect */
}

.social-links a:hover,
.social-links a:focus {
    color: var(--primary-color); /* Icon color on hover/focus */
}

/* SVG Icons */
.social-links a svg {
    width: 24px; /* Adjust size as needed */
    height: 24px; /* Adjust size as needed */
    vertical-align: middle; /* Aligns icons better if text were next to them */
    fill: currentColor; /* Takes color from the parent 'a' tag */
}

/* --- Responsive Design --- */

/* Medium Screens (Tablets) */
@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; } /* Adjust H3 */
    h4 { font-size: 1.2rem; } /* Adjust H4 */
    .hero-content h1 { font-size: 3rem; }


    .bio-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .bio-logo {
        margin-bottom: var(--spacing-unit);
    }

    .release-item {
        flex-direction: column;
        text-align: center;
    }
    .release-cover {
        margin: 0 auto calc(var(--spacing-unit) * 1.5) auto;
    }
}

/* Small Screens (Mobiles) */
@media (max-width: 768px) {
    html { font-size: 95%; } /* Slightly smaller base font */

    .header-content {
        position: relative; /* For menu positioning */
    }

    .menu-toggle {
        display: block; /* Show hamburger */
        position: absolute;
        right: calc(var(--spacing-unit) * 1.5);
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }

    .nav-menu {
        display: none; /* Hide menu by default */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        padding: var(--spacing-unit) 0;
        z-index: 1001;
    }
    .nav-menu.active {
        display: flex; /* Show menu when active */
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
        border-bottom: 1px solid var(--border-color);
    }
    .nav-menu li:last-child .nav-link {
        border-bottom: none;
    }
    .nav-link::after {
        display: none; /* Don't show underline on mobile menu */
    }
    .nav-link:hover, .nav-link.active {
        background-color: var(--secondary-color);
        color: var(--primary-color);
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; } /* Adjust H3 */
    h4 { font-size: 1.1rem; } /* Adjust H4 */
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }

    .music-grid {
        grid-template-columns: 1fr; /* Stack music items */
    }

    #contact-form {
        padding: var(--spacing-unit);
    }

    /* Adjust tabs for smaller screens */
    .music-tabs {
        overflow-x: auto; /* Allow horizontal scroll if tabs overflow */
        white-space: nowrap; /* Prevent wrapping */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: thin; /* For Firefox */
        scrollbar-color: var(--primary-color) var(--secondary-color); /* For Firefox */
    }
    /* Webkit scrollbar styling */
    .music-tabs::-webkit-scrollbar {
        height: 5px;
    }
    .music-tabs::-webkit-scrollbar-track {
        background: var(--secondary-color);
    }
    .music-tabs::-webkit-scrollbar-thumb {
        background-color: var(--primary-color);
        border-radius: 10px;
        border: 1px solid var(--secondary-color);
    }

    .tab-button {
        font-size: 1rem; /* Slightly smaller tab text */
        padding: calc(var(--spacing-unit) * 0.7) var(--spacing-unit);
        flex-shrink: 0; /* Prevent tabs from shrinking */
    }

}