/* ==========================================================================
   COLOR PALETTE FRAMEWORK & VARIABLES
   ========================================================================== */
:root {
    --header-bg: #ffffff;      
    --bg-main: #0e1118;        
    --text-dark: #000000;      
    --text-light: #f5f6f8;
    --accent-blue: #33C5E8;     
    --accent-blue-old: #213ff9;    /* Exact Brand Blue */
    --accent-red: #EE040F;     /* Exact Brand Red */
    /* Continuous gradient token used for buttons and lines */
    --brand-gradient: linear-gradient(135deg, var(--accent-blue) 25%, var(--accent-red) 100%);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.07);
}

/* ==========================================================================
   BASE RESETS & STRUCTURE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-light);
    overflow-x: hidden;
}

body {
    padding-top: 80px; 
}

/* ==========================================================================
   RESPONSIVE NAVIGATION HEADER
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--header-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.header-container {
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    max-height: 50px; 
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-blue); 
}

.top-socials {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-left: 2px solid #e1e4e8;
    padding-left: 1.2rem;
}

.top-socials a, .footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* ==========================================================================
   DYNAMIC SOCIAL IMAGES FILTER LOGIC (PNG HOVER EFFECT)
   ========================================================================== */
.social-icon {
    width: 24px;   
    height: 24px;
    object-fit: contain;
    transition: filter 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.top-socials a:hover .social-icon {
    transform: translateY(-2px);
    filter: invert(19%) sepia(91%) saturate(6500%) hue-rotate(185deg) brightness(110%) contrast(101%);
}

.footer-socials .social-icon {
    filter: invert(100%);
}

.footer-socials a:hover .social-icon {
    transform: translateY(-2px);
    filter: invert(10%) sepia(94%) saturate(7356%) hue-rotate(358deg) brightness(95%) contrast(113%);
}

/* ==========================================================================
   IMAGE-DRIVEN HERO BANNER
   ========================================================================== */
.hero-image-banner {
    position: relative;
    width: 100%;
    height: 75vh; 
    background-image: url('bandImages/Main1.JPG'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    /* Animation Properties */
    opacity: 0; /* Starts completely invisible */
    animation: bannerFadeIn 1.2s ease-out forwards; /* Takes 1.2 seconds to fade in */
    animation-delay: 0.2s; /* Waits slightly for the white header to load first */
}

.banner-fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-main) 0%, transparent 15%, transparent 85%, var(--bg-main) 100%),
                linear-gradient(to top, var(--bg-main) 0%, transparent 20%);
}

/* --- ANIMATION TIMELINE KEYFRAMES --- */
@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: scale(1.02); /* Starts slightly zoomed in for a cinematic breathing effect */
    }
    to {
        opacity: 1;
        transform: scale(1); /* Settles into perfect size as it reaches full opacity */
    }
}

/* ==========================================================================
   GLOBAL CONTENT WORKSPACE & CARDS
   ========================================================================== */
.content-section {
    max-width: 1450px; 
    margin: 0 auto;
    padding: 5rem 1.5rem 0rem 1.5rem; 
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 3rem;
}

/* ==========================================================================
   FLUID HEIGHT SPLIT GRID CARDS
   ========================================================================== */
.split-grid-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    align-items: stretch; /* CRUCIAL: Forces both columns to have the exact same height */
    overflow: hidden; 
}

.split-text-side {
    padding: 3rem;
    /* No fixed height here; the content (shows list/form) naturally defines this height */
}

/* --- DYNAMIC CROPPING ENGINE (HEIGHT-DRIVEN) --- */
.square-crop-wrapper {
    position: relative;
    width: 100%;
    height: 100%; /* Stretches perfectly to match the height of the text column */
    min-height: 400px;
}

.centered-square-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the image seamlessly without distorting aspect ratios */
    object-position: center center; /* Keeps the crop perfectly centered */
    display: block;
}

.fade-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the image perfectly to fill the space without stretching */
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Controls the speed of the crossfade */
}

/* The class toggled by JavaScript to show the current image */
.fade-img.active {
    opacity: 1;
}

