/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
    /* Base Backgrounds */
    --clr-bg: #F8FAFC;
    --clr-surface: #FFFFFF;
    
    /* Core Brand - Reliability */
    --clr-primary: #1E293B;     /* Slate Navy */
    
    /* Dual Focus Accents */
    --clr-agri: #059669;        /* Agritech Green (Farmers) */
    --clr-agri-hover: #047857;
    --clr-industry: #EA580C;    /* Industrial Orange (Industry/Electronics) */
    --clr-industry-hover: #C2410C;

    /* Text */
    --clr-text-main: #334155;
    --clr-text-light: #64748B;
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 4rem 0;
}

/* =========================================
   IMAGE LOGO STYLING
========================================= */
.nav-logo-img {
    height: 50px; /* Keeps it neatly contained in the 70px header */
    width: auto; /* Maintains the perfect aspect ratio */
    display: block;
    transition: transform 0.3s ease;
}

.brand-logo:hover .nav-logo-img {
    transform: scale(1.05); /* Adds a subtle zoom effect when hovered */
}

/* Make it slightly smaller on mobile phones */
@media (max-width: 767px) {
    .nav-logo-img {
        height: 40px; 
    }
}

/* =========================================
   TYPOGRAPHY & GLOBAL ELEMENTS
========================================= */
h1, h2, h3, h4 {
    color: var(--clr-primary);
    line-height: 1.2;
}

.tech-text {
    color: var(--clr-industry);
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--clr-industry);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* --- Table Category Headers --- */
.tech-table .category-row td {
    background-color: #E2E8F0; /* Light grey background */
    color: var(--clr-primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.75rem 1rem;
    border-top: 2px solid #CBD5E1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-agri);
    color: white;
}

.btn-primary:hover {
    background-color: var(--clr-agri-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: white;
    color: white;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background-color: var(--clr-industry);
    border-color: var(--clr-industry);
    color: white;
}

/* --- Enquiry Button Base Effect --- */
.btn-enquiry {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    margin-top: 1rem;
    width: 100%;
}

/* Agri Enquiry Button (Green) */
.btn-agri-enq {
    background-color: transparent;
    border-color: var(--clr-agri);
    color: var(--clr-agri);
}

.btn-agri-enq:hover {
    background-color: var(--clr-agri);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.3);
}

/* Scale Enquiry Button (Orange) */
.btn-scale-enq {
    background-color: transparent;
    border-color: var(--clr-industry);
    color: var(--clr-industry);
}

.btn-scale-enq:hover {
    background-color: var(--clr-industry);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3);
}

/* Desktop sizing for buttons inside cards */
@media (min-width: 768px) {
    .btn-enquiry {
        width: auto;
    }
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   HEADER & NAVIGATION (MOBILE FIRST)
========================================= */
.site-header {
    background-color: var(--clr-primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-logo .tech-accent {
    color: var(--clr-industry); 
}

.brand-logo .logo-sub {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: #8892B0;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: var(--transition);
}

/* Mobile Nav Container */
.main-nav {
    position: absolute;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: var(--clr-primary);
    transition: var(--transition);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.main-nav.active {
    left: 0;
}

.nav-links {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.nav-links li {
    margin-bottom: 1.5rem;
}

.nav-links a {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--clr-industry); 
}

/* Mobile Dropdown */
.dropdown-menu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    border-left: 2px solid var(--clr-industry);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Forces the dropdown to stay open when tapped on mobile */
.dropdown-menu.open {
    display: block !important;
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
    position: relative;
    background-image: linear-gradient(rgba(30, 41, 59, 0.85), rgba(30, 41, 59, 0.85)), url('image/slide-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 7rem 0;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--clr-industry) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    color: #CBD5E1;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-inline: auto;
}

/* =========================================
   CATEGORIES SECTION
========================================= */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* Forces 3 equal columns */
    gap: 2rem; 
    align-items: stretch;
}

.category-card {
    background-color: var(--clr-surface);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid var(--clr-industry);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--clr-text-light);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--clr-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--clr-agri);
    padding-bottom: 2px;
}

.card-link:hover {
    color: var(--clr-agri);
}

/* =========================================
   FEATURED PRODUCTS CAROUSEL (FIXED PADDING)
========================================= */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    /* Fixed: Combined top and bottom padding, removed conflicting duplicate */
    padding-top: 20px;
    padding-bottom: 30px; 
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    cursor: grab;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background-color: var(--clr-surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px); /* Lift card */
    box-shadow: 0 15px 30px rgba(234, 88, 12, 0.15); /* Orange glow shadow */
    border-color: var(--clr-industry);
}

.product-img {
    height: 200px;
    background-color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-light);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.product-info {
    padding: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.badge-agri {
    background-color: rgba(5, 150, 105, 0.1);
    color: var(--clr-agri);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge-scale {
    background-color: rgba(234, 88, 12, 0.1);
    color: var(--clr-industry);
    border: 1px solid rgba(234, 88, 12, 0.2);
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--clr-text-light);
    margin-bottom: 1.5rem;
}

.product-link {
    font-weight: 600;
    color: var(--clr-primary);
    transition: var(--transition);
}

.product-link:hover {
    color: var(--clr-industry);
}

.carousel-btn {
display: flex; /* Changed from none to flex to make them visible everywhere */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--clr-primary);
    color: white;
    border: none;
    width: 35px; /* Slightly smaller for mobile */
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--clr-industry);
    color: white;
}

