/* ========================================
   NEW HUMAN MUSIC - Studio 54 Aesthetic
   ======================================== */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --yellow: #F5A623;
    --yellow-hover: #FFB840;
    --black: #000000;
    --dark: #0a0a0a;
    --darker: #050505;
    --white: #ffffff;
    --purple: #9B59B6;
    --coral: #E74C3C;
    --gray: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Impact, 'Arial Black', sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
}

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

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

/* ========================================
   Navigation
   ======================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--black);
    border-bottom: 1px solid rgba(245, 166, 35, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 130px;
}

.logo img {
    height: 112px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu li a {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--yellow);
    transition: width 0.3s ease;
}

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

.nav-menu li a.active {
    color: var(--yellow);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--yellow);
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 130px;
    background-color: var(--black);
}

.hero img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-dark {
    background-color: var(--darker);
    max-width: 100%;
    padding-left: calc((100% - 1400px) / 2 + 2rem);
    padding-right: calc((100% - 1400px) / 2 + 2rem);
}

.section-title {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1;
    letter-spacing: 0.02em;
}

.section-description {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    max-width: 600px;
    letter-spacing: 0.05em;
}

.sort-indicator {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* ========================================
   Gallery Grid
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.item-title {
    display: block;
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 1.25rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.item-subtitle {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--yellow);
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* Placeholder Colors */
.placeholder-yellow {
    background-color: var(--yellow);
}

.placeholder-purple {
    background-color: var(--purple);
}

.placeholder-coral {
    background-color: var(--coral);
}

.placeholder-dark {
    background-color: var(--gray);
}

.placeholder-yellow .gallery-overlay,
.placeholder-purple .gallery-overlay,
.placeholder-coral .gallery-overlay,
.placeholder-dark .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Booking Section
   ======================================== */
.booking-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 200px;
}

.booking-info {
    text-align: left;
    max-width: 600px;
}

.booking-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--yellow);
    color: var(--black);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 2px solid var(--yellow);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--yellow);
}

/* Booking Form */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 2rem 0 0;
}

.booking-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.booking-form .form-group label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.booking-form .form-group input,
.booking-form .form-group select,
.booking-form .form-group textarea {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

.booking-form .form-group input::placeholder,
.booking-form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.booking-form .form-group input:focus,
.booking-form .form-group select:focus,
.booking-form .form-group textarea:focus {
    border-color: var(--yellow);
    background-color: rgba(245, 166, 35, 0.05);
}

.booking-form .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F5A623' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.booking-form .form-group select option {
    background-color: var(--black);
    color: var(--white);
}

.booking-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.booking-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.booking-form .submit-button {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 1.25rem 2rem;
    background-color: var(--yellow);
    color: var(--black);
    border: 2px solid var(--yellow);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.booking-form .submit-button:hover {
    background-color: transparent;
    color: var(--yellow);
}

@media (max-width: 600px) {
    .booking-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Contact Section
   ======================================== */
.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 800px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 0.9rem;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-item a,
.contact-item span {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item a:hover {
    color: var(--yellow);
}

/* ========================================
   Footer
   ======================================== */
.main-footer {
    background-color: var(--black);
    padding: 4rem 2rem;
    border-top: 1px solid rgba(245, 166, 35, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-text {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 130px;
        left: 0;
        right: 0;
        background-color: var(--black);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(245, 166, 35, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section-dark {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .section-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        padding: 0 0.25rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo img {
        height: 80px;
    }

    .hero {
        padding-top: 145px;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .section-dark {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .gallery-item {
        border-radius: 4px;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling offset for fixed nav */
section[id] {
    scroll-margin-top: 130px;
}

/* ========================================
   Instagram Feed
   ======================================== */
.instagram-feed {
    width: 100%;
    min-height: 400px;
}

/* ========================================
   About Page
   ======================================== */
.about-page {
    min-height: calc(100vh - 200px);
    padding: 180px 2rem 6rem;
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    animation: fadeInUp 0.8s ease-out;
}

.about-text {
    margin-top: 2rem;
}

.about-text p {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.about-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-page {
        padding: 150px 1.5rem 4rem;
    }

    .about-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .about-page {
        padding: 120px 1rem 3rem;
    }

    .about-text p {
        font-size: 1rem;
    }
}

/* ========================================
   Contact Slide-Out Panel
   ======================================== */
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1998;
}

.contact-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background-color: var(--black);
    border-left: 1px solid rgba(245, 166, 35, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1999;
    overflow-y: auto;
}

.contact-panel.active {
    transform: translateX(0);
}

.contact-panel-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(245, 166, 35, 0.3);
    color: var(--yellow);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-panel-close:hover {
    background-color: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}

.contact-panel-content {
    padding: 5rem 2.5rem 2.5rem;
}

.contact-panel-title {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.contact-panel-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--yellow);
    background-color: rgba(245, 166, 35, 0.05);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F5A623' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background-color: var(--black);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 1.25rem 2rem;
    background-color: var(--yellow);
    color: var(--black);
    border: 2px solid var(--yellow);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-button:hover {
    background-color: transparent;
    color: var(--yellow);
}

/* Body lock when panel is open */
body.contact-open {
    overflow: hidden;
}

/* Contact panel responsive */
@media (max-width: 480px) {
    .contact-panel {
        max-width: 100%;
    }

    .contact-panel-content {
        padding: 4rem 1.5rem 1.5rem;
    }

    .contact-panel-title {
        font-size: 2rem;
    }
}
