/* Variables */
:root {
  --primary-color: #2c2c2c;
  --accent-color: #8c7851;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
}

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

html, body {
    scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

body {
    font-family: sans-serif;
    overflow: hidden; /* Hide main body scrollbar, let container handle it */
}

/* --- LOADING SCREEN --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: #000;
    color: #fff;
    z-index: 10010;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

#loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.85);
}

.loading-bar {
    width: 160px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.loading-percent {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
}

/* --- COVER PAGE STYLES --- */
#cover-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: #1a1a1a url('/assets/img/cover.jpg') center center / cover no-repeat;
    color: #fff;
    z-index: 9999; /* Must be on top of everything */

    /* Flexbox to center content */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* THE TRANSITION — visibility hidden after fade completes to unblock touch on mobile */
    transition: opacity 1.2s ease 0.3s, transform 1.4s ease 0.3s, visibility 0s linear 1.6s;
}

/* Dark overlay for text readability */
#cover-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* Content fade in transition */
.cover-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeContentIn 1s ease-out forwards;
    animation-delay: 0.5s;
    padding: 0 30px;
    position: relative;
    z-index: 2; /* Sit above the ::before overlay */
}

@keyframes fadeContentIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in animation for sections when scrolling */
.section-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.8s ease-out, transform 1.8s ease-out;
}

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

.arrum-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.8s ease-out, transform 1.8s ease-out;
}

.arrum-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.profile-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.8s ease-out, transform 1.8s ease-out;
}

.profile-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* This class will be added by JS to slide the cover up */
#cover-page.is-open {
    opacity: 0; /* Fade out */
    transform: translateY(-30px); /* Subtle upward drift */
    pointer-events: none; /* Allow clicking through to content */
    visibility: hidden; /* Fully remove from interaction after transition */
}

