/* ============================================================
   IMPORTS & VARIABLES
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Dancing+Script:wght@400;500;600;700&family=Great+Vibes&family=Amatic+SC:wght@400;700&family=Kaushan+Script&family=Allura&family=Alex+Brush&display=swap');

:root {
    /* Beach Wedding Color Palette */
    --primary: #8b7355;
    --primary-dark: #6b594f;
    --primary-light: #a69080;
    --accent: #d4af37;
    --accent-light: #e8c564;
    --accent-dark: #b8941f;

    /* Sand and Gold Wedding Colors */
    --sand-light: #F5E6A3;
    --sand: #E8D078;
    --sand-dark: #D4BE5A;

    --text-dark: #2c2c2c;
    --text-medium: #4a4a4a;
    --text-light: #666;
    --text-lighter: #999;
    --bg-cream: #faf8f5;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 100%);
    --accent-gradient: linear-gradient(135deg, #d4af37 0%, #f4d479 100%);

    /* Elegant gradients */
    --elegant-gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 15px 50px rgba(0, 0, 0, 0.12);
    --shadow-golden: 0 8px 32px rgba(212, 175, 55, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Typography scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
}

html {
    scroll-behavior: smooth;
}

/* ============================================================
   BASE STYLES
============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    background: var(--bg-gradient);
    color: var(--text-dark);
    text-align: center;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
    padding: 30px;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Beautiful ornate frame */
body::after {
    content: '';
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 4px solid transparent;
    border-image: linear-gradient(45deg,
        var(--accent) 0%,
        var(--sand) 25%,
        var(--accent) 50%,
        var(--sand) 75%,
        var(--accent) 100%) 1;
    border-radius: 25px;
    pointer-events: none;
    z-index: 1000;
    box-shadow:
        inset 0 0 20px rgba(212, 175, 55, 0.1),
        0 0 30px rgba(212, 175, 55, 0.1);
}

body::before {
    content: '';
    position: fixed;
    top: 35px;
    left: 35px;
    right: 35px;
    bottom: 35px;
    background:
        radial-gradient(circle at 20% 80%, rgba(245, 230, 163, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border: 3px double rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    pointer-events: none;
    z-index: -1;
    box-shadow:
        inset 0 0 50px rgba(245, 230, 163, 0.1),
        0 0 20px rgba(212, 175, 55, 0.05);
}

.section {
    padding: 100px 60px;
    position: relative;
    transition: var(--transition);
    margin: 0 20px;
}

.section-title {
    font-family: "Cormorant", serif;
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg,
        var(--sand-dark) 0%,
        var(--accent) 50%,
        var(--sand) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::before {
    content: "♥";
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6em;
    color: var(--accent);
    opacity: 0.7;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.section-title::after {
    content: "♥";
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6em;
    color: var(--accent);
    opacity: 0.7;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.section-title:hover::before,
.section-title:hover::after {
    transform: translateY(-50%) scale(1.2);
    opacity: 1;
}

/* Elegant underline for section titles */
.section-subtitle {
    position: relative;
    margin-bottom: 50px;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
    box-shadow: var(--shadow-golden);
}

/* ============================================================
   LOADING SCREEN
============================================================ */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.loading-heart {
    animation: heartbeat 1.5s ease-in-out infinite;
    margin-bottom: 20px;
}

.loading-content h3 {
    font-family: "Cormorant", serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.loading-content p {
    font-family: "Montserrat", sans-serif;
    color: var(--text-light);
    font-size: 0.9rem;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   DECORATIVE FRAME CORNERS
============================================================ */
.frame-corner {
    position: fixed;
    width: 80px;
    height: 80px;
    z-index: 999;
    pointer-events: none;
}

.frame-corner::before,
.frame-corner::after {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, var(--accent), var(--sand));
    border-radius: 2px;
}

/* Top-left corner */
.frame-corner.top-left {
    top: 25px;
    left: 25px;
}

.frame-corner.top-left::before {
    width: 100%;
    height: 3px;
    top: 0;
    left: 0;
}

.frame-corner.top-left::after {
    width: 3px;
    height: 100%;
    top: 0;
    left: 0;
}

/* Top-right corner */
.frame-corner.top-right {
    top: 25px;
    right: 25px;
}

.frame-corner.top-right::before {
    width: 100%;
    height: 3px;
    top: 0;
    right: 0;
}

.frame-corner.top-right::after {
    width: 3px;
    height: 100%;
    top: 0;
    right: 0;
}

/* Bottom-left corner */
.frame-corner.bottom-left {
    bottom: 25px;
    left: 25px;
}

.frame-corner.bottom-left::before {
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
}

.frame-corner.bottom-left::after {
    width: 3px;
    height: 100%;
    bottom: 0;
    left: 0;
}

/* Bottom-right corner */
.frame-corner.bottom-right {
    bottom: 25px;
    right: 25px;
}

.frame-corner.bottom-right::before {
    width: 100%;
    height: 3px;
    bottom: 0;
    right: 0;
}

.frame-corner.bottom-right::after {
    width: 3px;
    height: 100%;
    bottom: 0;
    right: 0;
}

/* ============================================================
   SECTION NAVIGATION
============================================================ */
#section-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    position: relative;
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
}

.nav-dot.active,
.nav-dot:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.3);
    box-shadow: var(--shadow-golden);
}

.nav-dot.rsvp-highlight {
    border-color: var(--accent);
    background: var(--accent-gradient);
    box-shadow: var(--shadow-golden);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.dot-label {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.nav-dot:hover .dot-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* ============================================================
   SECTION SEPARATORS
============================================================ */
.section-separator {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-white) 50%, var(--bg-cream) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 115, 85, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.wedding-details-card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-medium), var(--shadow-golden);
    text-align: center;
    max-width: 600px;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-white), var(--bg-white)) padding-box,
                var(--accent-gradient) border-box;
    position: relative;
    z-index: 1;
}

.wedding-details-card h3 {
    font-family: "Cormorant", serif;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.detail-item {
    text-align: center;
    padding: 25px 20px;
    border-radius: 20px;
    background: linear-gradient(145deg,
        rgba(248, 246, 240, 0.8) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(127, 205, 205, 0.1) 100%);
    transition: var(--transition-bounce);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
    border-radius: 18px;
}

.detail-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-soft),
                0 12px 30px rgba(127, 205, 205, 0.2);
    border-color: var(--accent);
}

.detail-item:hover::before {
    opacity: 0.1;
}

.detail-icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
    filter: drop-shadow(0 3px 6px rgba(46, 134, 171, 0.2));
    position: relative;
    z-index: 1;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.detail-text {
    font-family: "Montserrat", sans-serif;
}

.detail-text strong {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

/* ============================================================
   RSVP CALL TO ACTION
============================================================ */
.rsvp-cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rsvp-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
    animation: float 20s linear infinite;
}

.rsvp-cta-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.rsvp-cta-content h2 {
    font-family: "Cormorant", serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.rsvp-cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-gradient);
    color: var(--text-dark);
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-bounce);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.5);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button svg {
    animation: heartbeat 2s ease-in-out infinite;
}

