/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary-color: #224D72;
    --primary-dark: #1A3A56;
    --accent-black: #202223;
    /* Dark Accent for Quote/Hero */
    --secondary-color: #B2B4B3;
    --secondary-light: #F4F4F4;
    --primary-light: #E9F2F9;
    /* Light version of Primary Blue */

    /* Neutral Colors */
    --text-dark: #1E1E1E;
    --text-gray: #555555;
    --text-light: #F9F9F9;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #121212;

    /* Spacing */
    --section-padding: 80px;
    --container-width: 1280px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    font-size: 16px;
    overflow-x: hidden;
}

/* Preloader Style */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 150px;
    margin-bottom: 30px;
    animation: pulse 2s infinite ease-in-out;
}

.weighing-bar {
    width: 200px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 10px;
    margin: 0 auto 15px;
    position: relative;
    overflow: hidden;
}

.weighing-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    animation: weighing 2.5s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(34, 77, 114, 0.4);
}

.loader-status {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.loader-digits {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #4CAF50;
    margin-top: 5px;
    font-weight: bold;
}

@keyframes weighing {
    0% {
        width: 0%;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

body.loading {
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-white {
    color: var(--text-light) !important;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Typography Helpers */
.section-tag {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-gray);
    font-size: 17px;
}

/* Services Section specific override */
#services {
    position: relative;
    /* Anchor for snow canvas */
    overflow: hidden;
    /* Contain particles */
}

#services .section-tag {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

#services .container {
    position: relative;
    z-index: 2;
    /* Keep content above snow */
}

#services .section-desc {
    margin: 0 auto 3rem auto;
    max-width: 800px;
    /* Increased to allow text to fit on one line if possible */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    border: 2px solid transparent;
    width: fit-content;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(34, 77, 114, 0.2);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
    /* Light bg version */
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(34, 77, 114, 0.15);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Header */
#main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgb(255, 255, 255);
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    padding: 10px 0;
}

#main-header.scrolled {
    position: fixed;
    top: 0;
    background: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    animation: headerDrop 0.5s ease forwards;
}

@keyframes headerDrop {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.logo img {
    height: 70px;
    /* Increased size for better visibility */
    width: auto;
    display: block;
    /* Removes potential bottom space closer */
}

#navbar {
    display: block;
}

#navbar ul {
    display: flex;
    gap: 30px;
    align-items: center;
    /* Ensure LIs are centered vertically */
}

#navbar a {
    font-weight: 500;
    font-size: 17px;
    color: var(--text-dark);
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

#navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#navbar a:hover {
    color: var(--primary-color);
}

#navbar a:hover::after,
#navbar a.active::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    height: 100%;
}

.dropdown>a {
    gap: 4px;
    /* Only keep the gap, flex is inherited/global now */
}

/* Rotate icon on hover */
.dropdown:hover>a i {
    transform: rotate(180deg);
}

.dropdown>a i {
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.dropdown>a i svg,
.dropdown>a svg {
    width: 18px;
    height: 18px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    margin-top: 15px;
    left: 0;
    /* Align to the start of the link */
    background: #ffffff;
    min-width: 250px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

/* Hover bridge */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    width: 100%;
    display: block;
}

/* Separator lines */
.dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid #f7f7f7;
}

#navbar .dropdown-menu a {
    display: block;
    padding: 12px 18px;
    /* Reduced top/bottom padding */
    font-size: 15px !important;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    background: transparent;
}

#navbar .dropdown-menu a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color) !important;
    border-left-color: var(--primary-color);
    padding-left: 18px;
    /* Match base padding */
}

/* Ensure no conflicts */
.dropdown-menu a:after {
    display: none !important;
}

#navbar a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

#navbar a:hover:after,
#navbar a.active:after {
    width: 100%;
}

.mobile-menu-toggle,
.mobile-menu-close,
.mobile-only-link {
    display: none;
    cursor: pointer;
}

.mobile-only-link a {
    color: var(--primary-color) !important;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 50px;
    overflow-x: hidden;
    overflow-y: visible;
    /* Allow image to animate out */
    background-color: var(--primary-light);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    /* Strict 50/50 split that ignores content width */
    gap: 40px;
    align-items: center;
    position: relative;
    /* Full width logic calculating the container offset */
    padding-left: max(20px, calc((100% - var(--container-width)) / 2 + 20px));
    padding-right: 0;
    width: 100%;
    min-height: 100vh;
}

