/* Presentation Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
}

/* Layout - Desktop */
.container {
    display: flex;
    min-height: 100vh;
}

/* Left side - 3D Scene (Fixed) */
.scene-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 50vw;
    height: 100vh;
    z-index: 1;
    /* Allow loading indicator to be positioned relative to this */
}

#canvas-container {
    width: 100%;
    height: 100%;
}

/* Right side - Content (Scrollable) */
.content-container {
    margin-left: 50vw;
    width: 50vw;
    min-height: 100vh;
    /* Content is visible immediately, even before 3D loads */
    opacity: 1;
    animation: fadeIn 0.5s ease-in;
}

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

/* Content Sections */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
}

/* Section 1 - Announcement */
.section-announcement {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(40, 40, 70, 0.95) 100%);
}

.section-announcement .website {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.5);
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

.section-announcement .ornament {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a050, transparent);
    margin: 30px auto;
}

.section-announcement h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(135deg, #f5f0e8 0%, #c9a050 50%, #f5f0e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-announcement .ampersand {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #c9a050;
    margin: 20px 0;
}

.section-announcement .subtitle {
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.7);
    margin-top: 40px;
}

.section-announcement .date {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #c9a050;
    margin-top: 20px;
    letter-spacing: 0.2em;
}

/* Section 2 - Location */
.section-location {
    background: linear-gradient(135deg, rgba(40, 40, 70, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.section-location h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #c9a050;
}

.location-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 160, 80, 0.3);
    border-radius: 8px;
    padding: 40px;
    max-width: 400px;
    text-align: center;
}

.location-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #f5f0e8;
}

.location-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.8);
}

location-card .time {
    font-size: 1.5rem;
    color: #c9a050;
    margin-top: 20px;
    font-weight: 500;
}

.location-card .date {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: rgba(245, 240, 232, 0.8);
    margin-top: 10px;
}

/* Section 3 - Form */
.section-form {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(40, 40, 70, 0.95) 100%);
}

.section-form h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #c9a050;
}

.form-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 160, 80, 0.3);
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: rgba(245, 240, 232, 0.7);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 160, 80, 0.3);
    border-radius: 4px;
    color: #f5f0e8;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c9a050;
}

.form-group select option {
    background: #1a1a2e;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #c9a050, #d4b366);
    border: none;
    border-radius: 4px;
    color: #1a1a2e;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 160, 80, 0.3);
}

/* Section 4 - Blank/Thank you */
.section-blank {
    background: linear-gradient(135deg, rgba(40, 40, 70, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.section-blank h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #c9a050;
    text-align: center;
}

.section-blank p {
    font-size: 1.3rem;
    color: rgba(245, 240, 232, 0.7);
    margin-top: 20px;
    text-align: center;
}

.section-blank .info-text {
    max-width: 500px;
    text-align: left;
}

.section-blank .info-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: left;
}

.section-blank .info-text a {
    color: #c9a050;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 160, 80, 0.3);
    transition: border-color 0.3s;
}

.section-blank .info-text a:hover {
    border-bottom-color: #c9a050;
}

/* Map intro section */
.section-map-intro {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(40, 40, 70, 0.95) 100%);
}

.section-map-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #c9a050;
    text-align: center;
}

