/* ===================================
   Wedding Website Styles
   Purple Theme with Elegant Typography
   =================================== */

/* CSS Variables */
:root {
    --primary: #bb42f8;
    --primary-light: #9B7FA8;
    --primary-dark: #4A3354;
    --primary-lighter: #E8E0ED;
    --accent: #D4AF37;
    --accent-light: #E8D48A;
    --background: #FAF8FC;
    --background-alt: #F3EDF7;
    --text: #2D2D2D;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    
    --font-script: 'Great Vibes', cursive;
    --font-heading: 'Playfair Display', serif;
    --font-subheading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(107, 76, 122, 0.15);
    --shadow-hover: 0 8px 30px rgba(107, 76, 122, 0.25);
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
}

/* Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
}

/* Navigation */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    background: transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .nav-logo {
    color: var(--primary-dark);
}

.logo-ring {
    display: block;
}

.hero-logo-ring {
    display: block;
    margin: 0 auto 20px;
    color: var(--white);
}

/* Ceremony section – compact, no viewport height */
.ceremony {
    background: #ffffff;
    padding: 80px 20px 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
}

.ceremony .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.ceremony-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    color: #2d2d2d;
    margin: 0 0 80px 0;
}

.ceremony-content {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ceremony-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 80px;
    width: 100%;
    margin-bottom: 36px;
}

