/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #2c3e50;
    color: white;
    position: relative;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 0.3rem;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

/* Navigation links (desktop) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;



    /* Increased gap between nav links */
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1abc9c;
}

.nav-links.show {
    display: flex;
    /* Show when toggled */
}

/* Mobile view styles */
@media screen and (max-width: 768px) {


    .nav-links {


        display: none;
        /* Hide by default */
        flex-direction: column;
        /* Stack links vertically */
        background-color: #2c3e50;
        /* Optional: Add a background */
        position: absolute;
        /* Place it over content */
        top: 60px;
        /* Adjust based on navbar height */
        right: 0;
        /* Align with the edge of the screen */
        left: 0;
        /* Make it span the width */
        border-radius: 5px;
        /* Optional: Add rounded corners */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        /* Optional: Add shadow */
        text-align: center;
        /* Center the text */
        padding: 20px 0;
        /* Add space around the links */
        z-index: 1000;


    }

    .nav-links.show {
        max-height: 300px;
        /* Adjust based on number of links */
    }

    .hamburger {
        display: flex;
    }

    .navbar-container {
        justify-content: space-between;
    }

    .product-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        /* Adjust spacing between cards */
    }

    .card {
        width: 90%;
        /* Full width with some padding */
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    text-align: center;
    color: #fff;
    height: 100vh;
    background: #34495e;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    animation: slide 15s infinite;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    max-width: 100%;
    height: auto;
    /* Ensures the image resizes properly */
}

@keyframes slide {

    0%,
    20% {
        transform: translateX(0);
    }

    33%,
    53% {
        transform: translateX(-100%);
    }

    66%,
    86% {
        transform: translateX(-200%);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    top: 50%;
    color: white;
    transform: translateY(-50%);
}

.animated-text {
    font-size: 3.5em;
    font-weight: 700;
    animation: fadeIn 3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #1abc9c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    /* transition: background 0.3s ease; */
    transition: transform 0.2s ease;

}

.btn-primary:hover {
    background: #16a085;
    transform: scale(1.1);
}

.main-product-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Section heading for OUR PRODUCTS */
.section-heading {
    text-align: center;
    font-size: 2rem;
    margin: 10px 0;
    color: #2c3e50;
    font-weight: bold;
    /* margin: 10px 0; */
    /* Reduced margin */
}

/* Products section styling */
.products-section {
    margin: 10px auto;
    max-width: 1200px;
    /* padding: 0 20px; */
}

.product-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 1200px;
}

.card {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
    max-width: 100%;
    border-radius: 8px;
}

.card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.card a {
    text-decoration: none;
    color: #2c3e50;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
.products-section,
.about-section,
.contact-section {
    padding: 30px 0;
    text-align: center;
}

.section-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.product-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-card {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    width: 250px;
    transition: transform 0.3s ease;
}

.product-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.product-card:hover {
    transform: translateY(-10px);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }
}