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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f4f4f4;
    background: linear-gradient(135deg, #232526, #414345, #1c1c1c, #2c3e50, #34495e);
    background-size: 300% 300%;
    animation: backgroundAnimation 12s ease infinite;
}

/* Background Animation */
@keyframes backgroundAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364, #1c2833, #3b3b98); /* Dark gradient */
    background-size: 300% 300%;
    animation: navbarAnimation 12s ease infinite;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Navigation Bar Animation */
@keyframes navbarAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: #f4f4f4;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* Products Section */
.products-section {
    padding: 50px 20px;
    text-align: center;
}

.products-section h1 {
    font-size: 2.5rem;
    color: #f4f4f4;
    margin-bottom: 30px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    animation: fadeIn 2s ease forwards;
}

/* Fade In Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Container */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: center;
    padding: 20px;
}

/* Product Card */
.product-card {
    background: linear-gradient(135deg, #1f2937, #374151, #4b5563, #9ca3af, #d1d5db); /* Gradient for product cards */
    background-size: 300% 300%;
    animation: productAnimation 12s ease infinite;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Product Card Animation */
@keyframes productAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.product-card img {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin-bottom: 15px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.product-card h2 {
    font-size: 1.2rem;
    color: #f4f4f4;
    margin: 10px 0;
}

.product-card:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #f4f4f4;
    font-size: 1rem;
    margin-top: 30px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
}

.floating-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-icons a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.floating-icons a img:hover {
    transform: scale(1.1);
}

/* General Reset remains unchanged */

@media (max-width: 768px) {
    body {
        font-size: 90%; /* Slightly reduce font size for better readability */
    }

    /* Navigation Bar */
    .navbar {
        padding: 5px 0px; /* Reduce padding */
        text-align: center; /* Center the navigation */
    }

    .navbar ul {
        /* flex-direction: column; Stack navigation links vertically */
        gap: 10px; /* Reduce spacing */
    }

    .navbar ul li a {
        padding: 10px 15px; /* Adjust padding */
        font-size: 1rem; /* Reduce font size */
    }

    /* Products Section */
    .products-section {
        padding: 30px 15px; /* Reduce padding */
    }

    .products-section h1 {
        font-size: 2rem; /* Reduce font size */
    }

    /* Product Container */
    .products-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust card width */
        gap: 15px; /* Reduce gap between cards */
        padding: 15px; /* Adjust padding */
    }

    /* Product Card */
    .product-card {
        padding: 15px; /* Reduce padding */
    }

    .product-card img {
        max-width: 150px; /* Limit image size */
        margin-bottom: 10px; /* Reduce spacing */
    }

    .product-card h2 {
        font-size: 1rem; /* Adjust font size */
    }

    /* Footer */
    footer {
        padding: 15px; /* Reduce padding */
        font-size: 0.9rem; /* Reduce font size */
    }

    /* Floating Icons */
    .floating-icons {
        bottom: 10px; /* Adjust position */
        right: 10px;
    }

    .floating-icons a img {
        width: 30px; /* Reduce icon size */
        height: 30px;
    }
}
