/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #c9a96e;
    --gold-light: #e8d5a3;
    --gold-dark: #a88b4a;
    --cream: #faf7f2;
    --cream-dark: #f0ebe0;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray: #666;
    --gray-light: #999;
    --text: #333;
    --text-light: #555;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.hidden {
    display: none !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== TYPOGRAPHY ===== */
.script-font {
    font-family: var(--font-script);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--gold-dark);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--gold);
    margin-bottom: 15px;
}

/* ===== ENVELOPE LOADING SCREEN ===== */
.envelope-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.envelope-half {
    position: fixed;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #faf7f2 0%, #fff 40%, #f5efe3 100%);
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.8s ease 0.6s;
    z-index: 9999;
    overflow: hidden;
}

.envelope-left {
    left: 0;
    border-right: 1px solid rgba(201, 169, 110, 0.2);
}

.envelope-right {
    right: 0;
    border-left: 1px solid rgba(201, 169, 110, 0.2);
}

/* Decorative pattern on envelope edges */
.envelope-pattern {
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 20px,
            rgba(201, 169, 110, 0.08) 20px,
            rgba(201, 169, 110, 0.08) 22px);
}

.envelope-left .envelope-pattern {
    right: 0;
    background: linear-gradient(to left, rgba(201, 169, 110, 0.1), transparent);
}

.envelope-right .envelope-pattern {
    left: 0;
    background: linear-gradient(to right, rgba(201, 169, 110, 0.1), transparent);
}

/* Center line decoration */
.envelope-left::after,
.envelope-right::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--gold-light), transparent);
}

.envelope-left::after {
    right: 0;
}

.envelope-right::after {
    left: 0;
}

/* Envelope content overlay */
.envelope-content {
    position: fixed;
    z-index: 10000;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Wax seal */
.envelope-seal {
    margin-bottom: 25px;
}

.seal-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a96e, #a8864a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: sealPulse 2s ease-in-out infinite;
}

.seal-text {
    font-size: 2rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@keyframes sealPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(201, 169, 110, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(201, 169, 110, 0.6);
    }
}

/* ===== ENVELOPE OPENED STATE ===== */
.envelope-screen.opened .envelope-left {
    transform: translateX(-100%);
    opacity: 0;
}

.envelope-screen.opened .envelope-right {
    transform: translateX(100%);
    opacity: 0;
}

.envelope-screen.opened .envelope-content {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.envelope-screen.envelope-gone {
    display: none;
}

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

.loading-hearts {
    margin-bottom: 20px;
}

.heart {
    display: inline-block;
    font-size: 2rem;
    color: var(--gold);
    animation: heartPulse 1.2s ease-in-out infinite;
    margin: 0 5px;
}

.heart-2 {
    animation-delay: 0.2s;
}

.heart-3 {
    animation-delay: 0.4s;
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.loading-text {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--gold-dark);
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 0.95rem;
    color: var(--gray-light);
    margin-bottom: 30px;
    font-style: italic;
}

.open-invitation-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.4);
    transition: all 0.3s ease;
    animation: pulseBtn 2s ease-in-out infinite;
}

.open-invitation-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(201, 169, 110, 0.6);
}

@keyframes pulseBtn {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: var(--cream-dark);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
    border-radius: 10px;
    animation: loadingFill 2s ease-in-out forwards;
}

@keyframes loadingFill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* ===== HERO SECTION ===== */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-save-the-date {
    font-family: var(--font-script);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--gold-light);
    margin-bottom: 15px;
    animation: fadeInDown 1.2s ease 0.5s both;
}

.hero-names {
    display: flex;
    flex-direction: column;
    gap: 5px;
    animation: fadeInUp 1.2s ease 0.8s both;
}

.groom-name,
.bride-name {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--white);
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.3);
}

.amp {
    font-family: var(--font-script);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold-light);
}

.hero-date {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 3vw, 1.8rem);
    letter-spacing: 8px;
    color: var(--gold-light);
    margin-top: 20px;
    animation: fadeInUp 1.2s ease 1.1s both;
}

.hero-divider-top,
.hero-divider-bottom {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    animation: fadeIn 1.5s ease 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    color: var(--gold-light);
    font-size: 1.5rem;
    opacity: 0.8;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== SECTION COMMON ===== */
.section {
    padding: 80px 20px;
    position: relative;
}

.bg-cream {
    background-color: var(--cream);
}

.section-inner {
    max-width: 800px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.floral-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-icon {
    color: var(--gold);
    font-size: 1.2rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== OUR STORY ===== */
.story-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.story-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.story-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

.story-text h3 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.story-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* ===== INVITATION/CALENDAR ===== */
.invitation-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.invitation-text p {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
}

.calendar-section {
    text-align: center;
}

.calendar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(201, 169, 110, 0.2);
}

.calendar-header h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold-dark);
    margin-bottom: 20px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    border-radius: 50%;
    cursor: default;
    transition: var(--transition);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day.empty {
    visibility: hidden;
}

.calendar-day.highlight {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(201, 169, 110, 0.4);
    transform: scale(1.15);
}

.ceremony-info {
    margin-top: 20px;
}

.ceremony-time {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 5px;
}

.ceremony-day {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 5px;
}

.ceremony-lunar {
    font-size: 0.85rem;
    color: var(--gray-light);
    font-style: italic;
}

/* ===== COUNTDOWN ===== */
#countdown {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: var(--white);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 80px;
}

