@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;
}

/* 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%;
    /* scroll-snap disabled */
}

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;
    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) --- */
.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 */
}

/* Reuse slideshow styles for desktop and mobile hero */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 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;
}

/* Fixed Background Slideshow - stays behind all content */
/* Override .hero-slideshow base styles with !important */
.fixed-bg-slideshow {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 30% !important;
    height: 100vh !important;
    z-index: -1 !important;
    overflow: hidden;
}

/* Fixed slideshow slide styles */
.fixed-bg-slideshow .slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.fixed-bg-slideshow .slide.active {
    opacity: 1 !important;
}

/* 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% !important;
        /* Full width on mobile */
        right: auto !important;
        left: 0 !important;
    }

    /* On mobile, use cover to fill screen, center on middle of image */
    .fixed-bg-slideshow .slide {
        background-size: cover !important;
        background-position: center center !important;
    }
}

/* Make sections transparent to show fixed slideshow */
.events-section,
.countdown-section,
.rsvp-section,
.wishes-section,
.gallery-section.redesigned {
    background: transparent !important;
    background-image: none !important;
    min-height: auto !important;
    padding: 60px 0;
}

/* Remove dark overlays from sections using fixed slideshow */
.events-section::before,
.countdown-section::before,
.rsvp-section::before,
.wishes-section::before,
.gallery-section.redesigned::before {
    display: none !important;
}

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

/* Mobile Hero Overlay */
.hero-section.mobile-only::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    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 disabled */
    overflow-x: clip;
}

/* --- Hero Typography --- */
.hero-subtitle {
    font-family: var(--font-legan);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 17px;
    letter-spacing: 1.8px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.hero-title {
    font-family: var(--font-candlefish);
    font-size: 40px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

.hero-date {
    font-family: var(--font-legan);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 17px;
    letter-spacing: 1.8px;
    color: #FFFFFF;
    margin-top: 10px;
}

/* --- Hero Quote --- */
.hero-quote-box {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 85%;
    max-width: 500px;
    text-align: center;
    z-index: 2;
}

.hero-quote-text {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 15px;
}

.hero-quote-source {
    font-family: var(--font-legan);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-transform: none;
    text-align: center;
}

/* --- 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-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay on top of background image */
.guest-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

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

/* Overlay Header (Wedding Info at Top) */
.overlay-header {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1;
}

.overlay-subtitle {
    font-family: var(--font-legan);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.overlay-couple-names {
    font-family: var(--font-candlefish);
    font-size: 36px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.overlay-date {
    font-family: var(--font-legan);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFFFFF;
    margin: 0;
}

.overlay-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.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: url('../assets/images/new-demo/SnapInsta.to_610878718_18030769544756047_4345490055566795929_n.jpg');
    /* Placeholder image */
    background-size: cover;
    background-position: center;
    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-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.profile-section.groom {
    background-image: url('../assets/images/new-demo/SnapInsta.to_610553740_18030769553756047_6039469719416845217_n.jpg');
}

.profile-section.bride {
    background-image: url('../assets/images/new-demo/SnapInsta.to_610797265_18030769526756047_4842693070098933489_n.jpg');
}

.profile-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.8) 100%);
    /* Darker gradient at bottom */
    z-index: 1;
}

.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-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.parents-label {
    font-family: var(--font-accent);
    /* Thesignature */
    font-size: 32px;
    font-weight: 400;
    color: #FFFFFF;
    white-space: nowrap;
}

.divider {
    flex-grow: 1;
    height: 1px;
    background-color: #FFFFFF;
    opacity: 0.7;
}

.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-section {
    padding: 100px 30px;
    background-image: url('../assets/images/new-demo/SnapInsta.to_610880925_18030769535756047_6183749533954635102_n.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.love-story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Slightly darker overlay for readability */
    z-index: 1;
}

.love-story-section .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.love-story-title {
    font-family: var(--font-primary);
    /* Roxborough CF */
    font-size: 48px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 30px;
    line-height: 1.2;
    text-transform: uppercase;
}

.love-story-image-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
}

.love-story-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    /* Make image black and white */
}

.love-story-subtitle {
    font-family: var(--font-accent);
    /* Thesignature */
    font-size: 36px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 30px;
    margin-top: 10px;
}

