:root {
    --primary-color: #d4af37; /* Gold */
    --secondary-color: #fce4ec; /* Soft Pink */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #fffafb;
    --font-cursive: 'Great Vibes', cursive;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Reusable Section Styles */
.section { padding: 90px 20px; text-align: center; }
.section:nth-child(even) { background-color: var(--bg-light); }
.section:nth-child(odd) { background-color: #ffffff; }

.section-title {
    font-family: var(--font-cursive);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.divider {
    width: 100px; height: 2px;
    background: var(--primary-color);
    margin: 20px auto 40px; position: relative;
    opacity: 0.7;
}

.divider::after {
    content: '\f004'; font-family: "Font Awesome 5 Free"; font-weight: 900;
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: inherit; padding: 0 10px; color: var(--primary-color);
    font-size: 14px;
}

.section:nth-child(even) .divider::after { background: var(--bg-light); }
.section:nth-child(odd) .divider::after { background: #ffffff; }

/* Hero Section */
.hero {
    height: 100vh; width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('https://images.unsplash.com/photo-1511285560929-80b456fea0bc?q=80&w=2069&auto=format&fit=crop') center/cover no-repeat;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    position: relative; color: var(--text-light);
    animation: fadeIn 2s ease-in-out;
    background-attachment: fixed; /* parallax */
}

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

.hero h1 { font-family: var(--font-cursive); font-size: 5.5rem; margin-bottom: 20px; text-shadow: 2px 2px 6px rgba(0,0,0,0.5); animation: slideUp 1.5s ease-out; }
.hero p { font-size: 1.1rem; letter-spacing: 4px; text-transform: uppercase; animation: slideUp 1.5s ease-out 0.5s both; }
.hero .date { font-family: var(--font-serif); font-size: 1.6rem; margin-top: 15px; color: var(--primary-color); font-weight: 600; animation: slideUp 1.5s ease-out 1s both; }

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

/* Particles */
.particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.particle { position: absolute; background: rgba(255, 255, 255, 0.5); border-radius: 50%; box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); animation: floatup linear infinite; }
@keyframes floatup { 0% { transform: translateY(100vh) scale(0); opacity: 1; } 100% { transform: translateY(-10vh) scale(1); opacity: 0; } }

/* Floating Music Button */
.music-btn { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: var(--primary-color); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; cursor: pointer; box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4); z-index: 1000; transition: all 0.3s; border: 2px solid rgba(255,255,255,0.2); }
.music-btn:hover { transform: scale(1.1); }
.music-btn.playing { animation: pulse-music 2s infinite; }
@keyframes pulse-music { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); } }

/* Countdown */
.countdown-section { background: linear-gradient(135deg, #fffafb 0%, #fce4ec 100%); }
.countdown-container { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.countdown-item { background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 15px; padding: 25px 20px; min-width: 110px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease; }
.countdown-item:hover { transform: translateY(-5px); box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2); }
.countdown-item span { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 600; color: var(--text-dark); display: block; }
.countdown-item p { font-size: 0.9rem; color: #666; margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }

/* Couple Intro */
.couple-container { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; align-items: center;}
.person { text-align: center; max-width: 250px; }
.circle-img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); border: 5px solid white; transition: all 0.4s ease; }
.circle-img:hover { box-shadow: 0 0 35px rgba(212, 175, 55, 0.7); transform: scale(1.03); }
.person h3 { font-family: var(--font-cursive); font-size: 2.8rem; color: var(--primary-color); margin-top: 20px; }
.subtitle { font-family: var(--font-serif); font-weight: 600; text-transform: uppercase; font-size: 0.95rem; color: #555; margin-bottom: 10px; letter-spacing: 1px;}

/* Timeline */
.timeline { max-width: 800px; margin: 0 auto; position: relative; text-align: left;}
.timeline::after { content: ''; position: absolute; width: 2px; background-color: var(--primary-color); top: 0; bottom: 0; left: 50%; margin-left: -1px; opacity: 0.5; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.timeline-item.visible { opacity: 1; transform: translateY(0); }
.timeline-item::after { content: '\f004'; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; color: white; position: absolute; width: 26px; height: 26px; right: -13px; background-color: var(--primary-color); top: 20px; border-radius: 50%; z-index: 1; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
.left { left: 0; text-align: right; }
.right { left: 50%; text-align: left; }
.right::after { left: -13px; }
.content { padding: 30px; background: white; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.05); transition: transform 0.3s; border-left: 3px solid var(--primary-color); }
.right .content { border-left: none; border-right: 3px solid var(--primary-color); }
.content:hover { transform: scale(1.02); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.content h3 { font-family: var(--font-serif); color: var(--primary-color); margin-bottom: 10px; font-size: 1.6rem; }
.content .date-tag { font-size: 0.85rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;}

/* Generic Grid (Events, Dress Code, Travel) */
.grid-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; text-align: center; }
.grid-card { background: white; border-radius: 15px; padding: 40px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; border: 1px solid rgba(0,0,0,0.03); }
.grid-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.grid-card i { font-size: 2.8rem; color: var(--primary-color); margin-bottom: 20px; }
.grid-card h3 { font-family: var(--font-serif); font-size: 1.6rem; color: var(--text-dark); margin-bottom: 15px; }
.grid-card p { font-size: 0.95rem; color: #555; margin-bottom: 5px; }

/* Swiper Gallery */
.swiper-container { width: 100%; max-width: 1000px; padding-bottom: 50px; overflow: hidden; position: relative; margin: 0 auto;}
.swiper-slide { display: flex; justify-content: center; align-items: center; }
.swiper-slide img { width: 100%; height: 500px; object-fit: cover; border-radius: 20px; box-shadow: 0 10px 35px rgba(0,0,0,0.15); cursor: pointer; }

/* Venue & Digital Gifts */
.venue-section { background: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)), url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=2070&auto=format&fit=crop') center/cover fixed; }
.venue-card { max-width: 800px; margin: 0 auto; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px); padding: 50px; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.5); }
.venue-card iframe { width: 100%; height: 350px; border: none; border-radius: 15px; margin-top: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }

.digital-gifts { background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(252, 228, 236, 0.4)); border-radius: 30px; padding: 60px 30px; max-width: 800px; margin: 0 auto; border: 1px solid rgba(212, 175, 55, 0.2); box-shadow: 0 15px 40px rgba(0,0,0,0.05); }
.qr-box { background: white; padding: 25px; border-radius: 20px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); display: inline-block; }
.qr-box img { max-width: 160px; border-radius: 10px;}

