/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Navbar Container */
.navbar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .navbar-container {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}

/* Spinning Logo Animation */
.logo {
    width: 80px;
    
    height: 90px;
}



/* Title */
.title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
}

@media (min-width: 640px) {
    .title {
        font-size: 32px;
        margin-top: 40px;
    }
}

/* Navigation Menu */
.menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid #ccc;
    padding: 15px;
    margin-top: 10px;
    position: relative;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    justify-content: center; /* Center menu items */
}

.nav-menu li a {
    text-decoration: none;
    text-transform: uppercase;
    color: black;
    font-size: 14px;
    padding: 5px 10px; /* Add padding for touch targets */
}

.nav-menu li a:hover {
    text-decoration: underline;
}

@media (min-width: 640px) {
    .nav-menu {
        gap: 20px;
        font-size: 18px;
    }
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    border: 2px solid gray;
    border-radius: 5px;
    padding: 5px;
    margin-top: 10px;
    width: 100%; /* Full width on smaller screens */
    max-width: 250px; /* Limit width on larger screens */
    position: static; /* Reset position on smaller screens */
}

@media (min-width: 640px) {
    .search-bar {
        position: absolute;
        right: 20px;
        width: 250px;
    }
}

.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    padding: 5px;
    flex: 1;
}

.search-bar button {
    background-color: green;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: darkgreen;
}

/* Hero Section */
.hero-container {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust height for responsiveness */
    overflow: hidden;
}

@media (min-width: 640px) {
    .hero-container {
        height: 500px;
    }
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    transition: opacity 1s ease-in-out;
}

/* Feature Section */
.feature-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 15px; /* Add horizontal padding */
}

.feature-container {
    max-width: 900px;
    text-align: justify;
    margin-bottom: 40px;
}

.feature-container h1 {
    text-align: center;
    font-size: 24px; /* Adjust font size for smaller screens */
    font-weight: bold;
    margin-bottom: 15px;
}

.feature-container p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Services Section */
.services-container {
    text-align: center;
    padding: 20px 15px; /* Add horizontal padding */
}

.services-container h1 {
    font-size: 24px; /* Adjust font size for smaller screens */
    font-weight: bold;
    margin-bottom: 10px;
}

.services-container p {
    font-size: 16px; /* Adjust font size for smaller screens */
    color: gray;
}

/* Product Section */
.container {
    padding: 20px 15px; /* Add horizontal padding */
    max-width: 1200px;
    margin: auto;
}

.section {
    display: flex;
    flex-direction: column; /* Stack on smaller screens */
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .section {
        flex-direction: row; /* Row on larger screens */
    }
}

.flex-row {
    flex-direction: row;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.image-container {
    width: 100%; /* Full width on smaller screens */
}

@media (min-width: 768px) {
    .image-container {
        width: 50%; /* 50% width on larger screens */
    }
}

.image-container img {
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease-in-out;
}

.image-container img:hover {
    transform: scale(1.05);
}

.text-container {
    width: 100%; /* Full width on smaller screens */
    padding: 20px;
}

@media (min-width: 768px) {
    .text-container {
        width: 50%; /* 50% width on larger screens */
    }
}

h4 {
    font-size: 22px; /* Adjust font size for smaller screens */
    margin-bottom: 10px;
    text-align: left;
}

p {
    color: #555;
    line-height: 1.6;
}

/* Query Popup */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.popup-overlay.show {
    visibility: visible;
    opacity: 1;
}

.popup {
    background: white;
    padding: 30px; /* Adjust padding for smaller screens */
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    max-height: 80vh; /* Adjust max-height for smaller screens */
    overflow-y: auto; /* Enable scrolling if content overflows */
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    margin: 20px; /* Adjust margin for smaller screens */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    border: none;
    background: none;
}

.popup form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup form input,
.popup form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.popup form button {
    background: blue;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.popup form button:hover {
    background: darkblue;
}

#responseMessage {
    margin-top: 10px;
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: #111;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
}

.footer-column ul li a:hover {
    color: gray;
}

.footer-column ul li a i {
    margin-right: 8px;
}

.footer-column input {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: none;
    margin-top: 5px;
}

.footer-column button {
    width: 100%;
    background-color: green;
    color: white;
    padding: 7px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    margin-left: 0; /* Remove left margin for full width buttons */
}

.footer-column button:hover {
    background-color: darkgreen;
}

.footer-bottom {
    margin-top: 20px;
    padding: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
    }

    .search-bar {
        position: static;
        margin-top: 10px;
        width: 100%;
    }

    .section {
        flex-direction: column;
    }

    .image-container,
    .text-container {
        width: 100%;
    }

    .popup {
        margin: 10px;
        padding: 20px;
    }

    .footer-column{
        min-width: 100%;
    }
}