/*==================================
    0. GLOBAL & VARIABLES
====================================*/
:root {
    --color-primary-dark: #121212; /* Deep Charcoal/Black */
    --color-secondary-dark: #1e1e1e; /* Slightly lighter charcoal for contrast */
    --color-text-light: #f4f4f4; /* Off-white for readability */
    --color-accent-gold: #c39d67; /* Muted Gold/Bronze */
    --color-accent-hover: #e0b47a; /* Lighter gold for hover */
    --font-primary: 'Poppins', sans-serif;
    --section-padding: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

.section {
    padding: var(--section-padding);
}

.dark-section {
    background-color: var(--color-secondary-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gold-text {
    color: var(--color-accent-gold);
}

/* Helper Class for centering buttons below sections */
.text-center {
    text-align: center;
}

hr {
    border: none;
    border-top: 1px solid var(--color-secondary-dark);
    width: 80%;
    margin: 0 auto;
}

/*==================================
    1. NAVIGATION & LOGO
====================================*/
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: transparent; 
    transition: background-color 0.3s ease, padding 0.3s ease;
    z-index: 1000;
}

#navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.95); /* Semi-transparent dark background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 15px 40px;
}

#navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--color-accent-gold);
}

.btn-gold-link {
    background-color: var(--color-accent-gold);
    color: var(--color-primary-dark) !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
}

#menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--color-accent-gold);
    font-size: 2rem;
    cursor: pointer;
}

/* ICON TOGGLE LOGIC (for SVG method) */
#menu-toggle {
    position: relative; /* Important for positioning the container */
    overflow: hidden; /* Hide the icon container overflow */
    width: 32px; /* Set fixed size for the button */
    height: 32px;
    padding: 0;
    line-height: 0; /* Fixes any extra spacing from the SVG */
}

.menu-icon-container {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    /* Container height is double the icon size (32px + 32px) */
    height: 64px; 
    flex-direction: column;
    transition: transform 0.3s ease; /* Animate the slide */
}

/* Default state: Show the Menu Icon, hide the Close Icon */
.icon-menu { 
    /* The ph-list icon */
    transform: translateY(0);
}
.icon-close { 
    /* The ph-x icon */
    transform: translateY(0);
}


/* Toggled state: Slide the container up to reveal the 'X' */
#menu-toggle.is-open .menu-icon-container {
    /* Slide up by the height of one icon (32px) */
    transform: translateY(-32px); 
}

/*==================================
    2. HERO SECTION
====================================*/
#hero {
    /* Placeholder image URL */
    background-image: url('../images/hero/djsika-hero.jpg'); 
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); 
}

.hero-content {
    z-index: 10;
}

.logo-main {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-light);
    letter-spacing: 5px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--color-accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/*==================================
    3. BUTTONS (CTAs)
====================================*/
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 4px;
}

.btn-gold {
    background-color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    color: var(--color-primary-dark);
}

.btn-gold:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    box-shadow: 0 0 15px rgba(195, 157, 103, 0.5);
}

.btn-dark-outline {
    background-color: transparent;
    border-color: var(--color-text-light);
    color: var(--color-text-light);
}

.btn-dark-outline:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary-dark);
    border-color: var(--color-text-light);
}

/*==================================
    4. ABOUT SECTION
====================================*/
#about {
    background-color: var(--color-secondary-dark); 
}

.about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #cccccc;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}


/* ABOUT SECTION (EXPANDED DETAILS) */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
    text-align: left;
}

.detail-card {
    background-color: var(--color-primary-dark);
    padding: 30px;
    border: 1px solid var(--color-secondary-dark);
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.detail-card:hover {
    border-color: var(--color-accent-gold);
}

.detail-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.detail-card .service-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.detail-card ul {
    list-style: none;
    padding-left: 0;
}

.detail-card ul li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    color: #cccccc;
    font-weight: 300;
}
.detail-card ul li:last-child {
    border-bottom: none;
}
.detail-card ul li strong {
    font-weight: 600;
    color: var(--color-text-light);
}


/*==================================
    5. SERVICES SECTION (Cards)
====================================*/
#services {
    background-color: var(--color-primary-dark);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-card {
    background-color: var(--color-secondary-dark);
    padding: 40px 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(195, 157, 103, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--color-text-light);
}

.service-card p {
    color: #b0b0b0;
    margin-bottom: 25px;
}