/* Adjust arrow positions so they don't overlap the cards too much on small screens */
.prev-btn { left: 5px; }
.next-btn { right: 5px; }

/* Desktop Enhancements for Arrows */
@media (min-width: 768px) {
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    .prev-btn { left: -22px; } /* Move arrows outside the container on big screens */
    .next-btn { right: -22px; }
}

/* =========================================
   INNER PAGES (AGRI & WEIGHING)
========================================= */
.page-hero {
    padding: 6rem 0; 
    text-align: center;
    border-bottom: 4px solid;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero h1 {
    color: #FFFFFF !important;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); 
}

.page-hero p {
    color: #E2E8F0 !important; 
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.agri-hero {
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('image/agri-bg.jpg');
    border-bottom-color: var(--clr-agri);
}
.agri-text { color: var(--clr-agri); }
.industrial-hero {
    /* Using a dark blue/slate gradient overlay so the white text pops perfectly */
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), 
                url('image/industrial-bg.jpg') center/cover no-repeat;
}
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-list {
    margin: 1rem 0 1.5rem;
    color: var(--clr-text-main);
    font-size: 0.9rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
}

.scale-hero {
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('image/scale-bg.jpg');
    border-bottom-color: var(--clr-industry);
}
.scale-text { color: var(--clr-industry); }

/* --- About Us Page Layout --- */
.about-hero {
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('image/about-bg.jpg');
    border-bottom-color: var(--clr-industry);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-story p {
    margin-bottom: 1.5rem;
    color: var(--clr-text-main);
    font-size: 1.05rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--clr-text-light);
    font-weight: 600;
}

.about-values {
    display: grid;
    gap: 1.5rem;
}

.value-card {
    background-color: var(--clr-surface);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--clr-industry);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.value-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--clr-text-light);
    margin: 0;
}

.text-center { text-align: center; }

