/* 
   Nostalgia Palette:
   Taupe 03: #e6dac7 (Text)
   Pink 08: #bc9b94
   Brown 02: #947860
   Orange 02: #b57b4a (Accent - Copper)
   Red 01: #a05e54 (Primary - Muted Red)
   Blue 04: #9bbcd0
   Purple 03: #422b2b (Base BG - Deep Brown)
   Black 02: #333333 (Alt BG - Charcoal)
*/

:root {
    --primary-color: #0487E2;
    /* Medium Blue */
    --accent-color: #09B1EC;
    /* Cyan */
    --text-color: #ffffff;
    /* White */
    --bg-color: #0463CA;
    /* Dark Blue Base */
    --alt-bg: #034491;
    /* Deep Blue Alt */
    --transition: all 0.3s ease;
}

/* =========================================
   Global Resets & Typography
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden !important;
    /* Force no horizontal scroll */
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* =========================================
   Custom Scrollbar
   ========================================= */
/* Width */
::-webkit-scrollbar {
    width: 12px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #02234d;
    /* Darker version of Base BG */
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
    border: 2px solid #02234d;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    /* Copper headers */
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   Utilities
   ========================================= */
.text-center {
    text-align: center;
}

/* Strict Mobile Constraints */
@media (max-width: 768px) {

    body,
    html {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .section-title {
        font-size: 2rem !important;
        /* Create more space */
        word-wrap: break-word;
        /* Prevent long words from breaking layout */
    }

    .container {
        padding: 0 15px;
        /* Slightly more breathing room */
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Fix potential form overflow */
    input,
    textarea,
    select {
        max-width: 100%;
        box-sizing: border-box;
        /* Ensure padding doesn't add to width */
    }
}

.container {
    max-width: 1200px;
    width: 100%;
    /* Ensure it spans full width on mobile */
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
    /* Prevent internal spills */
}

.section-padding {
    padding: 80px 0;
    /* Increased padding for better spacing */
    position: relative;
    overflow: hidden;
    /* Fix for divider lines */
    content-visibility: auto;
    /* Skip rendering off-screen content */
    contain-intrinsic-size: 800px;
    /* Prevent scrollbar jumping */
}

/* Enhanced Journey Background */
#journey.bg-light {
    background-color: #ffffff;
    color: #333;
    opacity: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    /* Cyan underline */
    margin: 0 auto 30px auto;
}

.section-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: var(--primary-color);
    /* Primary Blue for refined subtle text on white, Pale Blue on Dark */
}

/* Specific override for dark sections */
#yearbook .section-desc,
.hero .section-desc,
.footer-section .section-desc {
    color: #B0D6F5;
}

/* =========================================
   Shape Dividers (Precise Color Matching)
   ========================================= */
.custom-shape-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.custom-shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider .shape-fill {
    transition: fill 0.3s ease;
}

/*
   TRANSITION MAPPING:
   1. Hero (Red) -> Journey (Charcoal/.bg-light)
      - Hero Bottom Divider needs to be CHARCOAL (#333333)

   2. Journey (Charcoal) -> Events (Deep Brown/Base)
      - No divider? Or Events Top Divider?
      - If Events has Top Divider, it must be CHARCOAL (#333333) to look like Journey hanging down.

   3. Events (Deep Brown) -> Menu (Charcoal/.bg-light)
      - Menu Top Divider must be DEEP BROWN (#422b2b) to look like Events hanging down.

   4. Menu (Charcoal) -> Yearbook (Gradient Start #333333)
      - Yearbook Top Divider must be CHARCOAL (#333333).

   5. Yearbook (Gradient End #1a1a1a) -> Footer (Red)
      - Footer Top Divider must be BLACK (#1a1a1a).
*/

/* Generic Top Divider (Flip 180) */
.divider-top {
    top: -1px;
    transform: rotate(180deg);
}

.divider-bottom {
    bottom: -2px;
}

.divider-top {
    top: -2px;
}

/* Explicit Color Classes for Dividers */
.fill-charcoal .shape-fill {
    fill: #ffffff !important;
}

.fill-deep-brown .shape-fill {
    fill: var(--bg-color) !important;
}

.fill-black-gradient .shape-fill {
    fill: #011E41 !important;
}

.fill-base .shape-fill {
    fill: var(--bg-color);
    /* #422b2b */
}

.fill-journey .shape-fill {
    fill: #ffffff !important;
}


.fill-event-details .shape-fill {
    fill: var(--bg-color) !important;
}

/* Specific Footer Override */
/* Special Case: Footer Top Divider */
.footer-divider {
    top: -1px;
    /* No rotation needed */
    transform: none;
}

.footer-divider .shape-fill {
    fill: #011E41;
}

/* =========================================
   Dark Cinema Theme (Yearbook)
   ========================================= */
/* Event Details Section */
#event-details {
    background: var(--bg-color);
    position: relative;
    margin-bottom: 0;
}

