/* Handcrafted by ROYED (https://royed.org/) */

/* ---------------------------------- */
/* 1. CSS Variables and Reset */
/* ---------------------------------- */
:root {
    /* Base Variables */
    --font-primary: 'Cinzel', serif; /* Headings */
    --font-secondary: 'Poppins', sans-serif; /* Body */
    --color-accent: #e74c3c; /* Vibrant Red/Orange */
    --transition-speed: 0.4s ease-in-out;
    --shadow-subtle: 0 4px 15px rgba(0, 0, 0, 0.1);
    --padding-lg: 100px 0; /* Large Vertical Padding */
    --color-accent-rgb: 231, 76, 60; /* RGB for shadow opacity */
    --header-height: 75px;
}

/* Light Mode Variables */
:root, .light-mode {
    --color-primary: #ffffff;
    --color-secondary: #f4f4f4;
    --color-text: #2c3e50;
    --color-text-light: #34495e;
    --color-text-muted: #7f8c8d;
    --color-navbar-bg: rgba(255, 255, 255, 0.95); 
    --color-navbar-border: rgba(0, 0, 0, 0.08);
    --color-navbar-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    --color-button-hover: #c0392b;
    --color-link-hover: var(--color-accent);
    /* Button Text Color Fix for Light Mode */
    --color-button-text: #ffffff; 
}

/* Dark Mode Variables */
.dark-mode {
    --color-primary: #1c1c1c;
    --color-secondary: #252525;
    --color-text: #ecf0f1;
    --color-text-light: #bdc3c7;
    --color-text-muted: #7f8c8d;
    --color-navbar-bg: rgba(28, 28, 28, 0.95);
    --color-navbar-border: rgba(255, 255, 255, 0.05);
    --color-navbar-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    --color-button-hover: #ff6b6b;
    --color-link-hover: #ff7675;
    /* Button Text Color Fix for Dark Mode */
    --color-button-text: #ffffff;
}

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

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    background-color: var(--color-primary);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    scroll-behavior: smooth; 
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Spacing/Centering Classes */
.mt-4 { margin-top: 20px; } 
.mt-5 { margin-top: 40px; }
.text-center-wrapper {
    text-align: center;
    margin-top: 30px; 
}


/* ---------------------------------- */
/* 1.1 Preloader */
/* ---------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-text {
    font-family: var(--font-primary);
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-accent);
    background: linear-gradient(to top, var(--color-accent) 50%, var(--color-text-muted) 50%);
    background-size: 100% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: fillup 1.5s infinite alternate;
}

@keyframes fillup {
    0% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}


/* ---------------------------------- */
/* 2. Typography and Links */
/* ---------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--color-text-light);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    text-transform: uppercase;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 10px auto 0;
}

h3.section-subtitle {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-accent);
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

/* ---------------------------------- */
/* 3. Navigation Bar (Liquid Glass Effect & Layout) */
/* ---------------------------------- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--color-navbar-bg);
    border-bottom: 1px solid var(--color-navbar-border);
    box-shadow: var(--color-navbar-shadow);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}

#navbar .container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent);
    z-index: 10; 
    position: relative; /* Added for ::after element */
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 45%; 
}

.nav-left {
    justify-content: flex-end; 
    padding-right: 20px;
}

.nav-right {
    justify-content: flex-start;
    padding-left: 20px;
}

.nav-links a {
    margin: 0 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 5px 0;
    position: relative;
    color: var(--color-text); 
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0;
}

.nav-controls button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-text);
    padding: 5px;
    margin-left: 15px;
    transition: transform 0.2s, color var(--transition-speed);
}

.nav-controls button:hover {
    color: var(--color-accent);
    transform: scale(1.1);
}

.hamburger {
    display: none;
}

/* Mobile Menu Styling */
#mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-secondary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
}

#mobile-menu.active {
    /* max-height is set via JS based on content height */
}

#mobile-menu a {
    padding: 15px 20px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-text-muted);
}

