/*--------------------------------------------------------------
    In this CSS file you will find the style for the home page
---------------------------------------------------------------*/

/* Here you can import all stylesheets */
@import 'main.css';
@import 'header.css';
@import 'footer.css';

/* The area for the main content is edited here */
main {
    overflow: hidden;
}


/*--------------------------------------------------
    CSS for the Hero Section
---------------------------------------------------*/
.hero {
    position: relative;
    z-index: 1;
    padding-bottom: 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    /* text-align: center; */
}

.hero-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 24px;
}

.hero-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}


/*--------------------------------------------------
    CSS for the Services Section
---------------------------------------------------*/
.services {
    position: relative;
    z-index: 10;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
}

.service-card1, .service-card2, .service-card3 {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.15);
    text-align: center;
    flex-basis: 100%;
    max-width: 300px;
}

.service-icon {
    width: 48px;
    height: 48px;

    background-size: 75%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 100%;

    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.75rem;
}

.plane { 
    background-color: var(--primary); 
    background-image: url(../assets/icons/airplane-take-off.svg);
}

.ship { 
    background-color: var(--forestGreen);
    background-image: url(../assets/icons/cargo-ship.svg);
}

.truck { 
    background-color: var(--pumpkin);
    background-image: url(../assets/icons/semi-truck-side-view.svg);
}

.service-button a {
    display: block;
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
}


/*--------------------------------------------------
    CSS for the Specialization Section
---------------------------------------------------*/
.specialization {
    margin-top: 2.75rem;
    --child-width: 100vw;
    margin-left: calc(-.5 * var(--child-width) + 50%);
    width: var(--child-width);
}

.specializationWave {
    background-image: url(../assets/waterBG.svg);
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: top;
    background-size: cover;

    position: relative;
    width: 100%;
    height: 80px;
}

.sectionBG {
    background: linear-gradient(180deg, #1C59A5 40%, #78AAE8 85%, #FFF 95%);
    background-color: #1C59A5;
}

.specialization-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    top: -1.5rem;
    padding-bottom: 3.5rem;
}

h2.web {
    display: none;
}

.specialization-image {
    position: relative;
    width: 100%;
    max-width: 464px;
    height: 240px;
    overflow: hidden;
    border-radius: 24px;
}

.specialization-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

h2.app, .specialization-text h2, .specialization-text p, .key-point h6, .key-point p {
    color: #FFF;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.4);
}

/* This will override the default margin for this element on mobile and revert to the general style from 768px */
@media (max-width: 767px) {
    .specialization-text p {
        margin-top: 0;
    }
}