.service-link {
    color: var(--color-accent-gold);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.service-link:hover {
    text-decoration: underline;
}

/*==================================
    6. TESTIMONIALS SECTION
====================================*/
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--color-primary-dark);
    padding: 40px;
    border-radius: 8px;
    position: relative;
    border-left: 4px solid var(--color-accent-gold);
}

.quote-icon {
    font-size: 2.5rem;
    position: absolute;
    top: 15px;
    left: 15px;
    opacity: 0.3; /* Subtle background accent */
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--color-text-light);
}

.client-name {
    display: block;
    font-weight: 600;
    color: var(--color-accent-gold);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/*==================================
    7. MIXES / MUSIC SECTION (Custom Player)
====================================*/
.mixes-intro {
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 40px;
    font-style: italic;
}

.audio-player-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-primary-dark);
    border: 2px solid var(--color-accent-gold);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 20px rgba(195, 157, 103, 0.2);
}

.player-info {
    display: flex;
    align-items: center;
}

.track-details {
    display: flex;
    flex-direction: column;
}

.track-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 5px;
}

.track-artist {
    font-size: 0.9rem;
    color: var(--color-accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-controls {
    display: flex;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--color-text-light);
    /* font-size: 1.5rem; - Removed, use SVG size instead */
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    padding: 5px;
}

/* Ensure general control buttons (like forward/backward) scale SVGs correctly */
.control-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

.control-btn:hover {
    color: var(--color-accent-gold);
}

/* Base style for the play/pause button */
.play-pause-btn {
    /* Reset font size since we're using SVG now */
    font-size: initial; 
    color: var(--color-accent-gold);
}
/* Set explicit size for the play/pause SVGs */
.play-pause-btn svg {
    width: 32px;
    height: 32px;
}

/* ICON TOGGLE LOGIC for Player (SVG Stacking Transition)  */
.play-pause-btn {
    /* Overwrite styles to enable stacking */
    position: relative; 
    overflow: hidden; 
    width: 32px; /* Define fixed size */
    height: 32px;
    padding: 0;
    line-height: 0;
}

.player-icon-container {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    height: 64px; /* Stacked icons (2 x 32px) */
    flex-direction: column;
    transition: transform 0.2s ease; 
}

/* Toggled state: Slide up to reveal the Pause icon */
.play-pause-btn.playing .player-icon-container {
    transform: translateY(-32px); /* Slide up one icon height */
}


.soundcloud-link {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.soundcloud-link svg {
    width: 20px;
    height: 20px;
}

/*==================================
    7. MIXES / MUSIC SECTION 
====================================*/
.audio-player-container {
    /* Ensure flex alignment is correct for the new volume control */
    align-items: center; 
}

.player-controls {
    /* Make sure controls are wrapped if there are too many items */
    flex-wrap: wrap; 
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Move volume control to the right on desktop */
    margin-left: auto;
}

.volume-slider {
    /* Style for the slider itself (the track) */
    width: 80px; 
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--color-secondary-dark);
    border-radius: 4px;
    cursor: pointer;
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Hide the slider by default, show on hover/focus over the control area */
.volume-slider {
    width: 0;
    opacity: 0;
    pointer-events: none;
}

.volume-control:focus-within .volume-slider,
.volume-control:focus-within .volume-slider {
    width: 80px; /* Expand it */
    opacity: 1;
    pointer-events: auto;
}

/* Custom thumb style (for gold accent) */
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent-gold);
    box-shadow: 0 0 5px rgba(195, 157, 103, 0.5);
    margin-top: -4px; /* Adjust vertical positioning */
}
.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent-gold);
    box-shadow: 0 0 5px rgba(195, 157, 103, 0.5);
    border: none;
}

/* Muted state style (Optional, if you want the icon to change color when muted) */
.volume-toggle-btn .volume-icon.is-muted {
    fill: #999999; 
    /* color: #999999; if using an icon font */
}


