/* ==========================================
   PREMIUM SAVE THE DATE - CUSTOM STYLES
   ========================================== */

/* ==========================================
   ROOT VARIABLES & GLOBAL STYLES
   ========================================== */
:root {
    --primary-color: #b79960;
    --secondary-color: #9d8450;
    --accent-color: #f5f5f5;
    --tertiary-color: #000000;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #fdfbfb;
    --primary-gradient: linear-gradient(135deg, #fdfbfb 0%, #f5f5f5 100%);
    --rose-gradient: linear-gradient(135deg, #b79960 0%, #9d8450 100%);
    --elegant-gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --luxury-gradient: linear-gradient(135deg, #b79960 0%, #9d8450 50%, #000000 100%);
    --sunset-gradient: linear-gradient(135deg, #b79960 0%, #9d8450 50%, #000000 100%);
    
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', cursive;
    --font-sacramento: 'Sacramento', cursive;
    
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(183, 153, 96, 0.15);
    --shadow-md: 0 4px 16px rgba(183, 153, 96, 0.2);
    --shadow-lg: 0 8px 32px rgba(183, 153, 96, 0.25);
    --shadow-xl: 0 16px 48px rgba(183, 153, 96, 0.3);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Left and Right Decorative Patterns */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    width: 300px;
    height: 100%;
    background-size: contain;
    background-repeat: repeat-y;
    background-position: top;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

body::before {
    left: 0;
    background-image: url('../images/pattern-left.webp');
}

body::after {
    right: 0;
    background-image: url('../images/pattern-right.webp');
}

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

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

/* ==========================================
   PRELOADER
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fdfbfb 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.heart-loader {
    font-size: 80px;
    color: var(--primary-color);
    animation: heartBeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(183, 153, 96, 0.3));
}

.couple-loader-names {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 30px 0 10px;
    letter-spacing: 2px;
    text-shadow: 0 4px 12px rgba(183, 153, 96, 0.3);
    animation: fadeInUp 1s ease-out;
}

.loader-ampersand {
    font-family: var(--font-script);
    font-size: 3.5rem;
    margin: 0 15px;
    opacity: 0.9;
}

.loading-text {
    margin-top: 20px;
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--text-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(183, 153, 96, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ==========================================
   SECTION STYLES
   ========================================== */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 300;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: transparent;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    z-index: 1;
    padding-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: flex-start;
    padding: 0;
    margin-top: 0;
}

.hero-content .container {
    width: 100%;
    padding: 0;
}

.hero-content .row {
    width: 100%;
    margin: 0;
}

.hero-text {
    color: var(--text-dark);
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    width: 100%;
}

/* Couple Image Styling */
.couple-image-container {
    position: relative;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

.couple-main-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(183, 153, 96, 0.2);
}

.image-bottom-decoration {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: -30px auto 0;
    display: block;
    opacity: 0.9;
}

/* Couple Names Wrapper */
.couple-names-wrapper {
    padding: 20px;
    width: 100%;
}

/* Animated Background Elements - HIDDEN */
.hero-animations {
    display: none;
}

/* 3D Particle Lines */
.particle-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 100%);
    opacity: 0.3;
    animation: particleLine 8s linear infinite;
}

.line-1 { left: 10%; animation-delay: 0s; }
.line-2 { left: 25%; animation-delay: 1.5s; }
.line-3 { left: 45%; animation-delay: 3s; }
.line-4 { left: 60%; animation-delay: 4.5s; }
.line-5 { left: 75%; animation-delay: 6s; }
.line-6 { left: 90%; animation-delay: 7.5s; }

@keyframes particleLine {
    0% {
        transform: translateY(-100%) scaleY(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
        transform: translateY(0%) scaleY(1);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(100%) scaleY(0);
        opacity: 0;
    }
}

/* Animated Stars with 3D Rotation */
.star {
    position: absolute;
    font-size: 1.5rem;
    animation: starTwinkle 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.star-1 { top: 10%; left: 15%; animation-delay: 0s; }
.star-2 { top: 20%; left: 85%; animation-delay: 0.8s; }
.star-3 { top: 30%; left: 5%; animation-delay: 1.6s; }
.star-4 { top: 50%; left: 90%; animation-delay: 2.4s; }
.star-5 { top: 70%; left: 10%; animation-delay: 3.2s; }
.star-6 { top: 80%; left: 80%; animation-delay: 0.4s; }
.star-7 { top: 40%; left: 50%; animation-delay: 1.2s; }
.star-8 { top: 60%; left: 40%; animation-delay: 2s; }

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.5) rotate(0deg) translateZ(0);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.2) rotate(90deg) translateZ(20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg) translateZ(40px);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.2) rotate(270deg) translateZ(20px);
    }
}

