/* ====================================
   CSS Reset & Global Styles
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #d4af37; /* Gold */
    --accent-dark: #a08628;
    --text-color: #1a1a1a;
    --light-gray: #f5f5f5;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Gallery title styling for visibility over hero */
.gallery-section .section-title {
    color: var(--secondary-color);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 
                 0 2px 4px rgba(0, 0, 0, 0.6);
    padding: 1rem 2rem;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* ====================================
   Navigation
   ==================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-brand h1,
.navbar.scrolled .nav-link {
    color: var(--primary-color);
}

.navbar.scrolled .hamburger span {
    background: var(--primary-color);
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--secondary-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
    color: var(--secondary-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ====================================
   Hero Section - Fixed Background
   ==================================== */

/* Fixed background image */
.hero-background {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fixed gradient overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    pointer-events: none;
}

/* Scrolling hero content */
.hero-content {
    height: 100vh;
    min-height: 600px;
    position: relative;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease;
    text-align: center;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.3s backwards;
    text-align: center;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   Gallery Section - Scrolling Over Hero
   ==================================== */

.gallery-section {
    margin-top: 0; /* No margin needed since hero is now relative */
    padding: 6rem 0;
    background: transparent; /* Transparent so hero shows through */
    position: relative;
    z-index: 1;
}

.gallery-grid {
    column-count: 4;
    column-gap: 0;
    line-height: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
    break-inside: avoid;
}

.gallery-item.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
    transition: var(--transition);
}

.gallery-item:hover img {
    opacity: 0.85;
}

/* ====================================
   Lightbox
   ==================================== */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    line-height: 1;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ====================================
   About Section
   ==================================== */

.about-section {
    padding: 6rem 0;
    background: var(--light-gray);
    position: relative;
    z-index: 2; /* Higher z-index to appear above hero */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.headshot {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* ====================================
   Acts Section
   ==================================== */

.acts-section {
    padding: 6rem 0;
    background: var(--secondary-color);
    position: relative;
    z-index: 2; /* Higher z-index to appear above hero */
}

.acts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.act-item {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.act-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.act-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.act-description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: #555;
}

/* ====================================
   Contact Section
   ==================================== */

.contact-section {
    padding: 6rem 0;
    background: var(--light-gray);
    position: relative;
    z-index: 2; /* Higher z-index to appear above hero */
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro p {
    font-size: 1.2rem;
    font-weight: 300;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    padding: 1.2rem 3rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    align-self: center;
}

.submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-status {
    text-align: center;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

/* ====================================
   Footer
   ==================================== */

.footer {
    padding: 2rem 0;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    position: relative;
    z-index: 2; /* Higher z-index to appear above hero */
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    stroke: var(--secondary-color);
}

.footer p {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ====================================
   Responsive Design
   ==================================== */

@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--primary-color);
        text-shadow: none;
    }

    /* Adjust hero for mobile - still fixed but smaller */
    .hero-background {
        height: 100vh;
        min-height: 100vh;
    }

    .hero-background img {
        object-fit: cover;
        object-position: center center;
        width: 100%;
        height: 100%;
    }

    .hero-content {
        height: 100vh;
        min-height: 100vh;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-images {
        flex-direction: column;
        align-items: center;
    }

    .headshot {
        width: 100%;
        max-width: 400px;
    }

    .acts-grid {
        grid-template-columns: 1fr;
    }

    .gallery-section {
        padding: 4rem 0;
    }

    .gallery-grid {
        column-count: initial;
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(2, 1fr);
        grid-auto-columns: 60vw;
        gap: 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 1.5rem;
        height: 70vh;
        max-height: 600px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--accent-color) transparent;
    }

    .gallery-grid::-webkit-scrollbar {
        height: 8px;
    }

    .gallery-grid::-webkit-scrollbar-track {
        background: transparent;
        margin: 0 1.5rem;
    }

    .gallery-grid::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 4px;
    }

    .gallery-item {
        scroll-snap-align: start;
        transform: translateY(0);
        width: 100%;
        height: 100%;
    }

    .gallery-item:nth-child(3n+1) {
        grid-row: span 1;
    }

    .gallery-item:nth-child(3n+2) {
        grid-row: span 2;
    }

    .gallery-item:nth-child(3n+3) {
        grid-row: span 1;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 0.75rem;
    }

    .lightbox-close {
        width: 50px;
        height: 50px;
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .hero-background {
        height: 100vh;
        min-height: 100vh;
    }

    .hero-background img {
        object-fit: cover;
        object-position: center center;
        width: 100%;
        height: 100%;
    }

    .hero-content {
        height: 100vh;
        min-height: 100vh;
        padding: 2rem 1rem;
    }

    .gallery-section,
    .about-section,
    .acts-section,
    .contact-section {
        padding: 4rem 0;
    }

    .about-images {
        flex-direction: column;
        align-items: center;
    }

    .headshot {
        width: 100%;
        max-width: 350px;
    }

    .gallery-grid {
        grid-auto-columns: 75vw;
        gap: 0.5rem;
        padding: 0 1rem;
        height: 60vh;
        max-height: 500px;
    }

    .gallery-item {
        width: 100%;
        height: 100%;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
    }
}