.core-values-section {
    background-color: var(--clr-surface);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.core-values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.core-value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.value-check {
    background-color: rgba(5, 150, 105, 0.1);
    color: var(--clr-agri);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1.2fr 1fr; 
        align-items: center;
    }
    .core-values-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
    }
    .core-value-item {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
    background-color: var(--clr-primary);
    color: white;
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-grid h3, .footer-grid h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-grid p {
    color: #CBD5E1;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #CBD5E1;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--clr-industry);
    padding-left: 5px;
}

.footer-bottom {
    background-color: #11171E;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #8892B0;
}

/* =========================================
   DESKTOP MEDIA QUERIES (Min 768px)
========================================= */
@media (min-width: 768px) {
    .mobile-menu-toggle { display: none; }
    .main-nav {
        position: static;
        width: auto;
        background-color: transparent;
        border: none;
    }
    .nav-links {
        flex-direction: row; 
        align-items: center;
        padding: 0;
    }
    .nav-links li {
        margin-bottom: 0;
        margin-left: 2rem;
    }

    .dropdown {
        position: relative;
        padding-bottom: 0; 
    }
    .dropdown:hover > a {
        color: var(--clr-industry) !important;
    }
    .dropdown-menu {
        position: absolute;
        top: 35px; 
        left: -10px; 
        background-color: var(--clr-surface);
        min-width: 250px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border: none;
        border-top: 3px solid var(--clr-industry);
        padding: 0 !important;
        margin: 0 !important;
        z-index: 1001;
    }
    .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -35px; 
        left: 0;
        width: 100%;
        height: 35px;
        background: transparent; 
    }
    .nav-links .dropdown-menu li {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        list-style: none;
    }
    .dropdown-menu a {
        color: var(--clr-text-main) !important; 
        padding: 12px 20px !important; 
        display: block !important;
        border-bottom: 1px solid #E2E8F0;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    .dropdown-menu a:hover, 
    .dropdown-menu a.active {
        background-color: #F1F5F9 !important; 
        color: var(--clr-industry) !important; 
    }
    .hero-content h1 { font-size: 4rem; }
    .hero-buttons .btn { margin: 0 0.5rem; }
    .btn-secondary { margin-top: 0; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .carousel-btn { display: block; }
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* =========================================
   ABOUT PAGE BLOCK ANIMATIONS
========================================= */
.value-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.value-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(234, 88, 12, 0.15); 
    border-left-color: var(--clr-agri); 
}
.value-icon {
    display: inline-block;
    transition: transform 0.4s ease;
}
.value-card:hover .value-icon {
    transform: scale(1.2) rotate(5deg); 
}
.stat-box {
    transition: transform 0.3s ease;
    cursor: default;
}
.stat-box:hover {
    transform: translateY(-5px);
}
.stat-number {
    transition: color 0.3s ease;
}
.stat-box:hover .stat-number {
    color: var(--clr-agri); 
}
.value-check {
    transition: all 0.3s ease;
}
.core-value-item {
    cursor: default;
}
.core-value-item:hover .value-check {
    background-color: var(--clr-agri);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

/* =========================================
   FLOATING WHATSAPP BUTTON
========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; 
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite; 
}
.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: translateY(-5px) scale(1.05);
}
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* --- Quality Page Styles --- */
.quality-hero {
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('image/quality-bg.jpg');
    border-bottom-color: var(--clr-industry);
}
.quality-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.quality-item {
    background: var(--clr-surface);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
}
.quality-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.q-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.bg-light { background-color: #F1F5F9; }
.cert-icon-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.cert-box {
    padding: 1.5rem 2.5rem;
    border: 2px dashed var(--clr-text-light);
    color: var(--clr-primary);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
}
@media (min-width: 768px) {
    .quality-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Contact Page Styles --- */
.contact-hero {
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('image/contact-bg.jpg');
    border-bottom-color: var(--clr-industry);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
.info-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.info-icon {
    font-size: 1.5rem;
    background: rgba(234, 88, 12, 0.1);
    color: var(--clr-industry);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.map-container {
    margin-top: 2rem;
    border: 1px solid #E2E8F0;
    padding: 10px;
    border-radius: 12px;
}
.contact-form-container {
    background: var(--clr-surface);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--clr-primary);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--clr-industry);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}
@media (min-width: 992px) {
    .contact-wrapper { grid-template-columns: 1fr 1.2fr; }
}

/* --- Technical Table Styles --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden; 
}
.tech-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 0;
}
.tech-table th {
    background-color: var(--clr-primary);
    color: white;
    padding: 1.2rem 1rem; 
    font-weight: 600;
    border: none; 
}
.tech-table td {
    padding: 1rem;
    border-bottom: 1px solid #E2E8F0;
    color: var(--clr-text-main);
    font-size: 0.95rem;
}
.tech-table tr:hover { background-color: #F8FAFC; }
.tech-table .category-row td {
    background-color: #F1F5F9;
    color: var(--clr-primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.8rem 1rem;
    border-top: 2px solid #CBD5E1;
    border-bottom: 2px solid #CBD5E1;
}

/* --- Product Image Styling --- */
.product-img {
    height: 220px; 
    overflow: hidden; 
    background-color: #f1f1f1; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease; 
}
.product-card:hover .product-img img { transform: scale(1.1); }

/* =========================================
   MOBILE CAROUSEL: 1 CARD AT A TIME
========================================= */
@media (max-width: 767px) {
    .product-card {
        /* This forces the card to be exactly the width of the screen (minus margins) */
        flex: 0 0 100%; 
        scroll-snap-align: center; /* Centers the card perfectly when swiping */
    }

    .carousel-track {
        gap: 0; /* Removes gap so cards align perfectly edge-to-edge */
        padding-left: 0;
        padding-right: 0;
    }
	.category-grid {
        grid-template-columns: 1fr; /* Changes to 1 column for phones/small tablets */
        gap: 1.5rem;
    }
}

/* --- Model Number Tags --- */
.model-list { margin: 1rem 0; }
.model-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--clr-text-light);
    margin-bottom: 0.5rem;
}
.model-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.model-tag {
    background-color: #F1F5F9; 
    color: var(--clr-primary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}
.product-card:hover .model-tag {
    border-color: var(--clr-agri);
    background-color: rgba(5, 150, 105, 0.05);
}

/* --- Gallery Page Styles --- */
.gallery-hero {
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('image/gallery-bg.jpg');
    border-bottom-color: var(--clr-industry);
}
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.5rem;
}
.filter-btn {
    padding: 8px 16px;
    border: 1px solid #CBD5E1;
    background: transparent;
    color: var(--clr-text-main);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.filter-btn.active, .filter-btn:hover {
    background-color: var(--clr-industry);
    color: white;
    border-color: var(--clr-industry);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 41, 59, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-overlay span {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay span { transform: translateY(0); }
.gallery-item.hide { display: none !important; }

/* --- Lightbox Styles --- */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.95); 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000; 
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease;
}
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox img {
    max-width: 90%;
    max-height: 90vh; 
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}
.lightbox-close:hover { color: var(--clr-industry); }

/* =========================================
   SCROLL TO TOP BUTTON
========================================= */
.scroll-to-top {
    position: fixed;
    bottom: 100px; /* Sits nicely above the WhatsApp button */
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--clr-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 9998; /* Just below the WhatsApp button */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Class added by JavaScript when scrolling down */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--clr-industry);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(234, 88, 12, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .scroll-to-top {
        bottom: 80px; 
        right: 20px;
        width: 40px;
        height: 40px;
    }
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* =========================================
   MINI SLIDER FOR PRODUCT CARDS
========================================= */
.product-img.mini-slider {
    position: relative;
    overflow: hidden;
    height: 220px; /* Keep this matched to your existing product-img height */
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slides-container img.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease-in-out; /* Smooth fade effect */
    z-index: 0;
}

.slides-container img.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Hover-in Arrows */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.7); /* Dark semi-transparent */
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0; /* Hidden by default */
    transition: all 0.3s ease;
}

/* Make arrows appear when hovering over the product card */
.product-card:hover .slide-btn {
    opacity: 1;
}

.slide-btn:hover {
    background-color: var(--clr-industry);
    transform: translateY(-50%) scale(1.1);
}

.prev-slide { left: 10px; }
.next-slide { right: 10px; }

/* Pagination Dots */
.slide-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slide-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dots .dot.active, .slide-dots .dot:hover {
    background: var(--clr-industry);
    transform: scale(1.2);
}

/* Ensure arrows are always visible on mobile */
@media (max-width: 767px) {
    .slide-btn {
        opacity: 1;
        width: 28px;
        height: 28px;
    }
}
/* =========================================
   HERO LEGACY BADGE (EST. 1995)
========================================= */
.legacy-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px); /* Modern frosted glass effect */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge-year {
    color: var(--clr-industry); /* Industrial Orange */
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding-right: 10px;
}

.badge-text {
    color: #E2E8F0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 10px;
    text-transform: uppercase;
}

/* Mobile tweak to ensure it fits perfectly */
@media (max-width: 767px) {
    .legacy-badge {
        padding: 5px 12px;
    }
    .badge-year { font-size: 0.85rem; }
    .badge-text { font-size: 0.75rem; }
}

/* =========================================
   C.E.O. DESK & LEADERSHIP TEAM
========================================= */

/* --- CEO Spotlight --- */
.ceo-desk-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background: #F8FAFC;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 5px solid var(--clr-industry);
}

.ceo-image {
    /* Changed from fixed 300px to allow it to grow naturally */
    width: 100%; 
}

.ceo-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    /* Removed object-fit: cover so the horizontal image shows naturally */
    display: block; 
}