.hero-text {
    width: 100%;
    /* Force full width of its grid cell */
    min-width: 0;
    /* Prevent flex/grid blowout */
    background-color: var(--primary-light);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.hero-badge {
    background: rgba(34, 77, 114, 0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(34, 77, 114, 0.2);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.3rem;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--accent-black);
    /* Premium Deep Blue-Black */
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    max-width: 500px;
    font-weight: 400;
    line-height: 1.6;
    /* Increased weight */
}

.hero-buttons {
    display: flex;
    gap: 20px;
}



/* SVG Truck Animation Styles */
.hero-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-truck {
    position: absolute;
    width: 177%;
    /* Increase width as requested */
    max-width: none;
    height: 100%;
    /* Full banner height */
    /* object-fit: cover; - removed as it doesn't apply to object tag */
    /* aspect-ratio removed for GIF */
    pointer-events: none;
    right: -219px;
    top: -37px;
    left: auto;
    /* Remove centering */
    transform: none;
    /* Remove centering */
    will-change: transform;
}

/* Weight Display - Dimetric Axonometric Projection (Orthographic) */
.weight-display {
    position: absolute;
    top: 16%;
    left: 57%;
    transform: translateX(-98%) rotateX(21deg) rotateY(58deg);
    transform-style: preserve-3d;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 0px 20px;
    border-radius: 6px;
    border: 2px solid #333;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 173px;
}

.weight-label {
    color: #a0a0a0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weight-value {
    color: #4CAF50;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    /* flex: 0.5; */
    text-align: center;
    width: 100px;
}

.weight-unit {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: visible;
    /* Allow image to move out */
    box-shadow: none;
    z-index: 50;
    /* Ensure it stays above content during move */
}

.image-wrapper img {
    /* transform: scale(1.1);  Removed scale to avoid conflict with GSAP */
    width: 140%;
    /* Make image larger than container */
    max-width: none;
    /* Allow overflow */
    height: auto;
    position: relative;
    z-index: 50;
    will-change: transform, width, height;
    /* Optimize for GSAP */
    transition: none;
    /* Prevent CSS transitions from fighting GSAP */
}



/* About Section */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    /* Center vertically */
    text-align: left;
}

.about-img-target {
    width: 100%;
    min-height: 400px;
    /* Ensure space exists */
    border-radius: 8px;
}

.about-content .section-desc {
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 0;
    /* Remove bottom margin as requested */
}

/* About Scene Animation */
.about-img-target {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    /* Allow truck to enter from outside if needed */
}

.weighbridge-scene {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    /* Fixed height for consistent animation area */
    display: flex;
    justify-content: center;
    align-items: center;
}

.wb-platform {
    position: absolute;
    width: 100%;
    height: auto;
    max-width: 550px;
    z-index: 10;
    bottom: -30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wb-truck {
    position: absolute;
    width: auto;
    height: auto;
    max-width: 280px;
    /* Increased size for realism */
    z-index: 20;
    left: 50%;
    top: -1%;
    /* Center vertically by default */
    transform: translate(-50%, -50%);
    /* Center perfectly */
    will-change: transform;
    opacity: 0;
    /* Hidden initially */
}

.wb-shadow {
    position: absolute;
    width: 140px;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    filter: blur(10px);
    z-index: 15;
    /* Between platform and truck */
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px;
    /* Tune this */
    opacity: 0;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary-color);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(34, 77, 114, 0.4);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
    /* Removed top border/padding for cleaner integration in Hero */
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    /* Consistent Premium Dark */
    display: inline-block;
}