.countdown-value {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.countdown-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-light);
    opacity: 0.8;
}

/* ===== COUPLE ===== */
.couple-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.couple-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 350px;
    width: 100%;
    border: 1px solid rgba(201, 169, 110, 0.15);
    transition: transform 0.3s ease;
}

.couple-card:hover {
    transform: translateY(-5px);
}

.couple-photo {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.couple-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.couple-card:hover .couple-photo img {
    transform: scale(1.05);
}

.couple-info {
    padding: 25px;
    text-align: center;
}

.couple-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 8px;
}

.couple-name {
    font-size: 2.2rem;
    color: var(--gold-dark);
    margin-bottom: 10px;
}

.couple-fullname {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 500;
}

.couple-parent {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.couple-separator {
    display: flex;
    justify-content: center;
    align-items: center;
}

.heart-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
    animation: heartBeat 2s infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.1);
    }
}

/* ===== EVENTS ===== */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(201, 169, 110, 0.15);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.event-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--gold-dark);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.event-details {
    margin-bottom: 25px;
}

.event-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.event-details i {
    color: var(--gold);
    margin-right: 8px;
    width: 16px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--gold-dark);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-2px);
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1;
}

.gallery-item-wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

.gallery-item-tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

/* Gallery placeholder & viewmore cells */
.gallery-placeholder,
.gallery-viewmore {
    border-radius: var(--radius);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-placeholder {
    background: var(--white);
    border: 2px dashed var(--gold-light);
}

.placeholder-text {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 600;
}

.gallery-viewmore {
    background: var(--white);
    border: 2px solid var(--gold);
    color: var(--gold-dark);
}

.gallery-viewmore i {
    font-size: 1.5rem;
    color: var(--gold);
}

.gallery-viewmore span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.gallery-viewmore:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.4);
}

.gallery-viewmore:hover i,
.gallery-viewmore:hover span {
    color: white;
}

/* ===== FULLSCREEN GALLERY VIEWER ===== */
.fullscreen-gallery {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fullscreen-gallery.active {
    opacity: 1;
    visibility: visible;
}

.fg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: white;
    flex-shrink: 0;
}

.fg-title {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--gold-light);
}

.fg-counter {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
}

.fg-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.fg-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.fg-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.fg-image-wrap {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.fg-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.fg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.fg-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.fg-prev {
    left: 15px;
}

.fg-next {
    right: 15px;
}

.fg-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px 20px 18px;
    overflow-x: auto;
    justify-content: center;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
}

.fg-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.fg-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.fg-thumbnails::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 2px;
}

.fg-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: var(--transition);
}

.fg-thumb.active {
    border-color: var(--gold);
    opacity: 1;
}

.fg-thumb:hover {
    opacity: 0.8;
}

.fg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== VIDEO ===== */
.video-container {
    max-width: 700px;
    margin: 0 auto;
}

.video-placeholder {
    background: linear-gradient(135deg, #f5f5f5, #eee);
    border-radius: var(--radius-lg);
    padding: 80px 30px;
    text-align: center;
    border: 2px dashed var(--gold-light);
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.video-placeholder p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

/* ===== GIFT ===== */
.gift-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.gift-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

.gift-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.gift-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(201, 169, 110, 0.15);
}

.gift-card-header {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    padding: 20px;
    text-align: center;
    color: white;
}

.gift-card-header i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.gift-card-header h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.gift-card-body {
    padding: 25px;
    text-align: center;
}

.gift-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 5px;
}