/* --- Cover Block 1: Wedding Info --- */
.cover-wedding {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cover-label {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.couple-name {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1.3;
    margin: 12px 0;
}

.cover-date {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Cover Block 2: Guest Info --- */
.cover-guest {
    margin-bottom: 32px;
}

.guest-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 8px 0 12px;
    color: #fff;
    line-height: 1.3;
}

/* Apology / name-mistake text */
.name-mistake {
    margin: 0 10% 0;
}

.name-mistake p {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* Open Invitation Button */
#btn-open {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 14px 40px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    backdrop-filter: blur(6px);
    transition: background 0.3s, border-color 0.3s;
}

#btn-open:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
}

/* THE CONTAINER (The Parent) */
.scroll-container {
    height: 100dvh; /* Dynamic Viewport Height */
    width: 100%;
    overflow-y: scroll; /* Enable vertical scrolling */

    /* Snap Logic */
    scroll-snap-type: y mandatory; /* Force snapping */
    scroll-behavior: smooth;
    overflow-y: hidden; /* Locked by default! */
    scrollbar-width: none; /* Firefox */
}

.scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

/* When unlocked, allow scroll */
.scroll-container.unlocked {
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

/* THE SECTIONS (The Children) */
section {
    height: 100dvh; /* Take up exactly one full screen */
    width: 100%;
    
    /* Align logic */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    
    /* Visual Centering */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* --- SECTION: INTRO --- */
.section-intro {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
}

.section-content {
    padding: 0 30px;
    max-width: 500px;
}

.section-label {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.couple-name-intro {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1.3;
    margin: 12px 0;
}

.intro-date {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

/* Countdown */
.countdown {
    display: inline-flex;
    gap: 12px;
    margin-top: 8px;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.countdown-number {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    line-height: 1;
    padding: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    width: 100%;
}

.countdown-label {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.countdown-today {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 16px;
}

/* --- SCROLL DOWN HINT (intro section) --- */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2.5s ease-in-out infinite;
    opacity: 0.5;
}

.scroll-hint-text {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.scroll-hint svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 0.3;
    }
}

/* --- SECTION: AR-RUUM --- */
.section-arrum {
    background: #f8f5f0;
    color: var(--primary-color);
}

.arrum-content {
    max-width: 480px;
    padding: 0 30px;
}

.arrum-bismillah {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 24px;
    direction: rtl;
}

.arrum-arabic {
    font-size: 1.3rem;
    line-height: 2.2;
    color: var(--primary-color);
    direction: rtl;
    margin-bottom: 24px;
}

.arrum-translation {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.arrum-source {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-color);
}

/* --- SECTION: PROFILE (Groom & Bride) --- */
.section-profile {
    position: relative;
    color: #fff;
    overflow: hidden;
    background-color: #2c2c2c;
}

.section-groom {
    background: #2c2c2c url('/assets/img/groom.jpg') center center / cover no-repeat;
}

.section-bride {
    background: #2c2c2c url('/assets/img/bride.jpg') center center / cover no-repeat;
}

.profile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.profile-content {
    position: relative;
    z-index: 1;
}

.profile-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
}

.profile-parents {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

/* --- DOT NAVIGATION SIDEBAR --- */
.dot-nav {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.dot-nav.nav-hidden {
    opacity: 0;
    pointer-events: none;
}

.dot-nav-item {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot-nav-item:hover {
    background: rgba(255, 255, 255, 0.6);
}

.dot-nav-item.active {
    background: rgba(255, 255, 255, 0.9);
    height: 18px;
    border-radius: 3px;
}

/* --- DEDICATED AUDIO BUTTON (left of hamburger) --- */
.btn-audio {
    position: fixed;
    top: 16px;
    right: 68px;
    z-index: 10001;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.4s ease, background 0.3s;
}

.btn-audio svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.btn-audio:hover {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

/* Show play icon by default, hide pause */
.btn-audio .audio-icon-pause {
    display: none;
}

.btn-audio .audio-icon-play {
    display: block;
}

/* When playing: show pause, hide play */
.btn-audio.playing .audio-icon-pause {
    display: block;
}

.btn-audio.playing .audio-icon-play {
    display: none;
}

/* Hidden before cover opens */
.btn-audio.nav-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Hidden when hamburger nav is open */
.btn-audio.audio-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Subtle pulse animation when playing */
.btn-audio.playing {
    animation: audioPulse 4s ease-in-out infinite;
}

@keyframes audioPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
}

/* --- HAMBURGER TRIGGER --- */
.nav-trigger {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10001;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.4s ease, background 0.3s;
}

.nav-trigger svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.nav-trigger:hover {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

.nav-trigger.nav-hidden {
    opacity: 0;
    pointer-events: none;
}

.nav-trigger.trigger-hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- SIDE NAVIGATION PANEL --- */
.side-nav {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 160px;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-nav.nav-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Keep nav-hidden for cover state (before invitation is opened) */
.side-nav.nav-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Nav header (MENU label + close button inline) */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 10px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-header-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* Close button */
.nav-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s, background 0.2s;
}

.nav-close svg {
    width: 14px;
    height: 14px;
}

.nav-close:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
}

/* Nav items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* Icons */
.nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Labels */
.nav-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Music toggle */
.nav-music {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-top: 4px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s;
}

.nav-music:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-music.playing {
    color: #fff;
}

.nav-music .nav-icon {
    width: 16px;
    height: 16px;
}

.nav-music .nav-label {
    color: inherit;
}

/* Nav music: play/pause icon toggle */
.nav-music .nav-icon-pause {
    display: none;
}

.nav-music .nav-icon-play {
    display: block;
}

.nav-music.playing .nav-icon-pause {
    display: block;
}

.nav-music.playing .nav-icon-play {
    display: none;
}

/* --- LANGUAGE SWITCHER --- */
#lang-switcher {
    position: fixed !important;
    top: 20px !important;
    right: 120px !important;
    left: auto !important;
    z-index: 10001 !important;
    background: transparent;
    padding: 8px 15px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Mobile: move to top-left */
@media (max-width: 640px) {
    #lang-switcher {
        right: auto !important;
        left: 8px !important;
    }
}

#lang-switcher a {
    text-decoration: none;
    color: #fff;
    opacity: 0.6;
    transition: opacity 0.3s;
}

#lang-switcher a.active {
    font-weight: bold;
    opacity: 1;
    text-decoration: underline;
}

#lang-switcher .divider {
    margin: 0 5px;
    opacity: 0.4;
}
/* --- SECTION: EVENT --- */
.section-event {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
    color: #fff;
}

.event-content {
    max-width: 500px;
    padding: 0 30px;
}

.event-date {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
    margin: 12px 0 8px;
}

.event-time {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.event-venue {
    margin: 24px 0;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.venue-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.venue-address {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.event-buttons {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Buttons on light backgrounds (RSVP, modal) */
.section-rsvp .btn-primary,
.modal-content .btn-primary {
    background: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
}

.section-rsvp .btn-primary:hover,
.modal-content .btn-primary:hover {
    background: #7a6944;
    border-color: #7a6944;
}

/* Centered button wrapper */
.event-btn-center {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- SECTION: RSVP --- */
.section-rsvp {
    background: #f8f5f0;
    color: var(--primary-color);
}

.rsvp-content {
    min-width: 60%;
    max-width: 600px;
    padding: 0 30px;
}

.rsvp-heading {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #555;
    margin: 12px 0 24px;
}

.rsvp-form {
    width: 100%;
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-family: var(--font-serif);
    font-size: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background: #fff;
    color: var(--primary-color);
    transition: border-color 0.3s;
}

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

.toggle-group {
    display: flex;
    gap: 12px;
}

.toggle-btn {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 12px 20px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    background: #fff;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn:hover {
    background: rgba(140, 120, 81, 0.1);
}

.toggle-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: block;
}

/* --- SECTION: GIFT --- */
.section-gift {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
}

.gift-content {
    max-width: 480px;
    padding: 0 30px;
}

.gift-message {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 20px 0 28px;
}

/* --- MODAL --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
}

/* Bank card */
.bank-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8f5f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: left;
}

.bank-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.bank-details {
    flex: 1;
    min-width: 0;
}

.bank-name {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 2px;
}

.bank-account-name {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.bank-account-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bank-account-number {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--primary-color);
}

/* Copy button (icon only) */
.btn-copy {
    position: relative;
    border: none;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: rgba(0, 0, 0, 0.06);
}

.btn-copy:active {
    transform: scale(0.9);
}

.btn-copy-icon {
    width: 13px;
    height: 13px;
    color: var(--accent-color);
}

/* Floating tooltip */
.copy-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    color: #fff;
    background: var(--primary-color);
    padding: 5px 10px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--primary-color);
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.modal-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 24px 0;
}

.gift-form {
    text-align: left;
}

/* --- SECTION: WISHES --- */
.section-wishes {
    background: #f8f5f0;
    color: var(--primary-color);
}

.wishes-content {
    max-width: 900px;
    padding: 0 30px;
}

.wishes-empty {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: #999;
    margin-top: 20px;
}

.wishes-carousel {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    display: flex;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 32px 0 20px;
}

.wishes-carousel::-webkit-scrollbar {
    display: none;
}

.wishes-page {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 4px;
}

@media (max-width: 640px) {
    .wishes-grid {
        grid-template-columns: 1fr;
    }
}

.wish-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wish-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.wish-meta {
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wish-name {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.wish-date {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: #999;
}

.wishes-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.wish-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.wish-dot.active {
    background: var(--accent-color);
    width: 24px;
    border-radius: 4px;
}

/* --- SECTION: PHOTOS --- */
.section-photos {
    background: #f8f5f0;
    color: var(--primary-color);
}

.photos-content {
    max-width: 760px;
    padding: 0 30px;
    width: 100%;
}

.photos-empty {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: #999;
    margin-top: 40px;
}

/* Main carousel */
.photos-main {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 28px auto 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}

.photos-slider {
    display: flex;
    width: 100%;
    will-change: transform;
}

.photos-slider.animating {
    transition: transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.photos-slide {
    flex: 0 0 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.photos-slide img {
    max-width: calc(100% - 1px);
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.photos-hint {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    margin-top: 10px;
    letter-spacing: 0.02em;
}

/* Arrows */
.photos-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, opacity 0.3s;
    opacity: 0;
    padding: 0;
}

.photos-main:hover .photos-arrow {
    opacity: 1;
}

.photos-arrow:hover {
    background: rgba(0, 0, 0, 0.45);
}

.photos-arrow svg {
    width: 20px;
    height: 20px;
}

.photos-prev {
    left: 12px;
}

.photos-next {
    right: 12px;
}

/* Filmstrip */
.photos-filmstrip {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    padding: 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.photos-filmstrip::-webkit-scrollbar {
    display: none;
}

.filmstrip-thumb {
    flex: 0 0 auto;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.45;
    border: 2px solid transparent;
    padding: 0;
    background: transparent;
    transition: opacity 0.3s, border-color 0.3s, transform 0.3s;
}

.filmstrip-thumb:hover {
    opacity: 0.75;
}

.filmstrip-thumb.active {
    opacity: 1;
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.filmstrip-thumb img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Lightbox */
.photos-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.photos-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px 20px;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    transition: opacity 0.25s ease;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.3s;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lightbox-arrow svg {
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .photos-arrow {
        width: 34px;
        height: 34px;
        opacity: 1;
    }

    .photos-arrow svg {
        width: 16px;
        height: 16px;
    }

    .photos-prev {
        left: 8px;
    }

    .photos-next {
        right: 8px;
    }

    .filmstrip-thumb {
        height: 32px;
        border-radius: 4px;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
    }

    .lightbox-arrow svg {
        width: 20px;
        height: 20px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}

/* --- SECTION: CLOSING --- */
.section-closing {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
    color: #fff;
}

.closing-content {
    max-width: 560px;
    padding: 0 30px;
}

.closing-message {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 20px 0 32px;
}

.couple-name-closing {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 8px;
}

.closing-families {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.closing-credit {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.closing-credit p {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