.ceremony-col {
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Icons – clear spacing, proportional */
.ceremony-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 28px;
    color: var(--primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ceremony-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ceremony-heading {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2d2d2d;
    margin-bottom: 16px;
}

/* Venue name – larger, legible */
.ceremony-venue-name {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    font-weight: 600;
    color: #3a3a3a;
    margin-bottom: 10px;
    line-height: 1.45;
}

/* Dress code name – same as venue name */
.ceremony-dress-code-name {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    font-weight: 600;
    color: #3a3a3a;
    margin-bottom: 10px;
    line-height: 1.45;
}

/* Body copy – larger for readability */
.ceremony-text {
    font-family: var(--font-subheading);
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5a5a5a;
    margin: 0;
}

.ceremony-address {
    font-family: var(--font-subheading);
    font-size: 1rem;
    line-height: 1.6;
    color: #5a5a5a;
    margin: 0;
}

/* Split image section – two separate images (left & right) */
.split-image-wrap {
    width: 100%;
    max-width: 100vw;
    padding: 0;
    margin: 0;
}
.split-image-dots {
    display: none;
}
.split-image-section {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    height: 100vh;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.split-image-left,
.split-image-right {
    flex: 1 1 50%;
    min-width: 0;
    min-height: 50vh;
    height: 100%;
    overflow: hidden;
}

.split-image-left img,
.split-image-right img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.ceremony-map-wrap {
    text-align: center;
    margin-top: 8px;
}

.ceremony-map-btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-subheading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    color: #2d2d2d;
    background: transparent;
    border: 2px solid #2d2d2d;
    border-radius: 50px;
    transition: var(--transition);
}

.ceremony-map-btn:hover {
    background: rgba(45, 45, 45, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 15px 40px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.navbar.scrolled .menu-toggle span {
    background: var(--primary-dark);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--primary-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1015 0%, #2a1c30 50%, #1a1015 100%);
    overflow: hidden;
}

/* Single hero image with ring in background */
.hero-bg-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    width: 70vmin;
    height: 70vmin;
    max-width: 520px;
    max-height: 520px;
    color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.hero-bg-ring svg {
    width: 100%;
    height: 100%;
}

.hero-image-single {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-image-single::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 16, 21, 0.3) 0%,
        rgba(26, 16, 21, 0.5) 50%,
        rgba(26, 16, 21, 0.85) 100%
    );
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center bottom, transparent 0%, rgba(26, 16, 21, 0.7) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    padding: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.save-date {
    font-family: var(--font-subheading);
    font-size: 1.3rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--primary);
}

.couple-names {
    font-family: var(--font-script);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 400;
    margin-bottom: 30px;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.2);
}

.wedding-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.wedding-date p {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 3px;
}

.date-divider {
    width: 60px;
    height: 1px;
    background: var(--primary);
}

/* Hero RSVP Button */
.btn-hero-rsvp {
    display: inline-block;
    margin-top: 40px;
    padding: 16px 50px;
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 50px;
    letter-spacing: 3px;
    transition: var(--transition);
}

.btn-hero-rsvp:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.scroll-indicator-desktop {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.scroll-indicator-mobile {
    display: none;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* Section Styles */
section {
    padding: 100px 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

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

.section-title {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-subtitle {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
}

/* Our Story Section - Carousel Gallery */
.story {
    position: relative;
    background: #ffffff;
    padding: 0;
    overflow: visible;
}

.story-header {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 20;
    text-align: center;
    padding: 0 30px;
    pointer-events: none;
}

.story-title {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.story-subtitle {
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

.story-scroll-hint {
    display: none;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.story-scroll-hint span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
    animation: scrollPulse 1.5s ease-in-out infinite;
}

.story-scroll-hint span:nth-child(1) {
    animation-delay: 0s;
}

.story-scroll-hint span:nth-child(2) {
    animation-delay: 0.2s;
}

.story-scroll-hint span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.story-horizontal-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding-top: 120px;
    box-sizing: border-box;
}

.story-track {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-left: calc(50vw - 200px);
    padding-right: calc(50vw - 200px);
    will-change: transform;
}

/* Each story slide */
.story-slide {
    flex-shrink: 0;
    width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.35;
    transform: scale(0.75);
    filter: blur(2px);
}

.story-slide.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.story-slide-image {
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

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

.story-slide-content {
    text-align: center;
    padding: 25px 20px 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.story-slide.active .story-slide-content {
    opacity: 1;
    transform: translateY(0);
}

.story-date {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.story-slide-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 400;
}

.story-slide-content p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 350px;
}

/* Spacer creates scroll height for horizontal movement */
.story-scroll-spacer {
    height: 300vh;
}


/* Quote Section */
.quote-section {
    background: var(--primary-lighter);
    padding: 120px 20px;
}

.quote-wrapper {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 5.5rem;
    color: var(--primary);
    line-height: 0.8;
    display: block;
}

.quote-mark-open {
    margin-bottom: 15px;
}

.quote-mark-close {
    margin-top: 20px;
}

.quote-text {
    font-family: var(--font-subheading);
    font-size: 2rem;
    font-style: italic;
    color: var(--primary-dark);
    line-height: 1.8;
    margin: 0;
    padding: 15px 0;
    font-weight: 400;
}

.quote-author {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    margin: 25px 0 5px;
}

/* Event Section */
.event {
    background: #ffffff;
    color: var(--text);
    padding: 100px 0;
}

.event .section-title {
    color: var(--text);
}

.event .section-subtitle {
    color: var(--text-light);
}

.event-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.event-card {
    text-align: center;
    padding: 20px;
}

.event-illustration {
    color: #5a4a42;
    margin-bottom: 30px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-illustration svg {
    transition: var(--transition);
}

.event-card:hover .event-illustration svg {
    transform: scale(1.05);
}

.event-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #3a3a3a;
    margin-bottom: 8px;
}

.event-star {
    display: block;
    color: var(--primary);
    font-size: 0.7rem;
    margin-bottom: 20px;
}

.event-time {
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    font-style: italic;
    color: #5a5a5a;
    margin-bottom: 8px;
}

.event-venue {
    font-family: var(--font-subheading);
    font-size: 1.05rem;
    font-style: italic;
    color: #5a5a5a;
    margin-bottom: 5px;
}

.event-address {
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-style: italic;
    color: #888;
    line-height: 1.6;
    margin-bottom: 25px;
}

.event-map-btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: #5a5a5a;
    border: 1px solid #c9c9c9;
    border-radius: 50px;
    background: transparent;
    transition: var(--transition);
}

.event-map-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(187, 66, 248, 0.05);
}

/* Countdown (inside footer section) - flip-card style */
.countdown-wrapper {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 24px;
}

.countdown-label {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 32px;
    font-weight: 500;
}

/* Flip countdown layout */
.countdown-flip {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 36px;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.countdown-unit-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
}

.countdown-digits {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

/* Flip card - one per digit (bigger size) */
.flip-card {
    width: 58px;
    height: 68px;
    perspective: 160px;
    flex-shrink: 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card.flipping .flip-card-inner {
    transform: rotateX(-180deg);
}

.flip-card-face {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.flip-card-face::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    z-index: 1;
}

.flip-card-back {
    transform: rotateX(180deg);
}

.flip-digit {
    font-family: var(--font-body);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    z-index: 2;
    position: relative;
}

/* Days unit has 3 digits - slightly smaller cards */
.countdown-digits[data-unit="days"] .flip-card {
    width: 52px;
    height: 64px;
}

.countdown-digits[data-unit="days"] .flip-digit {
    font-size: 2rem;
}

/* RSVP Section */
.rsvp {
    background: #ffffff;
    padding: 60px 20px 80px;
}

.rsvp-cta {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.rsvp-cta-text {
    font-family: var(--font-subheading);
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 28px;
}

.btn-rsvp-form {
    display: inline-block;
    padding: 16px 50px;
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    transition: var(--transition);
}

.btn-rsvp-form:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 15px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid #d0d0d0;
    background: transparent;
    color: var(--text);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.form-group input::placeholder {
    color: #bbb;
}

.btn-submit {
    width: 100%;
    margin-top: 30px;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
    background: transparent;
    border: 1px solid #c0c0c0;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(187, 66, 248, 0.05);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-family: var(--font-body);
    display: none;
}

.form-message.success {
    display: block;
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.form-message.error {
    display: block;
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

/* Footer with Love (includes countdown + with love + copyright) */
.footer-love {
    background: #ffffff;
    padding: 80px 20px 50px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
}

.footer-spacer {
    display: none;
}
.footer-love .countdown-wrapper {
    margin-bottom: 60px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-image {
    width: 280px;
    height: 350px;
    background: #fff;
    padding: 15px 15px 40px 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transform: rotate(-5deg);
}

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

.footer-text {
    text-align: left;
}

.with-love {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 10px;
}

.with-love span {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--primary);
}

.couple-signature {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: var(--primary);
}

.btn-footer-rsvp {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 40px;
    font-family: var(--font-subheading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    background: var(--text);
    border: 2px solid var(--text);
    border-radius: 50px;
    transition: var(--transition);
}

.btn-footer-rsvp:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.copyright-text {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 1px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-links a {
        display: block;
        padding: 20px 0;
        font-size: 1.1rem;
        color: var(--primary-dark);
        width: 100%;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .navbar.menu-open .menu-toggle span {
        background: var(--primary-dark);
    }
    
    .navbar.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .ceremony {
        padding: 56px 20px 64px;
    }
    
    .ceremony-columns {
        grid-template-columns: 1fr;
        gap: 44px;
        margin-bottom: 40px;
    }
    
    .ceremony-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        letter-spacing: 0.15em;
        margin-bottom: 36px;
    }
    
    .ceremony-heading {
        font-size: 0.75rem;
    }
    
    .ceremony-venue-name,
    .ceremony-dress-code-name {
        font-size: 1.1rem;
    }
    
    .ceremony-text,
    .ceremony-address {
        font-size: 1rem;
    }
    
    .ceremony-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .ceremony-map-btn {
        padding: 14px 32px;
        font-size: 0.85rem;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile: horizontal carousel – full image height, no cropping */
    .split-image-section {
        flex-direction: row;
        flex-wrap: nowrap;
        min-height: auto;
        height: auto;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .split-image-section::-webkit-scrollbar {
        display: none;
    }
    .split-image-left,
    .split-image-right {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        min-height: auto;
        height: auto;
        overflow: visible;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    .split-image-left img,
    .split-image-right img {
        width: 100%;
        height: auto;
        min-height: 0;
        object-fit: contain;
        display: block;
        vertical-align: middle;
    }
    
    /* Carousel pagination dots – mobile only */
    .split-image-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        padding: 20px 0 24px;
        background: #fff;
    }
    .split-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 2px solid var(--primary, #9B7FA8);
        background: transparent;
        padding: 0;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }
    .split-dot:hover {
        background: rgba(155, 127, 168, 0.4);
    }
    .split-dot.active {
        background: var(--primary, #9B7FA8);
        transform: scale(1.15);
    }
    
    .hero-img {
        object-position: center center;
    }
    
    .couple-names {
        font-size: clamp(3rem, 15vw, 5rem);
    }
    
    .btn-hero-rsvp {
        padding: 10px 30px;
        font-size: 0.8rem;
        margin-top: 20px;
    }
    
    .hero-cta-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 64px;
    }
    .scroll-indicator-desktop {
        display: none;
    }
    .scroll-indicator-mobile {
        display: block;
    }
    
    .wedding-date p {
        font-size: 1.3rem;
    }
    
    .date-divider {
        width: 30px;
    }
    
    .hero {
        min-height: 100vh;
        min-height: 100svh;
    }
    
    .couple-names {
        font-size: clamp(3.5rem, 10vw, 6rem);
    }
    
    .wedding-date p {
        font-size: 1.5rem;
    }
    
    .btn-hero-rsvp {
        padding: 14px 40px;
        font-size: 1.1rem;
    }
    
    section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .quote-section {
        padding: 80px 20px;
    }
    
    .quote-mark {
        font-size: 4.5rem;
    }
    
    .quote-text {
        font-size: 1.6rem;
    }
    
    .story-header {
        top: 25px;
    }
    
    .story-title {
        font-size: 2.5rem;
    }
    
    .story-scroll-hint {
        display: flex;
    }
    
    .story-horizontal-wrapper {
        padding-top: 100px;
    }
    
    .story-track {
        gap: 50px;
        padding-left: calc(50vw - 160px);
        padding-right: calc(50vw - 160px);
    }
    
    .story-slide {
        width: 320px;
    }
    
    .story-slide-image {
        height: 350px;
    }
    
    .story-slide-content {
        padding: 25px 15px;
    }
    
    .story-slide-content h3 {
        font-size: 1.5rem;
    }
    
    .story-slide-content p {
        font-size: 0.95rem;
    }
    
    .story-scroll-spacer {
        height: 260vh;
    }
    
    /* Event Section - Tablet */
    .event {
        padding: 80px 0;
    }
    
    .event-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .event-illustration {
        height: 80px;
        margin-bottom: 20px;
    }
    
    .event-illustration svg {
        width: 65px;
        height: 65px;
    }
    
    .event-title {
        font-size: 0.85rem;
        letter-spacing: 3px;
    }
    
    .event-time,
    .event-venue {
        font-size: 0.95rem;
    }
    
    .event-address {
        font-size: 0.85rem;
    }
    
    .event-map-btn {
        padding: 10px 25px;
        font-size: 0.75rem;
    }
    
    /* Footer – one viewport; reduce gap between countdown and image */
    .footer-love {
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow: hidden;
        justify-content: center;
    }
    .footer-spacer {
        display: block;
        min-height: 12px;
    }
    .countdown-label {
        font-size: 1.35rem;
        letter-spacing: 3px;
        margin-bottom: 20px;
    }
    
    .footer-love .countdown-wrapper {
        margin-bottom: 16px;
    }
    
    .countdown-wrapper {
        padding: 32px 24px 20px;
    }
    
    /* Countdown - Tablet */
    
    .countdown-flip {
        gap: 28px;
    }
    
    .flip-card {
        width: 50px;
        height: 60px;
    }
    
    .countdown-digits[data-unit="days"] .flip-card {
        width: 46px;
        height: 56px;
    }
    
    .flip-digit {
        font-size: 1.9rem;
    }
    
    .countdown-digits[data-unit="days"] .flip-digit {
        font-size: 1.7rem;
    }
    
    /* Footer - Tablet */
    .footer-content {
        gap: 40px;
    }
    
    .footer-image {
        width: 240px;
        height: 300px;
    }
    
    .with-love {
        font-size: 2.2rem;
    }
    
    .with-love span {
        font-size: 3rem;
    }
    
    .couple-signature {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .navbar {
        padding: 15px 20px;
    }
    
    .navbar.scrolled {
        padding: 10px 20px;
    }
    
    .nav-links {
        width: 260px;
        padding: 70px 25px 25px;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 18px 0;
    }
    
    /* Hero Section */
    .hero {
        min-height: 100vh;
        min-height: 100svh;
    }
    
    .hero-bg-ring {
        width: 55vmin;
        height: 55vmin;
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .save-date {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .couple-names {
        font-size: clamp(3rem, 15vw, 5rem);
        margin-bottom: 20px;
    }
    
    .wedding-date {
        flex-direction: column;
        gap: 8px;
    }
    
    .wedding-date p {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .date-divider {
        width: 40px;
        height: 1px;
    }
    
    .btn-hero-rsvp {
        margin-top: 30px;
        padding: 12px 35px;
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    .ceremony {
        padding: 48px 15px 56px;
    }
    
    .ceremony-title {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
        letter-spacing: 0.12em;
        margin-bottom: 28px;
    }
    
    .ceremony-heading {
        font-size: 0.7rem;
    }
    
    .ceremony-venue-name,
    .ceremony-dress-code-name {
        font-size: 1.05rem;
    }
    
    .ceremony-text,
    .ceremony-address {
        font-size: 0.95rem;
        line-height: 1.65;
    }
    
    .ceremony-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
    }
    
    .ceremony-columns {
        gap: 36px;
        margin-bottom: 36px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    /* Quote Section */
    .quote-section {
        padding: 50px 15px;
    }
    
    .quote-mark {
        font-size: 4.5rem;
    }
    
    .quote-text {
        font-size: 1.5rem;
        line-height: 1.7;
    }
    
    .quote-author {
        font-size: 0.85rem;
        letter-spacing: 3px;
    }
    
    /* Our Story Section - Mobile Optimized */
    .story-header {
        top: 12px;
    }
    
    .story-title {
        font-size: 2.2rem;
    }
    
    .story-subtitle {
        font-size: 1rem;
    }
    
    .story-horizontal-wrapper {
        padding-top: 70px;
    }
    
    .story-track {
        gap: 20px;
        padding-left: calc(50vw - 110px);
        padding-right: calc(50vw - 110px);
    }
    
    .story-slide {
        width: 220px;
        transform: scale(0.75);
        filter: blur(1px);
        opacity: 0.3;
    }
    
    .story-slide.active {
        transform: scale(1);
        filter: blur(0);
        opacity: 1;
    }
    
    .story-slide-image {
        height: 280px;
        border-radius: 6px;
    }
    
    .story-slide-content {
        padding: 15px 8px;
    }
    
    .story-date {
        font-size: 0.85rem;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }
    
    .story-slide-content h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .story-slide-content p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .story-scroll-spacer {
        height: 200vh;
    }
    
    /* Event Section - Mobile */
    .event {
        padding: 60px 0;
    }
    
    .event-details {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .event-card {
        padding: 10px;
    }
    
    .event-illustration {
        height: 70px;
        margin-bottom: 20px;
    }
    
    .event-illustration svg {
        width: 60px;
        height: 60px;
    }
    
    .event-title {
        font-size: 1rem;
        letter-spacing: 3px;
    }
    
    .event-star {
        font-size: 0.75rem;
        margin-bottom: 15px;
    }
    
    .event-time {
        font-size: 1.15rem;
    }
    
    .event-venue {
        font-size: 1.1rem;
    }
    
    .event-address {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .event-map-btn {
        padding: 12px 30px;
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
    
    /* RSVP Section */
    .rsvp-form {
        padding: 25px 15px;
        border-radius: 12px;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"] {
        padding: 12px 0;
        font-size: 1.1rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-option {
        padding: 12px 15px;
    }
    
    .btn-submit {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    /* Countdown Section */
    .footer-love {
        padding: 60px 20px 40px;
    }
    
    .footer-love .countdown-wrapper {
        margin-bottom: 12px;
    }
    
    .countdown-wrapper {
        padding: 24px 20px 16px;
    }
    
    .countdown-label {
        font-size: 1.2rem;
        letter-spacing: 3px;
        margin-bottom: 16px;
    }
    
    .countdown-flip {
        gap: 22px;
    }
    
    .countdown-unit-label {
        font-size: 0.7rem;
    }
    
    .flip-card {
        width: 44px;
        height: 54px;
    }
    
    .countdown-digits[data-unit="days"] .flip-card {
        width: 40px;
        height: 50px;
    }
    
    .flip-digit {
        font-size: 1.6rem;
    }
    
    .countdown-digits[data-unit="days"] .flip-digit {
        font-size: 1.45rem;
    }
    
    .footer-spacer {
        min-height: 12px;
    }
    
    /* Footer with Love – countdown + title + image fit in one viewport */
    .footer-love {
        padding: 28px 20px 16px;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow: hidden;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-image {
        width: 200px;
        max-height: 24vh;
        transform: rotate(-3deg);
    }
    
    .footer-image img {
        width: 100%;
        height: auto;
        max-height: 24vh;
        object-fit: contain;
        display: block;
    }
    
    .with-love {
        font-size: 2rem;
    }
    
    .with-love span {
        font-size: 2.8rem;
    }
    
    .couple-signature {
        font-size: 1.75rem;
    }
    
    .copyright-text {
        padding-top: 16px;
        font-size: 0.8rem;
    }
    
    .footer-text {
        text-align: center;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .nav-links {
        gap: 8px;
    }
    
    .nav-links a {
        font-size: 0.75rem;
    }
    
    .ceremony-title {
        font-size: 1.25rem;
        letter-spacing: 0.1em;
        margin-bottom: 24px;
    }
    
    .ceremony-heading {
        font-size: 0.65rem;
    }
    
    .ceremony-venue-name,
    .ceremony-dress-code-name {
        font-size: 1rem;
    }
    
    .ceremony-text,
    .ceremony-address {
        font-size: 0.9rem;
    }
    
    .ceremony-icon {
        width: 40px;
        height: 40px;
    }
    
    .couple-names {
        font-size: clamp(2.5rem, 14vw, 4rem);
    }
    
    .story-track {
        gap: 15px;
        padding-left: calc(50vw - 95px);
        padding-right: calc(50vw - 95px);
    }
    
    .story-slide {
        width: 190px;
    }
    
    .story-slide-image {
        height: 240px;
    }
    
    .story-title {
        font-size: 1.6rem;
    }
    
    /* Countdown - Extra Small */
    .countdown-wrapper {
        padding: 28px 16px;
    }
    
    .countdown-label {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .countdown-flip {
        gap: 18px;
        justify-content: center;
    }
    
    .countdown-unit-label {
        font-size: 0.65rem;
    }
    
    .flip-card {
        width: 40px;
        height: 50px;
    }
    
    .countdown-digits[data-unit="days"] .flip-card {
        width: 36px;
        height: 46px;
    }
    
    .flip-digit {
        font-size: 1.4rem;
    }
    
    .countdown-digits[data-unit="days"] .flip-digit {
        font-size: 1.25rem;
    }
    
    .ceremony-map-btn {
        padding: 12px 28px;
        min-height: 44px;
    }
    
    .btn-hero-rsvp {
        min-height: 48px;
        padding: 12px 28px;
    }
    
    .btn-footer-rsvp {
        min-height: 48px;
        padding: 12px 28px;
    }
    
    /* Footer - Extra Small */
    .footer-image {
        width: 180px;
        height: 230px;
    }
    
    .with-love {
        font-size: 1.6rem;
    }
    
    .with-love span {
        font-size: 2.2rem;
    }
    
    .couple-signature {
        font-size: 1.5rem;
    }
    
    /* Event - Extra Small */
    .event-details {
        max-width: 260px;
    }
    
    .event-illustration svg {
        width: 50px;
        height: 50px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .rsvp {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 50px 20px;
        background: var(--primary);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