/* Menu Section */
#menu {
    background: #ffffff;
    position: relative;
    margin-top: 0;
    padding-top: 100px;
}

/* Registration Section */
#registration {
    background: #1E88E5;
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 100px;
    padding-bottom: 80px;
}

#registration .section-title {
    color: #ffffff;
    font-size: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#registration .section-desc {
    color: #ffffff;
    font-size: 1.3rem;
    opacity: 0.95;
}

#registration .pricing-info {
    color: #ffffff !important;
    font-size: 1.4rem !important;
}

#registration .pricing-info strong {
    color: #09B1EC;
    font-size: 1.6rem;
}

#registration .btn-primary {
    padding: 18px 50px;
    font-size: 1.3rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

#registration .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Ticket Selection Cards */
.ticket-selection {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.ticket-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 40px 30px;
    width: 280px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ticket-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.ticket-card.featured {
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
}

.ticket-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.ticket-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent-color);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.ticket-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.ticket-card h3 {
    color: #333333;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.ticket-price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
}

.ticket-desc {
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.ticket-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .ticket-selection {
        flex-direction: column;
        align-items: center;
    }

    .ticket-card.featured {
        transform: scale(1);
    }

    .ticket-card.featured:hover {
        transform: translateY(-10px);
    }
}

#yearbook {
    /* Gradient: Deep Blue to Black-Blue */
    background: linear-gradient(180deg, var(--alt-bg) 0%, #011E41 100%);
    color: var(--text-color);
    position: relative;
    padding-top: 100px;
}

#yearbook .section-title {
    color: var(--accent-color);
}

#yearbook .section-desc {
    color: #B0D6F5;
}


/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), #02234d);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 3;
    /* Above canvas and overlay */
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Thread Animation Canvas */
#threadCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* =========================================
   Countdown Timer
   ========================================= */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.time-box {
    background: rgba(4, 99, 202, 0.8);
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    min-width: 80px;
}

.time-box span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    line-height: 1;
}

.time-box small {
    font-size: 0.8rem;
    color: var(--white);
    text-transform: uppercase;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--white);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--bg-color);
}

/* Pulse Animation for Primary CTA */
.pulse-btn {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(9, 177, 236, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(9, 177, 236, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(9, 177, 236, 0);
    }
}

/* Pricing Info */
.pricing-info p {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

/* =========================================
   Passport Stamps (Journey Section)
   ========================================= */
.passport-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 120px;
    margin-top: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 40px;
}

.passport-grid.centered {
    justify-content: center;
}

.passport-stamp {
    width: 220px;
    height: 220px;
    border: 2px solid #81D4FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    transform: rotate(-3deg);
}

/* Make every other stamp rotate differently */
.passport-stamp:nth-child(even) {
    transform: rotate(3deg);
    border-color: #B3E5FC;
}

.passport-stamp:hover {
    transform: scale(1.1) rotate(0deg);
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(9, 177, 236, 0.3);
    z-index: 10;
}

.stamp-content {
    text-align: center;
    text-transform: uppercase;
}

.stamp-content i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stamp-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--bg-color);
    font-weight: 700;
    letter-spacing: 1px;
}

