/* ================================================
   LUXURY WEDDING INVITATION - PROFESSIONAL EDITION
   Color Palette: Concrete, Warm Steel, Rosewood, 
   Peaches & Cream, Dawn
   ================================================ */

/* ==================== 
   CUSTOM PROPERTIES
   ==================== */
:root {
    /* Primary Color Palette */
    --concrete: #525871;
    --concrete-light: #6B7189;
    --concrete-dark: #3D4255;
    --concrete-deep: #2E3140;
    
    --warm-steel: #857C91;
    --warm-steel-light: #9D95A7;
    --warm-steel-dark: #6D657A;
    --warm-steel-muted: #A8A1B2;
    
    --rosewood: #CD9FA0;
    --rosewood-light: #DBBCBD;
    --rosewood-dark: #B8898A;
    --rosewood-deep: #A37374;
    --rosewood-muted: #E0CBCC;
    
    --peach: #F2C1A3;
    --peach-light: #F7D4BE;
    --peach-dark: #E5A882;
    --peach-muted: #F9E0D0;
    
    --dawn: #F8CCAA;
    --dawn-light: #FBDDC5;
    --dawn-dark: #F0B78E;
    --dawn-pale: #FDF0E6;
    
    /* Neutral Colors */
    --cream: #FFFBF7;
    --cream-warm: #FFF8F2;
    --cream-dark: #F5EDE6;
    --ivory: #FDFAF6;
    --white: #FFFFFF;
    
    --charcoal: #2D2D2D;
    --charcoal-soft: #3D3D3D;
    --charcoal-muted: #5A5A5A;
    --gray: #7A7A7A;
    --gray-light: #A8A8A8;
    --gray-pale: #D4D4D4;
    
    /* Semantic Colors */
    --success: #7CAE7A;
    --success-light: #9BC49A;
    --error: #C97B7B;
    --error-light: #DBA0A0;
    
    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, var(--peach) 0%, var(--dawn) 50%, var(--peach-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--rosewood) 0%, var(--rosewood-dark) 100%);
    --gradient-dark: linear-gradient(135deg, var(--concrete) 0%, var(--concrete-deep) 100%);
    --gradient-warm: linear-gradient(135deg, var(--dawn-pale) 0%, var(--cream-warm) 100%);
    
    /* Professional Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Type Scale - Perfect Fourth (1.333) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Layout */
    --container-max: 1200px;
    --container-narrow: 720px;
    --container-tight: 540px;
    
    /* Refined Shadows */
    --shadow-xs: 0 1px 2px rgba(82, 88, 113, 0.04);
    --shadow-sm: 0 2px 4px rgba(82, 88, 113, 0.05), 0 1px 2px rgba(82, 88, 113, 0.04);
    --shadow-md: 0 4px 8px rgba(82, 88, 113, 0.06), 0 2px 4px rgba(82, 88, 113, 0.04);
    --shadow-lg: 0 10px 20px rgba(82, 88, 113, 0.08), 0 4px 8px rgba(82, 88, 113, 0.04);
    --shadow-xl: 0 20px 40px rgba(82, 88, 113, 0.1), 0 8px 16px rgba(82, 88, 113, 0.06);
    --shadow-2xl: 0 25px 50px rgba(82, 88, 113, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(82, 88, 113, 0.04);
    --shadow-peach: 0 4px 20px rgba(242, 193, 163, 0.25);
    --shadow-peach-lg: 0 10px 40px rgba(242, 193, 163, 0.3);
    --shadow-rosewood: 0 4px 20px rgba(205, 159, 160, 0.25);
    
    /* Professional Easing Curves */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.43, 0.13, 0.23, 0.96);
    
    /* Transition Presets */
    --transition-fast: 150ms var(--ease-out-quart);
    --transition-base: 250ms var(--ease-out-quart);
    --transition-slow: 400ms var(--ease-out-expo);
    --transition-slower: 600ms var(--ease-out-expo);
    --transition-page: 800ms var(--ease-in-out-quart);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
    --z-max: 9999;
}

/* ==================== 
   CSS RESET - MODERN
   ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--cream);
    overflow-x: hidden;
    min-height: 100vh;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== 
   TYPOGRAPHY SYSTEM
   ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--charcoal);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
    color: var(--charcoal-muted);
}

p:last-child {
    margin-bottom: 0;
}

/* ==================== 
   UTILITY CLASSES
   ==================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--tight {
    max-width: var(--container-tight);
}

.text-center { text-align: center; }
.text-peach { color: var(--peach); }
.text-rosewood { color: var(--rosewood); }
.text-concrete { color: var(--concrete); }

/* ==================== 
   PAGE TRANSITIONS
   ==================== */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageExit {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.98);
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-enter > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-enter.is-visible > * {
    animation: revealUp 0.8s var(--ease-out-expo) forwards;
}