/* ============================================================
   WEDDING PROGRAM SECTION
============================================================ */
.program-section {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-white) 50%, var(--bg-cream) 100%);
    padding: 100px 40px;
    position: relative;
}

.wedding-details-header {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px 0 60px 0;
    flex-wrap: wrap;
}

.wedding-details-header .detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-white);
    padding: 20px 30px;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--sand-light);
}

.wedding-details-header .detail-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.2));
}

.wedding-details-header .detail-text {
    font-family: "Cormorant", serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
}

.location-link {
    color: var(--text-dark);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.location-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    transform: translateY(-1px);
}

.location-link:active {
    transform: translateY(0);
}

.maps-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 5px;
    display: block;
    opacity: 0.8;
    transition: var(--transition);
}

.detail-item:hover .maps-hint {
    opacity: 1;
    color: var(--accent);
}

.program-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.program-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom,
        var(--sand-light) 0%,
        var(--accent) 50%,
        var(--sand-light) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-time {
    font-family: "Amatic SC", cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sand-dark);
    background: var(--bg-white);
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    min-width: 120px;
    text-align: center;
    position: relative;
    z-index: 2;
    border: 3px solid var(--sand);
}

.timeline-event {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    margin: 0 30px;
    flex: 1;
    text-align: center;
    border: 2px solid var(--sand-light);
    position: relative;
}

.timeline-event h3 {
    font-family: "Cormorant", serif;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--sand-dark) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.timeline-event p {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

.timeline-item:nth-child(odd) .timeline-event::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-right-color: var(--bg-white);
}

.timeline-item:nth-child(even) .timeline-event::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-left-color: var(--bg-white);
}