.gift-bank {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.gift-account {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.gift-qr {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.gift-qr img {
    max-width: 180px;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.qr-placeholder {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: var(--radius);
    border: 1px dashed var(--gold-light);
}

.qr-placeholder i {
    font-size: 3rem;
    color: var(--gold);
}

.qr-placeholder p {
    font-size: 0.8rem;
    color: var(--gray-light);
}

/* ===== FORMS ===== */
.wish-form-container,
.rsvp-form-container {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

/* ===== WISH LIST ===== */
.wish-list {
    margin-top: 30px;
}

.wish-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-left: 3px solid var(--gold);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wish-item-name {
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.wish-item-message {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

.wish-item-time {
    font-size: 0.75rem;
    color: var(--gray-light);
    margin-top: 8px;
}

/* ===== CLOSING ===== */
#closing {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: var(--white);
}

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

.closing-subtitle {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold);
    margin-bottom: 15px;
}

.closing-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.closing-names {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 30px;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold-light);
}

.closing-amp {
    font-size: 1.5rem;
    color: var(--gold);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 25px 20px;
    background: #111;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* ===== FLOATING POPUP ===== */
.floating-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    animation: popupSlideIn 0.5s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.popup-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 25px;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid rgba(201, 169, 110, 0.2);
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s;
}

.popup-close:hover {
    color: var(--text);
}

.popup-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 12px;
}

.popup-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 10px 20px;
}

/* ===== MUSIC PLAYER ===== */
.music-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 90;
}

.music-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-btn:hover {
    transform: scale(1.1);
}

.music-btn.playing {
    animation: musicSpin 3s linear infinite;
}

@keyframes musicSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== FLOATING ACTIONS ===== */
.floating-actions {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fab-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid rgba(201, 169, 110, 0.3);
    color: var(--gold-dark);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fab-btn:hover {
    background: var(--gold);
    color: white;
    transform: scale(1.1);
}

.fab-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 10px);
    white-space: nowrap;
    background: var(--black);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.fab-btn:hover::before {
    opacity: 1;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
    object-fit: contain;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

/* ===== RESPONSIVE ===== */
@media (min-width: 600px) {
    .couple-cards {
        flex-direction: row;
        align-items: stretch;
    }

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

    .gift-cards {
        grid-template-columns: 1fr 1fr;
    }

    .couple-separator {
        margin: 0 -15px;
    }
}

@media (max-width: 599px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item-wide {
        grid-column: span 2;
    }

    .gallery-item-tall {
        grid-row: span 1;
        aspect-ratio: 1;
    }

    .section {
        padding: 60px 16px;
    }

    .countdown-timer {
        gap: 15px;
    }

    .countdown-item {
        min-width: 65px;
    }
}

@media (max-width: 400px) {
    .countdown-value {
        font-size: 2rem;
    }

    .hero-names .groom-name,
    .hero-names .bride-name {
        font-size: 2.5rem;
    }
}

/* ===== VIDEO THUMBNAIL & LIGHTBOX ===== */
.video-thumbnail {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.video-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-thumbnail:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.video-play-overlay i {
    font-size: 4rem;
    color: white;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
    animation: heartPulse 2s infinite;
}

/* Video Lightbox */
.video-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.video-lightbox-content {
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-lightbox.active .video-lightbox-content {
    transform: scale(1);
}

.video-lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
}

.video-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gold-dark);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    z-index: 10001;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-lg);
}

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

/* ===== MUSIC PLAYER ===== */
.music-player {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9998;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.6);
}

.music-btn.playing {
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(201, 169, 110, 0.7), 0 0 40px rgba(201, 169, 110, 0.2);
    }
}

/* Music note animation when playing */
.music-btn.playing::before,
.music-btn.playing::after {
    content: '♪';
    position: absolute;
    font-size: 0.8rem;
    color: var(--gold);
    animation: musicNote 2s ease-in-out infinite;
    pointer-events: none;
}

.music-btn.playing::before {
    top: -5px;
    right: -5px;
    animation-delay: 0s;
}

.music-btn.playing::after {
    content: '♫';
    top: -8px;
    left: -3px;
    animation-delay: 1s;
}

@keyframes musicNote {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: translateY(-15px) rotate(15deg);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px) rotate(-10deg);
    }
}

/* ===== FALLING PETALS ===== */
.petals-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -40px;
    opacity: 0;
    pointer-events: none;
    animation: petalFall linear forwards;
}

.petal svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

@keyframes petalFall {
    0% {
        opacity: 0;
        transform: translateX(0) rotate(0deg) scale(0.8);
    }

    10% {
        opacity: 0.9;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateX(var(--drift)) rotate(var(--spin)) scale(0.5);
        top: 105vh;
    }
}

/* Sway animation for natural movement */
.petal.sway-1 {
    animation: petalFall linear forwards, petalSway1 3s ease-in-out infinite;
}

.petal.sway-2 {
    animation: petalFall linear forwards, petalSway2 4s ease-in-out infinite;
}

.petal.sway-3 {
    animation: petalFall linear forwards, petalSway3 2.5s ease-in-out infinite;
}

@keyframes petalSway1 {

    0%,
    100% {
        margin-left: 0;
    }

    50% {
        margin-left: 30px;
    }
}

@keyframes petalSway2 {

    0%,
    100% {
        margin-left: 0;
    }

    50% {
        margin-left: -25px;
    }
}

@keyframes petalSway3 {

    0%,
    100% {
        margin-left: 0;
    }

    25% {
        margin-left: 15px;
    }

    75% {
        margin-left: -20px;
    }
}