.stagger-enter.is-visible > *:nth-child(1) { animation-delay: 0ms; }
.stagger-enter.is-visible > *:nth-child(2) { animation-delay: 100ms; }
.stagger-enter.is-visible > *:nth-child(3) { animation-delay: 200ms; }
.stagger-enter.is-visible > *:nth-child(4) { animation-delay: 300ms; }
.stagger-enter.is-visible > *:nth-child(5) { animation-delay: 400ms; }

/* ==================== 
   PRELOADER
   ==================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--concrete-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-max);
    transition: opacity 1s var(--ease-out-expo), 
                visibility 1s var(--ease-out-expo);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-rings {
    width: 100px;
    height: 70px;
    margin: 0 auto var(--space-8);
    position: relative;
}

.ring-svg {
    width: 100%;
    height: 100%;
}

.ring {
    fill: none;
    stroke: var(--peach);
    stroke-width: 1.5;
    opacity: 0;
    animation: ringReveal 2.4s var(--ease-out-expo) infinite;
}

.ring-2 {
    stroke: var(--dawn);
    animation-delay: 0.4s;
}

@keyframes ringReveal {
    0% {
        opacity: 0;
        stroke-dasharray: 0 200;
    }
    30% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        stroke-dasharray: 200 0;
    }
}

.preloader-text {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dawn);
    margin-bottom: var(--space-4);
    opacity: 0.9;
}

.preloader-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
}

.preloader-dots span {
    width: 5px;
    height: 5px;
    background: var(--peach);
    border-radius: var(--radius-full);
    animation: dotFade 1.2s var(--ease-out-quart) infinite;
}

.preloader-dots span:nth-child(2) { 
    animation-delay: 0.15s; 
    background: var(--rosewood-light);
}
.preloader-dots span:nth-child(3) { 
    animation-delay: 0.3s; 
    background: var(--dawn);
}

@keyframes dotFade {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(0.8);
    }
    50% { 
        opacity: 1; 
        transform: scale(1);
    }
}

/* ==================== 
   INTRO VAULT
   ==================== */
/* ==================== 
   INTRO VAULT - WITH BLURRY BACKGROUND
   ==================== */
.intro-vault {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    transition: all 1.2s var(--ease-out-expo);
    overflow: hidden;
}

/* Blurry background image */
.intro-vault::before {
    content: '';
    position: absolute;
    inset: -20px; /* Extends beyond to prevent blur edge issues */
    background-image: url('nn.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.1); /* Prevents white edges from blur */
    z-index: -2;
}

/* Optional: Subtle dark overlay for better text readability */
.intro-vault::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(46, 49, 64, 0.3); /* Very subtle overlay */
    z-index: -1;
}

.intro-vault.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
}

.vault-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floating-elements {
    position: absolute;
    inset: 0;
}

.floating-element {
    position: absolute;
    opacity: 0.15;
    color: var(--peach);
    animation: floatElement 25s linear infinite;
    will-change: transform;
}

@keyframes floatElement {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    5% { opacity: 0.15; }
    95% { opacity: 0.15; }
    100% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0;
    }
}

.light-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse at center, 
        rgba(242, 193, 163, 0.12) 0%, 
        transparent 50%
    );
    animation: ambientPulse 6s var(--ease-in-out-quart) infinite;
}

@keyframes ambientPulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.vault-content {
    position: relative;
    z-index: var(--z-base);
    text-align: center;
    padding: var(--space-10) var(--space-6);
    max-width: 500px;
}

.vault-ornament {
    color: var(--peach-light);
    margin-bottom: var(--space-8);
    opacity: 0.8;
}

.vault-ornament-bottom {
    margin-bottom: 0;
    margin-top: var(--space-8);
}

.ornament-line {
    width: 180px;
    height: 24px;
    margin: 0 auto;
}

.vault-pretext {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: var(--space-3);
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.vault-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
    font-weight: 500;
    font-style: italic;
    color: var(--white);
    margin-bottom: var(--space-12);
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.vault-instruction {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--white);
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    animation: subtlePulse 3s var(--ease-in-out-quart) infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.instruction-icon {
    font-size: var(--text-lg);
    animation: gentleBounce 2s var(--ease-out-quart) infinite;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ==================== 
   ENVELOPE
   ==================== */
.envelope-wrapper {
    perspective: 1200px;
    margin-bottom: var(--space-10);
}

.envelope {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 0 auto;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.4s var(--ease-out-quart);
}

.envelope:hover {
    transform: translateY(-4px);
}

.envelope-back {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        165deg, 
        var(--cream) 0%, 
        var(--dawn-pale) 50%,
        var(--cream-dark) 100%
    );
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-2xl);
}

.envelope-front {
    position: absolute;
    inset: 0;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 52%;
    transform-origin: top center;
    transition: transform 1s var(--ease-out-expo);
    z-index: 3;
}

