html {
    font-size: 16px; /* base for rem units */
}

body {
    font-family: Arial, sans-serif;
     font-size: 1rem;
    margin: 0;
    padding: 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: green;
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.navbar nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;

}

.navbar nav a:hover {
    background-color: white;
    color: green;
    border-radius: 5px;
    padding: 10px 15px;
}

.navbar nav .dropdown {
    position: relative;
    display: inline-block;
}

.navbar nav .dropbtn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 15px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.navbar nav .dropdown:hover .dropdown-content {
    display: block;
}

.navbar nav .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 999;
    border-radius: 5px;
    overflow: hidden;
}

.navbar nav .dropdown-content a {
    color: green;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: bold;
    background-color: white;
}

.navbar nav .dropdown-content a:hover {
    background-color: #f1f1f1;
}

.slider {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
}

.slide-container {
    display: flex;
    transition: transform 1s ease-in-out;
    width: 320%;
}

.slide {
    flex: 1 0 100%;
    min-width: 100%;
    text-align: center;
}

.slide img {
    width: 100%;

    object-fit: cover;
    height: auto;
    max-height: 400px;
    display: block;
}

.products {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.products h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.product-card {
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-card img {
    width: 240px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-card:active {
    transform: scale(0.97);
}

.product-image img {

    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-info {
    padding: 15px;
    text-align: left;
}

.product-info p {
    margin: 8px 0;
    font-size: 15px;
    color: #333;
}

.product-info p strong {
    color: #444;
}

.products {
    padding: 40px 20px;
    text-align: center;
}

.product {
    border: none;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    width: 250px;
    height: 380px;
    text-align: center;
    box-shadow: 0 4px 19px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.product h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.product p {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.product button {
    background-color: green;
    color: white;
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-top: 15px;
}

.product button:hover {
    background-color: white;
    color: green;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.view-more-btn {
    background-color: #27ae60;
    color: #fff;
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-more-btn:hover {
    background-color: #219150;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: left;
}

.about-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.about-logo {
    width: 350px;
    height: auto;
    margin-right: 150px;
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 1s ease, transform 1s ease;
}

.about-logo.floating {
    opacity: 1;
    transform: translateY(0);
}

.about-text {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 1s ease, transform 1s ease;
}

.about-text.visible {
    opacity: 1;
    transform: translateX(0);
}

@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-text {
    animation: slideFromLeft 1s ease-out forwards;
}

.about-text h1 {
    font-size: 32px;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.about-text p {
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 15px;
}

#welcome-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: #28a745;
    color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform .4s ease, opacity .4s ease;
}

#welcome-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .slide img {
        max-height: 250px;
    }
}
