/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
}

/* Cover Page */
.invitation-cover {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d9488 0%, #134e4a 50%, #064e3b 100%);
}

.cover-ornament {
    position: absolute;
    width: 100%;
    height: 300px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M600 0C500 50 400 50 300 0S100 50 0 0v120h1200V0c-100 50-200 50-300 0s-200-50-300 0z' fill='%23d4af37' fill-opacity='0.15'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 400px 120px;
}

.top-ornament {
    top: 0;
    transform: rotate(180deg);
}

.bottom-ornament {
    bottom: 0;
}

.cover-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.bismillah {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.cover-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.child-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #d4af37;
    margin: 1.5rem 0;
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.4);
}

.event-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.open-button {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #064e3b;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 3rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.open-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
}

/* Main Invitation */
.invitation-main {
    min-height: 100vh;
    background: linear-gradient(to bottom, #f0fdfa 0%, #ccfbf1 50%, #f0fdfa 100%);
    position: relative;
}

.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: linear-gradient(135deg, #0d9488 0%, #134e4a 100%);
    color: #d4af37;
    border: 2px solid #d4af37;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    padding: 4rem 1rem;
    text-align: center;
    overflow: hidden;
}

.hero-ornament {
    position: absolute;
    width: 100%;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M600 0C500 40 400 40 300 0S100 40 0 0v120h1200V0c-100 40-200 40-300 0s-200-40-300 0z' fill='%230d9488' fill-opacity='0.08'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 300px 100px;
}

.hero-ornament.top {
    top: 0;
}

.hero-ornament.bottom {
    bottom: 0;
    transform: rotate(180deg);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.bismillah-hero {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: #0d9488;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 2rem;
}

.hero-child-photo {
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #d4af37;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3),
                0 0 0 15px rgba(13, 148, 136, 0.1);
    animation: float 3s ease-in-out infinite;
}

.hero-child-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.child-name-hero {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #0d9488;
    margin-bottom: 1rem;
}

.parents-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    color: #134e4a;
    margin-bottom: 0.5rem;
}

.parents-name-bold {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #064e3b;
}

/* Sections */
section {
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.section-ornament {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 0 auto 2rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #064e3b;
    text-align: center;
    margin-bottom: 2rem;
}

/* Event Details */
.event-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.event-card-content {
    padding: 2rem;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(13, 148, 136, 0.1);
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-icon {
    color: #0d9488;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.event-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.875rem;
    color: #134e4a;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.event-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    color: #064e3b;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-value-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: #134e4a;
}

/* Countdown */
.countdown-section {
    background: linear-gradient(135deg, #0d9488 0%, #134e4a 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem 1rem;
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.2);
}

.countdown-section .section-title {
    color: #d4af37;
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.countdown-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.9;
}

/* Map */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.15);
    border: 3px solid rgba(212, 175, 55, 0.3);
}

/* RSVP */
.rsvp-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.rsvp-card-content {
    padding: 2rem;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #064e3b;
}

.form-input,
.form-select {
    font-family: 'Cormorant Garamond', serif;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(13, 148, 136, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    outline: none;
}

.submit-button {
    background: linear-gradient(135deg, #0d9488 0%, #134e4a 100%);
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 2px solid #d4af37;
    box-shadow: 0 5px 20px rgba(13, 148, 136, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
    background: linear-gradient(135deg, #134e4a 0%, #0d9488 100%);
}

/* Doa Section */
.doa-section {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.doa-ornament {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.doa-content {
    position: relative;
    z-index: 10;
}

.doa-arabic {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: #0d9488;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.doa-translation {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: #134e4a;
    font-style: italic;
}

/* Footer */
.invitation-footer {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #0d9488 0%, #134e4a 100%);
    color: white;
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-ornament {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 2rem auto;
}

.footer-family {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .bismillah,
    .bismillah-hero {
        font-size: 1.5rem;
    }

    .cover-title {
        font-size: 2rem;
    }

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

    .child-name-hero {
        font-size: 2.25rem;
    }

    .hero-title,
    .section-title {
        font-size: 1.75rem;
    }

    .hero-child-photo {
        width: 200px;
        height: 200px;
    }

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

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

    .doa-arabic {
        font-size: 1.5rem;
    }

    .event-item {
        flex-direction: column;
        gap: 1rem;
    }
}