.stat-item span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Vision & Mission */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.vm-card {
    background: #fff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us Section - Absolute Overlay Layout */
.why-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    /* Stack everything on top of each other */
    align-items: center;
    max-width: 1400px;
    /* Wider container to pull points away */
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

/* Image Layer (Base) */
.why-column.center-col {
    grid-area: 1 / 1 / 2 / 2;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-column.center-col img {
    width: 100%;
    /* Max width */
    max-width: 950px;
    /* Slight reduction to help spacing */
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Points Layers (Overlay) */
.why-column {
    /* Reset flex defaults */
    flex: unset;
    gap: 0;
}

.why-column.left-col {
    grid-area: 1 / 1 / 2 / 2;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 75%;
    /* Increased vertical spread */
    align-self: center;
    align-items: flex-start;
    /* Align to left edge */
    pointer-events: none;
    /* Let clicks pass through empty space */
    margin-bottom: 50px;
    /* Shift whole group up */
    transform: translateX(-20px);
    /* Move away from truck */
}

/* Offset middle point for curved effect */
.why-column.left-col .why-box:nth-child(2) {
    transform: translateX(-40px);
}

.why-column.right-col {
    grid-area: 1 / 1 / 2 / 2;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 75%;
    /* Increased vertical spread */
    align-self: center;
    align-items: flex-end;
    /* Align to right edge */
    pointer-events: none;
    margin-bottom: 50px;
    /* Shift whole group up */
    transform: translateX(20px);
    /* Move away from truck */
}

/* Offset middle point for curved effect */
.why-column.right-col .why-box:nth-child(2) {
    transform: translateX(80px);
    /* Increased from 40px to push further away */
}

/* The Points Boxes */
.why-box {
    background: rgba(34, 77, 114, 0.08);
    /* Light version of Primary color */
    border: 1px solid rgba(34, 77, 114, 0.2);
    border-radius: 50px;
    padding: 12px 25px;
    text-align: center;
    pointer-events: auto;
    /* Re-enable pointer events on boxes */
    backdrop-filter: blur(5px);
    /* Premium glass feel */
    margin: 10px 0;
}

.why-box h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 600;
}

/* Remove Hover Effects */
.why-box:hover {
    background: rgba(34, 77, 114, 0.08);
    /* No change */
    transform: none;
    /* No movement */
}

.why-box:hover h4 {
    color: var(--primary-dark);
    /* No color change */
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .why-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0;
    }

    .why-column.left-col,
    .why-column.right-col {
        height: auto;
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px;
        position: static;
        transform: none;
    }

    .why-column.left-col {
        order: 1;
    }

    .why-column.center-col {
        order: 2;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: static;
        width: 100%;
    }

    .why-column.right-col {
        order: 3;
    }

    .why-column.left-col .why-box,
    .why-column.right-col .why-box {
        transform: none !important;
        width: 100%;
        max-width: none !important;
        margin: 0 !important;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 8px 20px;
    }
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--secondary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.icon-box i {
    width: 28px;
    height: 28px;
}

.vm-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.mission-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-gray);
}

.list-icon {
    color: var(--primary-color);
    width: 18px;
    height: 18px;
    min-width: 18px;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.product-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    transition: var(--transition-fast);
}

.product-card:hover .product-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.product-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Services */
/* Services Tab System */
.services-tabs-container {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.services-tabs-list {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px 25px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    text-align: left;
}

.service-tab-btn i {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
}

.service-tab-btn span {
    font-size: 1rem;
    font-weight: 500;
}

.service-tab-btn:hover {
    background: rgba(34, 77, 114, 0.05);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.service-tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-tab-btn.active i {
    color: #fff;
}

.services-tabs-content {
    flex: 1;
    min-height: 540px;
    position: relative;
    perspective: 1000px;
    overflow: visible;
    transition: height 0.4s ease;
}

/* Base Card Style for all panes */
.service-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    /* Removing padding for full-bleed */
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 5;
    overflow: hidden;
    /* Clip the image to the corners */
}

.service-pane.active {
    display: block;
    z-index: 5;
}

/* Visual stack effect using pseudo-elements on the container */
.services-tabs-content::before,
.services-tabs-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.services-tabs-content::before {
    transform: translate(12px, 12px);
    opacity: 0.4;
}

.services-tabs-content::after {
    transform: translate(24px, 24px);
    opacity: 0.2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pane-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    height: auto;
    min-height: 540px;
    align-items: stretch;
}

.pane-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    /* moved padding inside */
}

.pane-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.pane-text p {
    color: #bbb;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-features-list {
    list-style: none;
    margin-bottom: 30px;
}

.service-features-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.service-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.pane-image {
    height: 100%;
    width: 100%;
    min-height: 100%;
    border-radius: 0;
    border: none;
    position: relative;
}

.pane-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .services-tabs-container {
        flex-direction: column;
    }

    .services-tabs-list {
        flex: none;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .service-tab-btn {
        flex: 0 0 auto;
        padding: 15px 20px;
    }

    .pane-grid {
        grid-template-columns: 1fr;
    }

    .pane-image {
        order: -1;
        height: 250px;
    }
}