/* Floating Clouds */
.cloud {
    position: absolute;
    font-size: 3rem;
    opacity: 0.2;
    animation: cloudFloat 30s linear infinite;
    filter: blur(2px);
}

.cloud-1 { top: 15%; animation-delay: 0s; }
.cloud-2 { top: 45%; animation-delay: 10s; }
.cloud-3 { top: 75%; animation-delay: 20s; }

@keyframes cloudFloat {
    0% {
        left: -10%;
        transform: translateX(0);
    }
    100% {
        left: 110%;
        transform: translateX(0);
    }
}

/* Smoke Effect */
.smoke {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 100%);
    animation: smokeRise 15s ease-in-out infinite;
    filter: blur(30px);
}

.smoke-1 {
    bottom: -100px;
    left: 10%;
    animation-delay: 0s;
}

.smoke-2 {
    bottom: -100px;
    left: 50%;
    animation-delay: 5s;
}

.smoke-3 {
    bottom: -100px;
    left: 80%;
    animation-delay: 10s;
}

@keyframes smokeRise {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.3;
    }
    80% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100vh) scale(2) rotate(360deg);
        opacity: 0;
    }
}

/* Light Beams */
.light-beam {
    position: absolute;
    top: -50%;
    width: 100px;
    height: 200%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transform: rotate(15deg);
    animation: lightSweep 12s ease-in-out infinite;
    filter: blur(20px);
}

.beam-1 { left: -10%; animation-delay: 0s; }
.beam-2 { left: 40%; animation-delay: 4s; }
.beam-3 { left: 80%; animation-delay: 8s; }

@keyframes lightSweep {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) rotate(15deg);
    }
    50% {
        opacity: 0.4;
        transform: translateX(50vw) rotate(15deg);
    }
}

/* Flying Birds with 3D Trail */
.bird {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.7;
    animation: flyBird3D 18s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    transform: scaleX(-1);
}

.bird-trail {
    position: absolute;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.5), 
        transparent);
    left: -30px;
    top: 50%;
    opacity: 0.3;
}

.bird-1 {
    top: 12%;
    animation-delay: 0s;
}

.bird-2 {
    top: 28%;
    animation-delay: 6s;
}

.bird-3 {
    top: 42%;
    animation-delay: 12s;
}

@keyframes flyBird3D {
    0% {
        left: -80px;
        transform: translateY(0) scale(1) scaleX(-1);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    25% {
        transform: translateY(-25px) scale(1.15) scaleX(-1);
    }
    50% {
        transform: translateY(0) scale(1) scaleX(-1);
    }
    75% {
        transform: translateY(-20px) scale(1.1) scaleX(-1);
    }
    90% {
        opacity: 0.7;
    }
    100% {
        left: 110%;
        transform: translateY(0) scale(1) scaleX(-1);
        opacity: 0;
    }
}

/* Flying Butterflies with 3D effect */
.butterfly {
    position: absolute;
    font-size: 1.4rem;
    opacity: 0.6;
    animation: flyButterfly3D 25s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 64, 129, 0.5));
}

.butterfly-1 {
    top: 18%;
    left: 8%;
    animation-delay: 0s;
}

.butterfly-2 {
    top: 55%;
    left: 75%;
    animation-delay: 5s;
}

.butterfly-3 {
    top: 35%;
    left: 15%;
    animation-delay: 10s;
}

.butterfly-4 {
    top: 65%;
    left: 60%;
    animation-delay: 15s;
}

