/* Main Styles */
:root {
    --primary-color: #7EAE43ff;
    --secondary-color: #21643Fff;
    --accent-color: #9CC945ff;
    --text-color: #000000ff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --white: #ffffff;
    --font-global-body: 'Oxygen', sans-serif;

    --hover-color: #A5CE46ff;
    --hover-text-color: #21643Fff;
    --active-bg-color: #A5CE46ff;
    --active-text-color: #000000ff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

#fixed-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

#btn-call,
#btn-gmail,
#btn-top,
#btn-whatsapp,
#btn-wechat {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: rgb(248, 248, 248);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

/* Hover Effects */
#btn-call:hover,
#btn-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

#btn-gmail:hover {
    background-color: #25D366;
    /* WhatsApp green */
    transform: translateY(-3px);
    color: white;
}

#btn-whatsapp:hover {
    background-color: #25D366;
    /* WhatsApp green */
    transform: translateY(-3px);
    color: white;
}

#btn-wechat:hover {
    background-color: #7BB32E;
    /* Typical WeChat green */
    transform: translateY(-3px);
    color: white;
}

/* Navbar Styles */
.navbar {
    background-color: #000000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 999;
}

.navbar-brand img {
    height: 70px;
}

.nav-item {
    margin: 0 5px;
}

.nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 8px 15px;
    position: relative;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: var(--primary-color);
}

.navbar-toggler-icon {
    color: #007bff;
    background-color: white;
    border-radius: 5px;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 163%;
    transform: translateX(-50%);
    width: 80vw;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 12px 12px;
    display: none;
    z-index: 1000;
}

.dropdown:hover .mega-menu {
    display: flex;
    flex-direction: row;
    justify-content: end;
}

/* Left: Categories */
.menu-categories {
    width: 30%;
    border-right: 1px solid #eee;
    padding-right: 15px;
}

.menu-category {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-category:hover,
.menu-category.active {
    background-color: var(--hover-color);
    color: var(--hover-text-color);
}

.menu-category i {
    float: right;
    margin-top: 3px;
}

/* Right: Product Cards */
.menu-products {
    width: 70%;
    padding-left: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-card {
    width: calc(50% - 10px);
    display: none;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fafafa !important;
    animation: fadeIn 0.3s ease-in-out;
    align-items: flex-start;
    gap: 20px;
}

.product-card.active {
    display: flex;
}

/* Product Image */
.product-image {
    width: 120px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    border-radius: 8px;
}

/* Product Info */
.product-info {
    flex: 1;
}

.product-info h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.product-info p {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px;
    line-height: 1.4;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Dropdown accessibility fix */
.dropdown-hover>.nav-link {
    pointer-events: auto;
}

/* Sensors submenu */
.sensors-submenu {
    display: none;
    padding-left: 15px;
}

.sensors-submenu a {
    display: block;
    padding: 8px 15px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
}

.sensors-submenu a:hover {
    background-color: var(--hover-color);
    color: var(--hover-text-color);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .mega-menu {
        flex-direction: column;
        padding: 15px;
    }

    .menu-categories,
    .menu-products {
        width: 100%;
    }

    .menu-categories {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .product-card {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-image {
        margin: 0 auto 15px;
    }

    .product-info h4,
    .product-info p {
        text-align: center;
    }
}

.social-links {
    display: flex;
    flex-direction: row;
    padding: 10px 8px;
    list-style-type: none;
    margin: -14px 60px;
}

.social-links li {
    margin-right: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    padding: 8px;
    transition: all 0.3s ease;
    border-radius: 50%;
    border: 1px solid #eaeff5;
    text-decoration: none;
    width: 40px;
    height: 40px;
}

.social-links,
#facebook {
    /* color: #1877f2; */
    color: blue;
}

.social-links #email {
    color: #d44638;
    /* color: rgb(255, 0, 128); */
}

.social-links #youtube {
    /* color: #ff0000; */
    color: rgb(211, 0, 0);
}

.social-links #instagram {
    /* color: #e1306c; */
    color: rgb(255, 0, 191);
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://img.freepik.com/free-photo/couple-working-farm-with-tablet_23-2148579768.jpg?ga=GA1.1.1805793553.1747121221&semt=ais_hybrid&w=740');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
    font-family: var(--font-global-body);
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    background-color: var(--white);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--hover-color);
    color: var(--hover-text-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.testimonial-section {
    background-color: var(--light-gray);
}

.testimonial-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
    color: var(--text-color);
    font-family: var(--font-global-body);
}

.call-to-action {
    background: linear-gradient(135deg, var(--accent-color), var(--active-text-color));
    color: var(--white);
    font-family: var(--font-global-body);
}

.feature-box {
    padding: 30px;
    border-radius: 10px;
    background-color: var(--white);
    transition: all 0.3s ease;
    font-family: var(--font-global-body);
}

.feature-box:hover {
    background-color: var(--hover-color);
    transform: translateY(-5px);
    color: var(--hover-text-color);
}

.counter-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-family: var(--font-global-body);
    color: var(--text-color);
}

.tech-section {
    background-color: var(--light-gray);
}

/* footer */
/* Footer */
.bg-footer {
    background: linear-gradient(135deg, #000428, #004e92);
    /* dark navy blue gradient */
    color: var(--text-color-light, #f0f0f0);
    font-family: 'Oxygen', sans-serif;
}

footer .footer-logo .tagline {
    font-size: 1rem;
    color: #d1ecf1;
    font-style: italic;
}

footer .social-icons a {
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-icons a:hover {
    color: #00ffaa;
    transform: scale(1.2);
}

footer h5 {
    color: #ffffff;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cfd8dc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00ffaa;
    text-decoration: underline;
}

footer .input-group input {
    border-radius: 0.3rem 0 0 0.3rem;
    border: none;
    padding: 0.6rem;
}

footer .input-group .btn {
    background-color: #00ffaa;
    color: #000;
    border-radius: 0 0.3rem 0.3rem 0;
    transition: background-color 0.3s ease;
}

footer .input-group .btn:hover {
    background-color: #00dd99;
}

footer .bi {
    color: #00ffaa;
}

footer ul.footer-links li i {
    margin-right: 0.6rem;
    color: #00ffaa;
}

footer .border-top {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

footer a.text-white:hover {
    color: #00ffaa !important;
    text-decoration: underline;
}

footer p,
footer li {
    font-size: 0.95rem;
}

footer .small {
    font-size: 0.85rem;
}

@media (max-width: 767px) {

    footer .text-md-start,
    footer .text-md-end {
        text-align: center !important;
    }
}