:root {
    --bg-color: #fff0f5; /* LavenderBlush */
    --primary-pink: #ffb6c1; /* LightPink */
    --deep-pink: #d81b60; /* Deep Pink */
    --gold: #d4af37;
    --text-color: #4a4a4a;
    --card-bg: rgba(255, 255, 255, 0.85);
    
    --envelope-color: #fce4ec;
    --flap-color: #f8bbd0;
    --pocket-color: #f48fb1;
    --letter-bg: #fff;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 100% 0%, #ffe4e1 0%, transparent 50%), 
                      radial-gradient(circle at 0% 100%, #ffb6c1 0%, transparent 50%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, .badge {
    font-family: 'Caveat', cursive;
    color: var(--deep-pink);
}

.hidden {
    display: none !important;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(216, 27, 96, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* --- Balloon Animations --- */
.balloon-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
    z-index: 1000;
    transition: opacity 0.8s ease-out;
}

.balloon-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.tap-text {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    color: var(--deep-pink);
    animation: pulse 2s infinite;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    50% { transform: translateX(-50%) scale(1.05); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
}

.balloons-wrapper {
    position: relative;
    width: 200px;
    height: 300px;
    cursor: pointer;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.balloons-wrapper.popped .tap-text {
    opacity: 0;
    animation: none;
}

.balloon {
    position: absolute;
    width: 110px;
    height: 140px;
    background-color: var(--primary-pink);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    box-shadow: inset -10px -10px 20px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.2);
    animation: floatBalloon 4s ease-in-out infinite;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease-out;
}
/* Tie/string */
.balloon::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid var(--primary-pink);
}

.balloon1 {
    background-color: #ffb6c1; /* light pink */
    left: 10px; top: -10px;
    animation-delay: 0s;
    z-index: 3;
}
.balloon1::after { border-bottom-color: #ffb6c1; }

.balloon2 {
    background-color: #ff69b4; /* hot pink */
    left: 90px; top: -30px;
    animation-delay: 1.5s;
    z-index: 2;
    transform: scale(0.9);
}
.balloon2::after { border-bottom-color: #ff69b4; }

.balloon3 {
    background-color: #ff1493; /* deep pink */
    left: 55px; top: 40px;
    animation-delay: 0.7s;
    z-index: 4;
}
.balloon3::after { border-bottom-color: #ff1493; }

/* The string tail below the tie */
.balloon::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    width: 2px;
    height: 40px;
    background-color: rgba(255, 182, 193, 0.8);
    transform: rotate(5deg);
}

@keyframes floatBalloon {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

/* Pop Animation */
.balloon.pop {
    transform: scale(1.4);
    opacity: 0;
}


/* --- Main Content Layout --- */
.main-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    opacity: 0;
    position: relative;
    z-index: 10;
    animation: fadeIn 1.5s forwards 0.5s;
}

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

.hero {
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.badge {
    display: inline-block;
    background: var(--deep-pink);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.2rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(216, 27, 96, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Section Title global */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}
.section-title::after {
    content: '🌸';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
}

/* Details Cards */
.details {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 2rem;
}
.detail-card {
    background: var(--card-bg);
    flex: 1;
    padding: 20px 10px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
}
.icon-circle {
    width: 50px; height: 50px;
    background: #ffe4e1;
    color: var(--deep-pink);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 10px auto;
}
.highlight-text {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--deep-pink);
}

/* Features grid */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.feature-card {
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255,182,193, 0.3);
}
.feature-card .icon-wrapper {
    font-size: 2rem;
    color: var(--deep-pink);
    margin-bottom: 10px;
}

/* Gallery Section */
.gallery-section {
    margin-bottom: 2rem;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}
.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: rotate(calc(-3deg + 6deg * var(--rand, 0)));
}
.gallery-item:nth-child(even) {
    --rand: 1;
}
.placeholder-img {
    width: 100%; height: 100%;
    background-color: var(--primary-pink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
}
.photo-1 { background: linear-gradient(45deg, #ffb6c1, #f48fb1); }
.photo-2 { background: linear-gradient(45deg, #f8bbd0, #f06292); }
.photo-3 { background: linear-gradient(45deg, #fce4ec, #f48fb1); }

/* Map and Social Buttons */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.social-btn {
    display: block;
    background: #1877F2;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}
.social-btn:hover {
    background: #166fe5;
    transform: scale(1.02);
}

/* RSVP Section */
.rsvp-desc {
    text-align: center;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.95rem;
}
.form-group label i {
    color: var(--deep-pink);
    margin-right: 5px;
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--primary-pink);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--deep-pink);
    box-shadow: 0 0 0 3px rgba(216, 27, 96, 0.1);
}

.action-buttons {
    margin-top: 25px;
    text-align: center;
}
.small-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-family: inherit;
    font-weight: 600;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, opacity 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.btn:active {
    transform: translateY(0);
}
.viber-btn {
    background: #665CAC;
}
.whatsapp-btn {
    background: #25D366;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0 40px 0;
    font-weight: 600;
    color: var(--deep-pink);
}

/* Decorative animations */
.light-wobble {
    animation: wobble 4s ease-in-out infinite alternate;
}
.light-wobble.right {
    animation-direction: alternate-reverse;
}
@keyframes wobble {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-5px) rotate(1deg); }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    .details {
        flex-direction: column;
    }
    .balloons-wrapper {
        transform: scale(0.9);
    }
}

/* Sparkles background (Brokat) */
.sparkles {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, white, transparent),
        radial-gradient(2px 2px at 30% 40%, rgba(255,182,193,0.8), transparent),
        radial-gradient(1.5px 1.5px at 50% 60%, rgba(216, 27, 96, 0.6), transparent),
        radial-gradient(1px 1px at 80% 80%, white, transparent),
        radial-gradient(2px 2px at 90% 10%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 60% 30%, rgba(255,182,193,0.8), transparent),
        radial-gradient(2px 2px at 20% 80%, #ffd700, transparent);
    background-size: 150px 150px;
    animation: sparkleBg 6s linear infinite;
    z-index: 0;
}

@keyframes sparkleBg {
    0% { background-position: 0 0; opacity: 0.6; }
    50% { opacity: 1; }
    100% { background-position: 150px 150px; opacity: 0.6; }
}

/* Floating flowers */
.flowers-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.flower {
    position: absolute;
    opacity: 0.7;
    animation: floatFlower linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 182, 193, 0.5));
}

.flower.f1 { left: 5%; animation-duration: 18s; font-size: 2.5rem; }
.flower.f2 { left: 25%; animation-duration: 25s; font-size: 1.5rem; animation-delay: 2s; }
.flower.f3 { left: 45%; animation-duration: 22s; font-size: 2rem; animation-delay: 5s; }
.flower.f4 { left: 65%; animation-duration: 28s; font-size: 1.8rem; animation-delay: 1s; }
.flower.f5 { left: 85%; animation-duration: 20s; font-size: 2.8rem; animation-delay: 7s; }
.flower.f6 { left: 15%; animation-duration: 24s; font-size: 1.6rem; animation-delay: 12s; }
.flower.f7 { left: 55%; animation-duration: 26s; font-size: 2.2rem; animation-delay: 4s; }
.flower.f8 { left: 95%; animation-duration: 19s; font-size: 1.9rem; animation-delay: 9s; }

@keyframes floatFlower {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Shimmer text effect */
.shimmer-text {
    background: linear-gradient(90deg, var(--deep-pink), #ff69b4, #ff1493, var(--deep-pink));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    display: inline-block;
    padding-bottom: 5px;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}
