/* ==========================================
   GARDEN PARTY WEDDING - ENHANCED EDITION
   Super Smooth Animations & Rich Decorations
   ========================================== */

:root {
    --primary: #d53369;
    --primary-light: #ff6b9d;
    --primary-dark: #b01e52;
    --secondary: #ffecd2;
    --accent: #fcb69f;
    --text: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --cream: #fff5f7;
    --pink-light: #ffe4e9;

    --shadow-sm: 0 2px 8px rgba(213, 51, 105, 0.1);
    --shadow-md: 0 8px 30px rgba(213, 51, 105, 0.15);
    --shadow-lg: 0 15px 50px rgba(213, 51, 105, 0.2);
    --shadow-xl: 0 25px 80px rgba(213, 51, 105, 0.25);

    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Background Layers */
.bg-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff9a9e 100%);
    opacity: 0.6;
}

.bg-pattern {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 157, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(252, 182, 159, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 236, 210, 0.2) 0%, transparent 50%);
    animation: bg-shift 20s ease-in-out infinite;
}

@keyframes bg-shift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

.bg-petals {
    z-index: 1;
}

.petal {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: petal-fall linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@keyframes petal-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(100vh) rotate(720deg) translateX(100px);
        opacity: 0;
    }
}

/* Butterflies */
.butterflies-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.butterfly {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: butterfly-float 15s infinite ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

@keyframes butterfly-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, -50px) rotate(10deg);
    }
    50% {
        transform: translate(200px, 0) rotate(-5deg);
    }
    75% {
        transform: translate(100px, 50px) rotate(5deg);
    }
}

/* Light Rays */
.light-rays {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 255, 255, 0.03) 20deg,
        transparent 40deg,
        rgba(255, 255, 255, 0.05) 60deg,
        transparent 80deg,
        rgba(255, 255, 255, 0.03) 100deg,
        transparent 120deg,
        rgba(255, 255, 255, 0.05) 140deg,
        transparent 160deg
    );
    animation: ray-rotate 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes ray-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Opening Screen */
.opening-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ffecd2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

.opening-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.opening-decoration {
    position: absolute;
    font-size: 4rem;
    animation: float-decoration 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.opening-decoration.top-left { top: 50px; left: 50px; animation-delay: 0s; }
.opening-decoration.top-right { top: 50px; right: 50px; animation-delay: 0.5s; }
.opening-decoration.bottom-left { bottom: 50px; left: 50px; animation-delay: 1s; }
.opening-decoration.bottom-right { bottom: 50px; right: 50px; animation-delay: 1.5s; }

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

.opening-content {
    text-align: center;
    z-index: 10;
    padding: 20px;
}

/* Wreath Container */
.wreath-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 40px;
}

.wreath-outer {
    position: absolute;
    inset: 0;
    border: 3px dashed rgba(255, 107, 157, 0.3);
    border-radius: 50%;
    animation: rotate-slow 30s linear infinite;
}

.wreath-inner {
    position: absolute;
    inset: 20px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 50%;
    animation: rotate-slow-reverse 25s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-slow-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.wreath-flowers {
    position: absolute;
    inset: 0;
}

.wreath-flowers span {
    position: absolute;
    font-size: 2.5rem;
    animation: flower-pulse 2s ease-in-out infinite;
}

.wf-1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.wf-2 { top: 15%; right: 10%; animation-delay: 0.2s; }
.wf-3 { top: 50%; right: 0; transform: translateY(-50%); animation-delay: 0.4s; }
.wf-4 { bottom: 15%; right: 10%; animation-delay: 0.6s; }
.wf-5 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.8s; }
.wf-6 { bottom: 15%; left: 10%; animation-delay: 1s; }
.wf-7 { top: 50%; left: 0; transform: translateY(-50%); animation-delay: 1.2s; }
.wf-8 { top: 15%; left: 10%; animation-delay: 1.4s; }

@keyframes flower-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.wreath-text {
    position: absolute;
    inset: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    padding: 30px;
}

.wreath-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--primary-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.wreath-names {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 10px;
}

.wreath-names span {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-light);
    margin: 5px 0;
}

.wreath-date {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.opening-guest {
    margin-bottom: 30px;
    animation: fade-in-up 1s ease 0.3s both;
}

.opening-guest p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.opening-guest h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Open Button */
.open-button {
    position: relative;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    animation: fade-in-up 1s ease 0.6s both;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.open-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn-shine {
    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.5s;
}

.open-button:hover .btn-shine {
    left: 100%;
}

.btn-icon {
    animation: icon-bounce 1s infinite;
}

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

/* Music Control */
.music-control {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition-base);
}

.music-disc {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    animation: disc-spin 4s linear infinite paused;
}

.music-control.playing .music-disc {
    animation-play-state: running;
}

@keyframes disc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.disc-grooves {
    position: absolute;
    inset: 5px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
}

.music-disc i {
    color: var(--white);
    font-size: 1.3rem;
}

.music-waves {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    opacity: 0;
    transform: scale(0.8);
}

.music-control.playing .music-waves {
    animation: wave-expand 2s infinite;
}

.music-control.playing .music-waves span:nth-child(2) { animation-delay: 0.3s; }
.music-control.playing .music-waves span:nth-child(3) { animation-delay: 0.6s; }

@keyframes wave-expand {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Navigation */
.floating-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 999;
    opacity: 0;
    transition: var(--transition-slow);
}

.floating-nav.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-track {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    position: relative;
}

.nav-indicator {
    position: absolute;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 25px;
    transition: var(--transition-base);
    z-index: 0;
}

.nav-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 25px;
    transition: var(--transition-fast);
    z-index: 1;
    min-width: 60px;
}