.stamp-content span {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .passport-grid {
        gap: 60px;
        padding: 0 20px;
    }

    .passport-stamp {
        width: 180px;
        height: 180px;
    }

    .stamp-content i {
        font-size: 2.8rem;
    }

    .stamp-content h3 {
        font-size: 1.1rem;
    }
}

/* =========================================
   Info Grid (Event Details)
   ========================================= */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e1e1;
    position: relative;
    overflow: hidden;

    /* 3D Tilt Setup */
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    /* Fast transform for mouse move, include filter for sepia transition */
    will-change: transform, filter;
    /* Hardware Acceleration */
}

.info-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(9, 177, 236, 0.25);
}

/* Dynamic Sheen (Controlled by JS) */
.info-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.info-card:hover::after {
    opacity: 1;
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transform: translateZ(20px);
    /* Parallax Effect */
}

.info-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--bg-color);
    transform: translateZ(10px);
    /* Mild Parallax */
}

.info-card p {
    color: #555555;
    font-size: 1rem;
    transform: translateZ(0);
}

/* Map */
.map-container {
    margin-top: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #333;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
}

/* =========================================
   Menu List
   ========================================= */
.menu-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    /* White */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e1e1;
}

.menu-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
    font-size: 1.1rem;
    color: #333333;
}

.menu-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.menu-list strong {
    color: var(--accent-color);
    /* Gold for emphasis */
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 5px;
}

/* =========================================
   Gallery (Film Strip)
   ========================================= */
/* Film Strip Gallery */
/* Film Strip Gallery */
/* Film Strip Gallery */
/* Film Strip Gallery */
/* Film Strip Gallery */
/* Film Strip Gallery */
.memory-lane-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 30px;
    overflow: visible;
    /* Allow camera to extend on desktop */
    position: relative;
    padding-bottom: 20px;
}

.memory-lane-row {
    position: relative;
    width: 72%;
    /* Original width */
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 10;
}

.camera-wrapper {
    position: absolute;
    right: -200px;
    top: 12%;
    transform: translateY(-50%);
    width: 1900px;
    /* Restored massive width */
    height: auto;
    z-index: 20;
    pointer-events: none;
    display: block;
}

.cinema-camera-prop {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .memory-lane-container {
        flex-direction: column-reverse;
        padding-top: 20px;
        overflow: hidden;
        /* contain layout on mobile */
        justify-content: center;
    }

    .camera-wrapper {
        display: none;
        /* Hide camera on mobile/tablet */
    }

    .memory-lane-row {
        width: 90%;
        /* Wider film strip since camera is gone */
        border-radius: 10px;
        /* Restore radius if desired, or keep 0 */
        min-height: 250px;
        margin: 0 auto;
        /* Center it */
    }

    .cinema-camera-prop {
        transform: rotate(0deg);
    }
}

.film-strip-wrapper {
    width: 100%;
    overflow: hidden;
    background: #000;
    padding: 5px 0;
    border-top: 4px dashed #333;
    /* Sprocket look top */
    border-bottom: 4px dashed #333;
    /* Sprocket look bottom */
    position: relative;
    box-shadow: inset 0 0 20px #000;
    /* Mask edges */
    mask-image: linear-gradient(to right, transparent, black 2%, black 70%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 70%, transparent);
}



.film-track {
    display: flex;
    width: fit-content;
    animation: scroll 20s linear infinite;
    will-change: transform;
    /* Hardware Acceleration */
}

.film-track:hover {
    animation-play-state: paused;
}

.film-slide {
    width: 300px;
    height: 200px;
    margin: 0 10px;
    border: 8px solid #000;
    background: #fff;
    flex-shrink: 0;
    position: relative;
}

