/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    zoom: 0.8;
}

@supports not (zoom: 0.8) {
    html {
        -webkit-transform: scale(0.8);
        -webkit-transform-origin: 0 0;
        transform: scale(0.8);
        transform-origin: 0 0;
        width: 125%;
        height: 125%;
    }
    
    body {
        width: 125%;
        height: 125%;
    }
}

:root {
    /* Palette sampled from the invitation photo */
    --blush-100: #f6dce5;  /* light background pink */
    --blush-200: #f3c4d8;  /* medium pink */
    --pink-500: #f39ac1;   /* RSVP card pink */
    --pink-header: #FFB3DB; /* exact header pink */
    --peach-500: #f7b38b;  /* details card peach */
    --lavender-400: #bda6e6; /* invitation lavender */
    --accent-600: #cdc1d9;  /* primary accent (text, buttons) */
    --accent-700: #cdc1d9;  /* darker accent */
    --text-900: #3a2e4e;    /* deep neutral for text */
    --text-700: #6e5a7e;    /* medium neutral */
    --butter-500: #f6e27a;  /* butter yellow accent */
    --hero-bg: #F7F5F2;     /* main background under header */
    --ornament-image: none; /* svg data-url for announcement ornament */
    --ornament-opacity: 0.15;
    --ornament-color: #ffffff;
    /* Hero full-section pattern */
    --hero-pattern-image: none; /* data-url svg */
    --hero-pattern-opacity: 0.08;
    --hero-pattern-size: 220px;
    /* Heading background colors */
    --h1-bg: transparent;
    --h2-bg: transparent;
    --h3-bg: transparent;
    /* Heading text colors */
    --h3-color: #cdc1d9;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-900);
    background-color: #F7F5F2;
    color-scheme: light;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-family: var(--hero-title-font, 'Great Vibes'), cursive;
    font-weight: var(--hero-title-weight, 400);
    background-color: var(--h1-bg);
    display: inline-block;
    padding: 0.3em 0.6em;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #F3C4D8;
    background-color: var(--h2-bg);
    display: inline-block;
    padding: 0.4em 0.8em;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--h3-color, #cdc1d9);
    background-color: var(--h3-bg);
    display: inline-block;
    padding: 0.3em 0.6em;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Force h3 color to #cdc1d9 */
h3 {
    color: #cdc1d9 !important;
}

/* Exception for success message - white text */
.rsvp-success-message h3,
.rsvp-success-message h3 * {
    color: white !important;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
    display: block;
}

.container > h2 {
    text-align: center;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 1rem;
}

p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 1rem;
}

/* ===== LAYOUT & SECTIONS ===== */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Decorative divider between sections (Step 2) */
.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-600), transparent);
    opacity: 0.3;
}

.section:first-of-type::before {
    display: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.container > * {
    text-align: left;
}

.container > h2 {
    text-align: center;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: #F3C4D8;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 700;
}

.logo a:hover {
    color: #ffffff;
}

.logo .brand-vp { color: #ffffff; font-weight: 700; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--butter-500);
}
.nav-links a:focus-visible { color: var(--butter-500); outline: none; }

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: relative;
    width: 30px;
    height: 25px;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.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);
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--hero-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-pattern-image, none);
    background-size: var(--hero-pattern-size, 200px);
    background-repeat: repeat;
    background-position: center;
    opacity: var(--hero-pattern-opacity, 0.15);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.25' stroke='%23E3D7F1' stroke-width='1.8' fill='none'%3E%3Cpath d='M50 150 Q80 100 120 150 Q150 180 180 150'/%3E%3Cpath d='M120 150 Q140 130 160 150'/%3E%3Cpath d='M100 180 Q110 160 120 180 Q130 200 140 180'/%3E%3Cpath d='M200 120 Q230 80 270 120 Q300 150 330 120'/%3E%3Cpath d='M270 120 Q290 100 310 120'/%3E%3Cpath d='M250 150 Q260 130 270 150 Q280 170 290 150'/%3E%3Cpath d='M80 250 Q110 200 150 250 Q180 280 210 250'/%3E%3Cpath d='M150 250 Q170 230 190 250'/%3E%3Cpath d='M130 280 Q140 260 150 280 Q160 300 170 280'/%3E%3Cpath d='M280 220 Q310 180 350 220'/%3E%3Cpath d='M350 220 Q370 200 390 220'/%3E%3Cpath d='M320 250 Q330 230 340 250 Q350 270 360 250'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 500px 500px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    color: #F3C4D8;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--hero-subtitle, var(--accent-700));
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .names {
    font-size: 2.5rem;
    color: var(--hero-names, var(--accent-600));
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero .year {
    font-size: 1.8rem;
    color: var(--hero-year, var(--accent-700));
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.wedding-announcement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    animation: fadeInUp 1s ease-out 0.3s both;
    position: relative;
}
.wedding-announcement::before {
    content: "";
    position: absolute;
    inset: -30px -60px;
    background-image: var(--ornament-image);
    background-size: 320px 320px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--ornament-opacity);
    pointer-events: none;
}

