:root {
    --bg-color: #0a0a0a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #7b2cbf; /* Deep purple for indie feel */
    --accent-hover: #9d4edd;
    --card-bg: #1a1a1a;
    --nav-bg: rgba(10, 10, 10, 0.95);
    --border-color: #333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; color: var(--text-secondary); }

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--accent-color);
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections Global */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: auto; /* Changed from 80vh to generic auto since hero has specific height */
}

/* Hero Section - The Boxed Design */
#hero-container {
    position: relative;
    width: 95%; /* Creates the 'boxed' margin effect */
    max-width: 1400px;
    height: 85vh;
    margin: 20px auto; /* Centers the box on the page */
    background: url('img/JB-CM-scaled.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid #222; /* Subtle frame */
}

/* Dark Overlay exactly like the current site */
#hero-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darkens the photo for text legibility */
    z-index: 1;
}

/* Central Logo Graphic */
.hero-logo {
    position: relative;
    z-index: 10;
    width: 50%;
    max-width: 500px;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
    animation: growIn 1s ease-out;
}

/* Quote Layout */
.hero-quote {
    position: absolute;
    top: 50px;
    right: 50px;
    text-align: right;
    z-index: 10;
    color: #fff;
    max-width: 300px;
}
.hero-quote h1 { font-size: 1.8rem; font-style: italic; line-height: 1.2; margin-bottom: 5px; }
.hero-quote h5 { font-size: 0.9rem; color: #8a8a8a; font-weight: 300; letter-spacing: 2px; }

/* Bottom UI Elements */
.hero-bottom-left {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 10;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #666;
}
.hero-bottom-left a { color: #888; text-decoration: none; transition: color 0.3s; }
.hero-bottom-left a:hover { color: #fff; }

.scroll-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0.7;
    animation: bounce 2s infinite;
}
    color: #fff;
    letter-spacing: 2px;
}
.hero-share a { color: #fff; margin-right: 5px; margin-left: 5px; font-weight: bold; }
.hero-share a:hover { color: var(--accent-color); }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

@keyframes growIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);} 40% {transform: translateY(-10px) translateX(-50%);} 60% {transform: translateY(-5px) translateX(-50%);} }

/* Reuse existing album-feature styles if needed, or leave pending removal */
.album-feature {
    display: none; /* Hidden for now per hero update */
}

.cta-button {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    color: white;
}

/* History Section - Vertical Timeline */
#history { padding: 100px 2rem; max-width: 900px; margin: 0 auto; }
.timeline-grid { position: relative; border-left: 2px solid #8a8a8a; padding-left: 40px; margin-left: 20px; display: block; }
.timeline-grid article { position: relative; margin-bottom: 60px; transition: transform 0.3s ease; background: transparent; padding: 0; border: none; }
.timeline-grid article::before { content: ""; position: absolute; left: -51px; top: 5px; width: 20px; height: 20px; background: #0a0a0a; border: 2px solid #fff; border-radius: 50%; z-index: 2; }
.timeline-grid article:hover { transform: translateX(10px); background: transparent; }
.timeline-grid article:hover::before { background: #fff; box-shadow: 0 0 15px rgba(255, 255, 255, 0.8); }
.timeline-grid h3 { font-size: 1.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; color: #fff; }
.timeline-grid p { color: #8a8a8a; font-size: 1.1rem; max-width: 700px; }

/* Music Section - Flexbox */
/* Music Section - Discography Grid */
.discography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.album-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 4px; /* Keeping slight radius for consistency */
}

.album-card:hover {
    border-color: #fff;
    transform: translateY(-5px);
}

.album-card img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    filter: grayscale(100%); /* Keeps the darkwave aesthetic */
    transition: filter 0.3s ease;
}

.album-card img:hover { filter: grayscale(0%); }

.album-card h3 { font-size: 1.2rem; margin-bottom: 5px; color: #fff; }
.album-card p { font-size: 0.9rem; color: #8a8a8a; margin-bottom: 15px; }



/* Contact Section */
#contact form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

#contact input, 
#contact textarea {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    border-radius: 4px;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* FAQ Section - Accordion */
#faq .faq-item {
    background: var(--card-bg);
    margin-bottom: 1rem;
    border-left: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

#faq .faq-item h3 {
    margin: 0;
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

#faq .faq-item h3:hover {
    color: var(--accent-color);
}

#faq .faq-item h3::after {
    content: '+';
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 400;
    transition: transform 0.3s ease, color 0.3s ease;
}

#faq .faq-item.active h3::after {
    transform: rotate(45deg);
    color: var(--accent-color);
}

#faq .faq-item p {
    max-height: 0;
    opacity: 0;
    padding: 0 2rem;
    margin: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

#faq .faq-item.active p {
    max-height: 1000px; /* Large enough to fit content */
    opacity: 1;
    padding-bottom: 2rem;
    margin-top: -0.5rem; /* Pull up slightly closer to title if needed */
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.news-item img {
    width: 100%;
    aspect-ratio: 16/9; /* Enforce consistent aspect ratio if possible, or object-fit */
    object-fit: cover;
    border-radius: 2px;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
    display: block;
}

.news-item:hover img {
    filter: brightness(1.2);
}

.news-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0;
}

/* History Gallery */
.history-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 50px;
    padding: 20px 0; /* Adjusted padding-left/right to 0 to align with other content if needed, or keep 20px */
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2); /* Darkwave aesthetic */
    transition: all 0.4s ease;
    border: 1px solid #222;
}