/* ============================================================
   THANK YOU SECTION
============================================================ */
.thank-you-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.thank-you-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
    animation: float 20s linear infinite;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.thank-you-content h2 {
    font-family: "Cormorant", serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.thank-you-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 40px;
}

.celebration-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.celebration-icons span {
    font-size: 2rem;
    animation: bounce 2s infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

.celebration-icons span:nth-child(1) { --i: 0; }
.celebration-icons span:nth-child(2) { --i: 1; }
.celebration-icons span:nth-child(3) { --i: 2; }
.celebration-icons span:nth-child(4) { --i: 3; }
.celebration-icons span:nth-child(5) { --i: 4; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ============================================================
   PETALS (More subtle and elegant)
============================================================ */
#petal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.petal {
    position: absolute;
    background-image: url('./images/petals/petal.png');
    background-size: cover;
    opacity: 0.4;
    border-radius: 50%;
    animation: petalFall linear infinite;
    filter: blur(0.5px);
}

@keyframes petalFall {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.1);
        opacity: 0.4;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(110vh) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* Variety in petal animations */
.petal:nth-child(2n) {
    animation-duration: 8s;
    animation-delay: -2s;
}

.petal:nth-child(3n) {
    animation-duration: 12s;
    animation-delay: -4s;
    filter: blur(1px);
}

.petal:nth-child(4n) {
    animation-duration: 6s;
    animation-delay: -1s;
}

/* ============================================================
   WEDDING INTRO - FULL WIDTH HERO (Premium Design)
============================================================ */
#wedding-intro {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* FULL WIDTH HEADER */
.wi-header-full {
    width: 100%;
    padding: 80px 60px;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-cream) 50%, var(--bg-white) 100%);
    text-align: center;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -1px 0 rgba(0,0,0,0.05);
}

.wi-title {
    font-family: "Cormorant", serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg,
        var(--sand-dark) 0%,
        var(--accent) 50%,
        var(--sand) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

/* Names Section */
.wi-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    gap: 0;
}

.wi-name-block {
    text-align: center;
    position: relative;
}

.wi-crown {
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
    animation: float 3s ease-in-out infinite;
    transition: var(--transition);
}

.wi-crown svg {
    width: 32px;
    height: 26px;
    transition: var(--transition);
}

.wi-crown:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(212, 175, 55, 0.4));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.wi-name {
    font-family: "Cormorant", serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    letter-spacing: 3px;
    background: linear-gradient(135deg,
        var(--sand-dark) 0%,
        var(--accent) 50%,
        var(--sand) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.wi-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 35px 0;
    opacity: 0.9;
}

.wi-divider svg {
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.2));
}
}

/* Countdown Timer */
#wi-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 40px);
    margin-top: 30px;
    padding: 50px 40px;
    background: linear-gradient(145deg,
        rgba(245, 230, 163, 0.9) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(232, 208, 120, 0.7) 100%);
    border-radius: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    flex-wrap: nowrap;
}

#wi-timer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
        transparent,
        rgba(245, 230, 163, 0.1),
        transparent,
        rgba(212, 175, 55, 0.1),
        transparent);
    animation: rotate 20s linear infinite;
}

#wi-timer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(245, 230, 163, 0.1) 0%,
        transparent 50%,
        rgba(212, 175, 55, 0.1) 100%);
    border-radius: 27px;
}

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

/* Wedding Description */
.wedding-description {
    margin-top: 40px;
    text-align: center;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.wedding-description p {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-light);
    font-style: italic;
    padding: 20px;
}

.wi-unit {
    text-align: center;
    position: relative;
    min-width: clamp(60px, 8vw, 80px);
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
}

.wi-number {
    font-family: "Cormorant", serif;
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 600;
    display: inline-block;
    background: linear-gradient(135deg,
        var(--sand-dark) 0%,
        var(--accent) 50%,
        var(--sand-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.1);
}

.wi-label {
    display: inline-block;
    font-size: clamp(10px, 2vw, 12px);
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    align-self: flex-end;
    margin-bottom: 8px;
}

.wi-dot {
    font-size: clamp(30px, 4vw, 40px);
    color: var(--accent);
    opacity: 0.6;
    align-self: center;
    margin: 0 clamp(5px, 2vw, 15px);
}

/* BEACH PHOTO SECTION */
.wi-beach-photo {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--sand);
}

