/* ================================================
   WEB DE BODA PREMIUM - STYLE.CSS
   Tema Azul con Animaciones Románticas
   ================================================

   GUÍA DE PERSONALIZACIÓN:
   - Colores: Edita las variables CSS en :root
   - Fuentes: Cambia los valores de font-family
   - Espaciado: Ajusta las variables --space-*
   - Animaciones: Modifica @keyframes o duraciones

================================================ */

/* ================================================
   PROPIEDADES PERSONALIZADAS CSS (Variables)
================================================ */
:root {
    /* ===========================================
       PALETA DE COLORES PREMIUM (Dusty Blue Algorithm)
       Elegant, muted, and sophisticated
    =========================================== */
    --blue-900: #1B2B4A;
    /* Deep Slate Navy */
    --blue-800: #2C4268;
    /* Muted Dark Blue */
    --blue-700: #3E5A85;
    /* Dusty Navy */
    --blue-600: #4B6B9C;
    /* Steel Blue */
    --blue-500: #5B7CBA;
    /* Primary Dusty Blue */
    --blue-400: #7A96CC;
    /* Soft Blue */
    --blue-300: #9FB4DE;
    /* Mist Blue */
    --blue-200: #C4D2EF;
    /* Pale Mist */
    --blue-100: #E6ECF9;
    /* Ice White */
    --ice-50: #F8FAFD;
    /* Porcelain */

    /* Accent colors - Refined */
    --accent: #89C2D9;
    /* Muted Aqua */
    --accent-gold: #D4AF37;
    /* Classic Gold */
    --accent-rose: #E295A9;
    /* Dusty Rose Accent */

    /* Semantic colors */
    --color-primary: var(--blue-500);
    --color-primary-dark: var(--blue-700);
    --color-primary-light: var(--blue-300);
    --color-bg: var(--ice-50);
    --color-bg-alt: var(--blue-100);
    --color-text: var(--blue-900);
    --color-text-light: var(--blue-700);
    --color-text-muted: #64748B;
    /* Slate Gray */
    --color-white: #FFFFFF;
    --color-error: #D64545;
    --color-success: #38A169;

    /* ===========================================
       TYPOGRAPHY
    =========================================== */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Fluid typography with clamp() - Adjusted for better mobile fit */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.8125rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(0.9375rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.75rem, 1.5rem + 2.5vw, 3rem);
    --text-4xl: clamp(2rem, 1.5rem + 3vw, 4rem);
    --text-5xl: clamp(2.5rem, 2rem + 5vw, 5.5rem);

    /* ===========================================
       SPACING
    =========================================== */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-section: clamp(4rem, 8vw, 8rem);

    /* ===========================================
       EFFECTS
    =========================================== */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(11, 27, 58, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(11, 27, 58, 0.1), 0 2px 4px -1px rgba(11, 27, 58, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(11, 27, 58, 0.1), 0 4px 6px -2px rgba(11, 27, 58, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(11, 27, 58, 0.1), 0 10px 10px -5px rgba(11, 27, 58, 0.04);
    --shadow-glow: 0 0 40px rgba(47, 128, 237, 0.3);

    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(12px);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-toast: 500;
}

/* ===========================================
   DARK MODE VARIABLES
=========================================== */
[data-theme="dark"] {
    /* ===========================================
       GIRL THEME (Dusty Rose)
       Replaces Dark Mode with Elegance
    =========================================== */

    /* Override Blue palette with Dusty Rose palette */
    --blue-900: #4A1A2C;
    /* Deep Burgundy */
    --blue-800: #6B273F;
    /* Dark Mauve */
    --blue-700: #8E3653;
    /* Antique Rose */
    --blue-600: #B04A6A;
    /* Deep Rose */
    --blue-500: #E295A9;
    /* Dusty Rose Main */
    --blue-400: #EBA8B9;
    /* Soft Rose */
    --blue-300: #F3BDCA;
    /* Blush */
    --blue-200: #FAD4DE;
    /* Pale Blush */
    --blue-100: #FDF0F3;
    /* Rose Water */
    --ice-50: #FFFAFB;
    /* Bridal White */

    /* Override Accents */
    --accent: #F4C2C2;
    /* Baby Pink */

    /* Semantic Colors - Re-map to new pink variables */
    --color-primary: var(--blue-500);
    --color-primary-dark: var(--blue-700);
    --color-primary-light: var(--blue-300);

    /* Backgrounds - Keep LIGHT but pink-tinted */
    --color-bg: var(--ice-50);
    --color-bg-alt: var(--blue-100);

    /* Text - Dark Burgundy/Rose for contrast */
    --color-text: var(--blue-900);
    --color-text-light: var(--blue-700);
    --color-text-muted: #8E5566;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    /* Keep glass light */
    --glass-border: rgba(255, 77, 109, 0.2);
    /* Pink border */

    --shadow-md: 0 4px 6px -1px rgba(164, 19, 60, 0.1), 0 2px 4px -1px rgba(164, 19, 60, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(164, 19, 60, 0.1), 0 4px 6px -2px rgba(164, 19, 60, 0.05);
    --shadow-glow: 0 0 40px rgba(255, 77, 109, 0.3);
}

/* ================================================
   BASE RESET & DEFAULTS
================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    z-index: var(--z-toast);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}

/* Selection styling */
::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ================================================
   TYPOGRAPHY
================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

.script-text {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================================
   LAYOUT UTILITIES
================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: var(--text-4xl);
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--accent));
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--color-primary);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ================================================
   GLASS CARD COMPONENT
================================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
    .glass-card {
        background: rgba(255, 255, 255, 0.95);
    }

    [data-theme="dark"] .glass-card {
        background: rgba(15, 41, 82, 0.95);
    }
}

/* ================================================
   BUTTON COMPONENTS
================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::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 var(--transition-slow);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(91, 124, 186, 0.25), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(91, 124, 186, 0.35), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

/* Button press animation */
.btn:active {
    transform: scale(0.98);
}

/* ================================================
   THEME TOGGLE BUTTON
================================================ */
.theme-toggle {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.theme-toggle .fa-sun {
    display: none;
    color: var(--accent);
}

.theme-toggle .fa-moon {
    color: var(--blue-700);
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

/* ================================================
   NAVIGATION
================================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: transparent;
    transition: all var(--transition-base);
}

.main-nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.nav-logo:hover {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-menu a {
    position: relative;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-sm) 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--accent));
    transition: width var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-base);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Hamburger animation */
.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: var(--z-modal);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        gap: 0;
        padding: 80px var(--space-xl) var(--space-xl);
        background: var(--color-bg);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-slow);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu a {
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--color-bg-alt);
    }
}

