/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #8B7355;
    --accent-color: #C4A484;
    --text-color: #333;
    --light-bg: #f8f6f3;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    height: 35px;
    width: 35px;
    border-radius: 4px;
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-transform: uppercase;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('IMG_1573.jpg') 65% 15%/cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10rem;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.hero-location {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary-color);
}

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

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--white);
}

.btn-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}


.duo-page .about-content {
    grid-template-columns: 1fr;
}

.duo-page .about-image {
    width: 100%;
}

.duo-page .about-image img {
    display: block;
    width: 100%;
    height: auto;
}

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

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-text .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-color);
}

/* Teaching Section */
.teaching {
    background: var(--light-bg);
}

.teaching-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.teaching-intro .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.teaching-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.teaching-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    padding-top: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

.teaching-credentials {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.teaching-credentials h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-align: center;
}

.teaching-credentials p {
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: center;
}

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

/* Gallery Section */
.gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-overlay p {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

/* Media Section */
.media {
    background: var(--light-bg);
}

.media-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.video-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-item h3 {
    margin-top: 1rem;
    text-align: center;
    font-size: 1.5rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-link {
    text-align: center;
    margin-top: 3rem;
}

/* Video Carousel */
.video-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 5px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-slide h3 {
    margin-top: 1rem;
    text-align: center;
    font-size: 1.5rem;
}

.carousel-btn {
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot:hover {
    background: var(--accent-color);
}

.carousel-dot.active {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .video-carousel {
        flex-direction: column;
    }

    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }

    .carousel-btn:hover {
        transform: translateY(-50%) scale(1.1);
    }
}

/* Performances Section */
.performances {
    background: var(--white);
}

.performances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.performance-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.performance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.performance-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.performance-date .month {
    font-size: 1.5rem;
    font-weight: 600;
}

.performance-date .season {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.performance-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.performance-details .ensemble {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.performance-details .description {
    color: var(--text-color);
    font-size: 0.95rem;
}

.past-performances {
    text-align: center;
    padding: 3rem 2rem;
}

.past-performances h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.venue-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.venue-list li {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    color: var(--secondary-color);
}

/* Calendar Integration Styles */
.loading-message,
.calendar-error,
.no-events {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.calendar-error {
    color: #721c24;
    background: #f8d7da;
    border-radius: 5px;
}

.no-events {
    color: var(--secondary-color);
    font-style: italic;
}

.ticket-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.ticket-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    background: var(--light-bg);
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.contact-item p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link span {
    font-weight: 500;
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 700px;
    margin: 3rem auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.form-group label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

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

.form-submit {
    margin-top: 1rem;
    cursor: pointer;
    border: 2px solid var(--secondary-color);
    background: var(--secondary-color);
    color: var(--white);
}

.form-submit:hover {
    background: transparent;
    color: var(--secondary-color);
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-divider {
    text-align: center;
    margin: 3rem 0;
    position: relative;
}

.contact-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e0e0e0;
}

.contact-divider span {
    position: relative;
    background: var(--light-bg);
    padding: 0 1.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--white);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

footer p {
    font-size: 0.9rem;
    margin: 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .teaching-features {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .performances-grid {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Page Transition Styles */
.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Content - adds padding for navbar on non-home pages */
.page-content {
    padding-top: 120px;
    min-height: calc(100vh - 200px);
}

/* Logo link styling */
.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
}

.logo a:hover {
    opacity: 0.9;
}

/* Active navigation link */
.nav-menu a.active {
    color: var(--accent-color);
}

/* Page transition overlay for smooth navigation */
.page-transitioning {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Theme Switcher */
#theme-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

#theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

#theme-toggle svg {
    color: white;
}

#theme-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    min-width: 180px;
}

#theme-panel.active {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#theme-panel h4 {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #333;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #333;
    text-decoration: none;
}

.theme-option:last-child {
    margin-bottom: 0;
}

.theme-option:hover {
    background: #e8e8e8;
}

.theme-option.active {
    border-color: var(--secondary-color);
    background: rgba(139, 115, 85, 0.1);
}

.theme-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    #theme-switcher {
        bottom: 1rem;
        right: 1rem;
    }

    #theme-toggle {
        width: 45px;
        height: 45px;
    }
}


/* Duo Page */
body.duo-locked {
    overflow: hidden;
    height: 100vh;
}

.duo-hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    background: #000;
}

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

.duo-hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 2.25rem;
    width: 44px;
    height: 44px;
    transform: translateX(-50%);
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8rem;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.duo-hero-scroll::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.95);
    border-bottom: 2px solid rgba(255, 255, 255, 0.95);
    transform: rotate(45deg);
    margin-top: -2px;
}

.duo-hero-scroll:hover {
    transform: translateX(-50%) translateY(2px);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.duo-page .about-content {
    grid-template-columns: 1fr;
}

.duo-page .about-text {
    margin-top: 0;
}

