:root {
    --rsvp-bg: #ffffff;
    --rsvp-text: var(--text, #1a1a1a);
    --input-bg: #f9f9f9;
    --input-border: rgba(0,0,0,0.15);
    --input-text: var(--text, #1a1a1a);
    --input-placeholder: rgba(0,0,0,0.4);
    --primary: #ff7e67;
    --primary-light: #ffb3a3;
    --primary-dark: #d9534f;
    --bg: #fff9f5;
    --text: #4a332f;
    --accent: #ffd166;
    --cover-bg: var(--bg, #fff);
}
@import url('https://fonts.googleapis.com/css2?family=Lobster+Two:ital,wght@1,400&family=Karla:wght@400;500&display=swap');

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



body {
    font-family: 'Karla', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.cover-page {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(135deg, #ff7e67 0%, #ffd166 100%);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; transition: all 1s ease;
}

.cover-page.hidden { opacity: 0; pointer-events: none; transform: scale(1.05); }

.cover-card {
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 20px;
    padding: 60px 40px; text-align: center; max-width: 450px; width: 90%;
    position: relative; backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(255, 126, 103, 0.2);
}

.cover-ornament { display: none; }

.cover-label {
    color: var(--primary); font-size: 14px; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 20px;
    font-family: 'Karla', sans-serif;
}

.cover-title {
    font-family: 'Lobster Two', cursive; font-size: 50px; 
    color: var(--primary-dark); 
    margin-bottom: 10px; line-height: 1.2;
}

.cover-and {
    font-family: 'Lobster Two', cursive; font-size: 40px; color: var(--accent); margin: 10px 0;
}

.cover-subtitle {
    color: var(--text);
    font-size: 14px; margin: 30px 0; line-height: 1.8;
}

.cover-guest {
    padding: 15px; margin: 20px 0; border-radius: 50px;
    border: 1px solid var(--accent);
}

.cover-guest-label {
    color: var(--primary); font-size: 12px; letter-spacing: 3px; margin-bottom: 5px;
}

.cover-guest-name {
    font-family: 'Lobster Two', cursive; font-size: 24px; 
    color: var(--primary-dark); 
}

.cover-btn {
    background: var(--primary); color: #fff;
    border: none; padding: 15px 50px; font-size: 14px; font-weight: 600;
    border-radius: 50px; cursor: pointer; margin-top: 30px;
    transition: all 0.3s ease; letter-spacing: 2px;
}

.cover-btn:hover { background: var(--primary-dark); transform: translateY(-3px); }

.main-content { display: none; opacity: 0; transition: opacity 0.5s ease; }
.main-content.show { display: block; opacity: 1; }

.hero {
    min-height: 100vh; background: linear-gradient(135deg, #ff7e67 0%, #ffd166 100%);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: relative; overflow: hidden; padding: 50px 20px;
}

.hero-content { text-align: center; z-index: 1; }

.hero-label {
    color: var(--primary-dark);
    font-size: 16px; letter-spacing: 8px; text-transform: uppercase; margin-bottom: 20px;
}

.hero-names {
    font-family: 'Lobster Two', cursive; font-size: 70px;
    color: #fff;
    margin: 20px 0; text-shadow: 0 5px 15px rgba(0,0,0,0.2); line-height: 1.2;
}

.hero-and { font-family: 'Lobster Two', cursive; font-size: 50px; color: var(--accent); display: block; margin: 10px 0; }

.hero-date {
    font-family: 'Karla', sans-serif; font-size: 24px; color: var(--accent); letter-spacing: 5px; margin-top: 30px;
}

.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 14px;
}

section { padding: 80px 20px; position: relative; background: linear-gradient(180deg, #fff9f5 0%, #ffffff 50%, #fff9f5 100%); }

.section-title {
    font-family: 'Lobster Two', cursive; font-size: 50px; color: var(--primary-dark);
    text-align: center; margin-bottom: 50px;
}

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

.couple-card {
    background: #fff; border-radius: 20px; padding: 40px 30px;
    text-align: center; width: 350px; box-shadow: 0 15px 35px rgba(255, 126, 103, 0.2);
    border: none; transform: translateY(50px); opacity: 0; transition: all 0.6s ease;
}

.couple-card.animate { transform: translateY(0); opacity: 1; }

.couple-photo-frame { width: 200px; height: 200px; margin: 0 auto 30px; position: relative; }
.couple-photo {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 5px solid var(--bg); box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.couple-name { font-family: 'Lobster Two', cursive; font-size: 40px; color: var(--primary-dark); margin-bottom: 10px; }
.couple-child { color: var(--text); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }

.couple-social { display: flex; justify-content: center; gap: 15px; }

.couple-social a {
    display: inline-flex; width: 45px; height: 45px; background: var(--primary);
    border-radius: 50px; justify-content: center; align-items: center;
    color: #fff;
    font-size: 18px; text-decoration: none; transition: 0.3s;
}
.couple-social a:hover { background: var(--primary-dark); }

.countdown-section { background: var(--primary-dark); color: #fff; }
.countdown-section .section-title { color: #fff; }
.countdown-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; max-width: 800px; margin: 0 auto; }
.countdown-item {
    background: rgba(255,255,255,0.1); border-radius: 20px; padding: 30px 20px;
    min-width: 120px; text-align: center; backdrop-filter: blur(10px); border: none;
}
.countdown-number { font-family: 'Lobster Two', cursive; font-size: 50px; font-weight: 700; color: var(--accent); }
.countdown-label { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 10px; letter-spacing: 2px; }

.event-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; max-width: 1000px; margin: 0 auto; }
.event-card {
    background: #fff; border-radius: 20px; padding: 50px 40px;
    text-align: center; width: 400px; box-shadow: 0 15px 35px rgba(255, 126, 103, 0.2);
    border: none; transform: translateY(50px); opacity: 0; transition: all 0.6s ease;
}
.event-card.animate { transform: translateY(0); opacity: 1; }
.event-icon {
    width: 80px; height: 80px; background: var(--primary); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; margin: 0 auto 25px;
    font-size: 35px; color: #fff;
}
.event-title { font-family: 'Lobster Two', cursive; font-size: 28px; color: var(--primary-dark); margin-bottom: 20px; }
.event-date { font-size: 16px; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.event-time { font-size: 20px; color: var(--text); margin-bottom: 15px; }
.event-location { color: var(--text); font-size: 14px; line-height: 1.6; margin-bottom: 25px; }
.event-maps-btn {
    display: inline-flex; align-items: center; gap: 10px; background: var(--primary-dark); color: #fff;
    padding: 15px 30px; border-radius: 50px; text-decoration: none; font-size: 14px;
}

/* Gallery grid removed for Swiper */
.gallery-item { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1; cursor: pointer; transform: scale(0.9); opacity: 0; transition: all 0.5s ease; }
.gallery-item.animate { transform: scale(1); opacity: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transform: translateY(100%); transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay { transform: translateY(0); }

.rsvp-section { background: var(--bg); }
.rsvp-container { max-width: 700px; margin: 0 auto; }
.rsvp-form { background: #fff; border: none; border-radius: 20px; padding: 50px 40px; box-shadow: 0 15px 35px rgba(255, 126, 103, 0.2); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; color: var(--primary-dark); font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 15px 20px; background: var(--bg); border: 1px solid var(--primary-light);
    border-radius: 50px; color: var(--text); font-family: 'Karla', sans-serif;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.attendance-options { display: flex; gap: 15px; flex-wrap: wrap; }
.attendance-option { flex: 1; min-width: 150px; }
.attendance-option input { display: none; }
.attendance-option label {
    display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px;
    background: var(--bg); border: 1px solid var(--primary-light); border-radius: 50px;
    cursor: pointer; transition: all 0.3s ease;
}
.attendance-option input:checked + label { background: var(--primary); color: #fff; }

.submit-btn {
    background: var(--primary); color: #fff;
    border: none; padding: 15px 30px; border-radius: 50px; cursor: pointer; width: 100%; font-size: 16px; font-family: 'Karla', sans-serif;
}
.submit-btn:hover { background: var(--primary-dark); }

.comments-container { margin-top: 40px; }
.comment-item { background: #fff; border-radius: 20px; padding: 20px; margin-bottom: 15px; box-shadow: 0 15px 35px rgba(255, 126, 103, 0.2); }
.comment-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.comment-name { font-weight: 600; color: var(--primary-dark); }
.comment-attendance { font-size: 12px; background: var(--primary-light); padding: 3px 8px; border-radius: 10px; color: var(--text); }
.comment-message { color: var(--text); font-size: 14px; line-height: 1.6; }
.comment-date { font-size: 12px; color: #999; margin-top: 10px; }

.gift-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; max-width: 1000px; margin: 0 auto; }
.gift-card { background: #fff; border-radius: 20px; padding: 40px; width: 350px; text-align: center; box-shadow: 0 15px 35px rgba(255, 126, 103, 0.2); transform: translateY(50px); opacity: 0; transition: 0.6s; }
.gift-card.animate { transform: translateY(0); opacity: 1; }
.gift-icon { width: 60px; height: 60px; background: var(--primary-light); border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 20px; font-size: 24px; color: var(--primary-dark); }
.atm-card { background: var(--primary-dark); color: #fff; padding: 20px; border-radius: 15px; margin-bottom: 20px; text-align: left; }
.copy-btn { background: var(--primary); color: #fff; border: none; padding: 10px 20px; border-radius: 50px; cursor: pointer; }
.copy-btn:hover { background: var(--primary-dark); }

.footer { background: var(--primary-dark); color: #fff; text-align: center; padding: 60px 20px; }
.footer-thanks { font-family: 'Lobster Two', cursive; font-size: 40px; margin-bottom: 10px; }
.footer-names { font-family: 'Karla', sans-serif; font-size: 20px; letter-spacing: 3px; }
.footer-contact, .footer-portfolio { margin-top: 20px; }
.footer-contact-title, .footer-portfolio-text { color: var(--primary-light); font-size: 12px; margin-bottom: 10px; }
.footer-wa-btn, .footer-portfolio-link { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.3); padding: 10px 20px; border-radius: 50px; display: inline-block; margin-bottom: 20px; }

.floating-petals { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999; overflow: hidden; }
.petal { position: absolute; pointer-events: none; animation: floatPetal linear infinite; }
@keyframes floatPetal {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.music-player { position: fixed; bottom: 30px; right: 30px; z-index: 1001; }
.music-btn {
    width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff;
    border: none; font-size: 20px; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.2); animation: pulseMusic 2s infinite;
}
.music-btn.playing { animation: spin 4s linear infinite; }
@keyframes pulseMusic { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes spin { 100% { transform: rotate(360deg); } }


@media (max-width: 768px) {
    .couple-container, .event-container { gap: 20px !important; }
    .hero-names { font-size: 2.5rem !important; }
}

.cover-label, .cover-subtitle, .cover-guest-label, .cover-guest-name { color: var(--rsvp-text) !important; }