.nav-icon {
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.nav-label {
    font-size: 0.7rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    position: absolute;
    bottom: -20px;
    white-space: nowrap;
    background: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 10px;
}

.nav-link:hover .nav-label,
.nav-link.active .nav-label {
    opacity: 1;
    transform: translateY(0);
}

.nav-link.active {
    color: var(--white);
}

.nav-link.active .nav-icon {
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    display: none;
    position: relative;
    z-index: 10;
}

.main-content.visible {
    display: block;
    animation: fade-in 1s ease;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.section-header.light {
    color: var(--white);
}

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

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary);
    margin-bottom: 15px;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--primary-light);
    font-size: 1.5rem;
}

.title-decoration span {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.3) 0%, rgba(254, 207, 239, 0.3) 50%, rgba(255, 236, 210, 0.3) 100%);
}

.hero-flowers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hf-left, .hf-right {
    position: absolute;
    font-size: 15rem;
    opacity: 0.1;
    animation: sway 6s ease-in-out infinite;
}

.hf-left { left: -50px; top: 20%; }
.hf-right { right: -50px; bottom: 20%; animation-delay: 3s; }

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 20px;
    animation: fade-in-scale 1.2s ease;
}

.hero-badge {
    margin-bottom: 30px;
}

.hero-badge span {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(255, 107, 157, 0); }
}

.hero-names-container {
    margin-bottom: 40px;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-ampersand {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.hero-ampersand span {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-light);
    font-style: italic;
}

.amp-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--primary);
    animation: heartbeat 1.5s infinite;
}

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

.hero-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font-weight: 500;
}

.detail-item i {
    color: var(--primary);
}

.detail-divider {
    color: var(--primary-light);
    font-size: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    cursor: pointer;
    animation: fade-in-up 1s ease 1s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    position: relative;
}

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

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fe-1, .fe-2, .fe-3, .fe-4 {
    position: absolute;
    font-size: 2rem;
    animation: float-around 20s infinite ease-in-out;
}

.fe-1 { top: 20%; left: 10%; animation-delay: 0s; }
.fe-2 { top: 60%; right: 15%; animation-delay: 5s; }
.fe-3 { bottom: 30%; left: 20%; animation-delay: 10s; }
.fe-4 { top: 40%; right: 10%; animation-delay: 15s; }

@keyframes float-around {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(0, -60px) rotate(180deg); }
    75% { transform: translate(-30px, -30px) rotate(270deg); }
}

/* Couple Section */
.couple-section {
    padding: 100px 20px;
    background: linear-gradient(to bottom, var(--cream), var(--pink-light));
}

.couple-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.couple-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: var(--white);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    transform-style: preserve-3d;
}

.couple-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-xl);
}

.card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.couple-card:hover .card-shine {
    opacity: 1;
}

.card-border {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.couple-image {
    margin-bottom: 30px;
}

.image-frame {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--pink-light), var(--secondary));
    border-radius: 50%;
    padding: 10px;
    box-shadow: var(--shadow-md);
}