/* Closing section */
.section-closing {
    background: linear-gradient(135deg, rgba(40, 40, 70, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.section-closing h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #c9a050;
    text-align: center;
}

.section-closing p {
    font-size: 1.3rem;
    color: rgba(245, 240, 232, 0.7);
    margin-top: 20px;
    text-align: center;
}

/* Progress indicator - Desktop */
.progress-dots {
    position: fixed;
    right: calc(50vw + 30px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(201, 160, 80, 0.3);
    border: 1px solid rgba(201, 160, 80, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.progress-dot.active {
    background: #c9a050;
    transform: scale(1.3);
}

.progress-dot:hover {
    background: rgba(201, 160, 80, 0.6);
}

/* Loading screen - minimized since 3D loading indicator is used */
/* Loading indicator - only covers 3D scene area */
#loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    display: none;  /* Hidden - using 3D loading indicator instead */
}

#loading p {
    display: none;  /* Hidden - using 3D loading indicator instead */
}

/* ============================================
   MOBILE LAYOUT - Option A: Full-screen 3D with overlay
   ============================================ */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    /* 3D scene fills entire viewport */
    .scene-container {
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1;
    }

    /* Content scrolls OVER the 3D scene with transparent background */
    .content-container {
        position: relative;
        margin-left: 0;
        width: 100vw;
        z-index: 10;
        pointer-events: none;  /* Allow clicks to pass through to 3D */
    }

    .section {
        min-height: 100vh;
        padding: 40px 25px;
        pointer-events: auto;  /* Restore pointer events for content */
        /* Semi-transparent background overlay */
        background: linear-gradient(
            180deg,
            rgba(26, 26, 46, 0.85) 0%,
            rgba(26, 26, 46, 0.7) 50%,
            rgba(26, 26, 46, 0.5) 100%
        );
        backdrop-filter: blur(2px);
    }

    /* First section (announcement) - minimal overlay to show 3D */
    .section-announcement {
        background: linear-gradient(
            180deg,
            rgba(26, 26, 46, 0.6) 0%,
            rgba(26, 26, 46, 0.3) 40%,
            transparent 100%
        );
        backdrop-filter: none;
        justify-content: flex-start;
        padding-top: 15vh;
        min-height: 100vh;
    }

    .section-announcement h1 {
        font-size: 2.5rem;
        letter-spacing: 0.2em;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    }

    .section-announcement .ampersand {
        font-size: 2.2rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    .section-announcement .ornament {
        margin: 20px auto;
        box-shadow: 0 0 10px rgba(201, 160, 80, 0.5);
    }

    .section-announcement .subtitle {
        font-size: 1rem;
        letter-spacing: 0.3em;
        margin-top: 25px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    .section-announcement .date {
        font-size: 2rem;
        margin-top: 15px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    /* Other sections need more solid background for readability */
    .section-location,
    .section-form,
    .section-info,
    .section-closing,
    .section-blank {
        background: linear-gradient(
            180deg,
            rgba(26, 26, 46, 0.92) 0%,
            rgba(40, 40, 70, 0.88) 50%,
            rgba(26, 26, 46, 0.92) 100%
        );
        backdrop-filter: blur(8px);
    }

    .section-location h2,
    .section-form h2 {
        font-size: 1.6rem;
        letter-spacing: 0.15em;
    }

    .location-card,
    .form-container {
        padding: 25px 20px;
        background: rgba(26, 26, 46, 0.8);
        backdrop-filter: blur(10px);
    }

    .location-card h3 {
        font-size: 1.4rem;
    }

    .location-card p {
        font-size: 1.1rem;
    }

    /* Progress dots - bottom center on mobile */
    .progress-dots {
        position: fixed;
        right: auto;
        left: 50%;
        top: auto;
        bottom: 20px;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 12px;
        z-index: 100;
        background: rgba(26, 26, 46, 0.6);
        padding: 10px 20px;
        border-radius: 20px;
        backdrop-filter: blur(10px);
    }

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

    .progress-dot.active {
        transform: scale(1.4);
    }
}

/* Small phones */
@media (max-width: 480px) {
    .section-announcement h1 {
        font-size: 2rem;
        letter-spacing: 0.15em;
    }

    .section-announcement .ampersand {
        font-size: 1.8rem;
        margin: 15px 0;
    }

    .section-announcement .date {
        font-size: 1.6rem;
    }

    .section-announcement .subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.2em;
    }

    .section {
        padding: 30px 20px;
    }

    .location-card,
    .form-container {
        padding: 20px 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 1rem;
    }
}

/* Map Section - fills viewport */
.section-map {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    padding: 0;
    background: rgba(26, 26, 46, 0.95);
    min-height: 100vh;
}

.section-map h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #c9a050;
}

.section-map .location-card {
    margin-bottom: 30px;
}

/* Iframe container fills the section */
.map-iframe-container {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.map-iframe-container iframe {
    width: 100%;
    flex: 1;
    min-height: 0;
    border: none;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    /* CSS grayscale filter to match dither aesthetic */
    filter: grayscale(100%) contrast(1.2);
    border: 2px solid rgba(245, 240, 232, 0.3);
}

/* Fallback map styling when SMap is loaded */
.map-container > div {
    width: 100%;
    height: 100%;
}

/* Section Up */
.section-up {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(40, 40, 70, 0.95) 100%);
}

.section-up h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #c9a050;
    text-align: center;
}

.section-up p {
    font-size: 1.3rem;
    color: rgba(245, 240, 232, 0.7);
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 1024px) {
    .section-map {
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(10px);
    }

    .section-up {
        background: linear-gradient(
            180deg,
            rgba(26, 26, 46, 0.85) 0%,
            rgba(40, 40, 70, 0.75) 50%,
            rgba(26, 26, 46, 0.85) 100%
        );
        backdrop-filter: blur(5px);
    }

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