#mobile-menu a:last-child {
    border-bottom: none;
}


/* ---------------------------------- */
/* 4. Stylish Sections & Layout */
/* ---------------------------------- */

.stylish-section {
    padding: var(--padding-lg);
    overflow: hidden;
    position: relative;
}

.alt-bg {
    background-color: var(--color-secondary);
}

/* Universal Card Hover Animation */
.hover-scale-card {
    transition: transform 0.3s ease-in-out, box-shadow var(--transition-speed);
}

.hover-scale-card:hover {
    transform: scale(1.03); 
    box-shadow: 0 8px 25px rgba(var(--color-accent-rgb), 0.2); 
}


/* Buttons and CTA - FIXED Legibility Issue */
.cta-button, .secondary-button, .text-link {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--color-accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background-color var(--transition-speed), color var(--transition-speed), transform 0.3s;
    cursor: pointer;
    text-align: center;
}

.cta-button {
    background-color: var(--color-accent);
    color: var(--color-button-text); /* Ensure high contrast text */
    border-radius: 50px;
    box-shadow: var(--shadow-subtle);
}

.cta-button:hover {
    background-color: var(--color-button-hover);
    border-color: var(--color-button-hover);
    color: var(--color-button-text); /* Keep text color fixed on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--color-accent-rgb), 0.3);
}

.secondary-button {
    background: none;
    color: var(--color-accent);
    border-radius: 50px;
}

.secondary-button:hover {
    background-color: var(--color-accent);
    color: var(--color-button-text); /* Ensure high contrast text on hover */
    transform: translateY(-3px);
}

.small-button {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.text-link {
    border: none;
    padding: 0;
    color: var(--color-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0 auto;
}

/* ---------------------------------- */
/* 5. Section Specific Styling */
/* ---------------------------------- */

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
}

.hero-content h1 {
    font-size: 5rem;
    color: #fff;
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* About Section - ADJUSTED PADDING TO REMOVE GAP WITH NEXT SECTION */
#about {
    padding: 100px 0 0; /* Removed bottom padding */
    overflow: hidden;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 100px; /* Added margin for internal spacing */
}
.about-image-wrapper {
    max-width: 100%;
    overflow: hidden;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block; 
    border-radius: 20px;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s;
}

.about-text {
    /* Ensure text alignment is default (left) on desktop */
    text-align: left; 
}
/* NEW: Ensure button is correctly aligned on desktop */
.about-text .booking-button {
    margin-top: 20px;
    /* Inline-block default will align left with the text */
}


/* Upcoming Album Section - ADJUSTED PADDING TO COVER GAP */
#upcoming-album {
    padding: 0; /* Remove all padding to allow hero image to fill the entire vertical space */
    overflow: hidden;
    position: relative;
}

.upcoming-album-hero {
    height: 50vh; 
    min-height: 400px;
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    /* Ensure no margins push the element down */
    margin-bottom: 60px; /* Space between hero and song samples */
    margin-top: 0;
}

.upcoming-album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text contrast */
    display: flex;
    align-items: center;
}

.upcoming-album-overlay .container {
    color: #fff;
    z-index: 2;
}

.album-hero-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.album-hero-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.upcoming-songs-content {
    /* Container to hold the song samples below the hero image */
    padding-top: 0; 
}

.upcoming-songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.song-embed-card {
    background-color: var(--color-primary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.song-embed-card iframe {
    margin-top: 15px;
}

.album-release-info {
    text-align: center;
    font-style: italic;
    color: var(--color-text-muted);
    margin-top: 30px;
    font-size: 1.1rem;
    /* UPDATED: Added padding below the text for spacing */
    padding-bottom: 40px; 
}


/* Music Section (Albums) */
.music-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.album-card {
    background-color: var(--color-primary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    text-align: center;
}

.album-card img {
    width: 100%;
    max-width: 250px; 
    height: auto;
    border-radius: 5px;
    margin: 0 auto 15px;
    display: block;
}

/* Videos Section */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    margin: 0 auto 30px;
    max-width: 900px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Listen Section */
.stream-links-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.stream-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-subtle);
    min-width: 150px;
    font-weight: 600;
    background-color: var(--color-primary);
    color: var(--color-text);
}
.stream-link i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--color-text);
    transition: color 0.3s;
}

