:root {
    /* Color Palette - Navy & Gold */
    --primary-navy: #0F172A;
    --primary-light: #1E293B;
    --accent-gold: #D4AF37;
    --accent-gold-hover: #FCC200;
    --text-light: #F8FAFC;
    --text-dark: #0F172A;
    --text-muted: #94A3B8;

    /* Theme Variables - Default (Dark) */
    --bg-body: var(--primary-navy);
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-glass: rgba(15, 23, 42, 0.8);
    --text-main: var(--text-light);
    --text-secondary: var(--text-muted);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    /* Theme Variables - Light */
    --bg-body: #F8FAFC;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.9);
    --text-main: var(--text-dark);
    --text-secondary: #475569;
    --border-color: rgba(15, 23, 42, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

    section {
        padding: 40px 0 !important;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

.text-gold {
    color: var(--accent-gold);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-gold);
    color: var(--primary-navy);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: transparent;
    color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

/* Glassmorphism */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

header.scrolled {
    background: var(--bg-glass);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

nav {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

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

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../public/img/hero-bg.jpg');
    /* Need placeholder */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax */
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin: 1.5rem 0 2.5rem;
    color: var(--text-light);
    /* Always light in hero if over dark bg */
}

/* Mobile Nav */
.hamburger {
    display: none;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        height: calc(100vh - 80px);
        width: 100%;
        background: var(--bg-body);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    /* Mobile Hero Image Optimization */
    .hero {
        background-attachment: scroll !important;
        /* Remove parallax on mobile */
        background-size: cover;
        background-position: center 30%;
        /* Adjust to show more of the performers */
        min-height: 100vh;
        /* Ensure full viewport coverage */
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 !important;
    }

    .hero h1 {
        font-size: 2.5rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }
}

/* Extra mobile optimization for smaller screens */
@media (max-width: 480px) {
    .hero {
        background-attachment: scroll !important;
        background-size: cover;
        /* Keep cover but adjust position */
        background-position: 40% center;
        /* Focus more on the left-center where performers are */
        min-height: 100vh;
    }

    .hero-content {
        padding: 1rem;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2rem !important;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
        /* Stronger shadow for better readability */
    }

    .hero p {
        font-size: 0.9rem !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }
}

/* Event Cards - Using table layout for maximum Safari compatibility */
.event-card {
    display: table;
    width: 100%;
    table-layout: fixed;
    padding: 1.5rem;
    margin-bottom: 1rem;
    -webkit-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

.event-card:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.event-date {
    display: table-cell;
    width: 90px;
    vertical-align: middle;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 1rem;
}

[data-theme="light"] .event-date {
    border-right-color: rgba(15, 23, 42, 0.1);
}

.event-month {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
    color: #D4AF37;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.event-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-year {
    display: block;
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.25rem;
    font-weight: 500;
}

.event-details {
    display: table-cell;
    vertical-align: middle;
    padding-left: 1rem;
    padding-right: 1rem;
}

.event-details h3 {
    margin: 0;
    font-size: 1.2rem;
}

.event-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    margin-top: 0.25rem;
}

.event-actions {
    display: table-cell;
    width: 140px;
    vertical-align: middle;
    text-align: right;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
}

/* Tablet and Medium Mobile Devices */
@media (max-width: 768px) {
    .event-card {
        padding: 1rem;
        margin-bottom: 0.875rem;
    }

    .event-date {
        width: 80px;
        padding-right: 0.75rem;
    }

    .event-month {
        font-size: 1rem;
    }

    .event-day {
        font-size: 1.4rem;
    }

    .event-year {
        font-size: 0.7rem;
    }

    .event-details {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .event-details h3 {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 0.35rem;
    }

    .event-details p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .event-actions {
        width: 120px;
    }

    .btn-sm {
        padding: 0.65rem 1rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

/* Small Mobile Devices */
@media (max-width: 600px) {
    .event-card {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .event-date {
        width: 70px;
        padding-right: 0.5rem;
    }

    .event-month {
        font-size: 0.9rem;
    }

    .event-day {
        font-size: 1.2rem;
    }

    .event-year {
        font-size: 0.65rem;
    }

    .event-details {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .event-details h3 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    .event-details p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .event-actions {
        width: 100px;
    }

    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
}

/* Extra Small Mobile Devices - Stacked layout */
@media (max-width: 480px) {
    .event-card {
        display: block;
        padding: 0.75rem;
        margin-bottom: 0.625rem;
    }

    .event-date {
        display: block;
        width: 100%;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        text-align: left;
    }

    [data-theme="light"] .event-date {
        border-bottom-color: rgba(15, 23, 42, 0.1);
    }

    .event-month {
        display: inline;
        font-size: 0.9rem;
        margin-left: 0;
        margin-right: 0.4rem;
    }

    .event-day {
        display: inline;
        font-size: 1.5rem;
        font-weight: 700;
    }

    .event-year {
        display: inline;
        font-size: 0.75rem;
        margin-left: 0.5rem;
        margin-top: 0;
        opacity: 0.7;
    }

    .event-details {
        display: block;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 0.75rem;
    }

    .event-details h3 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
        line-height: 1.3;
    }

    .event-details p {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .event-actions {
        display: block;
        width: 100%;
        text-align: left;
    }

    .btn-sm {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        text-align: center;
        min-height: 44px;
        /* Minimum touch target size */
    }
}

/* ========================================
   GALLERY SLIDESHOW
   ======================================== */

.gallery-slideshow {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.slideshow-container {
    position: relative;
    width: 100%;
    /* Modern Aspect Ratio */
    aspect-ratio: 16 / 10;
    /* Fallback for older browsers (Safari < 15) */
    padding-bottom: 62.5%;
    /* 10/16 = 62.5% */
    height: 0;
    /* Ensures padding determines height in fallback mode */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-color);
    border: 1px solid var(--border-color);
    background-color: var(--primary-light);
    /* Loading placeholder */
}

@supports (aspect-ratio: 16 / 10) {
    .slideshow-container {
        aspect-ratio: 16 / 10;
        padding-bottom: 0;
        height: auto;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Slide Caption */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    padding: 2rem 2rem 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    z-index: 3;
}

/* Navigation Dots */
.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--text-main);
}

.dot:hover {
    background: var(--accent-gold);
    transform: scale(1.2);
}

.dot.active {
    background: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    border-color: var(--accent-gold);
    opacity: 1;
    transform: scale(1.2);
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .slideshow-container {
        aspect-ratio: 4 / 3;
        padding-bottom: 75%;
        /* 3/4 = 75% */
        border-radius: 8px;
    }

    @supports (aspect-ratio: 4 / 3) {
        .slideshow-container {
            aspect-ratio: 4 / 3;
            padding-bottom: 0;
        }
    }

    .slide-caption {
        font-size: 1rem;
        padding: 1.5rem 1rem 1rem;
    }

    .slideshow-dots {
        gap: 0.6rem;
        margin-top: 1.25rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .slideshow-container {
        aspect-ratio: 1 / 1;
        padding-bottom: 100%;
        /* 1/1 = 100% */
        border-radius: 6px;
    }

    @supports (aspect-ratio: 1 / 1) {
        .slideshow-container {
            aspect-ratio: 1 / 1;
            padding-bottom: 0;
        }
    }

    .slide-caption {
        font-size: 0.9rem;
        padding: 1.25rem 0.75rem 0.75rem;
        letter-spacing: 0.3px;
    }

    .slideshow-dots {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .dot {
        width: 10px;
        height: 10px;
        /* Larger touch target */
        padding: 6px;
        background-clip: content-box;
    }
}

/* Pause indicator on hover (desktop only) */
@media (hover: hover) {
    .slideshow-container:hover {
        box-shadow: 0 25px 70px var(--shadow-color);
    }
}/* Contact Form Styles */
.booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

select.form-control {
    cursor: pointer;
}

select.form-control option {
    background: var(--primary-navy);
    color: var(--text-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    grid-column: 1 / -1;
    background: var(--accent-gold);
    color: var(--primary-navy);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.form-status {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

@media (max-width: 600px) {
    .booking-form {
        grid-template-columns: 1fr;
    }
}