.butterfly-5 {
    top: 25%;
    left: 85%;
    animation-delay: 20s;
}

@keyframes flyButterfly3D {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1) rotateY(0deg);
    }
    20% {
        transform: translate(60px, -60px) rotate(15deg) scale(1.2) rotateY(180deg);
    }
    40% {
        transform: translate(120px, 0) rotate(-10deg) scale(0.9) rotateY(360deg);
    }
    60% {
        transform: translate(60px, 60px) rotate(20deg) scale(1.3) rotateY(180deg);
    }
    80% {
        transform: translate(0, 0) rotate(-5deg) scale(1.1) rotateY(0deg);
    }
}

/* Floating Hearts with Glow */
.floating-heart {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0.5;
    animation: floatHeart3D 14s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 64, 129, 0.8));
}

.heart-1 {
    top: 25%;
    left: 12%;
    animation-delay: 0s;
}

.heart-2 {
    top: 48%;
    left: 82%;
    animation-delay: 3.5s;
}

.heart-3 {
    top: 68%;
    left: 8%;
    animation-delay: 7s;
}

.heart-4 {
    top: 35%;
    left: 90%;
    animation-delay: 10.5s;
}

@keyframes floatHeart3D {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg) translateZ(0);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-40px) scale(1.3) rotate(10deg) translateZ(30px);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-80px) scale(1.5) rotate(0deg) translateZ(50px);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-40px) scale(1.3) rotate(-10deg) translateZ(30px);
        opacity: 0.7;
    }
}

/* Enhanced Sparkles */
.sparkle {
    position: absolute;
    font-size: 1rem;
    animation: twinkle3D 4s ease-in-out infinite;
}

.sparkle-1 { top: 8%; left: 18%; animation-delay: 0s; }
.sparkle-2 { top: 22%; left: 78%; animation-delay: 0.6s; }
.sparkle-3 { top: 85%; left: 12%; animation-delay: 1.2s; }
.sparkle-4 { top: 92%; left: 82%; animation-delay: 1.8s; }
.sparkle-5 { top: 48%; left: 3%; animation-delay: 2.4s; }
.sparkle-6 { top: 58%; left: 93%; animation-delay: 3s; }
.sparkle-7 { top: 15%; left: 50%; animation-delay: 0.3s; }
.sparkle-8 { top: 75%; left: 45%; animation-delay: 1.5s; }

@keyframes twinkle3D {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg) translateZ(0);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(360deg) translateZ(40px);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
    }
}

/* Decorative Florals */
.decorative-floral {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.decorative-floral img.floral-large {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    animation: float 3s ease-in-out infinite;
}

.decorative-floral.top img {
    animation: float 3s ease-in-out infinite, fadeInDown 1.2s ease-out;
}

.decorative-floral.bottom img {
    animation: float 3s ease-in-out infinite, fadeInUp 1.2s ease-out;
}

/* Couple Names Wrapper - Two Line Layout */
.couple-names-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 8px 0;
}

.couple-names {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.groom-name,
.bride-name {
    display: inline-block;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 2px 8px rgba(183, 153, 96, 0.3);
    animation: fadeInUp 1s ease-out;
    transition: var(--transition);
}

/* Ampersand Divider */
.ampersand-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
}

.ampersand {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--primary-color);
    text-shadow: 0 2px 8px rgba(183, 153, 96, 0.3);
    animation: fadeIn 1.5s ease-out;
    display: block;
    line-height: 1;
    font-weight: 400;
}

.tagline {
    font-family: var(--font-sacramento);
    font-size: 1.8rem;
    margin: 5px 0;
    color: var(--text-dark);
    text-shadow: 0 2px 8px rgba(183, 153, 96, 0.2);
    letter-spacing: 2px;
    animation: fadeIn 2s ease-out;
    font-weight: 400;
}

.wedding-date {
    margin: 50px 0;
    animation: fadeInUp 1.5s ease-out;
}

.date-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 2px 8px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(255, 64, 129, 0.3);
    transition: var(--transition);
    animation: pulse 3s ease-in-out infinite;
}

.date-box:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 64, 129, 0.5);
}