.love-story-content {
    width: 100%;
    max-width: 700px;
}

.story-paragraph {
    font-family: var(--font-legan);
    font-size: 14px;
    font-weight: 400;
    color: #DDDDDD;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

/* --- Events Section --- */
.events-section {
    padding: 10% 10%;
    text-align: center;
    background-image: url('../assets/images/new-demo/SnapInsta.to_610881649_18030769484756047_5904188445941695161_n.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.45) 0%, rgba(21, 21, 21, 0.58) 100%);
    z-index: 1;
}

.events-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.events-title-main {
    font-family: var(--font-candlefish);
    font-size: 40px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 20px;
    width: 80%;
}

.events-date-main {
    font-family: var(--font-legan);
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.event-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.event-description {
    font-family: var(--font-legan);
    font-size: 14px;
    color: #DDDDDD;
    margin-bottom: 15px;
    line-height: 1.6;
}

.event-btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    color: #FFFFFF;
    text-decoration: none;
    border: 1px solid #FFFFFF;
    padding: 8px 20px;
    transition: all 0.3s;
}

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

/* --- Countdown Section --- */
.countdown-section {
    padding: 80px 20px;
    background-image: url('../assets/images/new-demo/SnapInsta.to_610910453_18030769502756047_5697320607622652470_n.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    background-color: #111;
    position: relative;
}

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

.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;
    text-align: center;
    background-image: url('../assets/images/new-demo/SnapInsta.to_610983842_18030769493756047_8262274486379594500_n.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.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 {
    padding: 80px 20px;
    text-align: center;
    position: relative;
}



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

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

.gift-section p {
    font-family: var(--font-legan);
    color: #ddd;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bank-account {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    display: inline-block;
    min-width: 300px;
}

.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;
}

/* --- Wishes Section --- */
.wishes-section {
    padding: 80px 20px;
    background-image: url('../assets/images/new-demo/SnapInsta.to_612063216_18030769565756047_6832487565552237091_n.jpg');
    background-size: cover;
    background-position: center;
    background-color: #111;
    text-align: center;
    position: relative;
    min-height: 100vh;
}

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

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

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

.wishes-section p {
    font-family: var(--font-legan);
    color: #aaa;
    margin-bottom: 40px;
}

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

}

.wish-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 4px;
    text-align: left;
    margin-bottom: 10px;
}

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

.verified-badge {
    color: #2ecc71;
    /* Green color for checkmark */
    font-size: 12px;
}

.wish-message {
    font-family: var(--font-legan);
    font-size: 15px;
    color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-bottom: 5px;
    line-height: 1.4;
}

.wish-date {
    font-family: var(--font-body);
    font-size: 11px;
    color: #aaa;
    display: block;
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 100px 30px;
    background-image: url('../assets/images/new-demo/SnapInsta.to_610881649_18030769484756047_5904188445941695161_n.jpg');
    background-size: cover;
    background-position: center;
    text-align: left;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    /* Dark overlay for readability */
    z-index: 1;
}

.gallery-section .container {
    max-width: 900px;
    width: 100%;
    z-index: 2;
}

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

.gallery-quote {
    font-family: var(--font-legan);
    font-size: 16px;
    color: #ddd;
    margin-bottom: 10px;
    line-height: 1.6;
    max-width: 80%;
}

.gallery-credit {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 40px;
}

.gallery-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.main-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    background-color: #000;
}

.main-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.thumbnails-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.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-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

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

.thank-you-title {
    font-family: var(--font-primary);
    font-size: 38px;
    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;
    }

    .mobile-only {
        display: flex !important;
    }

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

    .sticky-header {
        width: 100%;
    }

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

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

    .profile-name {
        font-size: 36px;
    }

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

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

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

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

/* --- Page Loader --- */
/* --- 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;
    /* Hide text before it enters/leaves */
    text-align: center;
    width: 100%;
    /* Ensure it takes space */
}

.loader-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
    /* Increased height */
    overflow: hidden;
    position: relative;
    width: 100%;
    /* REQUIRED because children are absolute */
}

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

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

.line-2 {
    font-size: 24px;
    letter-spacing: 2px;
    animation: slideUpFadeIn 3.5s forwards;
    /* Increased duration */
    animation-delay: 1.5s;
    /* Wait for line 1 */
}

@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);
    }
}