:root {
    /* Original Elementor Kit Variables */
    --primary-color: #044C8C;
    /* --e-global-color-9abaa80 */
    --secondary-color: #54595F;
    /* --e-global-color-secondary */
    --text-color: #7A7A7A;
    /* --e-global-color-text */
    --accent-color: #F9A634;
    /* --e-global-color-b0f58d6 */
    --light-blue: #6EC1E4;
    /* --e-global-color-primary */
    --green: #61CE70;
    /* --e-global-color-accent */
    --muted-blue: #6B93B3;
    /* --e-global-color-944aa19 */
    --cyan: #04ACDC;
    /* --e-global-color-9df493d */
    --very-light-blue: #E9F1F8;
    /* --e-global-color-6dce167 */
    --off-white: #FDFDFD;
    /* --e-global-color-135f296 */
    --light-blue-gray: #B9D2E6;
    /* --e-global-color-6ec8062 */

    /* Typography */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Roboto Slab', serif;
    --font-text: 'Open Sans', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
    --font-headings: 'Fjalla One', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-text);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--off-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Header */
header {
    background-color: #4f549f91;;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid transparent;
}

nav {
    width: 100%;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    margin-top: -10px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-primary);
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

header.scrolled .nav-links a {
    color: var(--secondary-color);
}

header.scrolled .nav-links a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    z-index: 1001;
}

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

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    text-transform: none;
}

.dropdown-menu a:hover {
    background-color: var(--very-light-blue);
    color: var(--primary-color);
}

.header-btn {
    padding: 10px 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.header-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

header.scrolled .header-btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

header.scrolled .header-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
/* Hero Section */
/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align content to the left */
    text-align: left;
    /* Align text to the left */
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideshow 15s infinite;
}

.hero-slideshow .slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slideshow .slide:nth-child(2) {
    animation-delay: 5s;
}

.hero-slideshow .slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes slideshow {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
        transform: scale(1.02);
    }

    40% {
        opacity: 1;
        transform: scale(1.05);
    }

    50% {
        opacity: 0;
        transform: scale(1.08);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px 20px 20px 50px; /* Adjusted padding */
    background: linear-gradient(90deg, rgba(4, 76, 140, 0.8) 0%, rgba(4, 76, 140, 0.4) 100%);
}

/* Call to Action Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0693e3 0%, #9b51e0 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section .divider {
    width: 60px;
    height: 3px;
    background-color: white;
    margin: 0 auto 30px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-section .btn-primary:hover {
    background-color: transparent;
    color: white;
}

.hero h1 {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease;
}

.hero h2 {
    font-family: var(--font-headings);
    font-size: 3.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero p {
    font-family: var(--font-text);
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* Hero Features Section */
.hero-features {
    padding: 0 0 50px 0;
    margin-top: -120px;
    /* Increased overlap */
    position: relative;
    z-index: 20;
    /* Ensure it's above hero */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    /* Ensure contrast */
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    /* Stronger shadow */
    transition: transform var(--transition-speed) ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 3px solid var(--primary-color);
    /* Add accent */
}

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

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    width: 80px;
    height: auto;
}

.feature-card h3 {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.feature-card p {
    font-family: var(--font-text);
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Features Section (Qui démarque MHCargo) */
.features {
    padding: 100px 0;
    background-color: var(--off-white);
}

.features .section-header p {
    color: var(--text-color);
}

.feature-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.feature-box img {
    width: 60px;
    height: auto;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.feature-box p {
    font-family: var(--font-text);
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-subtitle {
    font-family: var(--font-accent);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.about-content h2 {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin-bottom: 20px;
}

.about-content p {
    font-family: var(--font-text);
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-list i {
    color: var(--primary-color);
}

.about-image-container {
    position: relative;
}

.about-image-container img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.experience-counter {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.experience-counter .number {
    display: block;
    font-family: var(--font-headings);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.experience-counter .text {
    display: block;
    font-family: var(--font-text);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Main Services Section */
.main-services {
    padding: 100px 0;
    background-color: white;
}

.main-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.main-service-card {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: transform var(--transition-speed) ease;
}

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

.main-service-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transition: background 0.3s ease;
}

.main-service-card:hover .overlay {
    background: linear-gradient(to top, rgba(4, 76, 140, 0.9), transparent);
}

.main-service-card .content {
    position: relative;
    z-index: 2;
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.main-service-card:hover .content {
    transform: translateY(0);
}

.main-service-card h3 {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.btn-small {
    display: inline-block;
    padding: 8px 20px;
    background: white;
    color: var(--primary-color);
    font-family: var(--font-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-service-card:hover .btn-small {
    opacity: 1;
}

/* Industries Section */
.industries {
    padding: 100px 0;
    background: linear-gradient(rgba(4, 76, 140, 0.9), rgba(4, 76, 140, 0.9)), url('images/container_Cargo_shipemhcargo.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.industries .section-header h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.industries .divider {
    background-color: var(--accent-color);
    margin: 20px auto;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.industry-item {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: white;
    text-transform: uppercase;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.industry-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.footer-about p {
    font-family: var(--font-text);
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font-headings);
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--white);
    text-transform: uppercase;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-contact a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s ease;
    font-family: var(--font-text);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: #888;
}

.footer-bottom a:hover {
    color: var(--white);
}

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

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

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .bar {
        background-color: #FFF;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 90px;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    .nav-links a{
       color: #002d4a;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        background-color: #f9f9f9;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .header-btn {
        display: none;
        /* Hide button on mobile menu for simplicity, or move it inside nav-links */
    }

    .hero h1 {
        font-size: 1.2rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-features {
        margin-top: 0;
        padding-top: 50px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-container {
        order: -1;
        margin-bottom: 50px;
    }

    .experience-counter {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
    }
}

/* Client Logos Section */
.client-logos {
    padding: 60px 0;
    background-color: white;
    text-align: center;
    overflow: hidden;
}

.client-logos .section-header {
    margin-bottom: 50px;
}

.client-logos-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.client-logos-track {
    display: flex;
    width: calc(200px * 10);
    /* 200px per logo * 10 logos (5 original + 5 duplicate) */
    animation: scroll 20s linear infinite;
}

.client-logo-item {
    width: 200px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo-item img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 5));
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--off-white);
}

.contact-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.contact-image-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-image-item:hover img {
    transform: translateY(-5px);
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.contact-form-container .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    flex: 1;
}

.contact-form .form-group.full-width {
    width: 100%;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-text);
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Responsive adjustments for form */
@media (max-width: 768px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form-container {
        padding: 30px;
    }
}