.flap-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        175deg, 
        var(--cream) 0%, 
        var(--dawn-pale) 100%
    );
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    border: 1px solid var(--peach-muted);
    border-bottom: none;
    position: relative;
}

.flap-inner::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 0;
    border: 1px solid var(--dawn);
    clip-path: polygon(0 0, 50% calc(100% - 12px), 100% 0);
    opacity: 0.5;
}

.envelope-pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 62%;
    background: var(--cream);
    border: 1px solid var(--peach-muted);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.envelope-pocket::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid var(--dawn);
    border-radius: 2px;
    opacity: 0.4;
}

.envelope-paper {
    background: var(--white);
    padding: var(--space-5) var(--space-4);
    border: 1px solid var(--dawn);
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.8s var(--ease-out-expo) 0.5s;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.paper-text {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--rosewood-dark);
    line-height: 1.5;
}

.envelope.opened .envelope-flap {
    transform: rotateX(-180deg);
}

.envelope.opened .envelope-paper {
    transform: translateY(0);
    opacity: 1;
}

/* ==================== 
   WAX SEAL
   ==================== */
.wax-seal {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out-back);
}

.wax-seal:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

.wax-seal:active {
    transform: translate(-50%, -50%) scale(0.98);
}

.wax-seal.breaking {
    animation: sealBreak 0.9s var(--ease-out-expo) forwards;
}

@keyframes sealBreak {
    0% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1; 
    }
    20% { 
        transform: translate(-50%, -50%) scale(1.15) rotate(8deg); 
    }
    100% { 
        transform: translate(-50%, -50%) scale(0) rotate(-15deg); 
        opacity: 0; 
    }
}

.seal-outer {
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 35% 35%, 
        var(--rosewood) 0%, 
        var(--rosewood-dark) 40%, 
        var(--rosewood-deep) 100%
    );
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 12px rgba(205, 159, 160, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.15),
        inset 0 -2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.seal-inner {
    width: 60px;
    height: 60px;
    border: 1.5px solid var(--peach);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-monogram {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--peach);
    letter-spacing: 0.1em;
}

.seal-shine {
    position: absolute;
    top: 12%;
    left: 18%;
    width: 25%;
    height: 25%;
    background: radial-gradient(
        ellipse at center, 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 70%
    );
    border-radius: var(--radius-full);
}

.vault-instruction {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--dawn);
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    animation: subtlePulse 3s var(--ease-in-out-quart) infinite;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

.instruction-icon {
    font-size: var(--text-lg);
    animation: gentleBounce 2s var(--ease-out-quart) infinite;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ==================== 
   MAIN INVITATION
   ==================== */
.invitation {
    opacity: 0;
    visibility: hidden;
    transition: all 1s var(--ease-out-expo);
}

.invitation.visible {
    opacity: 1;
    visibility: visible;
}

/* ==================== 
   MUSIC TOGGLE
   ==================== */
.music-toggle {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    background: var(--concrete);
    border: 1px solid var(--warm-steel);
    border-radius: var(--radius-full);
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out-quart);
    box-shadow: var(--shadow-lg);
}

.music-toggle:hover {
    transform: scale(1.05);
    background: var(--concrete-light);
    border-color: var(--peach);
}

.music-toggle:active {
    transform: scale(0.98);
}

.music-icon {
    color: var(--peach);
    width: 18px;
    height: 18px;
    transition: opacity 0.2s;
}

.music-icon svg {
    width: 100%;
    height: 100%;
}

.music-on {
    display: none;
}

.music-visualizer {
    display: none;
    gap: 2px;
    align-items: flex-end;
    height: 14px;
}

.music-toggle.playing .music-off { display: none; }
.music-toggle.playing .music-on { display: block; }
.music-toggle.playing .music-visualizer { display: flex; }
.music-toggle.playing .music-on { display: none; }

.music-visualizer .bar {
    width: 2px;
    background: var(--peach);
    border-radius: 1px;
    animation: musicBar 0.9s ease-in-out infinite;
}

.bar:nth-child(1) { height: 4px; animation-delay: 0s; }
.bar:nth-child(2) { height: 10px; animation-delay: 0.12s; }
.bar:nth-child(3) { height: 6px; animation-delay: 0.24s; }
.bar:nth-child(4) { height: 12px; animation-delay: 0.36s; }

@keyframes musicBar {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* ==================== 
   AMBIENT PETALS
   ==================== */
.ambient-petals {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: var(--z-base);
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 12px;
    height: 12px;
    opacity: 0.3;
    animation: petalFall linear infinite;
    will-change: transform;
}

.petal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--rosewood-light);
    border-radius: 100% 0 100% 0;
    transform: rotate(45deg);
}

.petal:nth-child(odd)::before {
    background: var(--peach);
}

.petal:nth-child(3n)::before {
    background: var(--dawn);
}

