:root {
    --primary-color: #4263ad;
    --primary-dark: #324b83;
    --secondary-color: #ffc800;
    --dark-bg: #0f172a;
    --text-color: #334155;
    --text-muted: #64748b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --transition-base: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page hero for inner pages */
.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.6));
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
}

.page-hero h6 {
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}

body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-bg);
    letter-spacing: -0.02em;
}

section {
    padding: 0;
}

.hero-wrapper {
    padding: 0;
}

/* Carousel animations */
.carousel-item {
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1);
}

/* Background Zoom Animation */
.carousel-item.active .hero-section {
    animation: heroZoom 10s linear infinite alternate;
}

@keyframes heroZoom {
    from { background-size: 100%; }
    to { background-size: 110%; }
}

/* Text Content Animations */
.carousel-item .hero-section h6,
.carousel-item .hero-section h1,
.carousel-item .hero-section p,
.carousel-item .hero-section .d-flex {
    opacity: 0;
    transform: translateY(30px);
}

.carousel-item.active .hero-section h6 {
    animation: fadeInUpContent 0.8s ease forwards 0.1s;
}

.carousel-item.active .hero-section h1 {
    animation: fadeInUpContent 0.8s ease forwards 0s;
}

.carousel-item.active .hero-section p {
    animation: fadeInUpContent 0.8s ease forwards 0.9s;
}

.carousel-item.active .hero-section .d-flex {
    animation: fadeInUpContent 0.8s ease forwards 1.1s;
}

@keyframes fadeInUpContent {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    background-size: 50%;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    font-size: 0.8rem;
}

.top-bar .text-small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.top-bar .text-small span {
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .top-bar .text-small {
        flex-wrap: nowrap;
        gap: 1.25rem;
    }
}

.text-small {
    font-size: 0.75rem;
}

.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-base);
}

.navbar-nav .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--dark-bg) !important;
    padding: 0.5rem 1.25rem !important;
    position: relative;
}

.navbar-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.navbar-nav .btn {
    width: auto;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.navbar-nav .nav-link:hover::after, 
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.small-icon {
    font-size: 0.6rem;
    vertical-align: middle;
}

.btn-warning {
    background-color: var(--secondary-color);
    border: none;
    color: #111;
}

.btn-warning:hover {
    background-color: #e6b400;
}

.hero-section {
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('/assets/images/farm-1.jpg');
    background-size: cover;
    background-position: center;
    min-height: 75vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: #fff;
}

.hero-section h6 {
    color: #fff;
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
}

.hero-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

/* Service Card refinements */
.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border: none !important;
    border-radius: 0;
    transition: var(--transition-base);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    margin-bottom: 2rem;
    background: var(--light-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-base);
}

.service-card:hover .icon {
    background: var(--primary-color);
    color: var(--white);
}

/* Hero Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.7;
    border-radius: 50%;
}

.hero-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-arrow-left {
    left: 20px;
}

.hero-arrow-right {
    right: 20px;
}

/* Services Overlay Redesign */
.services-overlap {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.services-overlap .row {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12) !important;
}

.service-card {
    padding: 2.5rem 2rem !important;
    text-align: center;
    border-right: 1px solid #f0f0f0 !important;
    background: var(--white);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(66, 99, 173, 0.08);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    z-index: 1;
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px) rotateY(10deg);
}

.service-card h5 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    color: var(--dark-bg);
    text-transform: uppercase;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.service-card .icon {
    transition: transform 0.3s;
}

.service-card:hover .icon {
    transform: scale(1.1);
}

/* Footer */
.footer-section {
    background-color: #0a0e1a; /* Dark navy background from screenshot */
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/2/23/World_map_%28blue_dots%29.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 60px;
}

/* Dark overlay for world map */
.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.9); /* Dark overlay to make map subtle */
    z-index: 0;
}

.footer-section .container {
    position: relative;
    z-index: 1;
}

.footer-section h5 {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 15px;
    color: #fff !important;
    font-weight: 700;
    margin-bottom: 30px;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-section a.text-muted:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
    transition: all 0.3s;
}

/* Footer links styling */
.footer-section a {
    color: #8b9299 !important;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff !important;
}

