: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;
}

.section-title {
    /* font-family: var(--font-global-h2, 'Libre Franklin', sans-serif); */
    font-size: var(--font-size-section-title, 2.25rem);
    /* ~36px */
    font-weight: 700;
    text-align: center;
    margin: 2rem 0;
    /* Top and bottom: 2rem, Left and right: 0 */
    color: var(--text-color-heading);
    /* fallback to Bootstrap primary */
    text-transform: capitalize;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#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);
}

/* carousel section */
#fullWidthCarousel {
    width: 100%;
    position: relative;
    overflow: hidden;
}

#fullWidthCarousel .carousel-item img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
}

@media (max-width: 768px) {
    #fullWidthCarousel .carousel-item img {
        height: 45vh;
    }

    #fullWidthCarousel .carousel-control-prev,
    #fullWidthCarousel .carousel-control-next {
        width: 10%;
    }
}


/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: var(--white);
    font-family: var(--font-global-body);
    display: flex;
    align-items: stretch;
}

/* Fullscreen Carousel */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-container .carousel-inner,
.carousel-container .carousel-item,
.carousel-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay Content */
.overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: auto;
    padding: 10px 15px;
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    color: var(--white);
}

/* Section Heading */
.section-heading {
    font-family: var(--font-global-h2);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Platform Cards Container */
.platform-cards {
    width: 100%;
    margin-top: 10px;
}

/* Platform Card */
.platform-card {
    border-radius: 16px;
    background: #eeeeee;
    color: black;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15);
    height: 100%;
    /* padding: 10px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 3px solid transparent;
    background-origin: border-box;
    background-clip: content-box, border-box;
}

/* Hover Effect */
.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
    background-color: var(--secondary-color);
}

/* Card Title */
.platform-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-global-h3-h5);
    color: var(--primary-color);
    margin-bottom: 12px;
}

/* Card Text */
.platform-card .card-text {
    font-size: 1rem;
    font-family: var(--font-global-body);
    line-height: 1.6;
    color: rgb(0, 0, 0);
}

.product-feature {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.75);
}

.feature-icon {
    color: var(--primary);
    margin-right: 8px;
    font-size: 0.8rem;
}

/* Wrapper for Platform Images */
.image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 140px;
    /* Maximum height to maintain consistency */
    padding: 10px;
    /* Padding around the image */
    margin-bottom: 1rem;
    width: 100%;
    overflow: hidden;
}

/* Platform Image */
.platform-image {
    max-width: 100%;
    /* Allows image to scale down within the container */
    height: auto;
    /* Maintains aspect ratio */
    object-fit: contain;
    /* Ensures the full image is visible */
}

/* Extra tweak for very small devices */
@media (max-width: 424px) {
    .image-wrapper {
        max-height: 100px;
        padding: 5px;
    }

    .platform-image {
        max-width: 80px;
        /* Restrict size slightly for very small screens */
    }
}

/* Responsive Styles */

/* Extra Small Devices (Mobile Phones) */
@media (min-width: 320px) and (max-width: 424px) {
    .section-heading {
        font-size: 1.8rem;
        text-align: center;
    }



    .platform-card .card-title {
        font-size: 1.1rem;
        text-align: center;
    }

    .platform-card .card-text {
        font-size: 0.9rem;
        text-align: center;
    }

    .overlay {
        padding: 10px;
        flex-direction: column;
    }
}

/* Small to Medium Devices (Tablets) */
@media (min-width: 425px) and (max-width: 767.98px) {
    .section-heading {
        font-size: 2.2rem;
        text-align: center;
    }



    .platform-card .card-title {
        font-size: 1.2rem;
    }

    .platform-card .card-text {
        font-size: 1rem;
    }

    .overlay {
        padding: 12px 20px;
        flex-direction: column;
    }
}

/* Medium to Large Devices (Desktops) */
@media (min-width: 768px) and (max-width: 1023px) {
    .section-heading {
        font-size: 2.3rem;
    }



    .platform-card .card-title {
        font-size: 1.3rem;
    }

    .platform-card .card-text {
        font-size: 1rem;
    }

    .overlay {
        padding: 15px 25px;
    }
}

/* Large Devices (Desktops & up) */
@media (min-width: 1024px) {
    .overlay {
        padding: 20px 40px;
    }



    .platform-card .card-title {
        font-size: 1.4rem;
    }

    .platform-card .card-text {
        font-size: 1.05rem;
    }

    .section-heading {
        font-size: 2.5rem;
    }
}