/* Responsive adjustment for controls on mobile */
@media (max-width: 1000px) {
    /* Override the mobile layout change from your existing CSS to position Volume control correctly */
    .audio-player-container {
        /* Re-establish row direction on large screen to keep volume control visible */
        flex-direction: row; 
        flex-wrap: wrap; /* Allow wrapping */
        padding: 20px 20px 10px; /* Adjust padding if needed */
    }
    .player-info {
        flex-direction: row; /* Keep info side-by-side */
        order: 1;
        width: 100%; /* Take full width */
        justify-content: center;
        margin-bottom: 10px;
    }
    .player-controls {
        order: 2;
        margin-left:60px; /* Center controls */
        justify-content: 200px;
    }
    .volume-control {
        order: 3;
        width: 100%; /* Take full width on stacked layout */
        justify-content: 200px;
        margin-right: 10px 0 0; /* Add top margin */
    }
    .soundcloud-link {
        order: 4;
        width: 100%;
        justify-content: center;
        padding-top: 10px;
        border-top: 1px solid var(--color-primary-dark);
    }
    
    /* Make the slider permanently visible and longer on mobile/tablet */
    .volume-slider {
        width: 100px; 
        opacity: 1;
        pointer-events: auto;
    }
}

/*==================================
    8. GALLERY SECTION
====================================*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

/* Specific styling for the wide item in the gallery */
.gallery-item:nth-child(4) { 
    grid-column: span 2;
}

.gallery-item {
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    filter: brightness(0.8);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover {
    filter: brightness(1);
    transform: scale(1.02);
    z-index: 5;
}

/*==================================
    9. CONTACT SECTION
====================================*/
.contact-flex {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-form-container {
    flex: 2;
}

.contact-details {
    flex: 1;
    background-color: var(--color-secondary-dark);
    padding: 30px;
    border-radius: 6px;
}

.contact-form-container h3,
.contact-details h3 {
    color: var(--color-accent-gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.booking-form .form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.booking-form input,
.booking-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--color-primary-dark);
    border: 1px solid var(--color-secondary-dark);
    color: var(--color-text-light);
    border-radius: 4px;
    font-family: var(--font-primary);
}

.booking-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-details .detail-line {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #cccccc;
}

.contact-details .detail-line i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.social-links-contact a {
    font-size: 1.8rem;
    margin-right: 20px;
    color: var(--color-text-light);
}

.social-links-contact a:hover {
    color: var(--color-accent-gold);
}


/*==================================
    10. FOOTER
====================================*/
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--color-primary-dark);
    border-top: 1px solid var(--color-secondary-dark);
    font-size: 0.8rem;
    color: #999999;
}

/*==================================
    11. SCROLL ANIMATIONS (Custom)
====================================*/

.scroll-reveal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.7s ease-out;
}

/* Fade In Up Animation */
.fade-in-up {
    transform: translateY(30px);
}

.scroll-reveal.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Initial state for hero content is slightly different */
#hero .hero-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}
#hero .hero-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/*==================================
    12. MEDIA QUERIES (Responsiveness)
====================================*/
@media (max-width: 1000px) {
    /* Mixes Section */
    .audio-player-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .player-info {
        flex-direction: column;
    }
    .player-controls {
        order: 1;
    }
    .soundcloud-link {
        order: 2;
        justify-content: center;
    }
    /* About Section */
    .about-flex {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        margin-bottom: 30px;
    }
    .about-image img {
        max-width: 300px;
    }
    .details-grid {
        grid-template-columns: 1fr;
    }
    /* Contact Section */
    .contact-flex {
        flex-direction: column;
        gap: 30px;
    }
    .contact-details {
        order: -1;
    }
    .booking-form .form-group {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Gallery Section */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 200px;
    }
    .gallery-item:nth-child(4) {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    /* Mobile Navigation */
    #navbar {
        padding: 15px 20px;
    }
    
    .nav-links {
        position: absolute; /* Make it overlay the content */
        top: 70px; /* Below the navbar */
        left: 0;
        width: 100%;
        background-color: var(--color-primary-dark);
        flex-direction: column; /* Stack links vertically */
        border-top: 1px solid var(--color-secondary-dark);
        
        /* Start hidden, allowing JS to toggle visibility */
        display: none; 
    }
    
    .nav-links li {
        margin: 0;
        border-bottom: 1px solid var(--color-secondary-dark);
    }
    .nav-links li:last-child {
        border-bottom: none;
    }
    .nav-links a {
        display: block;
        padding: 15px 20px;
        text-align: left;
    }
    
    
    #menu-toggle {
        display: block;
    }


    
    .logo-main {
        font-size: 3rem;
    }
    .tagline {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    .service-card {
        padding: 30px 15px;
    }
}