@keyframes petalFall {
    0% {
        transform: translateY(-5vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    8% { opacity: 0.3; }
    92% { opacity: 0.3; }
    100% {
        transform: translateY(105vh) translateX(80px) rotate(540deg);
        opacity: 0;
    }
}

/* ==================== 
   HERO SECTION
   ==================== */
/* ==================== 
   HERO SECTION - CLEAN BACKGROUND IMAGE
   ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('mm.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Very subtle overlay ONLY for text readability - remove if not needed */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25); /* Very light - adjust or remove */
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23F2C1A3' stroke-width='0.3' opacity='0.06'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: var(--z-base);
    text-align: center;
    padding: var(--space-16) var(--space-6);
    max-width: 800px;
}

.hero-badge {
    margin-bottom: var(--space-8);
}

.badge-text {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.couple-introduction {
    margin-bottom: var(--space-10);
}

.intro-line {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 300;
    color: var(--white);
    opacity: 0.9;
    line-height: 1.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ==================== 
   COUPLE NAMES - Updated for image background
   ==================== */
.couple-names {
    margin-bottom: var(--space-12);
}

.groom-name, .bride-name {
    display: block;
    margin: var(--space-5) 0;
}

.name-first {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 10vw, var(--text-6xl));
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.name-last {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.75;
    margin-top: var(--space-2);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.names-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.divider-and {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-style: italic;
    color: var(--white);
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ==================== 
   HERO QUOTE - Updated
   ==================== */
.hero-quote {
    margin-bottom: var(--space-16);
}

.hero-quote blockquote {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
    font-weight: 400;
    color: var(--white);
    opacity: 0.85;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.quote-mark {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--white);
    vertical-align: text-top;
    line-height: 0;
    opacity: 0.5;
}

/* ==================== 
   SCROLL PROMPT - Updated
   ==================== */
.scroll-prompt {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: gentleFloat 3s var(--ease-in-out-quart) infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

.scroll-text {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: var(--space-4);
    opacity: 0.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    width: 22px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 11px;
    margin: 0 auto;
    position: relative;
    opacity: 0.8;
}

.scroll-dot {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 6px;
    background: var(--white);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDot 2s var(--ease-out-quart) infinite;
}

@keyframes scrollDot {
    0%, 100% { top: 6px; opacity: 1; }
    60% { top: 20px; opacity: 0.2; }
}
/* ==================== 
   SECTION HEADERS
   ==================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header-light {
    color: var(--cream);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rosewood);
    margin-bottom: var(--space-4);
}

.section-header-light .section-tag {
    color: var(--peach);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-4);
    letter-spacing: -0.01em;
}

.section-header-light .section-title {
    color: var(--cream);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--charcoal-muted);
    max-width: 500px;
    margin: 0 auto;
}

.section-header-light .section-subtitle {
    color: var(--dawn);
    opacity: 0.9;
}

.section-divider {
    margin-top: var(--space-5);
}

.divider-ornament {
    color: var(--rosewood-light);
    font-size: var(--text-base);
    opacity: 0.7;
}

/* ==================== 
   STORY SECTION
   ==================== */
.story-section {
    padding: var(--space-32) 0;
    background: var(--cream);
}

.story-card {
    max-width: var(--container-narrow);
    margin: 0 auto;
    background: var(--white);
    padding: var(--space-16) var(--space-12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 1px solid rgba(242, 193, 163, 0.15);
}

.card-decoration {
    position: absolute;
    inset: var(--space-6);
    pointer-events: none;
}

.deco-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--rosewood-light);
    border-style: solid;
    border-width: 0;
    opacity: 0.5;
}

.deco-tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.deco-tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.deco-bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.deco-br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.card-content {
    position: relative;
    z-index: var(--z-base);
}

.story-paragraph {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--charcoal-muted);
    text-align: center;
    margin-bottom: var(--space-6);
    line-height: 1.85;
}

.story-opening {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--rosewood-dark);
    line-height: 1.7;
}

.story-highlight {
    font-weight: 500;
    color: var(--charcoal-soft);
}

.story-closing {
    font-style: italic;
    color: var(--warm-steel);
}

.card-signature {
    text-align: center;
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--dawn-pale);
}

.signature-text {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--warm-steel);
    margin-bottom: var(--space-2);
}

.signature-names {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--rosewood);
}

/* ==================== 
   COUNTDOWN SECTION
   ==================== */
.countdown-section {
    position: relative;
    padding: var(--space-32) 0;
    overflow: hidden;
}

.countdown-background {
    position: absolute;
    inset: 0;
    background: var(--concrete-deep);
}

.countdown-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(82, 88, 113, 0.97) 0%, 
        rgba(133, 124, 145, 0.92) 100%
    );
}

.floating-hearts {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: var(--text-lg);
    opacity: 0.15;
    color: var(--rosewood-light);
    animation: heartFloat 18s linear infinite;
    will-change: transform;
}

