/* Modern UI Redesign for Guru Music Studio */

 
/* 1. Foundational Styles & Variables
-------------------------------------------------- */
:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #f05a26;
    --primary-hover: #ff7a4d;
    --studio-color: #eb2027;
    --music-color: #676767;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    padding-top: 85px; /* Prevent content from hiding behind fixed navbar */
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 40px; text-align: center; }
h3 { font-size: 1.4rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; }

section {
    padding: 80px 0;
}

/* 2. Components (Buttons, Cards, Forms)
-------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn.whatsapp {
    background-color: #25D366;
}
.btn.whatsapp:hover {
    background-color: #29e770;
}

.card {
    /* Add a distinct, fabric-like pattern to the card background */
    background-color: #1c1c1c;
    background-image: 
        linear-gradient(rgba(30, 30, 30, 0.96), rgba(30, 30, 30, 0.96)),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f05a26' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 8px; /* Optional: to match card corners */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.card h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: #2a2a2a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 3. Layout & Sections
-------------------------------------------------- */
/* Navbar */
.navbar {
    padding: 20px 0;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}
.navbar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links .mobile-book-now {
    display: none; /* Hide on desktop */
}


.nav-actions {
    display: flex;
    align-items: center;
}

.nav-actions .btn {
    padding: 8px 20px;
}

.hamburger {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 2rem;
    height: 0.25rem;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 450px; /* Reduced from 80vh */
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/assets/IMG_1777.jpg') no-repeat center center/cover;
    padding: 100px 0 50px; /* Adjusted padding */
    color: white;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.8);
}

/* Intro Section */
.intro .features-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    text-align: center;
}
.intro .features-list p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Contact Section */
.contact-card {
    text-align: center;
    color: var(--text-primary);
}
.contact-card h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}
.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* 4. Booking Page
-------------------------------------------------- */
.booking-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .booking-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
}

.form-input.invalid {
    border-color: #ff6b6b;
}

/* Custom Checkboxes */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 50px; /* Ensure consistent height */
    font-size: 0.9rem;
}

.checkbox-label:hover {
    background-color: #333;
}

.checkbox-label input { display: none; }

.checkbox-label span {
    height: 20px;
    width: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    display: inline-block;
    margin-right: 12px;
    flex-shrink: 0; /* Prevent the box from shrinking */
    transition: all 0.2s;
}

.checkbox-label input:checked + span {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

/* Slots */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.slot-btn {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.slot-btn:hover {
    background-color: #333;
    border-color: var(--primary-hover);
}
.slot-btn.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(0);
}
.slot-btn:disabled {
    background-color: #2a2a2a;
    color: #555;
    cursor: not-allowed;
    border-color: #333;
}

/* Price & Confirm */
.estimated-price-container {
    margin-top: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 12px;
}
#estimated-price {
    color: var(--primary-color);
}

.confirm-container {
    margin-top: 30px;
    text-align: center;
}
#confirm-booking {
    width: 100%;
    max-width: 350px;
    padding: 14px;
    font-size: 1rem;
}

/* 4. Responsive Design
-------------------------------------------------- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero {
        min-height: auto; /* Let content define height on mobile */
        padding: 80px 0 40px;
        background-attachment: scroll; /* Fix for mobile background stretching */
    }
    .hero.inner-page {
        min-height: auto;
        padding: 60px 20px;
        text-align: center;
    }

    .nav-container {
        justify-content: space-between;
    }

    .navbar h1 {
        font-size: 1.2rem;
        margin-left: -40px; /* Adjust to center with logo */
    }

    .nav-links {
        position: absolute;
        top: 0;
        right: 0;
        height: 100vh;
        width: 60%;
        background-color: var(--surface-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        gap: 40px;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links .mobile-book-now {
        display: block; /* Show on mobile */
    }

    .nav-actions {
        display: none; /* Hide on mobile to avoid clutter, can be added to menu if needed */
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
    }
}

/* Featured Work Slider on Homepage */
.slider-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.slider-wrapper::-webkit-scrollbar {
    display: none;
}