/* --- HEADING GRADIENT UNDERLINES --- */
h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--brand-gradient); /* Replaced old 3D accent layers with clean gradient */
}

/* ==========================================================================
   LIVE TOUR LAYOUT INTERFACE
   ========================================================================== */
.show-row {
    display: grid;
    /* minmax(100px, auto) ensures the column stays rigid at small widths 
       but won't break if content gets slightly longer.
    */
    grid-template-columns: 90px 2fr 1.5fr minmax(130px, auto);
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.076);
    gap: 1.5rem; /* Increased gap slightly to keep things breathing nicely */
}

.show-row:last-child {
    border-bottom: none;
}

.show-date {
    font-weight: bold;
    color: var(--text-light);
}

.show-venue {
    color: #ffffff;
    font-weight: 500;
}

.show-location {
    color: #8996a8;
}

.show-message {
    color: #8996a8;
}

.show-row > div:last-child {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
    width: 100%;
}

/* ==========================================================================
   WIDER PRINTFUL MERCH GRID LAYOUT
   ========================================================================== */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 2.5rem;
    align-items: stretch; /* Ensures all merch items have the same height regardless of content */
    text-align: center;
    margin-bottom: 25px;
}

.merch-item {
    text-align: center;
}

.merch-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.price {
    color: #fff;
    margin: 0.4rem 0 1rem;
    font-weight: 600;
}

/* ==========================================================================
   THE BAND - 4 COLUMN MEMBER CARD ARCHITECTURE
   ========================================================================== */
.band-intro {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    color: #a0aab8;
}

.band-members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem;
}

.member-card {
    background: rgba(55, 55, 87, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: left;
}

/* Reuses our square engine rules for individual band member bio headers */
.member-photo-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1.2rem;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.member-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.member-role {
    color: var(--accent-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.member-bio {
    color: #8996a8;
    font-size: 0.9rem;
    line-height: 1.5;
    list-style-type: none;
}
.member-bio li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   INTERACTIVE CONTACT FORM SYSTEM
   ========================================================================== */
.contact-sub {
    color: #8996a8;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #a0aab8;
}

.form-group input, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 0.7rem 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
}

.form-submit-btn {
    align-self: flex-start;
}

/* ==========================================================================
   INTERACTION GRADIENT BUTTON DESIGNS
   ========================================================================== */
.btn {
    display: inline-block;
    background: var(--brand-gradient); /* Flat solid multi-stop gradient color tracking */
    color: #fff;
    border: none;
    padding: 0.7rem 1.8rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 0 20px rgba(33, 63, 249, 0.4);
    transform: translateY(-1px);
}

/* ==========================================================================
   BOTTOM SITE FOOTER
   ========================================================================== */
footer {
    text-align: center;
    padding: 4rem 1.5rem;
    margin-top: 5rem;
    border-top: 1px solid var(--glass-border);
    background-color: #090b10;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.copyright {
    color: #434d5c;
    font-size: 0.85rem;
}

/* ==========================================================================
   MEDIA BREAKPOINT QUERIES (MOBILE OPTIMIZATIONS)
   ========================================================================== */
@media (max-width: 1100px) {
    /* Stack split cards down into standard vertical single item streams on phones */
    .split-grid-card {
        grid-template-columns: 1fr;
    }

    .split-text-side {
        padding: 2.5rem 1.5rem;
    }

    /* Keeps image on top for the shows section, but shifts contact text cleanly */
    #contact .square-crop-wrapper {
        grid-row: 1; 
    }

}

@media (max-width: 900px) {
    .band-members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .merch-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .menu-toggle {
        display: flex; 
    }
    header {
        height: 50px;
    }
    .header-logo {
        height: 30px; 
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .top-socials {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e1e4e8;
        padding-top: 1.5rem;
        width: 80%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    

    .hero-image-banner {
        height: 45vh; 
    }

    

    .band-members-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .show-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.4rem;
        padding: 1.5rem 0;
    }
    
    .show-row .btn {
        margin-top: 0.5rem;
        width: 100%; 
    }

    .form-submit-btn {
        width: 100%;
        text-align: center;
    }
}