/* ================================================
   HERO SECTION
================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero Background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            var(--blue-900) 0%,
            var(--blue-700) 30%,
            var(--blue-500) 60%,
            var(--blue-300) 100%);
    animation: gradientShift 15s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Bokeh effect */
.bokeh-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bokeh {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.bokeh-1 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bokeh-2 {
    width: 200px;
    height: 200px;
    background: var(--blue-300);
    top: 60%;
    left: 70%;
    animation-delay: -5s;
}

.bokeh-3 {
    width: 250px;
    height: 250px;
    background: var(--blue-400);
    top: 30%;
    right: 10%;
    animation-delay: -10s;
}

.bokeh-4 {
    width: 180px;
    height: 180px;
    background: var(--accent);
    bottom: 20%;
    left: 30%;
    animation-delay: -15s;
}

.bokeh-5 {
    width: 220px;
    height: 220px;
    background: var(--blue-200);
    top: 70%;
    left: 5%;
    animation-delay: -7s;
}

.bokeh-6 {
    width: 150px;
    height: 150px;
    background: var(--accent);
    top: 5%;
    right: 30%;
    animation-delay: -12s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}

/* Hero Content */
.hero-content {
    text-align: center;
    color: var(--color-white);
    padding: var(--space-xl);
    z-index: 1;
}

.hero-subtitle {
    font-size: var(--text-lg);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-title .name {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
}

/* Staggered Hero Animation */
.hero-title .name-1 {
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.2s;
}

.hero-title .ampersand {
    display: inline-block;
    opacity: 0;
    font-size: 0.6em;
    vertical-align: middle;
    margin: 0 0.2em;
    color: var(--accent);
    animation: zoomIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.8s;
}

.hero-title .name-2 {
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title .name-1 {
    animation-delay: 0.7s;
}

.hero-title .ampersand {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--accent);
    margin: var(--space-sm) 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.hero-title .name-2 {
    animation-delay: 1.1s;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    font-size: var(--text-xl);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2xl);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.3s;
}

.date-line {
    width: 60px;
    height: 1px;
    background: var(--color-white);
    opacity: 0.5;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.5s;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white);
    opacity: 0;
    animation: fadeIn 1s ease forwards 2s;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-white);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease infinite;
}