.key-points {
    padding-left: 10%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.key-point {
    margin-bottom: 1rem;
}


/*--------------------------------------------------
    The breaking points
---------------------------------------------------*/

/* Intermediate version of mobile and tablet (480px) */
@media (min-width: 480px) {
    /* The Hero Section */
    .hero-content {
        gap: 1.75rem;
    }

    .hero-image {
        height: 264px;
    }
    /*----------------------------------------*/

    /* The Services Section */
    .service-cards {
        gap: 1.75rem;
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }
    /*----------------------------------------*/

    /* The Specialization Section */
    .specialization {
        margin-top: 3rem;
    }

    .specializationWave {
        height: 88px;
    }

    .specialization-grid {
        gap: 1.75rem;
        padding-bottom: 4.25rem;
    }
}

/* Tablet version (768px) */
@media (min-width: 768px) {
    /* The Hero Section */
    .hero-content {
        flex-direction: row;
        align-items: stretch;
        gap: 2.125rem;
    }

    .hero-text {
        flex: 1;
        max-width: 50%;
    }

    .hero-image {
        flex: 1;
        max-width: 50%;
        height: auto;
        border-radius: 24px 0px 0px 0px;
    }

    /* .hero-image img {
        position: relative;
        display: block;
    } */
    /*----------------------------------------*/

    /* The Services Section */
    .service-cards {
        flex-direction: row;
        justify-content: center;
        gap: 2.125rem;
    }

    .service-card1, .service-card2, .service-card3 {
        text-align: left;
        flex-basis: 33%;
    }

    .service-icon {
        width: 66px;
        height: 66px;
        background-size: 70%;

        margin-left: 0px;
        margin-bottom: 1.25rem;
    }
    /*----------------------------------------*/
    
    /* The Specialization Section */
    .specialization {
        margin-top: 3.313rem;
    }

    .specializationWave {
        height: 98px;
    }

    .specialization-grid {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 2.125rem;
        top: -1.25rem;
        padding-bottom: 5.5rem;
    }

    h2.app {
        display: none;
    }

    h2.web {
        display: block;
    }

    .specialization-image {
        flex: 1;
        max-width: 50%;
        height: auto;
    }

    .specialization-image img {
        position: relative;
        display: block;
        object-position: center center;
    }

    .specialization-text {
        flex: 1;
        max-width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .key-points {
        padding-left: 0;
        max-width: 90%;
        margin-top: 2rem;
    }

    .key-points-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.125rem;
        align-items: center;
    }

    .key-point {
        margin-bottom: 0;
    }

    .key-points a {
        display: block;
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
    }
}

/* Laptop version (1024px) */
@media (min-width: 1024px) {
    /* The Hero Section */
    .hero-content {
        gap: 2.5rem;
    }

    .hero-text {
        margin-bottom: 10%;
    }

    /*----------------------------------------*/

    /* The Services Section */
    .services {
        margin-top: -6rem;
    }

    .service-cards {
        gap: 2.5rem;
    }

    .service-card1, .service-card2, .service-card3 {
        max-width: 30%;
        flex-basis: 25%;
    }

    .service-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.625rem;
    }
    /*----------------------------------------*/

    /* The Specialization Section */
    .specialization {
        margin-top: 3.75rem;
    }

    .specializationWave {
        height: 112px;
    }

    .specialization-grid {
        gap: 2.5rem;
        padding-bottom: 6.5rem;
    }

    .key-points-grid {
        gap: 2.5rem;
    }
}

/* Larger laptop version (1280px) */
@media (min-width: 1280PX) {
    /* The Hero Section */
    .hero-content {
        gap: 3rem;
    }
    /*----------------------------------------*/

    /* The Services Section */
    .service-cards {
        gap: 3rem;
    }

    .service-icon {
        width: 94px;
        height: 94px;
        margin-bottom: 2rem;
    }
    /*----------------------------------------*/

    /* The Specialization Section */
    .specialization {
        margin-top: 4.188rem;
    }

    .specializationWave {
        height: 126px;
    }

    .specialization-grid {
        gap: 3rem;
        padding-bottom: 7.5rem;
    }

    .key-points-grid {
        gap: 3rem;
    }
}

/* Intermediate version of laptop and desktop (1600px) */
@media (min-width: 1600PX) {
    /* The Hero Section */
    .hero-content {
        gap: 3.5rem;
    }
    /*----------------------------------------*/

    /* The Services Section */
    .service-cards {
        gap: 3.5rem;
    }

    .service-icon {
        width: 110px;
        height: 110px;
        margin-bottom: 2.375rem;
    }
    
    /*----------------------------------------*/

    /* The Specialization Section */
    .specialization {
        margin-top: 4.688rem;
    }

    .specializationWave {
        height: 142px;
    }

    .specialization-grid {
        gap: 3.5rem;
        padding-bottom: 8.5rem;
    }

    .key-points-grid {
        gap: 3.5rem;
    }
}

/* Desktop version (1920px) */
@media (min-width: 1920PX) {
    /* The Hero Section */
    .hero-content {
        gap: 4rem;
    }
    /*----------------------------------------*/

    /* The Services Section */
    .service-cards {
        gap: 4rem;
    }

    .service-icon {
        width: 128px;
        height: 128px;
        margin-bottom: 2.75rem;
    }
    
    /*----------------------------------------*/

    /* The Specialization Section */
    .specialization {
        margin-top: 5.25rem;
    }

    .specializationWave {
        height: 160px;
    }

    .specialization-grid {
        gap: 4rem;
        padding-bottom: 9rem;
    }

    .key-points-grid {
        gap: 4rem;
    }
}