.frame-ornament {
    position: absolute;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.frame-ornament.top { top: -10px; left: 50%; transform: translateX(-50%); }
.frame-ornament.bottom { bottom: -10px; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }

.avatar {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.couple-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.couple-role {
    color: var(--primary-light);
    font-style: italic;
    margin-bottom: 15px;
}

.couple-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    margin: 0 auto 15px;
}

.couple-parents {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.couple-parents strong {
    color: var(--text);
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: var(--pink-light);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.couple-connector {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.connector-heart {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    animation: pulse-heart 2s infinite;
}

@keyframes pulse-heart {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

.connector-heart i {
    position: relative;
    font-size: 2rem;
    color: var(--white);
    animation: heartbeat 1.5s infinite;
}

.heart-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
}

.connector-heart:hover .heart-particles span {
    animation: particle-burst 1s ease-out;
}

.heart-particles span:nth-child(1) { top: 0; left: 50%; }
.heart-particles span:nth-child(2) { top: 50%; right: 0; }
.heart-particles span:nth-child(3) { bottom: 0; left: 50%; }

@keyframes particle-burst {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx, 30px), var(--ty, -30px)) scale(0); opacity: 0; }
}

/* Event Section */
.event-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.event-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.events-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.event-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.event-icon-float {
    position: absolute;
    top: -30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.icon-ring {
    position: absolute;
    inset: -5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate-slow 10s linear infinite;
}

.event-icon-float i {
    font-size: 2rem;
    color: var(--primary);
}

.event-label {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 30px;
}

.event-details {
    margin-bottom: 30px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.detail-row i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.btn-reminder {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.event-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.event-card:hover .event-glow {
    opacity: 1;
}

/* Countdown Section */
.countdown-section {
    padding: 100px 20px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.countdown-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cb-1, .cb-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.cb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -200px;
    left: -200px;
    animation: float 10s ease-in-out infinite;
}

.cb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -150px;
    right: -150px;
    animation: float 8s ease-in-out infinite reverse;
}

.countdown-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.countdown-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 50px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.timer-box {
    text-align: center;
}

.timer-flip {
    position: relative;
    width: 100px;
    height: 120px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 10px;
}

.timer-flip .top,
.timer-flip .bottom {
    position: absolute;
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--white);
}

.timer-flip .top {
    top: 0;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.timer-flip .bottom {
    bottom: 0;
    border-radius: 0 0 20px 20px;
}

.timer-box label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timer-separator {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-light);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Gallery Section */
.gallery-section {
    padding: 100px 20px;
    background: linear-gradient(to bottom, var(--pink-light), var(--cream));
}

.gallery-container {
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-frame {
    background: var(--white);
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.gallery-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--pink-light);
}

.gallery-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.6s ease;
}

.gallery-item.active {
    opacity: 1;
    transform: scale(1);
}

.item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 4rem;
}

.item-placeholder p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: var(--text-light);
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.gal-nav {
    width: 50px;
    height: 50px;
    border: none;
    background: var(--pink-light);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gal-nav:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.gallery-dots {
    display: flex;
    gap: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

/* RSVP Section */
.rsvp-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
}

.rsvp-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.rsvp-form-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: 100px;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pink-light), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.card-header p {
    color: var(--text-light);
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group.floating {
    position: relative;
}

.form-group.floating input,
.form-group.floating textarea {
    width: 100%;
    padding: 20px 15px 10px;
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: 15px;
    font-size: 1rem;
    transition: var(--transition-fast);
    font-family: inherit;
}

.form-group.floating textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.floating label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    transition: var(--transition-fast);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group.floating textarea ~ label {
    top: 25px;
    transform: none;
}

.form-group.floating input:focus,
.form-group.floating textarea:focus,
.form-group.floating input:not(:placeholder-shown),
.form-group.floating textarea:not(:placeholder-shown) {
    border-color: var(--primary-light);
    background: var(--white);
    outline: none;
}

.form-group.floating input:focus ~ label,
.form-group.floating textarea:focus ~ label,
.form-group.floating input:not(:placeholder-shown) ~ label,
.form-group.floating textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.85rem;
    background: var(--white);
    padding: 0 10px;
    color: var(--primary);
    font-weight: 600;
}

.input-focus {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.form-group.floating input:focus ~ .input-focus,
.form-group.floating textarea:focus ~ .input-focus {
    left: 0;
    width: 100%;
}

.char-count {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.btn-submit {
    position: relative;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: none;
    border-radius: 15px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.btn-submit.loading .btn-text {
    opacity: 0.7;
}

.btn-submit.loading .btn-loader {
    display: block;
}

.rsvp-messages {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 30px;
    max-height: 600px;
    overflow-y: auto;
}

.messages-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.messages-header h3 {
    color: var(--white);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.msg-count {
    background: var(--white);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

/* Footer */
.footer {
    background: var(--darker);
    color: var(--white);
    padding: 80px 20px 40px;
    text-align: center;
    position: relative;
}

.footer-flowers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    font-size: 2rem;
}

.footer-quote {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.footer-quote i {
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.3;
    margin-bottom: 20px;
}

.footer-quote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 10px;
}

.quote-ref {
    color: var(--primary-light);
    font-size: 0.9rem;
}

.footer-couple {
    margin-bottom: 40px;
}

.footer-couple h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--white), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-couple p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

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

.divider span {
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider i {
    color: var(--primary-light);
    animation: pulse 1.5s infinite;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.copyright i {
    color: var(--primary-light);
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-scale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .rsvp-wrapper {
        grid-template-columns: 1fr;
    }

    .rsvp-form-card {
        position: relative;
        top: 0;
    }

    .couple-container {
        flex-direction: column;
    }

    .couple-connector {
        flex-direction: row;
    }
}

@media (max-width: 640px) {
    .wreath-container {
        width: 300px;
        height: 300px;
    }

    .wreath-text {
        inset: 40px;
    }

    .wreath-names {
        font-size: 1.5rem;
    }

    .events-wrapper {
        grid-template-columns: 1fr;
    }

    .countdown-timer {
        gap: 10px;
    }

    .timer-flip {
        width: 70px;
        height: 90px;
    }

    .timer-flip .top,
    .timer-flip .bottom {
        font-size: 2rem;
    }

    .floating-nav {
        bottom: 20px;
    }

    .nav-link {
        padding: 10px 15px;
        min-width: auto;
    }

    .nav-label {
        display: none;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
