/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Balloons */
.balloons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.balloon {
    position: absolute;
    width: 80px;
    height: 100px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.balloon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    left: 50%;
    bottom: -100px;
    transform: translateX(-50%);
}

.balloon-1 {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    left: 10%;
    animation-delay: 0s;
}

.balloon-2 {
    background: linear-gradient(135deg, #4ecdc4, #44a3aa);
    left: 20%;
    animation-delay: 1s;
}

.balloon-3 {
    background: linear-gradient(135deg, #f7b731, #f5af19);
    left: 70%;
    animation-delay: 2s;
}

.balloon-4 {
    background: linear-gradient(135deg, #5f27cd, #7c4dff);
    left: 80%;
    animation-delay: 3s;
}

.balloon-5 {
    background: linear-gradient(135deg, #00d2d3, #01a3a4);
    left: 85%;
    animation-delay: 4s;
}

.balloon-6 {
    background: linear-gradient(135deg, #ff9ff3, #feca57);
    left: 40%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(-5deg);
    }
    50% {
        transform: translateY(-100vh) rotate(5deg);
    }
}

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0.7;
    animation: confetti-fall 3s linear infinite;
}

.confetti-1 {
    background: #ff6b6b;
    left: 10%;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.confetti-2 {
    background: #4ecdc4;
    left: 30%;
    animation-delay: 0.5s;
    transform: rotate(15deg);
}

.confetti-3 {
    background: #f7b731;
    left: 50%;
    animation-delay: 1s;
    transform: rotate(75deg);
}

.confetti-4 {
    background: #5f27cd;
    left: 70%;
    animation-delay: 1.5s;
    transform: rotate(30deg);
}

.confetti-5 {
    background: #ff9ff3;
    left: 90%;
    animation-delay: 2s;
    transform: rotate(60deg);
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    min-height: 75vh;
    background:
        linear-gradient(rgba(255, 25, 255, 0.7), rgba(25, 255, 255, 0.7)),
        url('photo-1514525253161-7a46d19cd819.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 25px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    animation: slideInDown 1s ease-out;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.celebration-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #f7b731, #5f27cd);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    margin-top: 20%;
	text-shadow: 2px 2px 0 rgba(255,255,255,0.4);
    position: relative;
    z-index: 2;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.names {
    display: flex;
    justify-content: center;
    align-items: top;
    gap: 25px;
    margin-top: 10px;
    position: absolute;
    z-index: 2;
    top: 0;
}

.name {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
	text-shadow: 2px 2px 0 #fff;
    position: relative;
}

.heart {
    font-size: 2rem;
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(2);
    }
}

.photo-gallery {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.9;
}

.photo-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2deg);
    padding: 10px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.photo-frame:hover {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
}

.celebration-photo {
    height: 60vh;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Party Details Section */
.party-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.details-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInUp 1s ease-out;
}

.details-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-title i {
    color: #ff6b6b;
}

.detail-text {
    font-size: 1.2rem;
    color: #666;
    margin: 5px 0;
}

/* Map Section */
.map-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 1s ease-out;
}

.map-container {
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Message Section */
.message-section {
    margin-bottom: 30px;
}

.message-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideInRight 1s ease-out;
}

.message-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

/* RSVP Section */
.rsvp-section {
    margin-bottom: 30px;
}

.rsvp-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideInUp 1s ease-out;
}

.rsvp-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    font-size: 1.1rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-item i {
    color: #4ecdc4;
}

.contact-item a {
    color: #5f27cd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ff6b6b;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideInUp 1s ease-out;
}

.footer-text {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.5rem;
}

.footer-icons i {
    color: #ff6b6b;
    animation: bounce 2s ease-in-out infinite;
}

.footer-icons i:nth-child(2) {
    animation-delay: 0.5s;
    color: #4ecdc4;
}

.footer-icons i:nth-child(3) {
    animation-delay: 1s;
    color: #f7b731;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .celebration-title {
        font-size: 2.5rem;
    }
    
    .names {
        gap: 25px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .party-details {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px;
        min-height: 80vh;
    }
    
    .celebration-title {
        font-size: 2rem;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .details-card,
    .message-card,
    .rsvp-card,
    .map-section {
        padding: 20px;
    }
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: "Font Awesome 6 Free", sans-serif;
}

.music-control:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.music-control i {
    font-size: 1.5rem;
    color: #ff6b6b;
    animation: pulse 2s infinite;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 50px;
    text-align: center;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.music-control.muted i {
    color: #999;
    animation: none;
}

/* Fallback for browsers with font loading issues */
.music-control:before {
    content: "♪";
    font-size: 1.5rem;
    color: #ff6b6b;
    display: none;
    animation: pulse 2s infinite;
}

.music-control.muted:before {
    content: "♫";
    color: #999;
    animation: none;
}

/* Show fallback if Font Awesome doesn't load */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .music-control i {
            display: none;
        }
        .music-control:before {
            display: block;
        }
    }
}