* {
    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;
    overflow-x: hidden;
    position: relative;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s linear infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

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

.header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 0;
}

.photo-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.sophia-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(214, 51, 132, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.3s ease;
    animation: photo-float 4s ease-in-out infinite, photo-glow 3s ease-in-out infinite alternate, photo-sparkle 2s linear infinite;
    position: relative;
}

.sophia-photo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 25px 60px rgba(214, 51, 132, 0.6);
    filter: brightness(1.1);
}

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

@keyframes photo-glow {
    from { 
        box-shadow: 0 20px 50px rgba(214, 51, 132, 0.4), 0 0 30px rgba(255, 255, 255, 0.6);
    }
    to { 
        box-shadow: 0 20px 50px rgba(214, 51, 132, 0.6), 0 0 50px rgba(255, 255, 255, 0.9);
    }
}

@keyframes photo-sparkle {
    0% {
        filter: hue-rotate(0deg) saturate(1);
    }
    25% {
        filter: hue-rotate(10deg) saturate(1.1);
    }
    50% {
        filter: hue-rotate(0deg) saturate(1);
    }
    75% {
        filter: hue-rotate(-10deg) saturate(1.1);
    }
    100% {
        filter: hue-rotate(0deg) saturate(1);
    }
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    color: #d63384;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0,0,0,0.1), 0 0 10px rgba(214, 51, 132, 0.3); }
    to { text-shadow: 2px 2px 4px rgba(0,0,0,0.1), 0 0 20px rgba(214, 51, 132, 0.6); }
}

.subtitle {
    font-size: 1.3rem;
    color: #8e44ad;
    font-weight: 300;
    font-style: italic;
}

.countdown-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.milestone {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.milestone:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.birthday-milestone {
    border-left: 8px solid #ff6b9d;
}

.bell-milestone {
    border-left: 8px solid #4ecdc4;
}

.milestone-header {
    text-align: center;
    margin-bottom: 30px;
}

.milestone-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #d63384;
    margin-bottom: 10px;
}

.milestone-header .date {
    font-size: 1.2rem;
    color: #8e44ad;
    font-weight: 500;
}

.countdown-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
}

.time-unit {
    text-align: center;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    border-radius: 20px;
    padding: 25px 15px;
    min-width: 120px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.time-unit:hover {
    transform: scale(1.05);
}

.time-unit .number {
    display: block;
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 8px;
}

.time-unit .label {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.celebration-message {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.celebration-message h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: #d63384;
    margin-bottom: 15px;
}

.celebration-message p {
    font-size: 1.1rem;
    color: #8e44ad;
    line-height: 1.6;
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

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

.heart {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.star {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.butterfly {
    top: 60%;
    left: 5%;
    animation-delay: 2s;
}

.flower {
    top: 70%;
    right: 10%;
    animation-delay: 3s;
}

.crown {
    top: 15%;
    left: 50%;
    animation-delay: 4s;
}

.sparkle {
    top: 80%;
    left: 80%;
    animation-delay: 5s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .sophia-photo {
        width: 220px;
        height: 220px;
    }
    
    .countdown-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .time-unit {
        min-width: 100px;
        padding: 20px 10px;
    }
    
    .time-unit .number {
        font-size: 2rem;
    }
    
    .milestone {
        padding: 25px;
    }
    
    .milestone-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .sophia-photo {
        width: 180px;
        height: 180px;
    }
    
    .countdown-display {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 15px 8px;
    }
    
    .time-unit .number {
        font-size: 1.5rem;
    }
    
    .floating-elements > div {
        font-size: 1.5rem;
    }
}