/* Footer paragraph and contact info */
.footer-section p, .footer-section li {
    color: #8b9299 !important;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Footer logo text */
.footer-logo h4 {
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo small {
    color: #8b9299 !important;
}

.footer-section .form-control {
    border-radius: 30px 0 0 30px;
    border-color: #333;
    background-color: rgba(255,255,255,0.05) !important; /* Slightly transparent input */
}

.footer-section .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    background-color: rgba(255,255,255,0.1) !important;
}

.footer-section .btn {
    border-radius: 0 30px 30px 0;
}

.footer-bottom {
    background-color: #05070d; /* Even darker bottom bar */
    border-top: 1px solid #1a1f2e !important;
    position: relative;
    padding: 25px 0;
}

/* Footer bottom text */
.footer-bottom small {
    color: #8b9299 !important;
    font-size: 0.75rem;
}

/* Social icons with circular background */
.social-icons-circle {
    display: flex;
    gap: 10px;
}

.social-icons-circle a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1a1f2e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b9299 !important;
    transition: all 0.3s;
}

.social-icons-circle a:hover {
    background-color: var(--primary-color);
    color: #fff !important;
    transform: translateY(-2px);
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: #0a0e1a;
    border: 2px solid #1a1f2e;
    color: #8b9299;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Truck Hero Section */
.truck-hero-section {
    min-height: auto;
    position: relative;
    background-color: #f5f5f5;
    padding: 70px 0 30px;
}

.truck-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1544620347-c4fd0a6d4f7b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

.truck-hero-content {
    position: relative;
    z-index: 3;
}

.truck-hero-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(100px, 18vw, 250px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
    display: block;
    width: 100%;
    
    /* Text Masking Effect */
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center 60%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    
    /* Ensure clean edges */
    padding-bottom: 10px; /* Space for descenders if needed, though mostly caps/high x-height */
}

/* Add overlay to enhance text visibility */
.truck-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 2;
}

.about-section {
    background-color: var(--light-bg);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Icon Square Redesign */
.icon-square {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(66, 99, 173, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 1.5rem;
}

.icon-square i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.card:hover .icon-square {
    background: var(--primary-color);
}

.card:hover .icon-square i {
    color: var(--white);
    transform: scale(1.1);
}

.feature-card {
    border: none !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    background: var(--white);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1) !important;
}

.card {
    border: none;
    border-radius: 20px;
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-base);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Button & Link Hover States */
.btn, .nav-link, .service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary:hover {
    box-shadow: 0 10px 20px -5px rgba(66, 99, 173, 0.4);
    transform: translateY(-3px);
}

/* Card Depth Effect */
.card, .service-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.hero-title, .hero-section p, .hero-btn {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-section p { animation-delay: 0.2s; }
.hero-btn { animation-delay: 0.4s; }

/* Section Heading Style */
.section-heading {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-heading.text-start::after {
    left: 0;
    transform: none;
}

/* Gradient Button */
.btn-gradient {
    background: linear-gradient(135deg, #0066cc 0%, #6633ff 100%);
    color: white !important;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    background: linear-gradient(135deg, #0052a3 0%, #5528cc 100%);
    color: white !important;
}

/* Dropdown/Submenu Styling */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    padding: 1.25rem;
    min-width: 240px;
    margin-top: 10px !important;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-bg);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item i {
    width: 20px;
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 1.25rem;
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

/* Mobile Submenu Adjustments */
@media (max-width: 1199px) {
    .dropdown-menu {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1.5rem;
        margin-top: 0 !important;
    }
    
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .dropdown-item:hover {
        padding-left: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    section {
        padding: 0;
    }

    .services-overlap {
        margin-top: -30px;
    }

    .hero-section {
        min-height: 65vh;
    }

    .navbar-nav {
        flex-wrap: wrap;
    }

    .navbar-nav .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 0;
    }

    .services-overlap {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .hero-section {
        min-height: 60vh;
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .truck-hero-text {
        font-size: clamp(72px, 15vw, 140px);
    }
}

/* New Elegant Styles */
.rounded-4 {
    border-radius: 1rem !important;
}

.icon-square {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-shadow:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
    transform: translateY(-2px);
}

.transition-all {
    transition: all 0.3s ease-in-out;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}

/* Service Card refinements for About Page */
.service-card {
    border-color: #eee !important;
}

.service-card .icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(66, 99, 173, 0.1);
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.service-card:hover .icon i {
    color: white !important;
}

/* Key Benefits Section Redesign */
.key-benefit-section {
    padding: 0 !important;
    overflow: hidden;
}

.key-benefit-section .p-5 {
    padding: 5rem !important;
}

.key-benefit-number {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(66, 99, 173, 0.08);
    border-radius: 50px;
    letter-spacing: 2px;
}

.key-benefit-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.key-benefit-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.key-benefit-image-wrapper {
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

.key-benefit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.key-benefit-section:hover .key-benefit-image {
    transform: scale(1.1);
}

/* Color separation */
.key-benefit-section:nth-child(odd) {
    background-color: var(--light-bg);
}

.key-benefit-section:nth-child(even) {
    background-color: var(--white);
}
