/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* Background Decorations */
.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.decoration {
    position: absolute;
    font-size: 12rem;
    opacity: 0.4;
    color: #ff6b6b;
    animation: float 6s ease-in-out infinite;
}

.decoration-1 {
    top: 10%;
    left: 2%;
    animation-delay: 0s;
    color: #ff6b6b;
}

.decoration-2 {
    top: 40%;
    right: 5%;
    animation-delay: 1s;
    color: #4ecdc4;
}

.decoration-3 {
    top: 40%;
    left: 8%;
    animation-delay: 2s;
    color: #45b7d1;
}

.decoration-4 {
    top: 70%;
    right: 8%;
    animation-delay: 3s;
    color: #96ceb4;
}

.decoration-5 {
    top: 70%;
    left: 3%;
    animation-delay: 4s;
    color: #feca57;
}

.decoration-6 {
    top: 10%;
    right: 5%;
    animation-delay: 5s;
    color: #ff9ff3;
}



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


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

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.celebration-banner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.main-title {
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.subtitle {
    display: block;
    font-size: 1.5rem;
    color: #666;
    margin-top: 10px;
    font-weight: 400;
}

.celebration-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.celebration-icon {
    font-size: 3rem;
    color: #ff6b6b;
    animation: bounce 2s infinite;
}

.celebration-icon:nth-child(2) {
    animation-delay: 0.2s;
    color: #45b7d1;
}

.celebration-icon:nth-child(3) {
    animation-delay: 0.4s;
    color: #45b7d1;
}

.celebration-icon:nth-child(4) {
    animation-delay: 0.6s;
    color: #96ceb4;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
}

.main-content > section {
    margin-bottom: 30px;
}

.main-content > section:last-child {
    margin-bottom: 0;
}

/* Celebration Tiles */
.celebration-tiles {
    animation: fadeInUp 1s ease-out 0.2s both;
    margin-bottom: 40px;
}

.tiles-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px 30px 50px 30px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}


.tiles-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-content: center;
}

.tiles-container.has-baby {
    grid-template-columns: 1fr 1fr 1fr;
}

.celebration-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.celebration-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


.celebration-tile span {
    font-weight: 400;
    color: #333;
    font-size: 1.4rem;
    text-align: center;
}

.celebration-tile i {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 5px;
}

.celebration-tile .emoji-icon {
    font-size: 2rem;
    margin-bottom: 5px;
    display: block;
}

.baby-tile {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
    color: white;
    animation: bounceIn 0.8s ease-out;
}

.baby-tile i {
    color: white;
    animation: pulse 1s infinite;
}

.baby-tile span {
    color: white;
}

.hidden {
    display: none;
}

@keyframes bounceIn {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(90deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Event Details */
.event-details {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.event-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.event-card h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}

.event-info {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.event-item:nth-child(1),
.event-item:nth-child(2) {
    grid-column: span 3;
}


.event-item:nth-child(3),
.event-item:nth-child(4),
.event-item:nth-child(5) {
    grid-column: span 2;
}

.event-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateY(-5px);
}

.event-item i {
    font-size: 2rem;
    color: #ff6b6b;
}

.event-item span {
    font-weight: 500;
    color: #333;
}

/* Invitation Section */
.invitation-section {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.invitation-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.invitation-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.invitation-card p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.invitation-card p:first-of-type {
    margin-bottom: 25px;
}

.invitation-card p:last-of-type {
    margin-top: 10px;
}





/* Footer */
.footer {
    margin-top: 40px;
    text-align: center;
    animation: fadeInUp 1s ease-out 1s both;
}

.footer-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-content p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-emojis {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.footer-emojis span {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

.footer-emojis span:nth-child(2) {
    animation-delay: 0.3s;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-icons i {
    font-size: 1.5rem;
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

.footer-icons i:nth-child(2) {
    color: #4ecdc4;
    animation-delay: 0.3s;
}


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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

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


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title-line {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .celebration-icons {
        gap: 15px;
    }
    
    .celebration-icon {
        font-size: 1.5rem;
    }
    
    .event-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .event-item:nth-child(1),
    .event-item:nth-child(2) {
        grid-column: span 1;
    }
    
    .event-item:nth-child(3),
    .event-item:nth-child(4),
    .event-item:nth-child(5) {
        grid-column: span 1;
    }
    
    .countdown-timer {
        gap: 15px;
    }
    
    .time-number {
        font-size: 2rem;
    }
    
    
    .date-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .date-label {
        font-size: 0.9rem;
    }
    
    .date-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .title-line {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .celebration-icon {
        font-size: 1.2rem;
    }
    
    .event-card, .date-card, .bring-card, .footer-content, .tiles-card {
        padding: 20px;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .countdown-timer {
        padding: 20px;
        gap: 10px;
    }
    
    .time-number {
        font-size: 1.5rem;
    }
    
    .time-label {
        font-size: 0.8rem;
    }
}