@keyframes heartFloat {
    0% { 
        transform: translateY(100%) rotate(0deg); 
        opacity: 0; 
    }
    8% { opacity: 0.15; }
    92% { opacity: 0.15; }
    100% { 
        transform: translateY(-100%) rotate(180deg); 
        opacity: 0; 
    }
}

.countdown-section .container {
    position: relative;
    z-index: var(--z-base);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-16);
    flex-wrap: wrap;
}

.countdown-unit {
    text-align: center;
}

.unit-card {
    width: 90px;
    height: 100px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(242, 193, 163, 0.25);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    position: relative;
    overflow: hidden;
}

.unit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 100%
    );
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.unit-number {
    font-family: var(--font-body);
    font-size: var(--text-4xl);
    font-weight: 600;
    color: var(--peach);
    letter-spacing: -0.02em;
    transition: all 0.15s var(--ease-out-quart);
}

.unit-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.7;
}

.countdown-separator {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-bottom: var(--space-8);
}

.separator-dot {
    width: 6px;
    height: 6px;
    background: var(--rosewood-light);
    border-radius: var(--radius-full);
    animation: separatorPulse 1.2s var(--ease-in-out-quart) infinite;
}

.separator-dot:last-child {
    animation-delay: 0.6s;
}

@keyframes separatorPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ==================== 
   WEDDING DATE DISPLAY
   ==================== */
.wedding-date-display {
    text-align: center;
}

.date-elegant {
    display: inline-block;
    padding: var(--space-8) var(--space-12);
    border: 1px solid rgba(242, 193, 163, 0.35);
    position: relative;
    background: rgba(255, 255, 255, 0.03);
}

.date-elegant::before,
.date-elegant::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rosewood-light);
    font-size: var(--text-sm);
    opacity: 0.5;
}

.date-elegant::before { left: -28px; }
.date-elegant::after { right: -28px; }

.date-weekday {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dawn);
    margin-bottom: var(--space-3);
    opacity: 0.9;
}

.date-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.date-month {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--cream);
}

.date-day {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 600;
    color: var(--peach);
    line-height: 1;
}

.date-year {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--cream);
}

.date-time {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-style: italic;
    color: var(--dawn);
    opacity: 0.9;
}

/* ==================== 
   DETAILS SECTION
   ==================== */
.details-section {
    padding: var(--space-32) 0;
    background: linear-gradient(
        180deg, 
        var(--cream) 0%, 
        var(--dawn-pale) 100%
    );
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.detail-card {
    background: var(--white);
    padding: var(--space-12) var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rosewood-light), var(--peach), var(--dawn));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s var(--ease-out-expo);
}

.detail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(242, 193, 163, 0.2);
}

.detail-card:hover::before {
    transform: scaleX(1);
}

.card-icon-wrapper {
    margin-bottom: var(--space-6);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: linear-gradient(
        135deg, 
        var(--rosewood) 0%, 
        var(--rosewood-deep) 100%
    );
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--peach-light);
    transition: all 0.4s var(--ease-out-expo);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.detail-card:hover .card-icon {
    transform: scale(1.08);
    box-shadow: var(--shadow-rosewood);
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-5);
}

.card-details {
    margin-bottom: var(--space-5);
}

.detail-time {
    font-family: var(--font-body);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--rosewood-dark);
    margin-bottom: var(--space-2);
}

.detail-venue {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-1);
}

.detail-address {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--warm-steel);
}

.detail-dress {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--charcoal);
    margin-bottom: var(--space-1);
}

.detail-subtext {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--warm-steel);
}

.detail-info {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--charcoal-muted);
}

.card-note {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--rosewood);
    font-style: italic;
}

/* ==================== 
   VENUE MAP BUTTON
   ==================== */
.venue-map-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: var(--concrete);
    color: var(--peach);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease-out-quart);
    margin-top: var(--space-4);
    border: 1px solid transparent;
}

.venue-map-btn:hover {
    transform: translateY(-2px);
    background: var(--concrete-light);
    border-color: var(--warm-steel);
    box-shadow: var(--shadow-lg);
}

.venue-map-btn:active {
    transform: translateY(0);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-arrow {
    transition: transform 0.3s var(--ease-out-quart);
}

.venue-map-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ==================== 
   GUEST SECTION
   ==================== */
/* ==================== 
   GUEST SECTION - FLOATING 3D CARD
   ==================== */
.guest-section {
    padding: var(--space-20) 0;
    background: var(--dawn-pale);
}

.floating-card {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.floating-card:hover {
    transform: translateY(-12px);
}

.card-shine {
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--peach), var(--rosewood), var(--dawn));
    border-radius: 28px;
    opacity: 0.5;
    filter: blur(24px);
    z-index: -1;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(0.98);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.02);
    }
}