@keyframes scroll {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-indicator span {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* ================================================
   COUNTDOWN SECTION
================================================ */
.countdown-section {
    padding: var(--space-section) 0;
    background: linear-gradient(180deg, var(--blue-900), var(--blue-800));
    color: var(--color-white);
    text-align: center;
}

.countdown-label {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-style: italic;
    margin-bottom: var(--space-2xl);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.countdown-value {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 600;
    line-height: 1;
    background: linear-gradient(180deg, var(--color-white), var(--blue-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Animated digit effect */
.countdown-value.flip {
    animation: flipDigit 0.6s ease;
}

@keyframes flipDigit {
    0% {
        transform: perspective(400px) rotateX(0);
    }

    50% {
        transform: perspective(400px) rotateX(-10deg);
        opacity: 0.8;
    }

    100% {
        transform: perspective(400px) rotateX(0);
    }
}

.countdown-unit {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-300);
    margin-top: var(--space-sm);
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--accent);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ================================================
   OUR STORY / TIMELINE SECTION
================================================ */
.story-section {
    padding: var(--space-section) 0;
    background: var(--color-bg);
}

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

/* Timeline center line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), var(--accent));
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-3xl);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Alternate sides */
.timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 40px);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--blue-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--text-lg);
    border: 3px solid var(--color-white);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.timeline-content {
    padding: var(--space-xl);
    width: 100%;
}

.timeline-date {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.timeline-content h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.timeline-content p {
    color: var(--color-text-muted);
}

/* Mobile timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-marker {
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: var(--text-sm);
    }
}

/* ================================================
   SCHEDULE SECTION
================================================ */
.schedule-section {
    padding: var(--space-section) 0;
    background: var(--color-bg-alt);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
}

.schedule-card {
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--accent));
}

.schedule-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--color-primary);
    transition: transform var(--transition-base);
}

.schedule-card:hover .schedule-icon {
    transform: scale(1.1) rotate(5deg);
}

.schedule-time {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.schedule-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.schedule-description {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
}

.schedule-dress {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--blue-100);
    color: var(--color-primary-dark);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .schedule-dress {
    background: var(--blue-700);
    color: var(--blue-200);
}

/* ================================================
   VENUE SECTION
================================================ */
.venue-section {
    padding: var(--space-section) 0;
    background: var(--color-bg);
}

.venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

@media (max-width: 900px) {
    .venue-grid {
        grid-template-columns: 1fr;
    }
}

.venue-card {
    overflow: hidden;
}

.venue-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.venue-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.venue-card:hover .venue-image img {
    transform: scale(1.05);
}

.venue-details {
    padding: var(--space-xl);
}

.venue-details h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

.venue-details address {
    font-style: normal;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    display: flex;
    gap: var(--space-sm);
}

.venue-details address i {
    color: var(--color-primary);
    margin-top: 4px;
}

.travel-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.info-card {
    padding: var(--space-xl);
}

.info-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.info-card h3 i {
    color: var(--color-primary);
}

.hotel-list,
.transport-list {
    list-style: none;
}

.hotel-list li,
.transport-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-bg-alt);
}

.hotel-list li:last-child,
.transport-list li:last-child {
    border-bottom: none;
}

.hotel-list strong {
    display: block;
    color: var(--color-text);
}