.decorative-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--hero-line, var(--accent-600)), transparent);
    border-radius: 1px;
}

.announcement-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #F3C4D8;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== COUNTDOWN TIMER ===== */
.countdown {
    margin-top: 30px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.countdown-title {
    font-size: 1.5rem;
    color: #cdc1d9;
    margin-bottom: 25px;
    font-weight: 500;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 25px;
    border-radius: 10px;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Enhanced shadows (Step 3) */
.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(138, 109, 201, 0.25);
}

.countdown-number {
    font-size: 4rem;
    font-weight: 700;
    color: #cdc1d9;
    display: block;
    font-family: 'Playfair Display', serif;
}

.countdown-label {
    font-size: 1.3rem;
    color: #cdc1d9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* ===== OUR STORY SECTION ===== */
.story {
    background-color: transparent;
}

.story-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.story p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

/* ===== WEDDING DETAILS SECTION ===== */
.details {
    background-color: transparent;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.details-grid .detail-card:nth-child(1),
.details-grid .detail-card:nth-child(2) {
    grid-column: span 1;
}

.details-grid .detail-card:nth-child(3) {
    grid-column: span 2;
}

.details-grid .detail-card:nth-child(4),
.details-grid .detail-card:nth-child(5) {
    grid-column: span 1;
}

.details-grid .detail-card:nth-child(6) {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .details-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        margin-top: 30px;
        padding-bottom: 10px;
    }
    
    /* Hide scrollbar but keep functionality */
    .details-grid::-webkit-scrollbar {
        display: none;
    }
    
    .details-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .details-grid .detail-card {
        flex: 0 0 80%;
        max-width: 80%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        grid-column: span 1 !important;
        margin-right: 15px;
    }
    
    .details-grid .detail-card:last-child {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .details-grid .detail-card {
        flex: 0 0 85%;
        max-width: 85%;
        margin-right: 10px;
    }
}

.details-stacked {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.detail-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Enhanced shadows and depth (Step 3) */
.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.detail-card i {
    font-size: 2.5rem;
    color: #cdc1d9;
    margin-bottom: 20px;
    display: block;
}

.detail-card h3 {
    color: #cdc1d9;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

.detail-card p {
    color: #666;
    text-align: center;
    width: 100%;
    font-size: 1.1rem;
}

.dresscode-colors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.color-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.venue-image {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.venue-image img {
    margin: 0 auto;
}

.venue-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.venue-photo:hover {
    transform: scale(1.02);
}

.venue-link {
    margin-top: 15px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

.venue-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #cdc1d9;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    text-align: center;
}

.venue-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.18);
    color: #ffffff;
    text-decoration: none;
    background: #cdc1d9;
}

.venue-button i {
    font-size: 0.8rem;
    color: #ffffff;
}

.calendar-links {
    margin-top: 15px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

.calendar-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #cdc1d9;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.calendar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.18);
    color: #ffffff;
    text-decoration: none;
    background: #cdc1d9;
}

.calendar-button i {
    font-size: 0.8rem;
    color: #ffffff;
}

/* ===== RSVP SECTION ===== */
.rsvp {
    background-color: transparent;
}

.rsvp-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.rsvp-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.rsvp-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 10px;
}

.rsvp-header p:last-child {
    font-size: 0.9rem;
    color: #999;
    margin-top: 10px;
}

.person-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid #e0e0e0;
    position: relative;
}

.person-section:first-of-type {
    border-color: #cdc1d9;
    border-width: 3px;
}

.person-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.person-header h3 {
    font-family: 'Playfair Display', serif;
    color: #cdc1d9;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.person-number {
    background: #cdc1d9;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.remove-person-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.remove-person-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.rsvp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.rsvp-form-group {
    margin-bottom: 20px;
}

.rsvp-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.rsvp-form-group label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.rsvp-form-group input,
.rsvp-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.rsvp-form-group input:focus,
.rsvp-form-group textarea:focus {
    outline: none;
    border-color: #cdc1d9;
    box-shadow: 0 0 0 3px rgba(205, 193, 217, 0.1);
}

.rsvp-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.rsvp-form-group.full-width {
    grid-column: 1 / -1;
}

.rsvp-radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.rsvp-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rsvp-radio-option input[type="radio"] {
    width: auto;
    cursor: pointer;
}

.rsvp-radio-option label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

.rsvp-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.rsvp-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
}

.rsvp-btn-primary {
    background: #cdc1d9;
    color: white;
    flex: 1;
    min-width: 200px;
}

.rsvp-btn-primary:hover {
    background: #b8a8c9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(205, 193, 217, 0.3);
}

.rsvp-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.rsvp-btn-secondary:hover {
    background: #e0e0e0;
}

.rsvp-btn-add {
    background: #cdc1d9;
    color: white;
    width: 100%;
    justify-content: center;
    margin-bottom: 30px;
}

.rsvp-btn-add:hover {
    background: #b8a8c9;
}

.rsvp-success-message {
    background: var(--hero-title, var(--accent-600));
    color: #ffffff !important;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

.rsvp-success-message.show {
    display: block;
}

/* Force white color for all elements in success message - highest priority */
.rsvp-success-message h3,
.rsvp-success-message h3 *,
.rsvp-success-message h3::before,
.rsvp-success-message h3::after,
#successMessage h3,
#successMessage h3 *,
.rsvp-success-message * {
    color: white !important;
}

.rsvp-success-message i {
    color: white !important;
}

.rsvp-summary-section {
    background: #cdc1d9;
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
}

.rsvp-summary-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.rsvp-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rsvp-stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
}

.rsvp-stat-item .number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.rsvp-stat-item .label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.rsvp-additional-fields {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.rsvp-additional-fields.hidden {
    display: none;
}

@media (max-width: 768px) {
    .rsvp-form-row {
        grid-template-columns: 1fr;
    }
    
    .rsvp-container {
        padding: 25px;
    }
    
    .person-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .rsvp-action-buttons {
        flex-direction: column;
    }
    
    .rsvp-btn {
        width: 100%;
    }
}

/* ===== GIFTS SECTION ===== */
.gifts {
    background-color: transparent;
}

.gifts-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.gifts-content p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

/* ===== GALLERY SECTION ===== */
.gallery {
    background-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        margin-top: 30px;
        padding-bottom: 10px;
    }
    
    /* Hide scrollbar but keep functionality */
    .gallery-grid::-webkit-scrollbar {
        display: none;
    }
    
    .gallery-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .gallery-item {
        flex: 0 0 80%;
        max-width: 80%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin-right: 15px;
    }
    
    .gallery-item:last-child {
        margin-right: 0;
    }
    
    .gallery-photo {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 85%;
        max-width: 85%;
        margin-right: 10px;
    }
    
    .gallery-photo {
        height: 350px;
        object-fit: cover;
        object-position: center top;
    }
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-photo {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center 70%;
    display: block;
    cursor: pointer;
}
.photo-first {
    object-position: center 75%;
}
.photo-fourth {
    object-position: center 70%;
}

@media (max-width: 768px) {
    .gallery-photo {
        object-fit: cover;
        object-position: center 65%;
    }
    
    .photo-first {
        object-position: center 70%;
    }
    
    .photo-fourth {
        object-position: center 65%;
    }
    
    .photo-six,
    .photo-seven,
    .photo-eight,
    .photo-nine {
        object-position: center 60%;
    }
}

@media (max-width: 480px) {
    .gallery-photo {
        object-fit: cover;
        object-position: center 70%;
    }
    
    .photo-first {
        object-position: center 75%;
    }
    
    .photo-fourth {
        object-position: center 70%;
    }
    
    .photo-six,
    .photo-seven,
    .photo-eight,
    .photo-nine {
        object-position: center 65%;
    }
}

.gallery-placeholder {
.gallery-caption { display: none; }
    height: 250px;
    background: linear-gradient(135deg, var(--blush-100) 0%, var(--blush-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-600);
    font-size: 1.2rem;
}

/* ===== NAVIGATION SECTION ===== */
.navigation {
    background-color: transparent;
}

/* ===== SIMPLE LIGHTBOX ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.lightbox-overlay.open { display: flex; }
.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.navigation-content {
    max-width: 1000px;
    margin: 0 auto;
}

.map-container {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-frame {
    width: 100%;
    height: 450px;
    border: none;
}

.navigation-info {
    margin-top: 30px;
    text-align: center;
}

.navigation-info h3 {
    color: #F7D9C4;
    margin-bottom: 15px;
}

.navigation-info p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ===== CONTACTS SECTION ===== */
.contacts {
    background-color: transparent;
}

.expectations {
    background-color: transparent;
}

.program-section {
    margin-bottom: 60px;
}

.program-section h3 {
    text-align: center;
    color: #F7D9C4;
    margin-bottom: 10px;
    font-size: 1.8rem;
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.program-note {
    text-align: center;
    font-size: 0.85rem;
    font-style: italic;
    color: #000000;
    margin-top: 10px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.program-note i {
    color: #cdc1d9;
    margin-right: 5px;
}

.program-timeline {
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #cdc1d9;
    min-width: 80px;
    font-family: 'Playfair Display', serif;
}

.event {
    font-size: 1.2rem;
    color: #333;
    margin-left: 20px;
    font-weight: 500;
}

.vendors-section {
    margin-top: 60px;
}

.vendors-section h3 {
    text-align: center;
    color: #F7D9C4;
    margin-bottom: 40px;
    font-size: 1.8rem;
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 0;
}

@media (max-width: 768px) {
    .vendors-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        margin-top: 0;
        padding-bottom: 10px;
    }
    
    /* Hide scrollbar but keep functionality */
    .vendors-grid::-webkit-scrollbar {
        display: none;
    }
    
    .vendors-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .vendors-grid .vendor-tile {
        flex: 0 0 80%;
        max-width: 80%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin-right: 15px;
    }
    
    .vendors-grid .vendor-tile:last-child {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .vendors-grid .vendor-tile {
        flex: 0 0 85%;
        max-width: 85%;
        margin-right: 10px;
    }
}

.vendor-tile {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.vendor-tile:hover {
    transform: translateY(-5px);
}

.vendor-logo {
    display: block;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.vendor-logo:hover {
    transform: scale(1.05);
}

.vendor-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8f9fa;
    padding: 10px;
}

.vendor-icon {
    font-size: 3rem;
    color: #cdc1d9;
    display: block;
    margin: 0 auto;
}

.vendor-tile h4 {
    color: #cdc1d9;
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.vendors-grid .vendor-logo { color: #cdc1d9; }
.vendors-grid .vendor-logo:hover { color: #cdc1d9; }

.vendor-tile p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .contacts-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        margin-top: 30px;
        padding-bottom: 10px;
    }
    
    /* Hide scrollbar but keep functionality */
    .contacts-grid::-webkit-scrollbar {
        display: none;
    }
    
    .contacts-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .contacts-grid .contact-card {
        flex: 0 0 80%;
        max-width: 80%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        width: 80%;
        margin-right: 15px;
    }
    
    .contacts-grid .contact-card:last-child {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .contacts-grid .contact-card {
        flex: 0 0 85%;
        max-width: 85%;
        width: 85%;
        margin-right: 10px;
    }
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    width: 500px;
    max-width: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--accent-600);
    margin-bottom: 20px;
}

.contact-icon img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 3px solid #F3C4D8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.contact-icon img:hover {
    transform: scale(2.2);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 10;
    position: relative;
}

.contact-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #F3C4D8;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.contact-role {
    font-size: 1rem;
    color: #cdc1d9;
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-info {
    color: #666;
    line-height: 1.6;
}

.contact-info a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
    background: #cdc1d9;
    color: white;
    text-align: center;
    padding: 4px 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

footer .container {
    text-align: center !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer h3 {
    color: white !important;
    text-align: center !important;
    margin: 1px 0 !important;
    padding: 0 !important;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
}

footer p {
    color: white !important;
    text-align: center !important;
    margin: 1px 0 !important;
    padding: 0 !important;
    font-size: 0.95rem;
    width: 100%;
}

footer * {
    color: white !important;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #F3C4D8;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #F3C4D8;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.back-to-top:active {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll animation classes */
.scroll-animate {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.fade-in-up {
    transform: translateY(40px);
}

.scroll-animate.fade-in {
    transform: none;
}

.scroll-animate.slide-in-left {
    transform: translateX(-50px);
}

.scroll-animate.slide-in-right {
    transform: translateX(50px);
}

.scroll-animate.scale-in {
    transform: scale(0.9);
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}




/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 5rem);
        white-space: nowrap;
    }
    
    h2 {
        font-size: 2.4rem;
    }
    
    .hero .names {
        font-size: 2.5rem;
    }
    
    .announcement-text {
        font-size: 1.3rem;
    }
    
    .countdown-timer {
        gap: 12px;
    }
    
    .countdown-item {
        min-width: 85px;
        padding: 18px 20px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-label {
        font-size: 1rem;
    }
    
    .countdown-title {
        font-size: 1.3rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--pink-header, #f6dce5);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 80px;
        padding-left: 30px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }
    
    .nav-links li {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .section {
        padding: 40px 15px;
    }
    
    .rsvp-container {
        padding: 20px 15px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .details-stacked {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }
    
    .detail-card {
        padding: 20px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-icon img {
        width: 80px;
        height: 80px;
    }
    
    .vendor-tile {
        padding: 20px;
    }
    
    .vendors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .time {
        min-width: auto;
        margin-bottom: 10px;
        font-size: 1.2rem;
    }
    
    .event {
        margin-left: 0;
        font-size: 1rem;
    }
    
    .map-frame {
        height: 300px;
    }
    
    .announcement-text {
        font-size: 1.2rem;
    }
    
    .decorative-line {
        width: 40px;
    }
    
    .person-section {
        padding: 20px;
    }
    
    .food-section,
    .accommodation-section {
        padding: 15px;
    }
    
    .map-frame {
        height: 350px;
    }
}

@media (max-width: 480px) {
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
        line-height: 1.2;
    }
    
    .hero-content {
        padding: 30px 15px;
    }
    
    .hero .names {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 30px 10px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .detail-card {
        padding: 15px;
    }
    
    .contact-card {
        padding: 15px;
    }
    
    .person-section {
        padding: 15px;
    }
    
    .rsvp-container {
        padding: 15px 10px;
    }
    
    .rsvp-header h1 {
        font-size: 2rem;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        padding: 15px;
        min-width: 70px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.85rem;
    }
    
    .countdown-title {
        font-size: 1.2rem;
    }
    
    .announcement-text {
        font-size: 1.2rem;
    }
    
    .decorative-line {
        width: 30px;
    }
    
    .gallery-photo {
        height: 250px;
    }
    
    .map-frame {
        height: 250px;
    }
    
    header {
        padding: 8px 0;
    }
    
    .logo a {
        font-size: 0.85rem;
    }
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-bg, #E3D7F1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: #F3C4D8;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.loading-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #F3C4D8;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(243, 196, 216, 0.2);
    border-top-color: #F3C4D8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .loading-title {
        font-size: 3rem;
    }
    
    .loading-subtitle {
        font-size: 1rem;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
    }
}

/* Force white color for success message - highest priority at end of file */
#successMessage,
#successMessage h3,
#successMessage h3 *,
#successMessage *,
.rsvp-success-message h3,
.rsvp-container .rsvp-success-message h3,
.rsvp-container #successMessage h3 {
    color: #ffffff !important;
}

/* Override any text-transform or other h3 styles for success message */
#successMessage h3 {
    color: #ffffff !important;
    text-transform: uppercase;
}