.card-inner {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--cream-warm) 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 
        0 12px 48px rgba(82, 88, 113, 0.12),
        0 4px 12px rgba(82, 88, 113, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(242, 193, 163, 0.15) 45deg,
        transparent 90deg,
        transparent 270deg,
        rgba(248, 204, 170, 0.15) 315deg,
        transparent 360deg
    );
    opacity: 1;
    animation: rotate 25s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.icon-burst {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--rosewood-light), var(--peach));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 
        0 8px 24px rgba(205, 159, 160, 0.35),
        0 4px 12px rgba(205, 159, 160, 0.2);
    position: relative;
    z-index: 1;
    transition: transform 0.3s var(--ease-out-quart);
}

.floating-card:hover .icon-burst {
    transform: scale(1.08) rotate(5deg);
}

.icon-burst svg {
    width: 36px;
    height: 36px;
    stroke-width: 2;
}

.card-heading {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

.seats-display {
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.seats-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--dawn-pale), var(--peach-muted));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 
        0 10px 30px rgba(242, 193, 163, 0.25),
        inset 0 2px 10px rgba(255, 255, 255, 0.6);
    transition: transform 0.3s var(--ease-out-quart);
}

.floating-card:hover .seats-circle {
    transform: scale(1.05);
}

.seats-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--rosewood-dark);
    line-height: 1;
}

.seats-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--warm-steel);
    font-weight: 600;
    margin: 0;
}

.card-message {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
}

.highlight {
    color: var(--rosewood);
    font-weight: 600;
}

.card-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rosewood-light), transparent);
    margin: 1.5rem auto;
    opacity: 0.6;
}

.card-action {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--rosewood);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    margin: 0;
}

.action-icon {
    width: 22px;
    height: 22px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .card-inner {
        padding: 2.5rem 1.5rem;
    }
    
    .card-heading {
        font-size: 1.5rem;
    }
    
    .seats-circle {
        width: 100px;
        height: 100px;
    }
    
    .seats-number {
        font-size: 3.5rem;
    }
}

/* ==================== 
   RSVP SECTION
   ==================== */
.rsvp-section {
    padding: var(--space-32) 0;
    background: var(--cream);
}

.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
}

.rsvp-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid rgba(242, 193, 163, 0.1);
}

.rsvp-form {
    padding: var(--space-12) var(--space-10);
}

.form-section {
    margin-bottom: var(--space-8);
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.input-group {
    position: relative;
}

.input-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: var(--space-3);
}

.label-icon {
    color: var(--rosewood);
    font-size: 10px;
}

.label-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--warm-steel);
    font-size: var(--text-xs);
}

.input-field {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: var(--dawn-pale);
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--charcoal);
    transition: all 0.25s var(--ease-out-quart);
}

.input-field:focus {
    outline: none;
    background: var(--white);
    border-color: var(--rosewood);
    box-shadow: 0 0 0 3px rgba(205, 159, 160, 0.15);
}

.input-field::placeholder {
    color: var(--warm-steel-light);
}

.input-textarea {
    resize: vertical;
    min-height: 110px;
}

/* ==================== 
   ATTENDANCE SELECTOR
   ==================== */
.attendance-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
}

.attendance-option input {
    display: none;
}

.option-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-8) var(--space-5);
    background: var(--dawn-pale);
    border: 1.5px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
}

.option-display:hover {
    background: var(--cream-dark);
    border-color: var(--cream-dark);
}

.option-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    transition: all 0.3s var(--ease-out-quart);
}

.option-icon svg {
    width: 20px;
    height: 20px;
}

.option-accept .option-icon {
    background: rgba(124, 174, 122, 0.15);
    color: var(--success);
}

.option-decline .option-icon {
    background: rgba(201, 123, 123, 0.15);
    color: var(--error);
}

.option-content {
    text-align: center;
}

.option-title {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-1);
}

.option-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--warm-steel);
}

.attendance-option input:checked + .option-accept {
    background: rgba(124, 174, 122, 0.1);
    border-color: var(--success);
}

.attendance-option input:checked + .option-accept .option-icon {
    background: var(--success);
    color: var(--white);
    transform: scale(1.08);
}

.attendance-option input:checked + .option-decline {
    background: rgba(201, 123, 123, 0.1);
    border-color: var(--error);
}

.attendance-option input:checked + .option-decline .option-icon {
    background: var(--error);
    color: var(--white);
    transform: scale(1.08);
}

/* ==================== 
   GUEST COUNTER
   ==================== */
.guest-count-section {
    display: none;
}

.guest-count-section.visible {
    display: block;
    animation: slideReveal 0.5s var(--ease-out-expo);
}

@keyframes slideReveal {
    from { 
        opacity: 0; 
        transform: translateY(-12px);
        max-height: 0;
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
        max-height: 200px;
    }
}

.guest-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-6);
    background: var(--dawn-pale);
    border-radius: var(--radius-lg);
}

.counter-btn {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--rosewood-light);
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rosewood);
    transition: all 0.25s var(--ease-out-quart);
}