/* Sales Team Section */
#sales-team.parallax-section {
    position: relative;
    background-color: transparent;
    overflow: hidden;
    padding: 4rem 0;
}

/* Background Image */
#sales-team .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 130%;
    width: 100%;
    background-image: url('https://img.freepik.com/free-photo/detail-rice-plant-sunset-valencia-with-plantation-out-focus-rice-grains-plant-seed_181624-25838.jpg?ga=GA1.1.1257729387.1747808922&semt=ais_hybrid&w=740');
    /* Replace with your image */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Overlay */
#sales-team .parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 64, 32, 0.5);
    z-index: 1;
}

/* Container & Content */
#sales-team .container {
    position: relative;
    z-index: 2;
}

/* Team Card Styling */
.team-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    background-color: #fff;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#sales-team img {
    object-fit: cover;
}

/* State */
/* === Stats Section Styles === */
#stats {
    background-color: var(--white);
    font-family: var(--font-global-body);
}

#stats .stat-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05);
    height: 100%;
    text-align: center;
}

#stats .stat-icon {
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 1rem;
}

#stats .stat-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

#stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

#stats .stat-label {
    color: var(--dark-gray);
    margin: 0;
}

/* Installation */
#installations {
    font-family: var(--font-global-body);
    color: var(--text-color);
    padding-bottom: 3rem;
    padding-top: 3rem;
}

#installations .section-title {
    color: var(--secondary-color);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#installations .installation-card {
    border: 2px solid var(--primary-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#installations .installation-card:hover {
    border-color: var(--hover-color);
    box-shadow: 0 16px 30px rgba(158, 202, 52, 0.35);
    transform: translateY(-12px) scale(1.05);
    z-index: 10;
}

#installations .card-img-top {
    object-fit: cover;
    height: 200px;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    transition: filter 0.4s ease;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
}

#installations .installation-card:hover .card-img-top {
    filter: brightness(0.85);
}

#installations .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1.25rem;
}

#installations .card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

#installations .card-text {
    color: var(--dark-gray);
    font-size: 0.875rem;
    text-align: center;
    letter-spacing: 0.02em;
}

@media (max-width: 576px) {
    #installations .card-title {
        font-size: 1.1rem;
    }

    #installations .card-text {
        font-size: 0.8rem;
    }
}

/* Banner Section */
#smart-farming-banner {
    position: relative;
    overflow: hidden;
    background-color: var(--light-gray);
}

#smart-farming-banner .farm-bg {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 128, 128, 0.6) 100%),
        url('assets/images/carobg2.jpg') center/cover no-repeat;
    padding: 100px 0;
    min-height: 650px;
    display: flex;
    align-items: center;
    color: var(--white);
}

#smart-farming-banner .banner-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

#smart-farming-banner .banner-subtitle {
    font-size: 1.3rem;
    color: var(--medium-gray);
    margin-bottom: 50px;
}

#smart-farming-banner .hexagon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

#smart-farming-banner .hexagon-row {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

#smart-farming-banner .hexagon {
    width: 130px;
    height: 130px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

#smart-farming-banner .hexagon:hover {
    background: rgba(0, 128, 255, 0.3);
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 12px 30px rgba(0, 128, 255, 0.4);
}

#smart-farming-banner .hexagon i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #00ffd5;
}

#smart-farming-banner .hexagon span {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    #smart-farming-banner .banner-title {
        font-size: 2rem;
    }

    #smart-farming-banner .banner-subtitle {
        font-size: 1rem;
    }

    .hexagon-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* Testimonial */

/* Section Title */
#testimonials .section-title {
    font-weight: bold;
    font-size: 2.5rem;
}

/* Carousel Indicators */
#testimonials .carousel-indicators button {
    background-color: var(--primary-color);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Carousel Inner Card */
#testimonials .carousel-item .bg-white {
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Client Image */
#testimonials .carousel-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

/* Name and Role */
#testimonials .fw-bold {
    margin-bottom: 0;
}

#testimonials .text-primary {
    margin-bottom: 0.5rem;
}

/* Quote Style */
#testimonials .text-muted.fst-italic {
    font-style: italic;
    margin-bottom: 1rem;
}

/* Star Ratings */
#testimonials .text-warning {
    font-size: 1.25rem;
}

/* Carousel Controls */
#testimonials .carousel-control-prev-icon,
#testimonials .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 10px;
}

/* 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;
    }
}