.hotel-list span {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.transport-list li {
    display: flex;
    gap: var(--space-sm);
}

.transport-list i {
    color: var(--color-primary);
    width: 20px;
}

/* ================================================
   FAQ / DRESSCODE SECTION
================================================ */
.faq-section {
    padding: var(--space-section) 0;
    background: var(--color-bg-alt);
}

/* Dress Code Card */
.dresscode-card {
    padding: var(--space-2xl);
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dresscode-icon {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    font-size: var(--text-3xl);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.dresscode-card h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

.dresscode-card p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.dresscode-colors {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.dresscode-colors span {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.color-swatches {
    display: flex;
    gap: var(--space-sm);
}

.swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
    cursor: help;
}

.swatch:hover {
    transform: scale(1.2);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.accordion-header {
    width: 100%;
    padding: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.accordion-header:hover {
    background: var(--color-bg-alt);
}

.accordion-header i {
    color: var(--color-primary);
    transition: transform var(--transition-base);
}

.accordion-header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 var(--space-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.accordion-content:not([hidden]) {
    padding: 0 var(--space-lg) var(--space-lg);
    max-height: 500px;
}

.accordion-content p {
    color: var(--color-text-muted);
}

/* ================================================
   GALLERY SECTION
================================================ */
.gallery-section {
    padding: var(--space-section) 0;
    background: var(--color-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item-tall {
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .gallery-item-wide {
        grid-column: span 1;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(to top, var(--blue-900), transparent);
    color: var(--color-white);
    font-size: var(--text-sm);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.gallery-item:hover figcaption {
    transform: translateY(0);
}

/* ================================================
   LIGHTBOX
================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11, 27, 58, 0.95);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    animation: lightboxZoomIn 0.4s ease;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content figcaption {
    text-align: center;
    color: var(--color-white);
    padding: var(--space-md);
    font-size: var(--text-base);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: var(--glass-bg);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.lightbox-close {
    top: var(--space-xl);
    right: var(--space-xl);
}

.lightbox-prev {
    left: var(--space-xl);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: var(--space-xl);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ================================================
   RSVP SECTION
================================================ */
.rsvp-section {
    padding: var(--space-section) 0;
    background: linear-gradient(180deg, var(--blue-800), var(--blue-900));
    color: var(--color-white);
}

.rsvp-section .section-title {
    color: var(--color-white);
}

.rsvp-section .section-title::after {
    background: linear-gradient(90deg, var(--accent), var(--blue-300));
}

.rsvp-section .section-description {
    color: var(--blue-200);
}

.rsvp-card {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-2xl);
}

/* Progress steps */
.rsvp-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue-700);
    color: var(--blue-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all var(--transition-base);
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: linear-gradient(135deg, var(--color-primary), var(--accent));
    color: var(--color-white);
    box-shadow: 0 0 20px rgba(91, 124, 186, 0.4);
}

.step-label {
    font-size: var(--text-xs);
    color: var(--blue-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-step.active .step-label {
    color: var(--color-white);
}

.progress-line {
    width: 60px;
    height: 2px;
    background: var(--blue-700);
    margin: 0 var(--space-md);
}

/* Form steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    text-align: center;
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
    color: var(--color-white);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--blue-200);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--blue-600);
    border-radius: var(--radius-md);
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--blue-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(91, 124, 186, 0.2);
}

.form-group select option {
    background: var(--blue-800);
}

.error-message {
    display: block;
    font-size: var(--text-sm);
    color: #FF6B6B;
    margin-top: var(--space-xs);
    min-height: 20px;
}

/* Attendance options */
.attendance-options {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.attendance-option {
    flex: 1;
    min-width: 150px;
}

.attendance-option input {
    display: none;
}

.attendance-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--blue-600);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.attendance-label i {
    font-size: var(--text-2xl);
    color: var(--blue-400);
}

.attendance-option input:checked+.attendance-label {
    background: rgba(47, 128, 237, 0.2);
    border-color: var(--color-primary);
}

.attendance-option input:checked+.attendance-label i {
    color: var(--accent);
}

/* Guest counter */
.guest-counter {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-content: center;
}

.counter-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue-700);
    border: none;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.counter-btn:hover {
    background: var(--color-primary);
}

.guest-counter input {
    width: 60px;
    text-align: center;
    font-size: var(--text-xl);
    font-weight: 600;
}

/* Form actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

/* Success state */
.form-success {
    text-align: center;
    padding: var(--space-2xl);
    animation: fadeIn 0.5s ease;
}

.success-animation {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: var(--space-lg);
    animation: successPop 0.6s ease;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.form-success h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

.form-success p {
    color: var(--blue-200);
    margin-bottom: var(--space-xl);
}

/* ================================================
   REGISTRY SECTION
================================================ */
.registry-section {
    padding: var(--space-section) 0;
    background: var(--color-bg);
}

.registry-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    color: var(--color-text-muted);
}

.registry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
}

.registry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl);
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.registry-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
}

.registry-card:hover .registry-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--blue-600));
    color: var(--color-white);
    transform: scale(1.1) rotate(5deg);
}

.registry-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.registry-card p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
}

.registry-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: gap var(--transition-fast);
}

.registry-card:hover .registry-link {
    gap: var(--space-sm);
}

/* ================================================
   GUESTBOOK SECTION
================================================ */
.guestbook-section {
    padding: var(--space-section) 0;
    background: var(--color-bg-alt);
}

.guestbook-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .guestbook-container {
        grid-template-columns: 1fr;
    }
}

.guestbook-form {
    padding: var(--space-xl);
}

.guestbook-form .form-group label {
    color: var(--color-text);
}

.guestbook-form input,
.guestbook-form textarea {
    background: var(--color-bg);
    border: 1px solid var(--blue-200);
    color: var(--color-text);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.1);
}