.beach-image {
    width: 100%;
    height: 100%;
    background-image: url('https://sunandseabeachweddings.com/wp-content/uploads/2020/01/034-1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.beach-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(139,115,85,0.15) 0%,
        transparent 30%,
        transparent 70%,
        rgba(212,175,55,0.1) 100%);
}

/* Beach image overlay text removed per user request */

/* ============================================================
   SLIDESHOW (Enhanced)
============================================================ */
.slideshow {
    position: relative;
    height: 500px;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: absolute;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    box-shadow: var(--shadow-medium);
}

.slideshow img.active {
    opacity: 1;
}

/* ============================================================
   WEDDING PARTY (Premium Cards)
============================================================ */
.party-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.party-card {
    width: 280px;
    background: var(--bg-white);
    padding: 0;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.party-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.party-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.party-card h3 {
    font-family: "Cormorant", serif;
    font-size: 24px;
    font-weight: 500;
    padding: 25px 20px;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

/* ============================================================
   3D CAROUSEL (Enhanced)
============================================================ */
.carousel-3d {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1600px;
    margin-top: 40px;
}

.carousel-item {
    position: absolute;
    width: 320px;
    height: 240px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0.5;
    box-shadow: var(--shadow-medium);
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-white), var(--bg-white)) padding-box,
                var(--accent-gradient) border-box;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0) 0%,
        rgba(212, 175, 55, 0.1) 50%,
        rgba(212, 175, 55, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.carousel-item:hover::before {
    opacity: 1;
}

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

.carousel-item.active {
    transform: translateZ(300px) scale(1.4) !important;
    opacity: 1;
    z-index: 10;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), var(--shadow-golden);
    border-color: var(--accent);
}

.carousel-item.active::before {
    opacity: 0.3;
}

.carousel-item.left {
    transform: translateX(-320px) translateZ(100px) scale(1);
    opacity: 0.7;
}

.carousel-item.right {
    transform: translateX(320px) translateZ(100px) scale(1);
    opacity: 0.7;
}

.carousel-item.far {
    transform: translateZ(0) scale(0.75);
    opacity: 0.3;
}

/* ============================================================
   RSVP SECTION (Premium Form)
============================================================ */
.rsvp-section {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-white) 50%, var(--bg-cream) 100%);
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.rsvp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 115, 85, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.rsvp-section .section-title {
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

#rsvpForm {
    max-width: 650px;
    margin: 0 auto;
    padding: 60px 50px;
    background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(250,248,245,0.9) 100%);
    border-radius: 24px;
    box-shadow: var(--shadow-medium), var(--shadow-golden);
    border: 2px solid transparent;
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(250,248,245,0.9)) padding-box,
                var(--accent-gradient) border-box;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

#rsvpForm input,
#rsvpForm select {
    width: 100%;
    padding: 20px 24px;
    margin-bottom: 24px;
    border-radius: 16px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 400;
    transition: var(--transition);
    background: linear-gradient(145deg, #fafafa 0%, #ffffff 100%);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
}

#rsvpForm input:focus,
#rsvpForm select:focus {
    outline: none;
    border-color: var(--accent);
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2), inset 0 1px 3px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

#rsvpForm input:hover,
#rsvpForm select:hover {
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.15), inset 0 1px 3px rgba(0,0,0,0.1);
}

.menu-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.tooltip {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    font-size: 13px;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
    font-style: italic;
}

.btn-dark {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 32px;
    border-radius: 16px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-bounce);
    font-family: "Montserrat", sans-serif;
    box-shadow: 0 8px 24px rgba(107, 89, 79, 0.25), 0 0 0 1px rgba(255,255,255,0.1) inset;
    position: relative;
    overflow: hidden;
}

.btn-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn-dark:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 32px rgba(107, 89, 79, 0.3), var(--shadow-golden);
    border-color: var(--accent);
}

.btn-dark:hover::before {
    left: 100%;
}

.btn-dark:active {
    transform: translateY(-1px) scale(1.01);
    transition: var(--transition);
}

.confirmation {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 50px 40px;
    font-size: 15px;
    letter-spacing: 1px;
}

.footer-text {
    font-family: "Cormorant", serif;
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
}

/* ============================================================
   RESPONSIVE DESIGN
============================================================ */
@media (max-width: 1024px) {
    .section {
        padding: 70px 30px;
    }
    
    .section-title {
        font-size: 42px;
    }
}

