/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
}

/* Body Background */
body {
    min-height: 100vh;
    position: relative;
    background-size: cover;
}

/* Content Wrapper */
.content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

/* Services Section */
#services {
    background-image: url('ship.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    position: relative;
    color: white;
}

/* Dark Overlay */
#services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* Ensure Content is Above Overlay */
#services .container {
    position: relative;
    z-index: 1;
}

/* Section Heading */
.section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: hsl(211, 100%, 50%);
}

/* Card Container */
.card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr; /* One card per row */
    }
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 300px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover Effect */
.card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Background Image */
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark Overlay on Image */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Card Text */
.card h3, .card p {
    position: absolute;
    left: 10px;
    right: 10px;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.card h3 {
    top: 10px;
    font-size: 1.4rem;
}

.card p {
    bottom: 10px;
}

/* Dark Background for Text Readability */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Logistics Services Section */
#logistics-services {
    background: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
    max-width: 1300px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Optional section heading */
#logistics-services h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #007bff;
    text-transform: uppercase;
    font-weight: bold;
}
 
.logistics-lists {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
}

.logistics-lists::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(1, 116, 211, 0.623);
    transform: translateX(-1px);
}

.logistics-column {
    width: 48%; 
    text-align: left;
}

/* Headings inside columns */
.logistics-column h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #007bff;
    text-transform: uppercase;
    font-weight: bold;
}

/* Lists inside columns */
.logistics-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* List Items */
.logistics-column li {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    text-align: left;
}

/* Hover Effects */
.logistics-column li:hover {
    background: #007bff;
    color: white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 1025px) {
    .logistics-lists {
        flex-wrap: nowrap;
    }

    .logistics-column {
        width: 50%;
    }
}


@media (max-width: 1024px) {
    .logistics-column {
        width: 100%; /* Full width when stacked */
        text-align: center;
    }

    .logistics-lists::before {
        display: none; /* Remove separator line on smaller devices */
    }

    .logistics-column li {
        text-align: center;
    }

    #logistics-services h2 {
        font-size: 2rem; /* Adjust title */
    }

    .logistics-column h3 {
        font-size: 1.8rem; /* Adjust column titles */
    }
}

/* Small tablets and mobile adjustments */
@media (max-width: 768px) {
    /* Stack and adjust padding */
    .logistics-lists {
        gap: 30px;
    }

    .logistics-column li {
        padding: 12px 16px;
    }

    .logistics-industry-list,
    .logistics-service-list {
        width: 100%;
    }

    /* Lists */
    .logistics-industry-list li,
    .logistics-service-list li {
        min-width: 100%;
    }

    /* Smaller heading */
    #logistics-services h2 {
        font-size: 2rem;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .logistics-industry-list li,
    .logistics-service-list li {
        min-width: 100%;
    }

    /* Smaller section titles */
    .section h2 {
        font-size: 2rem;
    }
}

/* Footer */
footer {
    background: #000;
    color: white;
    padding: 40px 20px;
    font-size: 14px;
    position: relative;
    z-index: 2;
}