.ceo-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Stops the flexbox from stretching the badge */
    align-items: flex-start; 
}

.ceo-content h2 {
    margin: 1rem 0;
    font-size: 2rem;
}

.ceo-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--clr-text-main);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.ceo-name h4 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}
.ceo-content .badge {
    display: inline-block;
    width: fit-content;
}
/* --- Team Grid --- */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--clr-agri);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(5, 150, 105, 0.15);
}

.quote-icon {
    font-size: 3rem;
    color: rgba(5, 150, 105, 0.1); /* Faded Green */
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    font-family: serif;
}

.team-card p {
    font-size: 0.95rem;
    color: var(--clr-text-main);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    margin-top: 1.5rem;
}

.team-author h4 {
    font-size: 1.1rem;
    color: var(--clr-primary);
    margin-bottom: 0.2rem;
}

.team-author span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-text-light);
    text-transform: uppercase;
}

/* Desktop Media Queries */
@media (min-width: 992px) {
    .ceo-desk-wrapper {
        flex-direction: row;
        padding: 3rem;
        align-items: center;
        gap: 4rem; /* Added a bit more breathing room between image and text */
    }
	.ceo-image {
        flex: 0 0 45%; 
        max-width: 500px;
    }
	.ceo-content {
        flex: 1; /* Lets the text take up the remaining space */
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   ISO CERTIFICATION BADGE (FOOTER)
========================================= */
.iso-cert-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle divider line */
}

.iso-cert-badge img {
    height: 60px; /* Perfect size for the footer */
    width: auto;
    object-fit: contain;
}

.iso-cert-badge span {
    color: #cbd5e1; /* Light gray text for dark footers */
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.5px;
}
.product-img {
    position: relative; 
}

.img-badge {
    position: absolute;
    top: 12px;
    right: 12px; 
    background-color: #e0f8f1;
    color: #047857;
    border: 1px solid #a7f3d0;    
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;    
    z-index: 20; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: inline-block;
}
@media (max-width: 991px) {
    .category-grid {
        grid-template-columns: 1fr !important; /* Stacks to 1 column on smaller screens */
        gap: 1.5rem;
    }
}