.counter-btn svg {
    width: 18px;
    height: 18px;
}

.counter-btn:hover:not(:disabled) {
    background: var(--rosewood);
    color: var(--white);
    border-color: var(--rosewood);
    transform: scale(1.06);
}

.counter-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.counter-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.counter-display {
    text-align: center;
    min-width: 70px;
}

.counter-number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 600;
    color: var(--rosewood-dark);
    line-height: 1;
    transition: all 0.15s var(--ease-out-quart);
}

.counter-label {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--warm-steel);
    margin-top: var(--space-1);
}

/* ==================== 
   SUBMIT BUTTON
   ==================== */
.submit-btn {
    width: 100%;
    padding: var(--space-5) var(--space-10);
    background: linear-gradient(
        135deg, 
        var(--rosewood) 0%, 
        var(--rosewood-deep) 100%
    );
    border: none;
    border-radius: var(--radius-full);
    color: var(--peach-light);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    margin-top: var(--space-8);
}

.submit-btn::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.7s var(--ease-out-expo);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(205, 159, 160, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.btn-content svg {
    width: 18px;
    height: 18px;
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.submit-btn.loading .btn-content {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: flex;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(242, 193, 163, 0.3);
    border-top-color: var(--peach);
    border-radius: var(--radius-full);
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: var(--text-sm);
}

/* ==================== 
   RSVP SUCCESS
   ==================== */
.rsvp-success {
    display: none;
    padding: var(--space-16) var(--space-10);
    text-align: center;
}

.rsvp-success.visible {
    display: block;
    animation: successReveal 0.7s var(--ease-out-expo);
}

@keyframes successReveal {
    from { 
        opacity: 0; 
        transform: translateY(16px) scale(0.98);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.success-animation {
    position: relative;
    margin-bottom: var(--space-8);
}

.success-circle {
    width: 88px;
    height: 88px;
    margin: 0 auto;
}

.checkmark {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke: var(--rosewood);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: checkCircle 0.7s var(--ease-out-expo) forwards;
}

.checkmark-check {
    stroke: var(--rosewood);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkPath 0.5s var(--ease-out-expo) 0.6s forwards;
}

@keyframes checkCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes checkPath {
    to { stroke-dashoffset: 0; }
}

.success-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    animation: confettiFall 1.4s var(--ease-out-expo) forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(80px) rotate(540deg);
        opacity: 0;
    }
}

.success-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 500;
    color: var(--rosewood-dark);
    margin-bottom: var(--space-4);
}

.success-message {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--charcoal-muted);
    margin-bottom: var(--space-8);
    line-height: 1.7;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.success-quote {
    padding: var(--space-6);
    background: var(--dawn-pale);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
}

.success-quote p {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-style: italic;
    color: var(--charcoal);
    margin-bottom: var(--space-2);
}

.quote-author {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--warm-steel);
}

.success-decoration {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    color: var(--rosewood-light);
    font-size: var(--text-base);
    opacity: 0.7;
}

/* ==================== 
   QUOTE SECTION
   ==================== */
.quote-section {
    padding: var(--space-24) 0;
    background: linear-gradient(
        180deg, 
        var(--cream) 0%, 
        var(--dawn-pale) 100%
    );
}

.featured-quote {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 0 var(--space-10);
}

.quote-decoration {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    color: var(--rosewood-light);
    line-height: 1;
    opacity: 0.35;
}

.quote-decoration-top {
    margin-bottom: calc(-1 * var(--space-4));
}

.quote-decoration-bottom {
    margin-top: calc(-1 * var(--space-4));
}

.quote-text {
    font-family: var(--font-display);
    font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
    font-style: italic;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.55;
    margin: var(--space-5) 0;
}

.quote-footer {
    margin-top: var(--space-6);
}

.quote-footer cite {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-style: normal;
    color: var(--rosewood);
    letter-spacing: 0.02em;
}

/* ==================== 
   FOOTER
   ==================== */
.main-footer {
    background: var(--concrete-deep);
    padding: var(--space-20) var(--space-6) var(--space-8);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 0L30 15L15 30L0 15Z' fill='none' stroke='%23F2C1A3' stroke-width='0.2' opacity='0.06'/%3E%3C/svg%3E");
}

.footer-content {
    position: relative;
    z-index: var(--z-base);
}

.footer-monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.monogram-letter {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 500;
    color: var(--peach);
}

.monogram-ampersand {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--dawn);
    opacity: 0.7;
}

.footer-date {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--cream);
    opacity: 0.7;
    margin-bottom: var(--space-6);
}

.footer-divider {
    margin-bottom: var(--space-6);
}

.divider-heart {
    font-size: var(--text-xl);
    color: var(--rosewood);
    animation: gentleHeartbeat 2s var(--ease-in-out-quart) infinite;
}

