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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #fecfef 75%, #fecfef 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Animated Flowers */
.flowers {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

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

.flower-1 { top: 10%; left: 10%; animation-delay: 0s; }
.flower-2 { top: 20%; right: 15%; animation-delay: 1s; }
.flower-3 { bottom: 20%; left: 20%; animation-delay: 2s; }
.flower-4 { bottom: 30%; right: 10%; animation-delay: 3s; }
.flower-5 { top: 50%; left: 5%; animation-delay: 1.5s; }
.flower-6 { top: 40%; right: 5%; animation-delay: 2.5s; }
.flower-7 { bottom: 10%; left: 50%; animation-delay: 0.5s; }
.flower-8 { top: 15%; left: 50%; animation-delay: 3.5s; }

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

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.birthday-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53, #ff6b6b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Age Display */
.age-display {
    margin: 30px 0;
    position: relative;
}

.number {
    font-size: 6rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

.age-text {
    font-size: 1.5rem;
    color: #764ba2;
    font-weight: 600;
    margin-top: 10px;
}

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

/* Love Message */
.love-message {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(252, 182, 159, 0.3);
}

.love-text {
    font-size: 2rem;
    color: #d63384;
    font-weight: 600;
    margin-bottom: 10px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.special-text {
    font-size: 1.2rem;
    color: #6f42c1;
    font-style: italic;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20% { transform: scale(1.05); }
}

/* Pretty Buttons */
.button-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 40px 0;
}

.pretty-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pretty-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.pretty-btn:hover:before {
    left: 100%;
}

.pretty-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.pretty-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-1 {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
}

.btn-2 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.btn-3 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.btn-4 {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.btn-5 {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.btn-6 {
    background: linear-gradient(135deg, #30cfd0, #330867);
}

/* Photo Frame */
.photo-frame {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(252, 182, 159, 0.4);
    border: 5px solid white;
    position: relative;
}

.frame-content p {
    font-size: 1.5rem;
    color: #d63384;
    font-weight: 600;
    margin-bottom: 15px;
}

.memory-text {
    font-size: 1.1rem;
    color: #6f42c1;
    font-style: italic;
}

/* Love Timeline */
.love-timeline {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 182, 159, 0.1), rgba(252, 182, 159, 0.2));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(252, 182, 159, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.love-timeline h3 {
    font-size: 1.8rem;
    color: #d63384;
    margin-bottom: 20px;
    text-align: center;
}

.timeline-item {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border-left: 4px solid #ff6b6b;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.timeline-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: #764ba2;
    margin-bottom: 5px;
}

.timeline-text {
    font-size: 1rem;
    color: #495057;
    font-style: italic;
}

/* Romantic Poem */
.romantic-poem {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.1), rgba(118, 75, 162, 0.2));
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(118, 75, 162, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.romantic-poem h3 {
    font-size: 1.8rem;
    color: #764ba2;
    margin-bottom: 20px;
}

.poem-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #495057;
    font-style: italic;
    font-family: 'Dancing Script', cursive;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Wishes */
.wishes {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.wishes h3 {
    font-size: 1.8rem;
    color: #764ba2;
    margin-bottom: 20px;
    text-align: center;
}

.wishes ul {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.wishes li {
    font-size: 1.1rem;
    color: #495057;
    margin: 12px 0;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 236, 210, 0.8), rgba(252, 182, 159, 0.8));
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid #ff6b6b;
}

.wishes li:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 8px 20px rgba(252, 182, 159, 0.4);
}

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.heart {
    position: absolute;
    font-size: 1.5rem;
    animation: floatUp 8s linear infinite;
    opacity: 0.7;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 30%; animation-delay: 2s; }
.heart:nth-child(3) { left: 50%; animation-delay: 4s; }
.heart:nth-child(4) { left: 70%; animation-delay: 6s; }
.heart:nth-child(5) { left: 90%; animation-delay: 1s; }

@keyframes floatUp {
    0% {
        bottom: -10%;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(100px) rotate(360deg);
    }
}

/* Message Popup */
.message-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

#popup-message {
    font-size: 1.3rem;
    color: #764ba2;
    font-weight: 600;
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .birthday-title {
        font-size: 2.5rem;
    }
    
    .number {
        font-size: 4rem;
    }
    
    .love-text {
        font-size: 1.5rem;
    }
    
    .button-container {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 20px;
        margin: 10px;
    }
    
    .flower {
        font-size: 1.5rem;
    }
}