@media (max-width: 900px) {
    .services-tabs-container {
        flex-direction: column;
    }

    .services-tabs-list {
        flex: none;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .service-tab-btn {
        flex: 0 0 auto;
        padding: 15px 20px;
    }

    .pane-grid {
        grid-template-columns: 1fr;
    }

    .pane-image {
        order: -1;
        height: 250px;
    }
}

/* Testimonials */
.testimonial-slider {
    padding-bottom: 50px;
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.quote-icon {
    color: var(--primary-color);
    margin-bottom: 25px;
    opacity: 0.2;
}

.quote-icon i {
    width: 50px;
    height: 50px;
    margin: 0 auto;
}

.quote-text {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.client-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.client-info span {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Swiper pagination */
.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-info .section-tag {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info .section-title {
    margin-bottom: 25px;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.contact-item i,
.contact-item svg {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    margin-top: 0;
    transition: transform 0.3s ease;
}

.contact-item:hover i,
.contact-item:hover svg {
    transform: scale(1.2);
}

.contact-item h5 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-item p a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item p a:hover {
    color: var(--primary-color);
}

.main-footer .contact-item p a,
.main-footer .contact-item p a:visited {
    color: rgba(255, 255, 255, 0.9);
}

.main-footer .contact-item p a:hover,
.main-footer .contact-item p a:active {
    color: #fff;
    text-decoration: none;
    opacity: 1;
}

.contact-form-wrapper {
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fdfdfd;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23224D72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}

.form-group label {
    position: absolute;
    top: 16px;
    left: 16px;
    color: #888;
    font-size: 1rem;
    transition: 0.25s ease all;
    background: transparent;
    padding: 0;
    pointer-events: none;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    left: 12px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    background: #fff;
    padding: 0 6px;
}

/* Error States */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #ff4d4d !important;
    background-color: #fff9f9;
}

.form-group.error label {
    color: #ff4d4d !important;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom File Upload */
.file-upload-group {
    height: 60px;
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-label {
    position: static !important;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    pointer-events: auto !important;
}

.file-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    background: #fdfdfd;
    border: 2px dashed #e1e1e1;
    border-radius: 8px;
    color: #888;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.file-input:focus+.file-label .file-custom,
.file-custom:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

.file-custom i {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.file-input:valid+.file-label .file-custom {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
    color: #4CAF50;
}

.file-input:valid+.file-label .file-custom i {
    color: #4CAF50;
}

/* Main Footer */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

/* Subtle background decoration */
.main-footer::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-top {
    margin-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.brand-col .footer-logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
    /* Make logo white for dark footer */
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.footer-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon i {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background-color: #fff;
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Contact Info */
.main-footer .contact-info {
    display: flex;
    flex-direction: column;
}

.main-footer .contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 15px;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.main-footer .contact-item i,
.main-footer .contact-item svg {
    color: #fff;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
}

.main-footer .contact-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Footer Bottom */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #fff;
}

/* Mobile Adjustments for Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-grid {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .section-padding {
        --section-padding: 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-top: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    #header-cta {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .grid-2,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .popup-content {
        padding: 25px;
        width: 95%;
    }
}

/* ==========================================================================
   Products ZigZag Layout
   ========================================================================== */
.products-zigzag {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
    padding-bottom: 40px;
    position: relative;
}

.zigzag-timeline {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    z-index: 10;
    pointer-events: none;
}

.timeline-line {
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(to bottom, #e5e7eb, #e5e7eb 10px, transparent 10px, transparent 20px);
    margin: 0 auto;
    position: relative;
}

.timeline-truck {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timeline-truck img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.product-row.reverse {
    direction: rtl;
}

.product-row.reverse .product-info,
.product-row.reverse .product-img {
    direction: ltr;
}

.product-img {
    position: relative;
    border-radius: 16px;
    overflow: visible;
    min-height: 300px;
    /* Pre-size the container for GSAP calculations */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: auto;
}

.product-info {
    padding: 60px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-img::before,
.product-info::before {
    content: '';
    position: absolute;
    top: 0;
    height: 2px;
    background: repeating-linear-gradient(to right, #e5e7eb, #e5e7eb 10px, transparent 10px, transparent 20px);
    width: calc(100% + 40px);
    z-index: -1;
    transform: scaleX(0);
    transition: transform 0.4s ease-out;
}

.product-row.active .product-img::before,
.product-row.active .product-info::before {
    transform: scaleX(1);
}

.product-row:not(.reverse) .product-img::before {
    right: -40px;
    transform-origin: right center;
}

.product-row:not(.reverse) .product-info::before {
    left: -40px;
    transform-origin: left center;
}

.product-row.reverse .product-img::before {
    left: -40px;
    transform-origin: left center;
}

.product-row.reverse .product-info::before {
    right: -40px;
    transform-origin: right center;
}

.product-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent-black);
}

.product-info p {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.product-features li i {
    color: #10B981;
    width: 20px;
    height: 20px;
}

@media (max-width: 900px) {

    .product-row,
    .product-row.reverse {
        grid-template-columns: 1fr;
        gap: 10px;
        direction: ltr;
        text-align: center;
        margin-bottom: 60px;
    }

    .zigzag-timeline,
    .product-info::before,
    .product-img::before {
        display: none !important;
    }

    .product-info {
        order: 2;
    }

    .product-img {
        max-width: 600px;
        margin: 0 auto;
        order: 1;
        min-height: auto;
    }

    .product-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .product-info h3 {
        margin-top: 0;
    }

    .product-features {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Recent Works Slider
   ========================================================================== */
#recent-works {
    background: #f9f9f9;
}

.works-slider {
    padding-bottom: 50px;
    overflow: hidden;
}

.work-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 350px;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(20px);
    transition: all 0.4s ease;
    opacity: 0;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-item:hover .work-overlay {
    transform: translateY(0);
    opacity: 1;
}

.work-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.work-desc {
    color: #ddd;
    font-size: 0.9rem;
    margin: 0;
}

.works-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
}

.works-slider .swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* ==========================================================================
   Specifications Table
   ========================================================================== */
.specs-wrapper {
    margin-top: 80px;
    padding: 20px;
}

.specs-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--primary-color);
    padding: 20px 30px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    align-items: center;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    align-items: center;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:hover {
    background-color: #f8fbff;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1;
    position: relative;
    border-radius: 8px;
}

.spec-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.spec-cell i {
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.spec-row:hover .spec-cell i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .specs-wrapper {
        padding: 20px 0;
        margin-top: 0;
    }

    .spec-header {
        display: none;
    }

    .spec-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        border: 1px solid #eee;
        margin-bottom: 15px;
        border-radius: 8px;
        background: #fff;
    }

    .spec-cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #f5f5f5;
    }

    .spec-cell:last-child {
        border-bottom: none;
    }

    .spec-cell::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-gray);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .section-header {
        padding: 0;
        margin-bottom: 20px;
    }

    .spec-cell i {
        margin-right: 8px;
    }
}

/* ==========================================================================
   Contact Page Specific Styles
   ========================================================================== */
.contact-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4f8fc 100%);
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(34, 77, 114, 0.06);
    box-shadow: 0 10px 30px rgba(34, 77, 114, 0.03);
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-card:hover {
    background: #ffffff;
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(34, 77, 114, 0.1);
    border-color: rgba(34, 77, 114, 0.15);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    color: var(--primary-color);
    box-shadow: none;
    border: none;
    transition: all 0.4s ease;
}

.icon-wrapper i,
.icon-wrapper svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5px;
    opacity: 0.8;
}

.contact-card:hover .icon-wrapper {
    transform: scale(1.1) translateY(-5px);
    color: var(--primary-color);
}

.contact-card:hover .icon-wrapper i,
.contact-card:hover .icon-wrapper svg {
    opacity: 1;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.contact-card p,
.contact-card p a {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ==========================================================================
   Contact Page Specific Styles
   ========================================================================== */
.contact-card {
    background: #f8fbff;
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(34, 77, 114, 0.08);
    box-shadow: 0 10px 30px rgba(34, 77, 114, 0.03);
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-card:hover {
    background: #ffffff;
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(34, 77, 114, 0.1);
    border-color: rgba(34, 77, 114, 0.15);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(34, 77, 114, 0.06);
    border: 1px solid rgba(34, 77, 114, 0.05);
    transition: all 0.4s ease;
}

.icon-wrapper i,
.icon-wrapper svg {
    width: 32px;
    height: 32px;
    stroke-width: 2px;
    transition: transform 0.4s ease;
}

.contact-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1) rotate(10deg);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.contact-card p,
.contact-card p a {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card p a:hover {
    color: var(--primary-color);
}

.form-section {
    padding: 60px 0 100px;
    background-color: #fafbfd;
}

.contact-form-wrapper {
    background: #fff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.map-section {
    width: 100%;
    height: 100%;
    min-height: 550px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border: 5px solid #fff;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-section:hover iframe {
    filter: none;
}

@media (max-width: 900px) {
    .map-section {
        min-height: 400px;
    }
}

/* ==========================================================================
   Inner Pages Common Header Styles
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, #e6f0fa 100%);
    padding: 115px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(34, 77, 114, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 8px;
    color: var(--accent-black);
    font-weight: 700;
}

.breadcrumb {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.6);
    display: inline-block;
    padding: 8px 22px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb span {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }

    .page-title {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   About Page Specific Styles
   ========================================================================== */
.about-story {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.mv-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.mv-card:hover {
    transform: translateY(-5px);
}

.mv-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mv-icon svg {
    width: 32px;
    height: 32px;
}

.mv-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Popup Modal Styles
   ========================================================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 95vh;
    overflow-y: auto;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px;
    line-height: 1;
    z-index: 10;
}

.popup-close:hover {
    color: var(--primary-color);
}

.popup-header {
    text-align: center;
    margin-bottom: 15px;
}

.popup-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.popup-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.popup-form .form-group {
    margin-bottom: 10px;
    position: relative;
}

.popup-form input,
.popup-form select,
.popup-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.popup-form input:focus,
.popup-form select:focus,
.popup-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(34, 77, 114, 0.1);
}

.popup-form label {
    position: absolute;
    left: 15px;
    top: 10px;
    color: #888;
    pointer-events: none;
    transition: 0.3s ease;
    font-size: 0.95rem;
    background-color: transparent;
    padding: 0 4px;
}

.popup-form input:focus~label,
.popup-form input:not(:placeholder-shown)~label,
.popup-form textarea:focus~label,
.popup-form textarea:not(:placeholder-shown)~label,
.popup-form select:valid~label {
    top: -8px;
    font-size: 0.75rem;
    color: var(--primary-color);
    background-color: #fff;
    font-weight: 500;
}

.popup-form select {
    padding-top: 12px;
    height: 45px;
}

.popup-form .btn {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .popup-content {
        padding: 25px;
        width: 95%;
    }
}

/* ==========================================================================
   Comprehensive Responsiveness
   ========================================================================== */

/* Tablet & Mobile Header */
@media (max-width: 991px) {
    #main-header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: none;
    }

    /* Update scrolled state for mobile to match desktop entry */
    #main-header.scrolled {
        position: fixed !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    }

    .logo img {
        height: 50px;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 28px;
        color: var(--primary-color);
        cursor: pointer;
    }

    .mobile-only-link {
        display: block;
        padding-top: 15px;
        border-bottom: none !important;
    }

    .mobile-only-link a {
        background: var(--primary-color) !important;
        color: #fff !important;
        padding: 12px 25px !important;
        border-radius: 5px !important;
        display: inline-block !important;
        font-weight: 500 !important;
        margin-top: 5px;
    }

    #header-cta {
        display: none;
    }

    /* Fixed mobile close icon alignment */
    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        position: fixed;
        top: 20px;
        right: 20px;
        background: #f8f9fa;
        border-radius: 50%;
        color: var(--primary-color);
        cursor: pointer;
        z-index: 20000;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.05);
        opacity: 0;
        visibility: hidden;
        transform: scale(0.8);
        pointer-events: none;
    }

    /* Show close button when menu is open */
    body:has(#navbar.open) .mobile-menu-close {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        pointer-events: auto;
    }

    .mobile-menu-close i,
    .mobile-menu-close svg {
        pointer-events: none;
        width: 24px;
        height: 24px;
        stroke-width: 2.5px;
    }

    .mobile-menu-close:hover {
        background: var(--primary-light);
        transform: rotate(90deg);
    }

    .mobile-menu-close:active {
        transform: scale(0.9) rotate(90deg);
    }

    #navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: none;
        height: 100vh;
        background: #fff;
        padding: 100px 40px 40px;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 10000;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }


    #navbar.open {
        right: 0;
    }

    #navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
    }

    #navbar li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    #navbar a {
        font-size: 1.2rem;
        width: 100%;
        padding: 22px 0;
        color: var(--primary-color);
        font-weight: 600;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border-bottom: 1px solid #f8f9fa;
    }

    #navbar a::after {
        display: none !important;
    }

    #navbar .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 0 20px 0 !important;
        display: none;
        background: #fafbfc !important;
        margin-top: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        border-radius: 0 !important;
        transition: all 0.3s ease !important;
    }

    #navbar .dropdown.active>.dropdown-menu {
        display: block !important;
        animation: slideDownMenu 0.3s ease-out;
    }

    @keyframes slideDownMenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    #navbar .dropdown-menu li {
        border-bottom: none !important;
        width: 100% !important;
    }

    #navbar .dropdown-menu a {
        font-size: 1.05rem !important;
        padding: 14px 20px !important;
        font-weight: 500 !important;
        color: var(--text-gray) !important;
        background: transparent !important;
        border: none !important;
        display: flex !important;
        justify-content: center !important;
        text-align: center;
    }

    #navbar .dropdown>a i {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
        opacity: 0.8;
    }

    #navbar .dropdown.active>a {
        color: var(--secondary-color);
    }
}

