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

body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Nav */
header {
    background-color: #fff;
    padding: 1rem 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a:hover {
    color: #007bff;
}

.inquiry-btn {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.inquiry-btn:hover {
    background-color: #0056b3;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
}

.carousel-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.carousel-content .btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.carousel-content .btn:hover {
    background-color: #0056b3;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 3;
    transition: background 0.3s ease;
    border-radius: 50%;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
}

.dot.active {
    background: white;
}

/* Common Section Styling */
section {
    padding: 3rem 5%;
    /* text-align: center; */ /* Removed default center alignment */
}
section.text-center { /* Add class for centered sections */
     text-align: center;
}

section h1, section h2 { /* Added h1 */
    margin-bottom: 1.5rem;
    font-size: 2rem;
     text-align: center; /* Center headings by default */
}
section h1 { /* Style main page headings */
     font-size: 2.5rem;
}


.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #28a745;
    color: white;
    border-radius: 5px;
    margin-top: 1rem;
}
.btn:hover {
    background-color: #218838;
}
.btn-learn-more {
     display: inline-block;
     padding: 0.5rem 1rem;
     border: 1px solid #ccc;
     border-radius: 5px;
     margin-top: 0.5rem;
     font-size: 0.9rem;
 }
.btn-learn-more:hover {
     background-color: #eee;
 }

/* About Snippet Specific */
.about-snippet { text-align: center; } /* Center this section specifically */
.about-snippet .features {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.about-snippet .features div {
    flex-basis: 23%;
    margin: 0.5rem;
}


/* Product Categories Specific */
.product-categories { text-align: center; } /* Center this section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
     text-align: left; /* Align text left within grid items */
}

.category-item {
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out;
}
.category-item:hover {
    transform: translateY(-5px);
}

.category-item img {
    margin-bottom: 1rem;
    border-radius: 5px;
     aspect-ratio: 4 / 3;
     object-fit: cover;
}
.category-item h3 {
    text-align: center; /* Center category title */
}


/* Why Choose Us Specific */
.why-choose-us {
    background-color: #f8f9fa;
    text-align: center; /* Center this section */
}
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}
.reasons-grid img {
    max-width: 50px;
    margin: 0 auto 0.5rem auto;
}
.reasons-grid h3 {
    margin-bottom: 0.5rem;
}

/* Testimonials Specific */
.testimonials { text-align: center; } /* Center this section */
.testimonial-item {
    max-width: 600px;
    margin: 1rem auto;
    padding: 1.5rem;
    border-left: 5px solid #007bff;
    background-color: #f8f9fa;
    text-align: left;
}
.testimonial-item .stars {
    color: #ffc107;
    margin-top: 0.5rem;
}

/* Contact Form Specific */
.contact-form {
    max-width: 600px;
    margin: 2rem auto; /* Center form */
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
}
.contact-form .form-group {
    margin-bottom: 1rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}
.contact-form button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}
.contact-form button:hover {
    background-color: #0056b3;
}

/* Gallery Specific */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem; /* Smaller gap for gallery */
    margin-top: 2rem;
}
.gallery-item img {
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
    transition: transform 0.2s ease-in-out;
}
.gallery-item img:hover {
    transform: scale(1.03);
}


/* Footer */
footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding-top: 3rem;
    margin-top: 3rem; /* Add some space before footer */
}

.footer-content {
    display: flex;
    justify-content: space-around;
    padding: 0 5% 2rem 5%;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p, .footer-section ul li a, .footer-section span {
    color: #adb5bd;
    margin-bottom: 0.5rem;
    display: block;
}
.footer-section ul li a:hover {
    color: #fff;
}
.footer-section .contact span i {
    margin-right: 0.5rem;
    width: 15px; /* Align icons */
    display: inline-block;
    text-align: center;
}


.footer-bottom {
    background-color: #212529;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #adb5bd;
}

/* Basic Responsive (Example for nav) */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        display: none;
        border-top: 1px solid #eee;
    }
     nav ul li {
        margin: 0; /* Remove left margin */
        border-bottom: 1px solid #eee;
    }
     nav ul li a {
         display: block; /* Make link fill list item */
         padding: 1rem; /* Add padding */
         text-align: center;
     }

     /* NEED JAVASCRIPT TO TOGGLE THIS CLASS ON NAV UL */
     /* nav ul.active {
         display: flex;
     } */
     /* Need a burger icon button too */

    .about-snippet .features {
        flex-direction: column;
        align-items: center;
    }
    .about-snippet .features div {
        flex-basis: 80%;
        margin-bottom: 1rem;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-section {
        margin-bottom: 1.5rem;
    }

    .carousel-content h1 {
        font-size: 1.8rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .carousel-button {
        padding: 0.8rem 1rem;
        font-size: 1.2rem;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px; /* Adjust size as needed */
    height: 60px; /* Adjust size as needed */
    bottom: 40px; /* Distance from bottom */
    right: 40px; /* Distance from right */
    background-color: #25D366; /* WhatsApp green */
    color: #FFF;
    border-radius: 50px; /* Make it circular */
    text-align: center;
    font-size: 30px; /* Icon size */
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 100; /* Ensure it's above other content */
    display: flex; /* For centering icon */
    align-items: center; /* For centering icon */
    justify-content: center; /* For centering icon */
    transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1); /* Slight zoom on hover */
    background-color: #128C7E; /* Darker WhatsApp green */
}

/* Style for the image icon inside the button */
.whatsapp-float img {
    width: 35px;  /* Adjust icon size within the button */
    height: 35px; /* Adjust icon size within the button */
}

/* Style if using Font Awesome icon instead of image */
/*
.whatsapp-float i {
    margin-top: 14px; /* Adjust vertical alignment if needed * /
}
*/
nav .logo img {
   height: 100px;
}