/* Resetting some basic styles */
body, h1, p {
    margin: 0;
    padding: 0;
}

/* Font settings */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
}

/* Navbar styling */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #e4e7ea !important; /* Light blue color for navbar background */
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    font-size: 1rem;
    margin-right: 1rem;
    color: #2b525f; /* Light blue color for links */
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #9ecafa !important;
}

.navbar {
    color: #3d1fd3;
}

/* Container and typography settings */
.container {
    margin-top: 2rem;
    animation: fadeIn 1s ease-in-out;
}

h1 {
    font-size: 2.5rem;
    color: #343a40;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Search bar styling */
.search-bar {
    display: flex;
    justify-content: center;
}

.input-group {
    width: 100%;
    max-width: 600px;
}

#search-input {
    border-radius: 0.25rem 0 0 0.25rem;
}

.input-group-append {
    border-radius: 0 0.25rem 0.25rem 0;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Product card styling */
.card {
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem; /* Rounded corners */
    animation: slideInUp 1s ease-in-out, fadeIn 1s ease-in-out;
    animation-delay: calc(var(--animation-order) * 0.2s); /* Staggered animation delay */
    animation-fill-mode: both; /* Ensure the animation stays at its end state */
}

.card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

.card-img-top {
    height: 200px; /* Initial height */
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0; /* Rounded top corners */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-img-top:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.card-title {
    font-size: 1.25rem;
    color: #343a40;
}

.card-text {
    color: #6c757d;
    font-size: 0.9rem;
}


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

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes colorChange {
    0% {
        background-color: #fff;
    }
    50% {
        background-color: #f1f1f1;
    }
    100% {
        background-color: #fff;
    }
}

/* Apply animations */
.container {
    animation: fadeIn 1s ease-in-out;
}

.card, .navbar, .btn-primary {
    animation: fadeIn 1s ease-in-out;
}

.card:hover, .btn-primary:hover {
    animation: pulse 0.6s ease-in-out;
}

.card-img-top:hover {
    animation: pulse 0.6s ease-in-out;
}

.navbar:hover {
    background-color: #c1e4f2 !important; /* Light blue hover effect */
}

/* Social icons */
.social-icons a {
    color: #01579b; /* Dark blue */
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1.5rem;
    margin-right: 10px;
}

.social-icons a:hover {
    color: #0288d1; /* Medium blue */
    transform: scale(1.2);
}

/* Responsive design */
@media (max-width: 576px) {
    .card {
        margin-bottom: 1.5rem;
        width: 100%; /* Ensure cards take full width */
    }

    .card-img-top {
        height: 150px; /* Reduced height for smaller screens */
    }

    .card-title {
        font-size: 1rem; /* Smaller font size for title */
    }

    .card-text {
        font-size: 0.8rem; /* Smaller font size for text */
    }
}
