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

body {
    font-family: 'Montserrat', sans-serif;
    background: #1a0f1a;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Loader Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a0f1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid #5a3e2e;
    border-top-color: #c9a87b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader p {
    margin-top: 20px;
    color: #c9a87b;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Main Card */
.wedding-card {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.wedding-card.visible {
    opacity: 1;
}

/* Event Sections */
.event-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d1b2d 0%, #1a0f1a 100%);
    overflow: hidden;
}

/* White decorative overlay */
.event-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 40%, rgba(255,255,245,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Decorative floral corners */
.event-section::after {
    content: '❦';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 32px;
    color: rgba(201,168,123,0.2);
    font-family: serif;
}

.event-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-section.reveal .event-content {
    opacity: 1;
    transform: translateY(0);
}

/* Ornament */
.ornament {
    font-size: 48px;
    color: #c9a87b;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

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

/* Typography */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #c9a87b;
    margin: 20px 0;
    letter-spacing: 2px;
}

.couple-names {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.bride, .groom {
    font-size: 2.2rem;
    font-weight: 600;
    color: #e8d0b0;
}

.amp {
    font-size: 2rem;
    color: #c9a87b;
    font-family: serif;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #c9a87b;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #c9a87b;
}

.pre-title {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: #c9a87b;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Event Details Card */
.event-details-card {
    background: rgba(90, 62, 46, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 24px;
    margin: 30px 0;
    border: 1px solid rgba(201,168,123,0.3);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(201,168,123,0.2);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-icon {
    font-size: 28px;
    min-width: 50px;
}

.detail-text {
    text-align: left;
}

.detail-text strong {
    color: #c9a87b;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.detail-text p {
    color: #e8d0b0;
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Buttons */
.location-btn, .rsvp-btn {
    background: linear-gradient(135deg, #5a3e2e, #3d2a1f);
    border: 1px solid #c9a87b;
    color: #c9a87b;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.location-btn:hover, .rsvp-btn:hover {
    background: linear-gradient(135deg, #6d4c38, #4d3524);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(201,168,123,0.3);
}

/* Scroll Hint */
.scroll-hint {
    margin-top: 60px;
    color: #c9a87b;
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 24px;
    margin-top: 8px;
}

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

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.countdown-item {
    background: rgba(90, 62, 46, 0.4);
    backdrop-filter: blur(8px);
    padding: 20px 15px;
    border-radius: 16px;
    min-width: 80px;
    border: 1px solid rgba(201,168,123,0.3);
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #c9a87b;
    display: block;
}

.countdown-label {
    font-size: 0.7rem;
    color: #e8d0b0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RSVP Section */
.rsvp-section {
    margin: 40px 0;
}

.rsvp-text {
    color: #c9a87b;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

.dress-code {
    margin-top: 30px;
    padding: 12px;
    background: rgba(201,168,123,0.1);
    border-radius: 50px;
    display: inline-block;
}

.dress-code span {
    color: #c9a87b;
    font-size: 0.85rem;
}

.footer-note {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(201,168,123,0.3);
    color: #c9a87b;
    font-size: 0.9rem;
    font-family: 'Playfair Display', serif;
}

/* Event specific backgrounds */
.event-1 {
    background: linear-gradient(135deg, #2d1b2d 0%, #1a0f1a 100%);
}
.event-2 {
    background: linear-gradient(135deg, #251625 0%, #150e15 100%);
}
.event-3 {
    background: linear-gradient(135deg, #2a192a 0%, #1a0f1a 100%);
}
.event-4 {
    background: linear-gradient(135deg, #2d1b2d 0%, #1a0f1a 100%);
}

/* Date Badge */
.date-badge {
    background: rgba(201,168,123,0.2);
    border: 1px solid #c9a87b;
    border-radius: 50px;
    padding: 8px 20px;
    display: inline-block;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #c9a87b;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .bride, .groom {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .countdown-item {
        min-width: 65px;
        padding: 12px 8px;
    }
    
    .countdown-number {
        font-size: 1.6rem;
    }
    
    .event-content {
        padding: 20px;
    }
}

/* Animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
