/* General Styles */
body {
    font-family: 'Poppins', sans-serif; /* Modern and clean font */
    margin: 0;
    padding: 0;
    background-color: #fefaf6; /* Soft cream background */
    color: #444;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

header {
    background: linear-gradient(90deg, #ff9a9e, #fad0c4); /* Soft pink gradient */
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out; /* Fade-in animation */
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(90deg, #fbc2eb, #a6c1ee); /* Pastel pink to blue gradient */
    color: #333;
    border-bottom: 2px solid #f4f4f4;
    animation: slideIn 1s ease-in-out; /* Slide-in animation */
}

.hero h1 {
    font-size: 3.5rem;
    margin: 0;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin: 1.5rem 0;
    color: #555;
}

.section-title {
    text-align: center;
    margin: 2.5rem 0 1.5rem;
    font-size: 2.5rem;
    color: #444;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid Layout for Items */
.items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive grid */
    gap: 1.5rem;
    padding: 2rem;
}

.item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 1s ease-in-out; /* Fade-in animation */
}

.item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.item img {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.item h3 {
    margin: 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.item p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer Styles */
footer {
    background-color: #fefaf6;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #eee;
    margin-top: 2rem;
    animation: fadeIn 1s ease-in-out; /* Fade-in animation */
}

footer p {
    margin: 0.5rem 0;
}

footer p:first-child {
    font-weight: 600;
    color: #444;
}

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

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem; /* Reduce font size for smaller screens */
    }

    .hero p {
        font-size: 1rem; /* Adjust paragraph size */
    }

    .falling {
        display: none; /* Hide falling items on smaller screens */
    }

    .items {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjust grid layout */
        gap: 1rem; /* Reduce gap between items */
    }

    footer {
        font-size: 0.8rem; /* Make footer text smaller */
    }
}

/* Falling Animation */
@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.falling {
    position: absolute;
    top: -100px;
    animation: fall 5s linear infinite;
    z-index: 1;
}

.falling:nth-child(1) {
    left: 10%;
    animation-duration: 4s;
    animation-delay: 0s;
}

.falling:nth-child(2) {
    left: 30%;
    animation-duration: 6s;
    animation-delay: 1s;
}

.falling:nth-child(3) {
    left: 50%;
    animation-duration: 5s;
    animation-delay: 2s;
}

.falling:nth-child(4) {
    left: 70%;
    animation-duration: 7s;
    animation-delay: 3s;
}

.falling:nth-child(5) {
    left: 90%;
    animation-duration: 4.5s;
    animation-delay: 1.5s;
}

/* Container Styles */
.container {
    max-width: 1200px; /* Limit the width of the content */
    margin: 0 auto; /* Center the container */
    padding: 0 1rem; /* Add padding for smaller screens */
}