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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.birthday-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.birthday-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff69b4, #ff1493, #da70d6, #dda0dd, #e6e6fa);
    animation: rainbow 3s ease-in-out infinite;
}

@keyframes rainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header {
    margin-bottom: 40px;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff69b4, #ff1493, #da70d6, #dda0dd);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.countdown-section {
    margin-bottom: 40px;
}

.countdown-section h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

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

.time-unit {
    background: linear-gradient(135deg, #ff69b4, #da70d6);
    color: white;
    padding: 20px;
    border-radius: 15px;
    min-width: 100px;
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.3);
    transition: transform 0.3s ease;
}

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

.number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.label {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

.message-section {
    margin-bottom: 30px;
}

.birthday-message {
    background: linear-gradient(135deg, #ff1493, #da70d6);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(255, 20, 147, 0.3);
    transform: scale(0);
    animation: popIn 0.6s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes popIn {
    to {
        transform: scale(1);
    }
}

.birthday-message h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.birthday-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.balloon {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.balloon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.balloon-2 {
    top: 15%;
    right: 15%;
    animation-delay: 1s;
}

.balloon-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.balloon-4 {
    bottom: 25%;
    right: 10%;
    animation-delay: 3s;
}

.balloon-5 {
    top: 50%;
    left: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .birthday-card {
        padding: 30px 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .countdown-timer {
        gap: 15px;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 15px;
    }
    
    .number {
        font-size: 2rem;
    }
    
    .balloon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .time-unit {
        min-width: 70px;
        padding: 12px;
    }
    
    .number {
        font-size: 1.8rem;
    }
    
    .birthday-message h3 {
        font-size: 1.5rem;
    }
    
    .birthday-message p {
        font-size: 1rem;
    }
}
