:root {
    --bg-color: #F9F7F2;
    /* Cream/Off-white */
    --text-color: #4A4A4A;
    /* Dark Grey */
    --accent-color: #8da399;
    /* Muted Olive Green */
    --gold-color: #C5A059;
    /* Muted Gold */
    --white: #FFFFFF;
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Playfair Display', serif;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent body scroll */
}

body {
    background-color: transparent;
    /* Changed from var(--bg-color) to show parallax bg */
    color: var(--text-color);
    font-family: var(--font-serif);
}

/* Scroll Snap Container */
.snap-container {
    height: 100dvh;
    /* Dynamic Viewport Height for mobile */
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.snap-section {
    height: 100dvh;
    /* Dynamic Viewport Height for mobile */
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0;
    /* Removed padding to ensure full bleed */
}

/* Video Section */
.video-section {
    background-color: var(--bg-color);
    /* Beige instead of black */
    /* Center the wrapper */
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 9 / 16;
    max-height: 100dvh;
    /* Dynamic height */
    max-width: calc(100dvh * (9 / 16));
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Same media query fix as SVGs */
@media (max-aspect-ratio: 9/16) {
    .video-wrapper {
        width: 100%;
        max-width: 100vw;
        height: auto;
        max-height: calc(100vw * (16 / 9));
    }
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure 100% video is visible */
}

/* Content Sections */
.content-section {
    background-color: var(--bg-color);
    padding: 2rem;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.content-wrapper {
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

/* Typography */
.script-font {
    font-family: var(--font-script);
    color: var(--gold-color);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.serif-font {
    font-family: var(--font-serif);
    font-weight: 600;
}

.subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.big-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.details {
    font-style: italic;
    color: var(--gold-color);
}

.time {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.address {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.2s, background-color 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.btn:active {
    transform: scale(0.95);
}

/* Dividers */
.icon-divider,
.divider-heart {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin: 1.5rem 0;
}

.divider-heart {
    font-size: 2rem;
}

/* Overlay */
#enter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out;
}

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

.overlay-content h1 {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.pulse-circle {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto;
    cursor: pointer;
    animation: pulse 2s infinite;
    position: relative;
    opacity: 0.8;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(141, 163, 153, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(141, 163, 153, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(141, 163, 153, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(141, 163, 153, 0);
    }
}

/* Modal Styles */
/* Modal Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    /* Higher than everything */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.modal-content {
    background: var(--bg-color);
    padding: 1.5rem;
    /* Reduced padding for mobile */
    border-radius: 20px;
    width: 85%;
    /* 85% of screen width */
    max-width: 500px;
    /* Slightly larger max-width */
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--accent-color);
    max-height: 85dvh;
    /* Use dvh and leave more room (15% gap) */
    /* Prevent overflow on small screens */
    display: flex;
    flex-direction: column;

    /* Animation: Center -> Width -> Height */
    animation: modalOpen 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes modalOpen {
    0% {
        clip-path: inset(50% 50% 50% 50%);
    }

    40% {
        clip-path: inset(49% 0 49% 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

.bank-info-scroll {
    flex: 1;
    /* Take remaining space */
    min-height: 0;
    /* Enable internal scrolling in flex container */
    overflow-y: auto;
    text-align: left;
    margin-top: 1rem;
    /* Custom scrollbar for aesthetics */
    scrollbar-width: thin;
    padding-right: 5px;

    /* Clear readable font */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.bank-block {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bank-block h3 {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    font-family: var(--font-serif);
    /* Keep headers consistent with theme? Or simple? Keeping serif for headers, sans for data. */
}

.bank-block p {
    font-size: 1rem;
    /* Slightly larger for readability */
    margin-bottom: 0.5rem;
    word-break: break-all;
    /* Ensure long IBANs don't break layout */
    line-height: 1.4;
    color: #333;
    /* Darker black for contrast */
}

.address-small {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.bank-link {
    color: var(--gold-color);
    font-weight: bold;
    text-decoration: underline;
}

.modal-content h2 {
    font-family: var(--font-serif);
    color: var(--gold-color);
    margin-bottom: 1.5rem;
}

.bank-info {
    text-align: left;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.2rem;
    /* Slighly larger */
    width: 40px;
    /* larger touch target */
    height: 40px;
    line-height: 40px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    z-index: 10;
}

/* Floating Music FAB */
.floating-fab {
    position: fixed;
    top: 20px;
    left: 20px;
    /* Upper Left as requested */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--text-color);
}

.hidden {
    display: none !important;
}

/* Player Mockup */
.player-mockup {
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.track-info {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
}

.track-info .artist {
    font-size: 0.7rem;
    color: #888;
}

.progress-bar {
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin-bottom: 0.5rem;
    position: relative;
}

.progress-bar .fill {
    width: 30%;
    height: 100%;
    background: var(--accent-color);
}

/* Animations Logic */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.snap-section.active .fade-in {
    opacity: 1;
    transform: translateY(0);
}



/* --- SVG Parallax & Content Sections --- */

/* Fixed Background Container */
#parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    /* Behind everything */
    background-image: url('images/Content-vector_coty&lex/Content-vector_coty&lex_1.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* SVG Content Sections */
.svg-section {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* Prevent overflow if ratio calculation is slightly off */
}

/* Wrapper to enforce 1080x1920 (9:16) aspect ratio */
.svg-wrapper {
    position: relative;
    width: 100%;
    height: 100%;

    /* Logic: Force aspect ratio of 9/16. 
       Limit width so it doesn't exceed the aspect ratio when height is filled. 
       Limit height so it doesn't exceed aspect ratio when width is filled. */
    aspect-ratio: 9 / 16;
    max-height: 100dvh;
    /* Dynamic height */
    max-width: calc(100dvh * (9 / 16));
    /* Width restricted by height */

    /* Fallback/Adjustment for mobile where width is the constraint */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hotspot-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* Above the SVG image */
    /* pointer-events: none; Remove this when you have clickable elements inside, or set pointer-events: auto on the children */
}

.hotspot-link {
    position: absolute;
    display: block;
    z-index: 20;
    cursor: pointer;
    /* Tap highlight color for mobile */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    /* Slight radius for better feel */
}

/* Visual feedback on press */
.hotspot-link:active {
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Debug style - can be removed or commented out */
.hotspot-debug {
    /* border: 2px solid red; */
    /* background-color: rgba(255, 0, 0, 0.2); */
}

/* Ensure the wrapper also respects width constraint on narrow screens */
@media (max-aspect-ratio: 9/16) {
    .svg-wrapper {
        width: 100%;
        max-width: 100vw;
        height: auto;
        max-height: calc(100vw * (16 / 9));
    }
}

.svg-content {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure SVG fits perfectly inside the 9:16 wrapper */
    display: block;
    mix-blend-mode: multiply;
    /* Removes white background */
}