.film-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.6) contrast(1.2);
    transition: filter 0.8s ease-in-out;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-300px * 5 - 100px));
    }

    /* Adjust based on width/count */
}

/* Committee / Light Trails */
.committee-list {
    list-style: none;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.hover-trail {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    padding: 15px;
    margin: 10px 0;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.hover-trail:hover {
    color: #fff;
    letter-spacing: 2px;
    border-color: var(--accent-color);
}

/* Special Case: Footer Top Divider */
.footer-divider {
    top: -1px;
    /* No rotation needed */
    transform: none;
}

.footer-divider .shape-fill {
    fill: #011E41;
}

/* =========================================
   Footer
   ========================================= */
.footer-section {
    background: linear-gradient(135deg, var(--primary-color), #02234d);
    color: #ffffff;
    text-align: center;
    padding: 80px 20px 40px;
    position: relative;
    /* Removed transform that was flipping content upside down */
}

.footer-section h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: #ffffff !important;
    /* Force Bright White */
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* improved legibility */
}

.footer-section p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    color: #B0D6F5;
    /* Taupe matches theme */
}

.contact-link {
    display: inline-block;
    font-size: 1.6rem;
    color: #ffffff;
    /* White text */
    padding: 12px 30px;
    border: 2px solid #ffffff;
    /* White border */
    border-radius: 50px;
    /* Pill shape */
    transition: var(--transition);
    background: transparent;
    text-decoration: none;
}

.contact-link:hover {
    background: #ffffff;
    color: var(--primary-color);
    /* Red text on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.copyright {
    margin-top: 40px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   Reservation Page Styles
   ========================================= */
.reservation-section {
    padding: 120px 0;
    min-height: 100vh;
    background: #f4f4f4;
    color: #333;
}

.form-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--bg-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 5px rgba(9, 177, 236, 0.3);
}

.hidden {
    display: none !important;
}

.success-message {
    text-align: center;
    color: green;
}

.error-message {
    text-align: center;
    color: red;
}


/* =========================================
   Animations
   ========================================= */
.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .countdown-container {
        gap: 10px;
    }

    .time-box {
        padding: 10px 15px;
        min-width: 60px;
    }

    .time-box span {
        font-size: 1.5rem;
    }

    .menu-list strong {
        display: block;
        margin-bottom: 5px;
    }

    /* Memory Lane Mobile Adjustments */
    .memory-lane-container {
        flex-direction: column;
        /* Stack vertically if needed, but mainly for better control */
        overflow: hidden;
        /* Contain the camera */
        padding-bottom: 50px;
        /* Space for camera */
    }

    .memory-lane-row {
        width: 100%;
        /* Full width for photos */
    }

    .camera-wrapper {
        display: none;
    }
}

/* =========================================
   NEW: Interactive Features
   ========================================= */

/* 1. Technicolor Reveal */
.sepia-mode {
    filter: sepia(0.8) contrast(1.1) brightness(0.9);
    transition: filter 0.8s ease, transform 0.4s ease;
    will-change: filter;
}

.technicolor-active,
.sepia-mode:hover,
.technicolor-active img {
    filter: none !important;
}

/* Pulse Hint for Technicolor */
@keyframes colorPulse {
    0% {
        filter: sepia(0.8);
    }

    50% {
        filter: sepia(0.3);
    }

    100% {
        filter: sepia(0.8);
    }
}

.technicolor-hint {
    animation: colorPulse 2s infinite ease-in-out;
}


/* 2. Draggable Film Strip */
.film-track {
    /* Override animation for drag control */
    /* We manage animation state in JS now for drag 'pause' */
    cursor: grab;
    cursor: -webkit-grab;
    /* Safari */
    touch-action: pan-y;
    /* Allow vertical scroll, handle horizontal in JS */
    user-select: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
    /* iOS smoothing */
    will-change: transform;
}