.date-day,
.date-month,
.date-year {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
    text-shadow: none;
}

.date-separator {
    font-size: 1.4rem;
    opacity: 0.8;
    color: var(--primary-color);
    font-weight: 300;
}

.scroll-down {
    margin-top: 15px;
    animation: fadeIn 2.5s ease-out;
}

.scroll-link {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 24px;
    animation: bounce 2s infinite;
    transition: var(--transition);
    background: transparent;
    box-shadow: 0 4px 16px rgba(183, 153, 96, 0.2);
}

.scroll-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(183, 153, 96, 0.4);
    border-color: var(--primary-color);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(3px 3px at 60% 70%, rgba(255, 64, 129, 0.4), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(63, 81, 181, 0.4), transparent),
        radial-gradient(3px 3px at 10% 80%, rgba(255, 64, 129, 0.3), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 30% 60%, rgba(63, 81, 181, 0.3), transparent);
    background-size: 200% 200%;
    animation: particleMove 20s ease-in-out infinite;
    opacity: 0.7;
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes particleMove {
    0%, 100% { 
        background-position: 0% 0%; 
        opacity: 0.7;
    }
    50% { 
        background-position: 100% 100%; 
        opacity: 0.9;
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    50% { 
        transform: translateY(-15px) scale(1.02);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   COUNTDOWN SECTION
   ========================================== */
.countdown-section {
    background: var(--bg-light);
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.countdown-item {
    background: var(--white);
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.countdown-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.countdown-value {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.countdown-label {
    font-family: var(--font-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    font-weight: 500;
}

/* ==========================================
   COUPLE SECTION
   ========================================== */
.couple-section {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.couple-card {
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.couple-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.image-frame {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-xl);
    position: relative;
    transition: var(--transition);
}

.couple-card:hover .image-frame {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.couple-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.couple-card:hover .couple-image {
    transform: scale(1.1);
}

.floral-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    opacity: 0.3;
}

.floral-corner.top-left {
    top: -10px;
    left: -10px;
    border-radius: 50% 0 0 0;
}

.floral-corner.top-right {
    top: -10px;
    right: -10px;
    border-radius: 0 50% 0 0;
}

.floral-corner.bottom-left {
    bottom: -10px;
    left: -10px;
    border-radius: 0 0 0 50%;
}

.floral-corner.bottom-right {
    bottom: -10px;
    right: -10px;
    border-radius: 0 0 50% 0;
}

.couple-info {
    padding: 20px;
}

.couple-name {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.couple-title {
    font-family: var(--font-sacramento);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.couple-description {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================
   EVENT SECTION
   ========================================== */
.event-section {
    padding: 120px 0;
    background: var(--bg-light);
    position: relative;
}

.event-card {
    background: var(--white);
    padding: 60px 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--luxury-gradient);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(233, 30, 99, 0.2);
}

.event-icon {
    width: 160px;
    height: 160px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 50%;
    font-size: 45px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.event-icon img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 50%;
}

.event-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: center;
}

.event-details-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.event-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
}

.event-detail-item:hover {
    background: var(--accent-color);
    transform: translateX(10px);
}

.detail-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rose-gradient);
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
}

.detail-value {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-address {
    font-size: 1rem;
    color: var(--text-light);
}

.event-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
}

/* Event Map Styles */
.event-map {
    margin-top: 40px;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.map-container:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 400px;
    border: none;
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery-section {
    padding: 120px 0;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    aspect-ratio: 1;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.92) 0%, rgba(63, 81, 181, 0.92) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2.5rem;
    transform: scale(0);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

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

.gallery-item:hover {
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   RSVP SECTION
   ========================================== */
.rsvp-section {
    padding: 120px 0;
    background: var(--sunset-gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.rsvp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.rsvp-content {
    position: relative;
    z-index: 2;
}

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

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

.rsvp-button-wrapper {
    margin-top: 30px;
    margin-bottom: 20px;
}

.btn-rsvp {
    font-size: 1.2rem;
    padding: 18px 45px;
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    animation: pulse 2s infinite;
}

.btn-rsvp:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: none;
}

.btn-rsvp i {
    margin-right: 10px;
    font-size: 1.3rem;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
    }
}

.contact-info {
    margin-top: 50px;
}

.contact-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    position: relative;
    padding: 60px 0 30px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('../images/thankyou-bg.jpg') center/cover no-repeat;
    color: var(--white);
    overflow: hidden;
    z-index: 1;
}

.footer-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    text-align: center;
}

.footer-names {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer-date {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.share-title {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
}

.footer-text {
    font-size: 1rem;
    margin: 20px 0;
    opacity: 0.9;
}

.footer-text i {
    color: #ff6b9d;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.copyright {
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: var(--rose-gradient);
}

/* ==========================================
   MUSIC PLAYER
   ========================================== */
.music-player {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
}

.music-toggle {
    width: 60px;
    height: 60px;
    background: var(--luxury-gradient);
    color: var(--white);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(255, 64, 129, 0.4);
    animation: pulse 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.music-toggle:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.35),
        0 0 60px rgba(255, 64, 129, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
}

.music-toggle i {
    font-size: 22px;
    animation: musicNote 2s ease-in-out infinite;
}

.music-status {
    font-size: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 2px;
    font-family: var(--font-secondary);
}

.music-toggle.paused {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.9) 0%, rgba(52, 58, 64, 0.9) 100%);
    animation: none;
    border-color: rgba(255, 255, 255, 0.2);
}

.music-toggle.paused:hover {
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(108, 117, 125, 0.4);
}

.music-toggle.paused i {
    animation: none;
}

@keyframes musicNote {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        transform: scale(1.15) rotate(5deg);
    }
    75% {
        transform: scale(1.1) rotate(-5deg);
    }
}

/* Mobile Music Player */
@media (max-width: 768px) {
    .music-player {
        bottom: 80px;
        right: 20px;
    }
    
    .music-toggle {
        width: 55px;
        height: 55px;
        font-size: 16px;
    }
    
    .music-toggle i {
        font-size: 20px;
    }
    
    .music-status {
        font-size: 7px;
    }
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

/* Desktop: Larger screens (above 768px) */
@media (min-width: 769px) {
    .couple-main-image {
        max-width: 600px;
        border-radius: 0 0 15px 15px;
    }
    
    .image-bottom-decoration {
        max-width: 600px;
        margin: -40px auto 0;
    }
    
    .couple-names-wrapper {
        padding: 30px 40px;
    }
    
    .hero-text {
        padding: 0 40px;
    }
}

/* Large Devices */
@media (max-width: 1200px) {
    .couple-names {
        font-size: 4.5rem;
    }
    
    .groom-name,
    .bride-name {
        letter-spacing: 6px;
    }
    
    .ampersand {
        font-size: 5.5rem;
    }
    
    .decorative-floral img.floral-large {
        max-width: 130px;
    }
}

/* Medium Devices */
@media (max-width: 992px) {
    section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .couple-names {
        font-size: 4rem;
    }
    
    .groom-name,
    .bride-name {
        letter-spacing: 5px;
    }
    
    .ampersand {
        font-size: 5rem;
    }
    
    .decorative-floral img.floral-large {
        max-width: 120px;
    }
    
    .tagline {
        font-size: 1.8rem;
    }
    
    .date-day,
    .date-month,
    .date-year {
        font-size: 2.5rem;
    }
    
    .countdown-value {
        font-size: 3rem;
    }
    
    .countdown-item {
        min-width: 130px;
        padding: 30px 25px;
    }
    
    .image-frame {
        width: 250px;
        height: 250px;
    }
    
    .event-card {
        padding: 50px 40px;
    }
}

/* Small Devices */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
    }
    
    /* Mobile: Image takes 70% of screen */
    .couple-image-container {
        width: 100%;
        margin-bottom: 0;
    }
    
    .couple-main-image {
        max-width: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 0;
    }
    
    .image-bottom-decoration {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    /* Hero Section Mobile */
    .hero-text {
        padding: 0 15px 20px;
        gap: 5px;
    }
    
    .decorative-floral img.floral-large {
        max-width: 100px;
    }
    
    .couple-names-wrapper {
        gap: 2px;
        margin: 5px 0;
        padding: 15px;
    }
    
    .couple-names {
        font-size: 3rem;
    }
    
    .groom-name,
    .bride-name {
        letter-spacing: 4px;
    }
    
    .ampersand-divider {
        margin: 5px 0;
    }
    
    .ampersand {
        font-size: 4rem;
    }
    
    .tagline {
        font-size: 1.5rem;
        margin: 3px 0;
    }
    
    .date-box {
        padding: 10px 22px;
        gap: 8px;
    }
    
    .date-day,
    .date-month,
    .date-year {
        font-size: 1.8rem;
    }
    
    .date-separator {
        font-size: 1.3rem;
    }
    
    .scroll-down {
        margin-top: 10px;
    }
    
    .scroll-link {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .countdown-timer {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 110px;
        padding: 25px 20px;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .countdown-label {
        font-size: 0.85rem;
    }
    
    .image-frame {
        width: 220px;
        height: 220px;
    }
    
    .couple-name {
        font-size: 2rem;
    }
    
    .couple-title {
        font-size: 1.5rem;
    }
    
    .event-card {
        padding: 40px 30px;
    }
    
    .event-title {
        font-size: 2rem;
    }
    
    .event-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .map-container iframe {
        min-height: 300px;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-link {
        justify-content: center;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    /* Hero Section Extra Small */
    .hero-text {
        gap: 4px;
        padding: 0px 0px;
    }
    
    .decorative-floral img.floral-large {
        max-width: 80px;
    }
    
    .couple-names-wrapper {
        gap: 2px;
        margin: 5px 0;
    }
    
    .couple-names {
        font-size: 2.5rem;
    }
    
    .groom-name,
    .bride-name {
        letter-spacing: 3px;
    }
    
    .ampersand-divider {
        margin: 5px 0;
    }
    
    .ampersand {
        font-size: 3.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
        margin: 3px 0;
    }
    
    .date-box {
        padding: 8px 20px;
        gap: 6px;
    }
    
    .date-day,
    .date-month,
    .date-year {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .countdown-item {
        min-width: 90px;
        padding: 20px 15px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .image-frame {
        width: 200px;
        height: 200px;
    }
    
    .event-icon {
        width: 120px;
        height: 120px;
        font-size: 35px;
    }
    
    .event-icon img {
        width: 85px;
        height: 85px;
    }
    
    .detail-value {
        font-size: 1.2rem;
    }
    
    .footer-names {
        font-size: 2rem;
    }
    
    /* Reduce background pattern width on mobile */
    body::before,
    body::after {
        width: 80px;
        opacity: 0.08;
    }
}

/* Extra Extra Small Devices */
@media (max-width: 400px) {
    .couple-names {
        font-size: 2rem;
    }
    
    .ampersand {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 75px;
        padding: 15px 10px;
    }
    
    .countdown-value {
        font-size: 1.8rem;
    }
    
    .image-frame {
        width: 180px;
        height: 180px;
    }
    
    /* Extra small mobile - even smaller patterns */
    body::before,
    body::after {
        width: 60px;
        opacity: 0.06;
    }
    
    .couple-names {
        font-size: 2.2rem;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-pattern {
    position: relative;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,.03) 10px, rgba(0,0,0,.03) 20px);
    pointer-events: none;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ==========================================
   FLOATING GOOGLE MAP BUTTON
   ========================================== */
.floating-map-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid var(--primary-color);
    overflow: hidden;
}

.floating-map-btn img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: var(--transition);
}

.floating-map-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

.floating-map-btn:hover img {
    transform: scale(1.15);
}

.floating-map-btn:active {
    transform: scale(0.95);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .floating-map-btn {
        width: 50px;
        height: 50px;
        left: 15px;
        bottom: 15px;
    }
    
    .floating-map-btn img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .floating-map-btn {
        width: 55px;
        height: 55px;
        left: 10px;
        bottom: 80px;
    }
    
    .floating-map-btn img {
        width: 35px;
        height: 35px;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .scroll-top,
    #preloader,
    .scroll-down,
    .floating-map-btn {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}