.btn-group { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta-btn { display: inline-block; padding: 15px 35px; background: linear-gradient(135deg, #d4af37, #e6c86a); color: white; text-decoration: none; border-radius: 30px; font-family: var(--font-sans); font-weight: 600; letter-spacing: 1px; transition: all 0.3s ease; border: none; cursor: pointer; box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4); text-transform: uppercase; font-size: 0.9rem;}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6); }
.btn-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); box-shadow: none;}
.btn-outline:hover { background: var(--primary-color); color: white; }

/* RSVP & Wishes */
.rsvp-form { max-width: 650px; margin: 40px auto; background: white; padding: 50px; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); text-align: left; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-family: var(--font-serif); color: var(--text-dark); font-weight: 600; }
.form-control { width: 100%; padding: 16px; border: 1px solid #e1e1e1; border-radius: 10px; font-family: var(--font-sans); transition: all 0.3s; background-color: #fafafa; font-size: 1rem;}
.form-control:focus { outline: none; border-color: var(--primary-color); background-color: #fff; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2); }

.wishes-wall { max-width: 800px; margin: 0 auto; }
.wish-card { background: white; padding: 25px; border-radius: 15px; border-left: 5px solid var(--primary-color); margin-bottom: 25px; text-align: left; box-shadow: 0 8px 25px rgba(0,0,0,0.05); animation: fadeIn 0.5s ease; transition: transform 0.3s; }
.wish-card:hover { transform: scale(1.02); }
.wish-card h4 { font-family: var(--font-serif); color: var(--text-dark); margin-bottom: 8px; font-size: 1.2rem;}
.wish-card p { font-style: italic; color: #555; }

/* Footer */
footer { background-color: #2c2c2c; color: white; text-align: center; padding: 80px 20px 50px; position: relative; }

/* Scroll Animations */
.observe-me { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.observe-me.visible { opacity: 1; transform: translateY(0); }
.timeline-item, .venue-card { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .section { padding: 60px 15px; }
    .hero h1 { font-size: 3.5rem; }
    .hero p { font-size: 0.9rem; }
    .section-title { font-size: 2.8rem; }
    
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 15px; }
    .timeline-item::after { left: 18px; }
    .right { left: 0; }
    .right .content { border-left: 3px solid var(--primary-color); border-right: none;}
    
    .countdown-item { padding: 15px; min-width: 80px; }
    .countdown-item span { font-size: 1.8rem; }
    .circle-img { width: 160px; height: 160px; }
    
    .venue-card { padding: 30px 20px; }
    .rsvp-form { padding: 30px 20px; }
    
    .digital-gifts { padding: 40px 20px; }
    .btn-group { flex-direction: column; }
    .cta-btn { width: 100%; text-align: center; }
}