.film-track:active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.film-track.manual-mode {
    animation: none !important;
}

.film-track img {
    /* pointer-events: auto; Must allow events for hover effects */
    user-select: none;
    -webkit-user-drag: none;
    /* iOS Safari prevent image selection callout */
    -webkit-touch-callout: none;
}

.film-track.active {
    /* Active state for dragging */
    cursor: grabbing;
    cursor: -webkit-grabbing;
    /* transition: none; Important: No transition during drag for 1:1 movement and seamless wrap */
}

/* Swipe Hint */
.interaction-hint-swipe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    animation: fadeInOut 4s forwards;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.interaction-hint-swipe i {
    color: white;
    font-size: 2rem;
    animation: swipeHand 2s infinite;
}

@keyframes swipeHand {
    0% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(-10px);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


/* 3. Tumbling Stamps */
.passport-stamp {
    /* Add variable for scroll rotation */
    --scroll-rotate: 0deg;
    /* Combine original rotation with scroll rotation */
    transform: rotate(calc(-10deg + var(--scroll-rotate)));
    transition: transform 0.1s linear, box-shadow 0.3s ease;
    /* Fast transform for scroll, smooth for shadow */
}

.passport-stamp:nth-child(even) {
    transform: rotate(calc(10deg + var(--scroll-rotate)));
}

.passport-stamp:hover {
    /* Override scroll rotation on hover for stability */
    transform: scale(1.1) rotate(0deg) !important;
}

/* =========================================
   User Guide (Help Overlay)
   ========================================= */
.guide-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    /* Other styles inherited from unified block above */
}

.guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.guide-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.guide-modal {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 2px solid var(--accent-color);
}

.guide-modal h3 {
    color: var(--bg-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.guide-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    text-align: left;
}

.guide-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.guide-text h4 {
    margin: 0;
    color: var(--bg-color);
    font-size: 1.1rem;
}

.guide-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.guide-close {
    margin-top: 20px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}


/* 4. Expanded Focus Reveal (Hero Section) */
.hero-content {
    cursor: pointer;
    /* Whole area clickable */
    transition: filter 0.5s ease;
}

/* Initial "Out of Focus" State for children, EXCLUDING the hint */
.hero-content>*:not(.focus-hint) {
    transition: all 0.5s ease-out;
    filter: blur(8px);
    opacity: 0.6;
    transform: scale(0.98);
    will-change: filter, opacity, transform;
}

/* Focused State (Applied by JS) */
.hero-content.focused>*:not(.focus-hint) {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
    cursor: default;
}

.hero-content.focused {
    cursor: default;
}

/* Specific delays for staggered reveal */
.hero-content.focused>*:nth-child(1) {
    transition-delay: 0.05s;
}

/* Title */
/* child 2 is hint, handled separately */
.hero-content.focused>*:nth-child(3) {
    transition-delay: 0.1s;
}

/* Subtitle */
.hero-content.focused>*:nth-child(4) {
    transition-delay: 0.2s;
}

/* Countdown */
.hero-content.focused>*:nth-child(5) {
    transition-delay: 0.3s;
}

/* Button */

/* Hide hint when focused */
.hero-content.focused .focus-hint {
    opacity: 0;
    pointer-events: none;
    animation: none;
    /* Stop the blink animation so opacity:0 works */
    transition: opacity 0.5s ease;
}

/* Focus Hint */
.focus-hint {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--accent-color);
    margin-top: -5px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    opacity: 0.8;
    animation: blinkHint 2s infinite;
    pointer-events: none;
}

.focus-hint i {
    margin-right: 8px;
}