.gallery-item:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
    border-color: #fff;
    z-index: 10;
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    #home h1 {
        font-size: 3rem;
    }
    
    .nav-links {
        display: none; /* Mobile menu implementation usually requires JS, keeping simple for now or could stack */
    }
    
    nav {
        justify-content: center;
    }

    section {
        padding: 4rem 1.5rem;
    }
}

/* Lightbox Modal */
#lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}
#lightbox-img {
    max-width: 85%;
    max-height: 85%;
    border: 1px solid #333;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.lightbox-btn {
    position: absolute;
    background: none; border: none;
    color: #fff; font-size: 3rem;
    cursor: pointer; padding: 20px;
    transition: color 0.3s;
}
.lightbox-btn:hover { color: #8a8a8a; }
#prev-btn { left: 20px; }
#next-btn { right: 20px; }
#close-btn { top: 20px; right: 20px; font-size: 2rem; }

/* Updated Nav Logo */
.logo {
    display: flex;
    align-items: center;
    padding: 0;
}
.logo img {
    /* Ensure the logo keeps navbar height consistent */
    max-height: 40px; 
    width: auto;
    object-fit: contain;
}

/* Music Section Updates */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 40px 0;
}
.album-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 20px;
    text-align: center;
    transition: border 0.3s ease;
}
.album-card:hover { border-color: #444; }
.album-card img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}
.album-card:hover img { filter: grayscale(0%); }
.streaming-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #1a1a1a;
}
.streaming-links svg {
    width: 20px;
    height: 20px;
    fill: #555; /* Muted grey */
    transition: fill 0.3s ease, transform 0.2s ease;
}
.streaming-links a:hover svg {
    fill: #fff;
    transform: scale(1.1);
}

/* Global Streaming Bar */
.streaming-container {
    text-align: center;
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #1a1a1a;
}
.streaming-label {
    color: #444;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
    display: block;
}
.global-streaming-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}
.global-streaming-bar svg {
    width: 28px;
    height: 28px;
    fill: #555;
    transition: all 0.3s ease;
}
.global-streaming-bar a:hover svg {
    fill: #fff;
    transform: translateY(-5px);
}

/* Persistent Music Player */
#player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 180px;
    background: #000;
    border: 1px solid #333;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    z-index: 1000;
    display: none; /* Hidden by default */
    border-radius: 4px;
    overflow: hidden;
}

#player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#close-player {
    position: absolute;
    top: -30px; /* Moves up when hovered or we can place it differently */
    right: 0;
    background: #cc0000;
    color: white;
    border: none;
    padding: 0 8px;
    cursor: pointer;
    font-weight: bold;
    line-height: 20px;
    height: 20px;
    font-size: 14px;
    z-index: 1002;
    transition: top 0.3s;
}

#player-container:hover #close-player {
    top: 0;
}

/* Make album interactions clear */
.album-card img, 
.album-card h3 {
    cursor: pointer;
    transition: opacity 0.2s;
}
.album-card img:hover {
    opacity: 0.8;
}
.album-card h3:hover {
    text-decoration: underline;
    color: var(--accent-color, #8a8a8a);
}

@media (max-width: 600px) {
    #player-container {
        width: 100%;
        left: 0;
        bottom: 0;
        right: auto;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Contact Links */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 3rem;
}

.contact-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-icon:hover {
    transform: translateY(-5px);
    color: var(--accent-color);
}

.contact-icon:hover svg {
    stroke: var(--accent-color); /* For outline icons */
    fill: var(--accent-color);   /* For filled icons */
}

/* Ensure consistent icon sizing if not set inline */
.contact-icon svg {
    width: 48px;
    height: 48px;
    transition: inherit;
}

/* Trademark Symbol */
.tm-symbol {
    font-size: 1rem;
    font-weight: 400; /* Regular weight */
    color: var(--text-primary);
    margin-left: 1px;
    align-self: flex-start;
    line-height: 1;
    margin-top: 5px; /* Fine tune position */
}

/* --- Dark Atmosphere & Textures --- */

/* 1. Global Film Grain Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.03; /* Very subtle */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. Cinematic Vignette (Dark Edges) */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9001;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
}

/* 3. Section Atmospheres using the 100vw bleed trick */
/* Ensure sections can host the pseudo-elements */
section {
    position: relative;
    /* overflow-x: hidden; removed to allow bleed */ 
}

/* History: Dark Grey/Metallic Wash */
#history::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(to bottom, #0a0a0a, #131313 15%, #131313 85%, #0a0a0a);
    z-index: -1;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Music: Deep Purple/Void Glow */
#music::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(123, 44, 191, 0.08), transparent 70%);
    z-index: -1;
}

/* FAQ: Return to Null (Black with dividers) */
#faq {
    /* No background change, keeps it distinct from History */
}

/* Prevent horizontal scroll from full-width gradients */
html, body {
    overflow-x: hidden;
    width: 100%;
}
