@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@300;400;600&display=swap');

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

body {
    font-family: 'Montserrat', sans-serif;
    background-image: url('https://images.unsplash.com/photo-1528460033258-5f45f698a6Ac?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
    perspective: 1000px;
}

.invitation-card {
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: flipIn 1.2s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform-style: preserve-3d;
}

.hero {
    padding: 50px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(225, 190, 231, 0.8), rgba(206, 147, 216, 0.8));
    color: #fff;
}

.hero h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero h1 i, .section h2 i {
    margin-right: 15px;
    font-size: 3.5rem;
}

.hero h1 .emoji {
    display: inline-block;
    animation: tada 1.5s infinite;
}

.hero .date-time, .hero .venue {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.maps-link {
    display: inline-block;
    background: #fff;
    color: #8e24aa;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.maps-link:hover {
    background: #f3e5f5;
    transform: scale(1.05);
}

.maps-link i {
    margin-right: 8px;
}

main {
    padding: 40px;
}

.section {
    opacity: 1;
    transform: none;
    padding: 0;
    margin-bottom: 30px;
}

.section:last-child {
    margin-bottom: 0;
}

.section h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #8e24aa;
    text-align: center;
    margin-bottom: 20px;
}

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

.contact {
    background: rgba(255,255,255,0.7);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    flex: 1 1 200px;
    border: 1px solid #ddd;
    transition: transform 0.3s;
}

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

.contact h3 {
    font-size: 1.3rem;
    color: #6a1b9a;
    margin-bottom: 10px;
}

.contact p {
    font-size: 1rem;
}

.contact a {
    color: #4a148c;
    text-decoration: none;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid #ddd;
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
}

.final-message {
    text-align: center;
    font-size: 1.1rem;
    color: #4a148c;
}

@keyframes flipIn {
    from {
        transform: rotateY(90deg) scale(0.9);
        opacity: 0;
    }
    to {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes tada {
    0% {transform: scale(1);}
    10%, 20% {transform: scale(0.9) rotate(-3deg);}
    30%, 50%, 70%, 90% {transform: scale(1.1) rotate(3deg);}
    40%, 60%, 80% {transform: scale(1.1) rotate(-3deg);}
    100% {transform: scale(1) rotate(0);}
}

@media (max-width: 600px) {
    body {
        padding: 20px;
    }
    .hero h1, .section h2 {
        font-size: 3rem;
    }
    .hero h1 i, .section h2 i {
        font-size: 2.5rem;
    }
}
