: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) {

    /* Navbar mobile enhancements */
    .navbar .nav-item.d-lg-none {
        padding: 0.5rem 0;
        border-top: 1px solid #dee2e6;
    }

    .navbar .nav-item.d-lg-none .nav-link {
        font-size: 1rem;
        color: #333;
        font-weight: 500;
        padding: 0.5rem 1rem;
    }

    .navbar .nav-item.d-lg-none .btn {
        font-size: 0.95rem;
        text-align: left;
        padding: 0.5rem 1rem;
        color: #444;
    }

    /* Mobile categories dropdown menu */
    #mobileProductMenu {
        padding: 0.5rem 1rem;
        background-color: #f8f9fa;
        border-radius: 0.5rem;
    }

    #mobileProductMenu a {
        font-size: 0.9rem;
        color: #212529;
        display: inline-block;
        margin: 0.25rem 0;
        text-decoration: none;
    }

    #mobileProductMenu a:hover {
        text-decoration: underline;
    }

    /* Adjust the table for better spacing */
    #mobileProductMenu table td {
        padding: 0.25rem 0.5rem;
    }

    #mobileProductMenu .table-responsive {
        overflow-x: auto;
    }

    /* Mega menu layout adjustment for mobile */
    .mega-menu {
        flex-direction: column;
        padding: 15px;
    }

    /* Categories and products adjustment */
    .menu-categories,
    .menu-products {
        width: 100%;
    }

    /* Styling for categories section */
    .menu-categories {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    /* Product card adjustments */
    .product-card {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 15px;
    }

    /* Image styling */
    .product-image {
        margin: 0 auto 15px;
    }

    /* Product text styling */
    .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 {
    position: relative;
    height: 500px;
    background: linear-gradient(rgba(0, 0, 33, 0.7), rgba(0, 0, 33, 0.7)),
        url('/api/placeholder/1200/500') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    font-family: var(--font-global-body);
    padding: 40px 0;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.4);
}

#hero-section h1,
#hero-section h2 {
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

#hero-section p.lead {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-btn {
    background-color: var(--accent-color);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--hover-text-color);
    color: var(--white);
}

#hero-section .product-image {
    width: auto;
    max-width: 60%;
    background-color: var(--white);
    padding: 20px 50px;
    border-radius: 10px;
}

#product-tabs {
    font-family: var(--font-global-body);
    background-color: var(--light-gray);
    border-top: 3px solid var(--primary-color);
    margin-top: -20px;
    z-index: 2;
    position: relative;
}

#product-tabs .nav-tabs .nav-link {
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 15px 30px;
    transition: all 0.3s ease;
    background-color: transparent;
    font-size: 1.1rem;
}

#product-tabs .nav-tabs .nav-link:hover {
    color: var(--hover-text-color);
    background-color: var(--hover-color);
    border-bottom: 3px solid var(--hover-text-color);
}

#product-tabs .nav-tabs .nav-link.active {
    color: var(--active-text-color);
    background-color: var(--active-bg-color);
    border-bottom: 3px solid var(--primary-color);
}

/* Features Section */
#features-section {
    background-color: var(--light-gray);
    font-family: var(--font-global-body);
}

#features-section h3 {
    color: var(--primary-color);
}

#features-section .card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
}

#features-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--hover-color);
    color: var(--hover-text-color);
}

/* Technical Specifications */
#technical-specs {
    background-color: var(--white);
    font-family: var(--font-global-body);
}

#technical-specs h3 {
    color: var(--primary-color);
}

#technical-specs .list-group-item {
    background-color: var(--light-gray);
    border-color: var(--medium-gray);
    color: var(--text-color);
    font-weight: 500;
}

#technical-specs strong {
    color: var(--accent-color);
}

/* Testimonials Section */
#testimonials-section {
    background-color: var(--light-gray);
    font-family: var(--font-global-body);
}

#testimonials-section h3 {
    color: var(--primary-color);
}

#testimonials-section .card {
    border-width: 2px;
    border-color: var(--accent-color);
    background-color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#testimonials-section .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

#testimonials-section .card-subtitle {
    color: var(--dark-gray);
    font-style: italic;
}

/* Call-to-Action Section */
#cta-section {
    background-color: var(--accent-color) !important;
    color: var(--white);
    font-family: var(--font-global-body);
}

#cta-section h2 {
    font-weight: 700;
    font-size: 2rem;
}

#cta-section .btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#cta-section .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--accent-color);
}

/* Footer Styling */
/* 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;
    }
}