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

:root {
    --primary: #2c5f2d;
    --secondary: #97be5a;
    --gold: #d4af37;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --white: #ffffff;
}

body {
    font-family: 'Georgia', serif;
    overflow-x: hidden;
    background: var(--light);
}

.hidden {
    display: none !important;
}

/* ===== COVER SECTION ===== */
.cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cover.slide-up {
    transform: translateY(-100%);
}

.cover-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
    padding: 20px;
}

.ornament-top, .ornament-bottom {
    width: 150px;
    height: 50px;
    margin: 0 auto;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 50"><path d="M75 25 Q50 10, 25 25 T0 25 M75 25 Q100 10, 125 25 T150 25" stroke="%23d4af37" fill="none" stroke-width="2"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.ornament-top {
    margin-bottom: 30px;
    animation-delay: 0.3s;
}

.ornament-bottom {
    margin-top: 30px;
    animation-delay: 0.6s;
    transform: rotate(180deg);
}

.cover h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 3px;
}

.name-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 15px;
    margin: 20px 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.name-box h2 {
    font-size: 2rem;
    font-weight: 400;
}

.cover .date {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-open {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 15px 50px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-open:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s;
}

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

/* Particles Animation */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 15s infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.fade-in-delay {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}

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

/* ===== MAIN CONTENT ===== */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-content.show {
    opacity: 1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

section {
    padding: 60px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--white);
    text-align: center;
}

.bismillah {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.bismillah.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.2s;
}

.hero-desc.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CHILD INFO ===== */
.child-info {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    text-align: center;
    color: var(--white);
}

.photo-frame {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    border: 5px solid var(--gold);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.photo-frame.animate {
    opacity: 1;
    transform: scale(1);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.child-name {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.2s;
}

.child-name.animate {
    opacity: 1;
    transform: translateY(0);
}

.child-desc {
    font-size: 1.2rem;
    opacity: 0.9;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.4s;
}

.child-desc.animate {
    opacity: 0.9;
    transform: translateY(0);
}

/* ===== EVENT DETAILS ===== */
.event-details {
    background: var(--white);
}

.event-card {
    background: var(--light);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.event-card.animate {
    opacity: 1;
    transform: translateX(0);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.event-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.event-card p {
    font-size: 1.1rem;
    color: #555;
}

.btn-maps {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 30px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-maps:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

/* ===== COUNTDOWN ===== */
.countdown {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
}

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

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    min-width: 100px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.countdown-item.animate {
    opacity: 1;
    transform: scale(1);
}

.countdown-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== GALLERY ===== */
.gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

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

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

.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

/* ===== RSVP ===== */
.rsvp {
    background: var(--light);
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.rsvp-form.animate {
    opacity: 1;
    transform: translateY(0);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* ===== WISHES ===== */
.wishes {
    background: var(--white);
}

.wishes-container {
    max-width: 600px;
    margin: 0 auto;
}

.wish-card {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid var(--gold);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.wish-card.animate {
    opacity: 1;
    transform: translateX(0);
}

.wish-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.wish-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.wish-time {
    font-size: 0.85rem;
    color: #999;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
}

.footer p {
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer h3 {
    font-size: 1.5rem;
    margin: 20px 0;
}

.family-name {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===== MUSIC TOGGLE ===== */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    color: var(--dark);
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.1);
}

.music-toggle.paused {
    opacity: 0.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cover h1 {
        font-size: 2rem;
    }

    .name-box h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .child-name {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .countdown-wrapper {
        gap: 10px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 15px 10px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .music-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}