@media (max-width: 900px) {
    .wi-header-full {
        padding: 60px 30px;
    }

    .wi-title {
        font-size: 42px;
        margin-bottom: 35px;
    }

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

    #wi-timer {
        gap: 15px;
        padding: 30px 20px;
        flex-wrap: nowrap;
    }

    .wi-unit {
        min-width: 50px;
        gap: 3px;
    }

    .wi-number {
        font-size: 2rem;
    }

    .wi-label {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .wi-dot {
        font-size: 24px;
        margin: 0 3px;
    }

    .beach-image {
        height: 300px;
    }

    .carousel-3d {
        height: 350px;
    }

    .carousel-item {
        width: 240px;
        height: 180px;
    }

    #rsvpForm {
        padding: 40px 30px;
    }

    .party-grid {
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .wi-title {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .wi-name {
        font-size: 28px;
    }

    .wi-crown {
        font-size: 24px;
    }

    #wi-timer {
        gap: 12px;
        padding: 25px 15px;
    }

    .wi-number {
        font-size: 32px;
        min-width: 45px;
    }

    .wi-unit {
        min-width: 45px;
        gap: 2px;
    }

    .wi-label {
        font-size: 7px;
        letter-spacing: 0.5px;
    }

    .beach-image {
        height: 250px;
    }

    .slideshow {
        height: 300px;
    }

    .carousel-3d {
        height: 250px;
    }

    .carousel-item {
        width: 180px;
        height: 135px;
    }

    .party-card {
        width: 100%;
        max-width: 320px;
    }

    #rsvpForm {
        padding: 30px 20px;
    }
}

/* ============================================================
   RSVP CONFIRMATION POPUP
============================================================ */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.show {
    display: flex;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.popup-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent), var(--sand));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    font-weight: bold;
}

.popup-content h3 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 15px;
}

.popup-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.popup-btn {
    background: linear-gradient(135deg, var(--accent), var(--sand));
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 115, 85, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================================
   ACCESSIBILITY
============================================================ */
*:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary);
}

/* Reduce motion for users who prefer it */
/* ============================================================
   MOBILE RESPONSIVENESS FOR NEW ELEMENTS
============================================================ */

/* Section Navigation Mobile */
@media (max-width: 768px) {
    #section-nav {
        right: 15px;
        gap: 12px;
    }

    .nav-dot {
        width: 10px;
        height: 10px;
    }

    .dot-label {
        display: none; /* Hide labels on mobile */
    }

    /* Wedding Details Mobile */
    .wedding-details-card {
        margin: 0 20px;
        padding: 40px 30px;
    }

    .wedding-details-card h3 {
        font-size: 1.8rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* RSVP CTA Mobile */
    .rsvp-cta-content h2 {
        font-size: 2.2rem;
    }

    .rsvp-cta-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 18px 32px;
        font-size: 1rem;
    }

    /* Beach Wedding Mobile */
    .wi-title::before,
    .wi-title::after {
        display: none; /* Hide decorations on mobile */
    }

    .wedding-description {
        margin-top: 30px;
        padding: 0 20px;
    }

    .wedding-description p {
        font-size: 1.1rem;
    }

    /* Program Section Mobile */
    .program-timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column !important;
        text-align: center;
        padding-left: 60px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column !important;
    }

    .timeline-time {
        font-size: 1.5rem;
        min-width: 100px;
        padding: 10px 20px;
        margin-bottom: 15px;
        position: relative;
        left: -30px;
    }

    .timeline-event {
        margin: 0;
        padding: 25px;
    }

    .timeline-event::before {
        display: none;
    }

    .timeline-event h3 {
        font-size: 1.8rem;
    }

    /* Frame adjustments for mobile */
    body {
        padding: 15px;
    }

    body::after {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
        border-width: 2px;
        border-radius: 15px;
    }

    body::before {
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: 20px;
        border-width: 2px;
        border-radius: 12px;
    }

    .frame-corner {
        width: 50px;
        height: 50px;
    }

    .frame-corner.top-left {
        top: 15px;
        left: 15px;
    }

    .frame-corner.top-right {
        top: 15px;
        right: 15px;
    }

    .frame-corner.bottom-left {
        bottom: 15px;
        left: 15px;
    }

    .frame-corner.bottom-right {
        bottom: 15px;
        right: 15px;
    }

    .section {
        padding: 80px 30px;
        margin: 0 10px;
    }

    .wedding-details-header {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

/* ============================================================
   ACCESSIBILITY
============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}