@import 'variables.css';

/* --- Font Definitions --- */
@font-face {
    font-family: 'Roxborough CF';
    src: url('../assets/fonts/Roxborough-CF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Thesignature';
    src: url('../assets/fonts/Thesignature.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lausanne';
    src: url('../assets/fonts/Lausanne-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Legan';
    src: url('../assets/fonts/Legan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter-VariableFont_slnt,wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Ovo';
    src: url('../assets/fonts/Ovo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Candlefish';
    src: url('../assets/fonts/Candlefish.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- Typography Overrides --- */
:root {
    --font-primary: 'Roxborough CF', serif;
    --font-secondary: 'Lausanne', sans-serif;
    --font-accent: 'Thesignature', cursive;
    --font-body: 'Inter', sans-serif;
    --font-legan: 'Legan', sans-serif;
    --font-ovo: 'Ovo', serif;
    --font-candlefish: 'Candlefish', sans-serif;
}

/* --- Custom Animations (CSS Only) --- */
@keyframes fadeInCustom {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade {
    opacity: 0;
    /* Initialize hidden */
    animation: fadeInCustom 1s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.2s;
}

.delay-200 {
    animation-delay: 0.4s;
}

.delay-300 {
    animation-delay: 0.6s;
}

/* Modern CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

ul[role='list'],
ol[role='list'] {
    list-style: none;
}

html:focus-within {
    scroll-behavior: smooth;
}

html {
    width: 100%;

}

body {
    min-height: 100vh;
    width: 100%;
    text-rendering: optimizeSpeed;
    line-height: 1.6;
    font-family: var(--font-body);
    background-color: #0a0a0a;
    color: #f0f0f0;
    font-size: 0;
    /* Prevent whitespace gap at top */
}

/* Reset font-size on all visible children */
body>* {
    font-size: 16px;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

img,
picture {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font: inherit;
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Split Screen Layout (Desktop) --- */
.main-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.left-panel {
    width: 70%;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.right-panel {
    width: 30%;
    min-height: 100vh;
    /* Scrollable content handled by window */
    background-color: transparent;
    /* Static background removed for slideshow */

    position: relative;
    scroll-behavior: smooth;
    /* Snap scrolling might need adjustment or removal if using window scroll */
}

/* Hide mobile elements on desktop */
.mobile-only {
    display: none;
}

/* --- Left Panel Content (Static Image) --- */
.static-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.static-hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* Slight overlay */
    z-index: 1;
}

.left-panel-footer {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.left-footer-text {
    font-family: var(--font-legan);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #FFFFFF;
    margin: 0;
}

/* --- Right Panel Desktop Hero (Slideshow/Static) --- */
.hero-section.desktop-only {
    height: 100vh;
    /* Full height of right panel */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Contain slides */
    /* background-image removed to show fixed bg */
}

/* Reuse slideshow styles for desktop and mobile hero */
.hero-slideshow {
    /* Base styles for slides container */
    width: 100%;
    height: 100%;
}

.fixed-bg-slideshow {
    position: fixed;
    top: 0;
    right: 0;
    width: 30%;
    /* Match desktop right-panel width */
    height: 100vh;
    z-index: -1;
    /* Behind content */
}

/* Dark Overlay for Fixed Background */
.fixed-bg-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Overlay restored */
    z-index: 1;
    /* On top of slides */
}

@media (max-width: 1024px) {
    .fixed-bg-slideshow {
        width: 100%;
        /* Full width on mobile */
        right: auto;
        left: 0;
    }
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-section.desktop-only::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

@keyframes bounce {

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

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

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


/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    font-weight: normal;
    letter-spacing: 0.05em;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 15px 40px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

section {
    animation: fadeIn 1s ease-out forwards;
    min-height: 100vh;
    /* Full height for all sections */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    scroll-snap-align: start;
    overflow-x: clip;
}

/* --- Hero Typography --- */
/* --- Hero Typography Redesign (Centered) --- */
.hero-content.centered-layout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.wedding-of {
    font-family: var(--font-primary);
    /* Roxborough CF */
    font-size: 18px;
    font-style: italic;
    color: #FFFFFF;
    text-transform: lowercase;
    /* match "the wedding of" */
    font-weight: 400;
    letter-spacing: 0.05em;
}

.hero-names {
    font-family: var(--font-primary);
    font-size: 42px;
    /* Adjustable based on length */
    font-weight: 400;
    color: #FFFFFF;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 2px;
    margin: 0;
}

.hero-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 600px;
}

.hero-date-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.hero-day {
    font-family: var(--font-primary);
    font-size: 28px;
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
    letter-spacing: 1px;
}

.hero-date-full {
    font-family: var(--font-primary);
    font-size: 32px;
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
    letter-spacing: 1px;
}

.hero-quote-box {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-quote-text {
    font-family: var(--font-body);
    /* Inter or similar clean font for readability, or use serif */
    font-size: 14px;
    color: #FFFFFF;
    line-height: 1.6;
    max-width: 90%;
}

.hero-quote-verse {
    font-family: var(--font-primary);
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 400;
    margin-top: 5px;
}

/* --- Guest Overlay --- */
.guest-overlay {
    position: fixed;
    top: 0;
    left: 70%;
    /* Mulai dari batas panel kanan (70% dari kiri) */
    width: 30%;
    /* Lebar sama dengan panel kanan */
    height: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/new-demo/SnapInsta.to_588193456_18027939128756047_2216856024566076825_n.jpg');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(5px);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}


.guest-header {
    margin-bottom: 300px;
    text-align: center;
}

.guest-header .wedding-of {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 400;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.guest-header .wedding-couple {
    font-family: var(--font-primary);
    font-size: 38px;
    font-weight: 400;
    color: #FFFFFF;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    line-height: 1;
}

.guest-header .wedding-date {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.guest-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.dear-text {
    font-family: var(--font-legan);
    font-size: 20px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0;
}

.guest-name {
    font-family: var(--font-ovo);
    font-size: 30px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 90%;
}

.note-text {
    font-family: var(--font-legan);
    font-size: 12px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0;
}

.open-btn {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    color: #252525;
    background-color: #D5D5D5;
    border: none;
    border-radius: 0;
    padding: 11px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulsa 1.5s infinite alternate linear;
}

.open-btn:hover {
    color: #FFFFFF;
    background-color: #525252;
}

@keyframes pulsa {
    0% {
        transform: scale(1);
    }

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

/* Sticky Header (Hidden initially) */
.sticky-header {
    position: fixed;
    top: 0;
    right: 0;
    /* Align to right panel */
    width: 30%;
    /* Match right panel width */
    padding: 20px;
    text-align: center;
    z-index: 90;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    /* Implement JS to show on scroll */
}

.sticky-header-title {
    font-family: var(--font-ovo);
    font-size: 17px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 5.5px;
    color: #FFFFFF;
}

/* --- Quote Section --- */
.quote-section {
    padding: 100px 30px;
    text-align: left;
    /* background-image removed for fixed bg effect */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.quote-section .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0;
    /* Left align container */
}

.quote-section blockquote {
    font-family: var(--font-legan);
    font-size: 16px;
    line-height: 1.6;
    color: #FFFFFF;
    margin-bottom: 30px;
    font-style: normal;
    text-align: left;
}

.quote-section cite {
    font-family: var(--font-primary);
    /* Roxborough CF */
    font-size: 24px;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    font-style: normal;
    display: block;
    text-align: left;
    text-transform: uppercase;
}

/* --- Profile Section --- */
.profile-section {
    padding: 30px 30px 30px 30px;
    text-align: left;
    /* background propertied removed */
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.profile-section.groom {
    /* background-image removed */
}

.profile-section.bride {
    /* background-image removed */
}



.profile-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.profile-label {
    font-family: var(--font-legan);
    /* Or Ovo based on image */
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.profile-name {
    font-family: var(--font-primary);
    /* Roxborough CF match */
    font-size: 48px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 10px;
    line-height: 1.1;
}

/* --- Profile Section Redesign --- */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* --- Profile Image Redesign (Image Top, Centered) --- */
.profile-image-box.centered {
    position: relative;
    width: 250px;
    height: 320px;
    margin: 0 auto 30px auto;
    /* Centered with margin bottom */
    overflow: hidden;
}

.profile-insta-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-family: var(--font-legan);
    /* Or body font */
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    z-index: 2;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.profile-insta-overlay:hover {
    opacity: 0.8;
}

.profile-insta-overlay i {
    font-size: 18px;
}

.profile-role {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.profile-name-main {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 25px;
    line-height: 1.1;
    text-transform: capitalize;
    /* Jonathan Gabriel */
}

.profile-parents-label {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: #DDDDDD;
    margin-bottom: 10px;
    font-style: italic;
    /* Or normal based on preference, ref looks normal serif */
}

.profile-description.centered {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: #DDDDDD;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 100%;
    text-align: center;
    font-style: normal;
}

/* Social button removed for new layout */
.social-btn.dark {
    display: none;
}

.profile-description {
    font-family: var(--font-legan);
    font-size: 14px;
    font-weight: 400;
    color: #DDDDDD;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 90%;
}

.social-btn {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    background-color: #333333;
    color: #FFFFFF;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    /* Slight radius */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.social-btn:hover {
    background-color: #555;
    color: #FFF;
}

/* --- Love Story --- */
/* --- Love Story Redesign --- */
.love-story-section {
    padding: 60px 20px;
    min-height: auto;
    /* Allow content to define height */
    position: relative;
    overflow: visible;
    /* Allow images to pop out if needed */
}

/* Use flex column for mobile first */
.love-story-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

/* Visuals Column (Collage) */
.love-story-visuals {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    /* Fixed height for stacking context */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 50px;
}

.circle-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.polaroid-stack {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.p-img {
    position: absolute;
    width: 180px;
    height: auto;
    object-fit: cover;
    border: 5px solid #fff;
    /* Polaroid border effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

/* Specific Positions for Stack Effect */
.img-1 {
    top: -40px;
    left: 50%;
    transform: translateX(-50%) rotate(-10deg);
    z-index: 1;
}

.img-2 {
    top: 120px;
    left: 20px;
    transform: rotate(-5deg);
    z-index: 2;
}

.img-3 {
    top: 140px;
    right: 20px;
    transform: rotate(10deg);
    z-index: 3;
}

.journey-title {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-primary);
    font-size: 48px;
    line-height: 1;
    color: #FFFFFF;
    text-align: center;
    width: 100%;
    z-index: 4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-style: italic;
    /* Or straight serif depending on choice */
}

/* Timeline Column */
.love-story-timeline {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
    padding-top: 20px;
}

.story-event {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.story-date {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.story-text {
    font-family: var(--font-body);
    /* Leagan or body for readability */
    font-size: 14px;
    line-height: 1.6;
    color: #DDDDDD;
}

/* Responsive */
@media (min-width: 768px) {
    .love-story-container {
        /* Keep column for better story flow on this specific design, or side-by-side if preferred */
        max-width: 600px;
    }
}

/* --- Events Section Redesign --- */
.events-section {
    padding: 60px 20px 20px 20px;
    /* Reduced bottom padding */
    text-align: center;
    position: relative;
    min-height: auto;
    background-color: transparent;
    display: block;
}

.events-section .container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    display: block;
    /* Remove flex column */
}

/* Featured Image */
.event-featured-img {
    width: 100%;
    margin-bottom: 40px;
    overflow: hidden;
}

.event-featured-img img {
    width: 100%;
    height: 350px;
    /* Shortened height */
    object-fit: cover;
    display: block;
    filter: brightness(0.9) contrast(1.1);
}



.event-title {
    font-family: var(--font-primary);
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

/* Event Header: WEDDING --- EVENT */
.event-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    width: 100%;
}

.event-header-top .text {
    font-family: var(--font-primary);
    font-size: 14px;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.event-header-top .line {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 15px;
}

/* Event Blocks */
.event-block {
    margin-bottom: 50px;
    text-align: left;
    padding: 0 10px;
}

.event-block-title {
    font-family: var(--font-primary);
    font-size: 24px;
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.event-date,
.event-time {
    font-family: var(--font-primary);
    font-size: 28px;
    font-style: italic;
    color: #FFFFFF;
    margin-bottom: 15px;
    line-height: 1.2;
}

.event-location-name {
    font-family: var(--font-primary);
    font-size: 30px;
    font-style: italic;
    color: #FFFFFF;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.2;
}

.event-address {
    font-family: var(--font-primary);
    font-size: 16px;
    font-style: italic;
    color: #CCCCCC;
    line-height: 1.5;
    font-weight: 400;
    opacity: 0.8;
}

/* --- Countdown Section --- */
.countdown-section {
    padding: 30px 20px 80px 20px;
    /* Reduced top padding */
    /* Background removed to show fixed slideshow */
    text-align: center;
    min-height: auto;

    position: relative;
    /* Ensure content is visible */
    background-color: transparent;
}

/* Overlay removed */
.countdown-section::before {
    display: none;
}

.countdown-section .container {
    position: relative;
    z-index: 2;
}

.countdown-section h2 {
    font-family: var(--font-primary);
    font-size: 36px;
    color: #fff;
    margin-bottom: 40px;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-legan);
    font-size: 12px;
    color: #aaa;
    letter-spacing: 1px;
}

.time-unit span {
    font-family: var(--font-primary);
    font-size: 40px;
    color: #fff;
    margin-bottom: 5px;
}

/* --- RSVP Section --- */
.rsvp-section {
    padding: 100px 30px 20px 30px;
    /* Reduced bottom padding */
    text-align: center;
    background-color: transparent;
    position: relative;
    min-height: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.rsvp-section .container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.rsvp-title {
    font-family: var(--font-primary);
    font-size: 48px;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.rsvp-description {
    font-family: var(--font-legan);
    color: #ddd;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Stepper */
.rsvp-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}

.step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s;
}

.step-indicator.active {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.step-line {
    width: 50px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Form */
.rsvp-form {
    text-align: left;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

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

.form-group label {
    display: block;
    font-family: var(--font-legan);
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 5px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    border-radius: 0;
    /* Sharp edges */
}

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

.radio-group {
    display: flex;
    gap: 30px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.form-actions.right {
    justify-content: flex-end;
}

.next-btn,
.submit-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: underline;
    cursor: pointer;
    letter-spacing: 1px;
    padding: 10px 0;
}

.back-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    padding: 10px 0;
}

.next-btn:hover,
.submit-btn:hover {
    color: #ddd;
}

.back-btn:hover {
    color: #fff;
}

/* --- Gift Section --- */
/* --- Gift Section Redesign --- */
.gift-section {
    padding: 20px 20px 60px 20px;
    /* Reduced top padding */
    text-align: center;
    position: relative;
    background-color: transparent;
    /* Show fixed background */
}

/* Remove overlay if it existed */
.gift-section::before {
    display: none;
}

.gift-section .container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.gift-image {
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    /* Optional: Aspect ratio */
}

.gift-image img {
    width: 100%;
    height: auto;
    display: block;
    /* Optional: specific styling from reference */
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
}

.gift-title {
    font-family: var(--font-primary);
    /* Roxborough CF */
    font-size: 48px;
    font-style: italic;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.1;
    /* text-transform: capitalize;  "Wedding gift" as is */
}

.gift-text {
    font-family: var(--font-primary);
    font-size: 16px;
    color: #DDDDDD;
    /* Slightly muted white */
    margin-bottom: 30px;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.gift-toggle-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 50px;
    /* Pill shape */
    font-family: var(--font-secondary);
    /* Lausanne or Inter */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.gift-toggle-btn:hover {
    background: #FFFFFF;
    color: #000000;
}

.bank-account {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    /* Or 0 for sharp edges? Reference has button curved, box can be sharp */
    display: inline-block;
    min-width: 300px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.5s ease;
}

.bank-account.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
}

/* Ensure animation when removing hidden class */
.bank-account:not(.hidden) {
    animation: fadeIn 0.5s ease;
}

.account-number {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 10px 0;
}

.copy-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 20px;
    margin-top: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: #fff;
    color: #000;
}

/* --- Gallery Section Redesign --- */
.gallery-section {
    padding: 60px 20px;
    background-color: transparent;
    text-align: center;
    position: relative;
}

.gallery-section::before {
    display: none;
}

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

.gallery-title {
    font-family: var(--font-primary);
    /* Roxborough CF */
    font-size: 64px;
    /* Big title */
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1;
    font-weight: 400;
}

.gallery-subtitle {
    font-family: var(--font-primary);
    font-size: 18px;
    font-style: italic;
    color: #CCCCCC;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0.8;
}

/* Video Container */
.gallery-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    margin-bottom: 20px;
    border-radius: 4px;
    /* Optional rounded corners */
    overflow: hidden;
}

.gallery-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Gallery Grid - Mosaic Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns */
    grid-auto-rows: 250px;
    /* Force fixed height for all rows to prevent gaps */
    gap: 10px;
    width: 100%;
}

.gallery-item {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 100%;
    /* Fill cell */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    /* Force fill */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    filter: brightness(0.9);
}

/* Specific Spans for Pattern (Repeating every 7 items) */
/* Item 1, 8, 15... (Wide) */
.gallery-item:nth-child(7n+1) {
    grid-column: span 2;
}

/* Item 7, 14, 21... (Wide) */
.gallery-item:nth-child(7n) {
    grid-column: span 2;
}

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

    /* Reset repeating spans for 2-col tablet layout */
    .gallery-item:nth-child(7n+1),
    .gallery-item:nth-child(7n) {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 120px;
        /* Adjusted height for small screens */
    }

    /* Remove column span override to allow desktop pattern */
}

.wishes-section {
    padding: 20px 20px 60px 20px;
    /* Reduced top padding */
    background-color: transparent;
    text-align: center;
    position: relative;
    min-height: auto;
}

.wishes-section::before {
    display: none;
}

.wishes-section .container {
    max-width: 600px;
    margin: 0 auto;
}

.wishes-section h2 {
    font-family: var(--font-primary);
    font-size: 40px;
    color: #fff;
    margin-bottom: 5px;
    text-align: left;
}

.wishes-section p {
    font-family: var(--font-legan);
    color: #ddd;
    margin-bottom: 20px;
    text-align: left;
    font-size: 14px;
}

.wishes-container {
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.wish-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-align: left;
    margin-bottom: 5px;
}

.wish-name {
    font-family: var(--font-body);
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-badge {
    color: #fff;
    font-size: 14px;
}

.wish-message {
    font-family: var(--font-body);
    font-size: 16px;
    color: #f0f0f0;
    word-wrap: break-word;
    margin-bottom: 4px;
    line-height: 1.4;
}

.wish-date {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
}

/* --- Gallery Section Redesign --- */
.gallery-section {
    padding: 60px 20px;
    background-color: transparent;
    color: #fff;
    text-align: center;
}

.gallery-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gallery-video-box {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: #000;
    margin-bottom: 20px;
}

.gallery-video-box iframe {
    width: 100%;
    height: 100%;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 40px;
}

/* Slider */
.gallery-slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.slider-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-primary);
    font-size: 18px;
    color: #fff;
    letter-spacing: 2px;
    z-index: 20;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    /* Optional: slight pill bg for better visibility */
    padding: 5px 15px;
    border-radius: 20px;
}

.gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    width: 100%;
    aspect-ratio: 3/4;
    /* Portrait-ish */
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
}

.slider-img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: center;
}

.slider-btn {
    position: absolute;
    top: 55%;
    /* Vertically centered relative to image part */
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 30px;
    /* Larger arrows */
    font-weight: 100;
    cursor: pointer;
    z-index: 10;
    padding: 20px;
    transition: color 0.3s;
}

.slider-btn:hover {
    color: #fff;
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

.thumbnails-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
    scrollbar-width: none;
    /* Hide scrollbar */
}

.thumbnails-track::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border-radius: 4px;
    overflow: hidden;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
    border: 2px solid #fff;
}

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

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

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

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
}

.dot.active {
    background-color: #fff;
}

/* --- Footer Section --- */
.footer-section {
    position: relative;
    min-height: 100vh;
    background-color: transparent;
    /* Background removed */
    background-image: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.footer-overlay {
    background: transparent;
    /* Overlay removed */
    display: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
    margin-top: auto;
}

.thank-you-title {
    font-family: var(--font-primary);
    font-size: 28px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.thank-you-text {
    font-family: var(--font-legan);
    font-size: 10px;
    color: #ddd;
    margin-bottom: 40px;
}

.footer-couple-name {
    font-family: var(--font-candlefish);
    font-size: 20px;
    color: #fff;
    letter-spacing: 2px;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.created-by {
    font-family: var(--font-legan);
    font-size: 12px;
    color: #aaa;
    letter-spacing: 1px;
}

.footer-socials {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-socials a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #aaa;
}

.copyright {
    font-family: var(--font-legan);
    font-size: 12px;
    color: #666;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .left-panel {
        display: none;
        /* Hide left panel on mobile/tablet */
    }

    .right-panel {
        width: 100%;
        height: auto;
        overflow: visible;
        background-size: 140%;
        /* Mobile override */
        background-position: center top;
        /* Adjust position if needed */
    }

    .hero-section.mobile-only {
        display: flex !important;
        height: 100vh;
        width: 100%;
        /* background-image removed */
        position: relative;
    }

    .desktop-only {
        display: none !important;
    }

    .sticky-header {
        width: 100%;
    }

    .guest-overlay {
        left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    /* Redesigned Hero Mobile */
    .hero-names {
        font-size: 32px;
    }

    .hero-day {
        font-size: 24px;
    }

    .hero-date-full {
        font-size: 26px;
    }

    .wedding-of {
        font-size: 16px;
    }

    .profile-name-main {
        font-size: 32px;
    }

    .profile-image-box.centered {
        width: 220px;
        height: 280px;
    }

    .love-story-title {
        font-size: 36px;
    }

    .events-title-main {
        font-size: 32px;
    }

    .thank-you-title {
        font-size: 32px;
    }

    .gallery-text h2 {
        font-size: 36px;
    }
}

/* --- Music Control Button --- */
.music-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    z-index: 9999;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.music-btn.show {
    opacity: 1;
    visibility: visible;
}

.spin-animation {
    animation: spin 3s linear infinite;
}

.stop-animation {
    animation-play-state: paused;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- Page Loader --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    overflow: hidden;
    text-align: center;
    width: 100%;
}

.loader-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.loader-text {
    font-family: var(--font-primary);
    color: #fff;
    display: block;
    opacity: 0;
    transform: translateY(100%);
    position: absolute;
    width: 100%;
    left: 0;
    text-align: center;
    line-height: normal;
}

.line-1 {
    font-size: 14px;
    letter-spacing: 4px;
    font-family: var(--font-legan);
    animation: slideUpFadeOut 3.5s forwards;
}

.line-2 {
    font-size: 24px;
    letter-spacing: 2px;
    animation: slideUpFadeIn 3.5s forwards;
    animation-delay: 1.5s;
}

@keyframes slideUpFadeOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    15% {
        opacity: 1;
        transform: translateY(0);
    }

    45% {
        opacity: 1;
        transform: translateY(0);
    }

    60% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    20% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}