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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Fireworks Canvas */
#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 60px 20px 40px;
    animation: fadeInDown 1s ease-out;
}

.main-title {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                 0 0 40px rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1.5rem;
    color: #ffd700;
    animation: fadeIn 2s ease-out;
}

/* Message Section */
.message-section {
    padding: 40px 20px;
}

.message-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: slideUp 1s ease-out;
}

.message-card h2 {
    color: #764ba2;
    font-size: 2rem;
    margin-bottom: 20px;
}

.message-card p {
    color: #333;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.signature {
    text-align: right;
    font-style: italic;
    color: #667eea;
    font-size: 1.3rem;
    margin-top: 30px;
}

.heart-pulse {
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    font-size: 1.5rem;
}

/* Photo Gallery */
.photo-gallery {
    padding: 60px 20px;
}

.gallery-title {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.5s ease-out;
}

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

.photo-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInScale 1s ease-out backwards;
}

.photo-card:nth-child(1) { animation-delay: 0.2s; }
.photo-card:nth-child(2) { animation-delay: 0.4s; }
.photo-card:nth-child(3) { animation-delay: 0.6s; }
.photo-card:nth-child(4) { animation-delay: 0.8s; }

.photo-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.photo-placeholder {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}

.photo-placeholder span {
    font-size: 1rem;
    margin-top: 10px;
}

/* Styling for actual photos */
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

/* Countdown Section */
.countdown-section {
    text-align: center;
    padding: 60px 20px;
}

.countdown-section h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.countdown-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px 40px;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.countdown-item:nth-child(2) { animation-delay: 0.5s; }
.countdown-item:nth-child(3) { animation-delay: 1s; }

.countdown-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #764ba2;
    margin-bottom: 10px;
}

.countdown-label {
    display: block;
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
}

/* Footer */
.footer {
    text-align: center;
    padding: 60px 20px 40px;
}

.sparkle {
    color: #ffd700;
    font-size: 1.8rem;
    animation: sparkle 2s ease-in-out infinite;
}

/* Floating Hearts */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                     0 0 40px rgba(255, 255, 255, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8),
                     0 0 60px rgba(255, 255, 255, 0.5),
                     0 0 80px rgba(255, 215, 0, 0.4);
    }
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .message-card {
        padding: 30px 20px;
    }
    
    .message-card h2 {
        font-size: 1.5rem;
    }
    
    .message-card p {
        font-size: 1rem;
    }
    
    .gallery-title,
    .countdown-section h2 {
        font-size: 2rem;
    }
    
    .countdown-display {
        gap: 20px;
    }
    
    .countdown-item {
        padding: 20px 30px;
        min-width: 120px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}