.guestbook-messages {
    max-height: 500px;
    overflow-y: auto;
    padding: var(--space-md);
}

.no-messages {
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
    padding: var(--space-xl);
}

.message-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-card .message-author {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.message-card .message-text {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
}

.message-card .message-date {
    font-size: var(--text-xs);
    color: var(--blue-400);
}

/* ================================================
   FOOTER
================================================ */
.main-footer {
    background: var(--blue-900);
    color: var(--color-white);
    text-align: center;
}

.footer-content {
    padding: var(--space-3xl) var(--space-lg);
}

.footer-names {
    margin-bottom: var(--space-md);
}

.footer-names .script-text {
    font-size: var(--text-3xl);
    color: var(--accent);
}

.footer-date {
    font-size: var(--text-lg);
    color: var(--blue-300);
    margin-bottom: var(--space-md);
}

.footer-message {
    color: var(--blue-400);
    margin-bottom: var(--space-xl);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-socials a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--text-lg);
    transition: all var(--transition-base);
}

.footer-socials a:hover {
    background: var(--color-primary);
    transform: translateY(-4px);
}

.footer-hashtag {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.footer-contact a {
    color: var(--blue-300);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding: var(--space-lg);
    border-top: 1px solid var(--blue-700);
    font-size: var(--text-sm);
    color: var(--blue-400);
}

.footer-bottom .fa-heart {
    color: var(--accent-rose);
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ================================================
   BACK TO TOP BUTTON
================================================ */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--blue-600));
    color: var(--color-white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* ================================================
   SCROLL REVEAL ANIMATIONS
================================================ */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-text {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-text {
    transform: translateY(20px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-text.visible {
    opacity: 1;
    transform: translate(0);
}

/* ================================================
   REDUCED MOTION PREFERENCES
================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .bokeh,
    .hero-gradient,
    .countdown-value,
    .scroll-indicator {
        animation: none;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-text {
        opacity: 1;
        transform: none;
    }
}

/* ================================================
   KEYFRAME ANIMATIONS
================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
================================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .countdown-item {
        min-width: 70px;
    }

    .countdown-separator {
        display: none;
    }

    .rsvp-progress {
        flex-wrap: wrap;
    }

    .progress-line {
        display: none;
    }

    .attendance-options {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* ================================================
   ANIMACIONES DE BODA - CORAZONES FLOTANTES
================================================ */
.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.floating-hearts i {
    position: absolute;
    bottom: -50px;
    color: var(--blue-300);
    font-size: 1.5rem;
    animation: floatHeart 15s infinite ease-in;
    opacity: 0;
}

.floating-hearts i:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    font-size: 1.2rem;
}

.floating-hearts i:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    font-size: 1.8rem;
}

.floating-hearts i:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    font-size: 1.4rem;
}

.floating-hearts i:nth-child(4) {
    left: 40%;
    animation-delay: 6s;
    font-size: 1.6rem;
}

.floating-hearts i:nth-child(5) {
    left: 50%;
    animation-delay: 8s;
    font-size: 1.3rem;
}

.floating-hearts i:nth-child(6) {
    left: 60%;
    animation-delay: 10s;
    font-size: 1.7rem;
}

.floating-hearts i:nth-child(7) {
    left: 75%;
    animation-delay: 12s;
    font-size: 1.5rem;
}

.floating-hearts i:nth-child(8) {
    left: 85%;
    animation-delay: 14s;
    font-size: 1.9rem;
}

@keyframes floatHeart {
    0% {
        bottom: -50px;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }

    10% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.6;
        transform: translateX(30px) rotate(180deg);
    }

    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(-30px) rotate(360deg);
    }
}

