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

:root {
    --primary-color: #D4AF37;
    --secondary-color: #C9A961;
    --accent-color: #FFB6C1;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --white: #FFFFFF;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Lora', serif;
    --font-script: 'Great Vibes', cursive;
}

body {
    font-family: var(--font-secondary);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Music Toggle */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.music-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

.music-toggle.paused .music-icon {
    animation: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFB6C1 0%, #D4AF37 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.save-date {
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.couple-names {
    font-family: var(--font-script);
    font-size: 5rem;
    margin: 20px 0;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.groom-name, .bride-name {
    display: block;
}

.ampersand {
    display: block;
    font-size: 3rem;
    margin: 10px 0;
    opacity: 0.8;
}

.wedding-date {
    font-size: 1.8rem;
    letter-spacing: 5px;
    margin-top: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '❤';
    display: block;
    margin: 20px auto 0;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Couple Section */
.couple-section {
    background: var(--light-color);
}

.couple-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.person {
    text-align: center;
    flex: 1;
    min-width: 250px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.person-image {
    width: 250px;
    height: 350px;
    margin: 0 auto 20px;
    border-radius: 200px 200px 20px 20px;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.person-image:hover {
    transform: scale(1.05);
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    margin: 15px 0;
    color: var(--dark-color);
}

.person-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.heart-divider {
    font-size: 3rem;
    color: var(--accent-color);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Countdown Section */
.countdown-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.countdown-section .section-title {
    color: var(--white);
}

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

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 120px;
    transition: transform 0.3s ease;
}

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

.countdown-value {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: bold;
    display: block;
}

.countdown-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

/* Event Section */
.event-section {
    background: var(--white);
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.event-item {
    text-align: center;
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateY(-10px);
}

.event-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.event-item h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.event-item p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.map-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.map-button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Map Section */
.map-section {
    background: var(--light-color);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery-section {
    background: var(--white);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-note {
    text-align: center;
    font-style: italic;
    color: #999;
    margin-top: 20px;
}

/* RSVP Section */
.rsvp-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.rsvp-section .section-title {
    color: var(--white);
}

.rsvp-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: border-color 0.3s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 50px 20px;
}

.thank-you {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.couple-signature {
    font-family: var(--font-script);
    font-size: 3rem;
    margin: 20px 0;
    color: var(--primary-color);
}

.footer-date {
    font-size: 1.2rem;
    letter-spacing: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .couple-names {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 20px 25px;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .event-details {
        gap: 30px;
    }
    
    .rsvp-form {
        padding: 30px 20px;
    }
    
    .music-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .music-icon {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 2.5rem;
    }
    
    .ampersand {
        font-size: 2rem;
    }
    
    .wedding-date {
        font-size: 1.3rem;
    }
    
    .person-image {
        width: 200px;
        height: 280px;
    }
}