@keyframes blinkHint {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

@keyframes lensSnap {
    0% {
        transform: scale(1);
        filter: blur(4px) brightness(1);
    }

    50% {
        transform: scale(1.05);
        filter: blur(0) brightness(1.5);
    }

    /* Flash */
    100% {
        transform: scale(1);
        filter: blur(0) brightness(1);
    }
}

.snap-anim {
    animation: lensSnap 0.4s ease-out forwards;
}

/* =========================================
   Registration & Interaction Updates
   ========================================= */

/* Disabled Interaction Stamp */
.passport-stamp.no-interaction {
    transform: rotate(0deg) !important;
    /* Force straight */
    pointer-events: none;
    /* Disable hover/click triggers */
    animation: none !important;
    transition: none !important;
}

.passport-stamp.no-interaction:hover {
    transform: rotate(0deg) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Reservation Form */


/* Fixed Audio FAB */
.audio-control-fixed {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
}

/* Global Overflow Fix */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Unified Floating Button Style */
.btn-fab,
.guide-btn {
    width: 55px;
    height: 55px;
    background: var(--accent-color);
    /* Unified Background */
    color: var(--primary-color);
    /* Unified Icon Color */
    border-radius: 50%;
    border: 2px solid white;
    /* Unified Border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
}

/* Specific positioning left alone, but visual style unified */
.btn-fab:hover,
.guide-btn:hover {
    transform: scale(1.1);
    background-color: #ffffff;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Reservation Form Styles - Enhanced Professional Design */
.reservation-container {
    max-width: 700px;
    margin: 30px auto 60px;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.6s ease-out;
    scroll-margin-top: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #1E88E5;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
    min-height: 50px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1E88E5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #bdbdbd;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group select:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Required field indicator */
.form-group label::after {
    content: '*';
    color: #e53935;
    margin-left: 4px;
    font-weight: bold;
}

.form-group:has(input:not([required])) label::after,
.form-group:has(textarea:not([required])) label::after,
.form-group:has(select:not([required])) label::after {
    content: '(optional)';
    color: #999;
    font-size: 13px;
    font-weight: normal;
    margin-left: 8px;
}

/* Submit Button */
.form-btn {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 50px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #1E88E5 0%, #1976D2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
    position: relative;
    overflow: hidden;
    display: block;
    width: fit-content;
}

.form-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.form-btn:hover::before {
    width: 300px;
    height: 300px;
}

.form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(30, 136, 229, 0.4);
}

.form-btn:active {
    transform: translateY(-1px);
}

.form-btn:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
    box-shadow: none;
}

/* Status Messages */
#reservation-status {
    padding: 16px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    margin-top: 20px;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#reservation-status.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #4caf50;
}

#reservation-status.error {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #f44336;
}

#reservation-status.hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reservation-container {
        margin: 20px 15px;
        padding: 25px 20px;
        border-radius: 15px;
    }

    .form-group label {
        font-size: 15px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 15px;
        font-size: 16px;
    }

    .form-btn {
        padding: 14px 40px;
        font-size: 16px;
        width: auto;
    }

    /* Fix Footer Overlap */
    .footer-section {
        padding-bottom: 100px;
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
        /* Safe area support */
        /* Make room for fixed audio button */
    }

    .footer-section h2 {
        font-size: 1.8rem;
        /* Prevent overflow */
    }

    .audio-control-fixed {
        bottom: 20px;
        bottom: calc(20px + env(safe-area-inset-bottom));
        /* Safe area support */
        left: 20px;
        /* Ensure it stays in corner */
    }

    /* Mobile Button Targets */
    .ticket-btn,
    .btn-primary {
        width: 100%;
        margin-bottom: 15px;
        /* Spacing between stacked buttons */
        display: block;
        /* Ensure full width behavior */
        text-align: center;
    }

    /* Prevent Layout Thrashing */
    .memory-lane-container {
        overflow: hidden;
        width: 100%;
    }
}

/* =========================================
   Payment Verification Loader
   ========================================= */
.payment-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s ease;
}

.payment-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 25px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: white;
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.loader-subtext {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-top: 10px;
    font-family: 'Lato', sans-serif;
}