.stream-link:hover i {
    color: var(--color-accent); /* Keep icon visible on hover */
}
.apple-music:hover i { color: #f9435a; }
.spotify:hover i { color: #1DB954; }
.youtube-music:hover i { color: #FF0000; }
.bandcamp:hover i { color: #000000; }
.dark-mode .bandcamp:hover i { color: #fff; }
.amazon:hover i { color: #FF9900; }
.soundcloud:hover i { color: #FF3300; }


/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.event-card {
    background-color: var(--color-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
}

.event-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.event-details {
    padding: 20px;
}

.event-details h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--color-accent);
}

.event-details p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--color-text-light);
}

.event-details a.small-button {
    margin-top: 15px;
}


/* Sponsor Section - ADJUSTED FOR ICON ANIMATION */
.sponsors-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 30px;
}

.sponsors-logos i {
    font-size: 3rem; 
    color: var(--color-text-light); /* Base color */
    opacity: 0.8; 
    transition: color 0.3s, opacity 0.3s, transform 0.3s;
    cursor: pointer; 
}

.sponsors-logos i:hover {
    color: var(--color-accent); /* Change color on hover */
    opacity: 1;
    transform: scale(1.2); /* Scale up on hover */
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--color-text-muted);
    background-color: var(--color-primary);
    color: var(--color-text);
    border-radius: 5px;
    font-family: var(--font-secondary);
}

.contact-info p i {
    color: var(--color-accent);
    margin-right: 10px;
}

.social-icons {
    margin: 20px 0;
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 1.8rem;
    color: var(--color-text-light);
    transition: color 0.3s, transform 0.3s; 
}

.social-icons a:hover {
    color: var(--color-accent);
    transform: scale(1.2); 
}


/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ---------------------------------- */
/* 7. Animations */
/* ---------------------------------- */
/* Fade in Up Animation (applied via JS) */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up.delay-200 { transition-delay: 0.2s; }
.fade-in-up.delay-400 { transition-delay: 0.4s; }


/* ---------------------------------- */
/* 8. Responsiveness */
/* ---------------------------------- */
@media (max-width: 1100px) {
    .nav-left, .nav-right {
        max-width: 40%;
    }
    .nav-links a {
        margin: 0 10px;
    }
}

@media (max-width: 992px) {
    /* Navbar */
    .nav-left, .nav-right {
        display: none;
    }
    
    .logo {
        position: static;
        transform: none;
        text-align: left;
        flex-grow: 1;
        margin-left: 0;
        /* UPDATED: Mobile Header Text */
        font-size: 1.8rem;
    }

    /* UPDATED: Mobile Header Text - shows full title */
    .logo::after {
        content: " Artist | Musician";
        font-family: var(--font-secondary);
        font-size: 1.1rem;
        font-weight: 400;
        color: var(--color-text-light);
        margin-left: 5px;
    }

    .hamburger {
        display: block;
        margin-left: 20px;
    }

    /* Layout Grids */
    .about-grid {
        grid-template-columns: 1fr;
        margin-bottom: 60px; /* Adjust margin for smaller screens */
    }
    
    /* UPDATED: Booking Button Alignment on Mobile (Centered) */
    .about-text {
        text-align: center; /* Center text on mobile */
    }
    .about-text .booking-button {
        /* Center button by treating it as a block element with auto margins */
        display: block;
        margin: 20px auto 0; 
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .music-slider {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 30px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 500px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .stylish-section {
        padding: 60px 0;
    }
    h2.section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .upcoming-album-hero {
        height: 30vh;
        min-height: 250px;
    }
    .album-hero-title {
        font-size: 2.5rem;
    }
}