@keyframes gentleHeartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.footer-message {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--cream);
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: var(--space-8);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-hashtag {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--peach);
    padding: var(--space-3) var(--space-6);
    border: 1px solid rgba(242, 193, 163, 0.35);
    display: inline-block;
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-out-quart);
}

.footer-hashtag:hover {
    background: rgba(242, 193, 163, 0.1);
    border-color: var(--peach);
}

.footer-bottom {
    position: relative;
    z-index: var(--z-base);
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(242, 193, 163, 0.1);
}

.footer-bottom p {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--cream);
    opacity: 0.4;
}

/* ==================== 
   MAP MODAL
   ==================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(46, 49, 64, 0.9);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: scale(0.95) translateY(16px);
    transition: transform 0.5s var(--ease-out-expo);
    box-shadow: var(--shadow-2xl);
}

.modal.visible .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    background: var(--charcoal-soft);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 10;
    transition: all 0.3s var(--ease-out-quart);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-close:hover {
    background: var(--rosewood);
    transform: rotate(90deg);
}

.modal-header {
    padding: var(--space-8) var(--space-8) var(--space-6);
    text-align: center;
    border-bottom: 1px solid var(--cream-dark);
}

.modal-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-1);
}

.modal-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--warm-steel);
}

.modal-body {
    padding: 0;
}

.map-wrapper {
    background: var(--cream);
}

.map-wrapper iframe {
    display: block;
}

.venue-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.venue-btn {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--dawn-pale);
    text-decoration: none;
    transition: all 0.3s var(--ease-out-quart);
    border-top: 1px solid var(--cream-dark);
}

.venue-btn:first-child {
    border-right: 1px solid var(--cream-dark);
}

.venue-btn:hover {
    background: var(--rosewood);
}

.venue-btn:hover .venue-btn-title,
.venue-btn:hover .venue-btn-subtitle {
    color: var(--white);
}

.venue-btn-icon {
    font-size: var(--text-xl);
}

.venue-btn-text {
    display: flex;
    flex-direction: column;
}

.venue-btn-title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--charcoal);
    transition: color 0.3s;
}

.venue-btn-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--warm-steel);
    transition: color 0.3s;
}

/* ==================== 
   RESPONSIVE DESIGN
   ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-5);
    }

    .envelope {
        width: 270px;
        height: 180px;
    }

    .wax-seal {
        width: 70px;
        height: 70px;
    }

    .name-first {
        font-size: clamp(var(--text-3xl), 12vw, var(--text-5xl));
    }

    .countdown-timer {
        gap: var(--space-3);
    }

    .unit-card {
        width: 65px;
        height: 75px;
    }

    .unit-number {
        font-size: var(--text-2xl);
    }

    .countdown-separator {
        display: none;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .attendance-selector {
        grid-template-columns: 1fr;
    }

    .rsvp-form {
        padding: var(--space-8) var(--space-6);
    }

    .guest-counter {
        gap: var(--space-5);
    }

    .counter-number {
        font-size: var(--text-3xl);
    }

    .story-card {
        padding: var(--space-10) var(--space-6);
    }

    .date-elegant {
        padding: var(--space-6) var(--space-8);
    }

    .date-elegant::before,
    .date-elegant::after {
        display: none;
    }

    .date-day {
        font-size: var(--text-4xl);
    }

    .music-toggle {
        top: var(--space-4);
        right: var(--space-4);
        width: 44px;
        height: 44px;
    }

    .venue-buttons {
        grid-template-columns: 1fr;
    }

    .venue-btn:first-child {
        border-right: none;
    }

    .hero-content {
        padding: var(--space-12) var(--space-5);
    }

    .section-header {
        margin-bottom: var(--space-12);
    }

    .story-section,
    .rsvp-section,
    .details-section {
        padding: var(--space-20) 0;
    }

    .countdown-section {
        padding: var(--space-20) 0;
    }
}

@media (max-width: 480px) {
    .vault-title {
        font-size: var(--text-2xl);
    }

    .envelope {
        width: 250px;
        height: 165px;
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .story-paragraph {
        font-size: var(--text-base);
    }

    .guest-card-inner {
        padding: var(--space-10) var(--space-6);
    }

    .count-number {
        font-size: var(--text-6xl);
    }

    .success-title {
        font-size: var(--text-2xl);
    }

    .rsvp-form {
        padding: var(--space-6) var(--space-5);
    }

    .modal-content {
        border-radius: var(--radius-lg);
    }

    .modal-header {
        padding: var(--space-6);
    }
}

/* ==================== 
   PRINT STYLES
   ==================== */
@media print {
    .preloader,
    .intro-vault,
    .music-toggle,
    .ambient-petals,
    .scroll-prompt,
    .floating-hearts,
    .modal {
        display: none !important;
    }

    .invitation {
        opacity: 1 !important;
        visibility: visible !important;
    }

    body {
        background: white;
    }
}