/* Hero Section Responsiveness */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding: 40px 0;
        text-align: center;
        min-height: auto;
    }

    .hero-text {
        padding: 0 20px;
        backdrop-filter: none;
        background: transparent;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        position: relative;
        min-height: 350px;
        margin-top: 30px;
        overflow: hidden;
        width: 100%;
        display: block;
    }

    .svg-truck {
        position: absolute;
        width: 180%;
        left: -42%;
        top: 0;
        height: auto;
        right: auto;
        max-width: none;
        transform: none;
    }

    .weight-display {
        top: 18%;
        left: 50%;
        transform: translateX(-50%) rotateX(21deg) rotateY(58deg);
        padding: 0 12px;
        min-width: 120px;
        gap: 5px;
    }

    .weight-value {
        font-size: 1rem !important;
        letter-spacing: 2px !important;
    }

    .weight-unit {
        font-size: 0.8rem !important;
    }

    .stats-grid.hero-stats {
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.22rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* About Grid Responsiveness */
@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img-target {
        min-height: 300px;
    }

    /* Weighbridge animation mobile positioning */
    .wb-platform {
        bottom: -1%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .wb-truck {
        left: 50%;
        top: 11%;
        max-width: 211px;
    }
}

/* Services Tabs Responsiveness */
@media (max-width: 991px) {
    .services-tabs-container {
        flex-direction: column;
    }

    .services-tabs-list {
        flex: 1;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 15px;
        white-space: nowrap;
    }

    .service-tab-btn {
        padding: 12px 20px;
        flex: 0 0 auto;
    }

    .services-tabs-content {
        min-height: 400px;
    }

    .pane-text {
        padding: 20px;
    }

    .testimonial-card {
        padding: 0;
    }
}

/* Footer Responsiveness */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-stats.stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    .hero-stats.stats-grid .stat-item:last-child {
        grid-column: span 2;
    }

    .contact-card {
        padding: 40px 25px;
    }

    .stat-item h3,
    .stat-item span {
        font-size: 2rem;
    }
}

/* Section Padding */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-desc {
        max-width: 100% !important;
        margin-bottom: 2rem !important;
    }
}


/* Services Tablet Refinement */
@media (max-width: 991px) {
    .service-pane {
        position: relative;
        height: auto;
        min-height: auto;
        display: none;
    }

    .service-pane.active {
        display: block;
    }

    .services-tabs-content {
        min-height: auto;
    }

    .services-tabs-content::before,
    .services-tabs-content::after {
        display: none;
        /* Hide stack effect on mobile for cleaner look */
    }
}

@media (max-width: 576px) {
    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .section-padding {
        padding: 40px 0;
    }
}

/* 404 Page Styles */
.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    padding-top: 150px;
}

.error-container {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 0;
    font-family: var(--font-heading);
    position: relative;
    z-index: 1;
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    margin-top: -40px;
}

.error-message {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.error-visual {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.error-scale {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.error-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 2rem;
        margin-top: -30px;
    }

    .error-buttons {
        flex-direction: column;
        align-items: center;
    }

    .error-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}