/* Common Variables */
:root {
    --primary-color: #1f74ad;
    --accent-color: #FC0606;
    --text-dark: #555;
    --background-light: #f4f4f4;
    --white: #fff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section Titles Common Styles */
.products-services-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 20px;
    width: 50%;
    transition: var(--transition);
}

.references-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color); 
    padding-left: 10px;
    transition: var(--transition);
}

/* Products and Services Section */
.products-services {
    /* margin: 30px auto; */
    max-width: auto;
    padding: 40px;
    position: relative;
    background: url('../img/logistics1.jpg') no-repeat center center/cover;
    background-attachment: fixed; /* Enables parallax effect */
    color: var(--white);
    background-size: cover;
    background-position: top center;
}

.products-services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: 1;
}

/* Ensure content is above overlay */
.products-services * {
    position: relative;
    z-index: 2;
}

.products-service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;   
}

.product-service-card {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-service-card:hover {
    transform: translateY(-5px);
}

.product-service-content h3 {
    font-size: 24px;
    color: var(--primary-color); /* Ensure text is readable */
    transition: var(--transition);
}

.product-service-content p {
    color: var(--text-dark);
}

/* Enlarged & Centered Icons */
.product-service-icon {
    flex-shrink: 0;
    width: 90px; /* Increased size */
    height: 90px;
    display: flex;
    margin-right: 20px;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem; /* Bigger icons */
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
}

/* Responsive Layout for icons - Small Screens */
@media (max-width: 768px) {
    .product-service-card {
        flex-direction: column; /* Stack items vertically */
        text-align: center; /* Center-align text */
        align-items: center;
    }

    .product-service-icon {
        width: 70px; /* Adjusted size for small screens */
        height: 70px;
        font-size: 2rem;
        margin: 0 0 10px 0; /* Remove side margin, add bottom margin */
    }
}

/* References Section */
.references-section {
    max-width: auto;
    padding: 40px;
    background-color: var(--background-light);
}

.references-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.reference-card {
    flex: 1;
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
    max-width: 48%;
    transition: var(--transition);
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    background-color: rgba(231, 76, 60, 0.03);
}

.reference-card-content {
    padding: 15px;
    flex: 1;
}

.reference-card-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: var(--transition);
}

.reference-card:hover .reference-card-content h3 {
    color: var(--accent-color);
}

.reference-card-content p {
    font-size: 16px;
    color: var(--text-dark);
}

/* Media Queries */
@media (max-width: 768px) {
    .product-service-card {
        flex-direction: column;
        text-align: center;
    }

    .product-service-icon {
        margin: 0 0 15px;
    }

    .products-services-title,
    .references-title {
        font-size: 24px;
    }

    .products-services-title {
        width: 60%;
    }

    .product-service-content h3,
    .reference-card-content h3 {
        font-size: 20px;
    }
    
    .product-service-content p,
    .reference-card-content p {
        font-size: 14px;
    }

    .references-cards {
        flex-direction: column;
    }

    .reference-card {
        flex-direction: column;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .products-services-title {
        width: 80%;
    }
}