/* ================================================
   PÉTALOS CAYENDO
================================================ */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-base);
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-300) 100%);
    border-radius: 50% 0 50% 0;
    opacity: 0.7;
    animation: fallPetal 10s linear infinite;
}

@keyframes fallPetal {
    0% {
        top: -20px;
        opacity: 0.7;
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(20px) rotate(90deg);
    }

    50% {
        transform: translateX(-20px) rotate(180deg);
    }

    75% {
        transform: translateX(15px) rotate(270deg);
    }

    100% {
        top: 100vh;
        opacity: 0;
        transform: translateX(0) rotate(360deg);
    }
}

/* ================================================
   SECCIÓN DE DATOS CURIOSOS
================================================ */
.fun-facts-section {
    padding: var(--space-section) 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    position: relative;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.fact-card {
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.fact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.fact-card:hover::before {
    transform: scaleX(1);
}

.fact-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.fact-icon {
    font-size: var(--text-4xl);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    animation: pulse 2s infinite;
}

.fact-number {
    font-size: var(--text-4xl);
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--color-primary);
    margin: var(--space-md) 0;
    line-height: 1;
}

.fact-label {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    font-weight: 500;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ================================================
   DIVIDER DECORATIVO
================================================ */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) 0;
    max-width: 600px;
    margin: 0 auto;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}

.divider-icon {
    margin: 0 var(--space-xl);
    font-size: var(--text-2xl);
    color: var(--accent-rose);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }
}

/* ================================================
   EFECTOS HOVER MEJORADOS EN TARJETAS
================================================ */
.timeline-content:hover,
.schedule-card:hover,
.venue-card:hover,
.info-card:hover,
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: var(--text-4xl);
    opacity: 0;
    transition: all var(--transition-slow);
    pointer-events: none;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.gallery-item img {
    transition: all var(--transition-slow);
}

/* ================================================
   ANIMACIÓN DE ENTRADA SUAVE PARA SECCIONES
================================================ */
section {
    animation: fadeInSection 0.8s ease-out;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   EFECTO SHIMMER EN BOTONES
================================================ */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
}

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

/* ================================================
   MEJORAR ANIMACIÓN DE COUNTDOWN
================================================ */
.countdown-value {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ================================================
   ANIMACIÓN SUAVE PARA FAQ ACCORDION
================================================ */
.accordion-content {
    transition: all var(--transition-slow);
}

.accordion-header:hover {
    background: var(--color-bg-alt);
    transform: translateX(5px);
}

/* ================================================
   EFECTO PARALLAX EN HERO
================================================ */
.hero-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* ================================================
   ANIMACIÓN DE ESCRITURA EN HERO
================================================ */
.hero-title {
    animation: fadeInTitle 1.5s ease-out;
}

@keyframes fadeInTitle {
    0% {
        opacity: 0;
        transform: translateY(30px);
        letter-spacing: 10px;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: normal;
    }
}

/* ================================================
   RESPONSIVE PARA NUEVAS ANIMACIONES
================================================ */
@media (max-width: 768px) {
    .floating-hearts i {
        font-size: 1rem;
    }

    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .fact-number {
        font-size: var(--text-3xl);
    }

    .section-divider {
        padding: var(--space-xl) 0;
    }
}

@media (max-width: 480px) {
    .facts-grid {
        grid-template-columns: 1fr;
    }
}