html {
    margin: 0;
    padding: 0;
}

/* HOME */
.home {
    height: 93vh;
    background-image: url(../img/Home/homeBG2.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.slogan-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.slogan {
    font-size: clamp(2rem, 4vw, 4rem);
    /* min: 2rem, max: 4rem, scales with 4vw */
    text-align: center;
}

.slogan-divider {
    width: 100%;
    max-width: 670px;
    padding: 0 30px;
    margin: auto;
}

.slogan-desc {
    text-align: center;
    font-size: clamp(1.2rem, 0.5vw, 2rem);
    font-weight: 300;
}

.service-button {
    background-color: #50B848;
    border: none;
    border-radius: 10px;
    padding: 8px 15px;
    font-size: clamp(1.2rem, 1.5vw, 3rem);
    font-weight: 500;
    display: block;
    margin: 50px auto;
}

.service-button a {
    text-decoration: none;
    color: white;
}

.service-button:hover {
    cursor: pointer;
    transition: transform .2s;
    transform: scale(1.1);
    background-color: #3E8E38;
}

/* SERVICES */
.service-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.service-mobile-title {
    display: none;
    font-size: 35px;
    font-weight: 600;
    text-align: center;
}

.service-title {
    position: absolute;
    background-color: white;
    width: 180px;
    height: 180px;
    margin-top: 250px;
    margin-left: -92px;
    border-radius: 100%;
    z-index: 2;
}

.service-title p {
    font-size: 33px;
    text-align: center;
    padding-top: 8px;
    color: #50B848;
    font-weight: 500;
}

.row a {
    text-decoration: none;
}

.service-card {
    color: white;
    width: 550px;
    height: 330px;
    margin-bottom: 18px;
    border-radius: 20px;
    /* middle spacing */
    padding-left: 75px;
    padding-top: 55px;
    cursor: pointer;
}

.service-card:hover {
    transition: 0.2s;
    transform: scale(1.03);
}

.web-dev-card {
    background-image: url(../img/Home/Services/web-dev.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.system-dev-card {
    background-image: url(../img/Home/Services/system-dev.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.mobile-dev-card {
    background-image: url(../img/Home/Services/mobile-dev.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.support-maintenance-card {
    background-image: url(../img/Home/Services/support-maintenance.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.service-name {
    font-size: 28px;
    font-weight: 500;
    color: white;
}

.service-item {
    font-size: 23px;
    font-weight: 400;
    color: white;
}

/* STORY */
.story-stats {
    margin: 110px 0;
}

.story {
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-container {
    gap: 50px;
    display: flex;
    align-items: center;
}

.story-divider {
    border-left: 2px solid;
    height: 250px;
}

.story-title {
    font-size: clamp(2rem, 2.8vw, 4rem);
    width: 100%;
    max-width: 100px;
    font-weight: 600;
}

.story-text {
    max-width: 850px;
    font-weight: 500;
    font-size: clamp(1.2rem, 2vw, 2.5rem);
    text-align: justify;
    padding: 0 10px;
}

.story-link {
    font-weight: 900;
    color: #50B848;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 200px;
    text-align: center;
}

.served-clients,
.delivered-projects {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
}

.client-number,
.project-number {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #50B848;
    font-weight: bold;
}

/* WHY US */
.why-us-container {
    display: block;
    margin: 0 auto;
    width: 90%;
}

.why-us-container {
    display: flex;
    justify-content: center;
}

.desktop-why-us-container {
    display: flex;
    align-items: center;
}

.desktop-why-us-title-container {
    display: flex;
    justify-content: center;
    background-color: #50B848;
    width: 300px;
    height: 300px;
    border-radius: 100%;
    box-shadow: -20px 15px lightgray;
}

.desktop-why-us-title {
    font-size: 50px;
    font-weight: 600;
    color: white;
    text-shadow: -3px 5px #3E8E38;
}

.mobile-why-us-title-container {
    display: none;
    text-align: center;
    font-size: 35px;
    font-weight: 600;
}

.reason,
.reason-middle {
    display: flex;
    gap: 50px;
    margin-bottom: 40px;
}

.reason-middle {
    margin-left: 50px;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 40px;
    font-size: 70px;
    color: #50B848;
}

.reason-title {
    font-size: 35px;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 3px;
}

.reason-text {
    font-size: 25px;
}

/* CLIENTS */
.client {
    text-align: center;
    max-width: 900px;
    width: 100%;
    padding: 10px;
    margin: 50px auto 0 auto;
    position: relative;
}

.client-title {
    font-size: 35px;
    font-weight: 600;
}

.logo-container {
    overflow: hidden;
    margin: auto;
    position: relative;
}

.logo-slideshow {
    display: flex;
    align-items: center;
    overflow-x: auto;
}

.logo-slideshow::-webkit-scrollbar {
    display: none;
}

.slide {
    display: flex;
    width: max-content;
    animation: slide-animation 15s infinite;
}

.slide img {
    width: 140px;
    /* Adjust size */
    height: auto;
    object-fit: contain;
    margin: 0 20px;
    /* Space between logos */
}

/* Keyframes to slide one logo at a time */
@keyframes slide-animation {

    0%,
    5% {
        transform: translateX(0);
    }

    10%,
    15% {
        transform: translateX(-180px);
    }

    20%,
    25% {
        transform: translateX(-360px);
    }
/*
    30%,
    35% {
        transform: translateX(-540px);
    }

    40%,
    45% {
        transform: translateX(-720px);
    }

    50%,
    55% {
        transform: translateX(-900px);
    }

    60%,
    65% {
        transform: translateX(-1080px);
    }

    70%,
    75% {
        transform: translateX(-1260px);
    }

    80%,
    85% {
        transform: translateX(-1440px);
    }

    90%,
    95% {
        transform: translateX(-1620px);
    }
*/
    100% {
        transform: translateX(0);
    }
}

/* MOBILE LAYOUT */
@media (max-width: 1150px) {

    /* SERVICES */
    .service-mobile-title {
        display: block;
        font-weight: 600;
        font-size: 30px;
    }

    .service-title-container {
        display: none;
    }

    .service-container {
        display: block;
    }

    .service-card {
        height: 250px;
        width: 85%;
        max-width: 1000px;
        display: block;
        margin: 20px auto;
        padding: 35px 0;
    }

    .service-text-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .service-name {
        font-size: clamp(23px, 3vw, 28px);
        text-align: center;
        margin: 0;
    }

    .service-item {
        font-size: clamp(18px, 3vw, 23px);
    }

    /* WHY US */
    .desktop-why-us-title-container {
        display: none;
    }

    .mobile-why-us-title-container {
        display: block;
    }

    .icon {
        font-size: 50px;
        margin-left: 10px;
    }

    .reason,
    .reason-middle {
        border: 2px solid #50B848;
        border-radius: 200px;
        padding: 0 15px;
    }

    .reason-middle {
        margin-left: 0;
    }

    .reason-text-container {
        margin-left: -35px;
    }

    .reason-title {
        font-size: 20px;
    }

    .reason-text {
        font-size: 18px;
        margin-top: 0;
    }
}

@media (max-width: 950px) {

    /* SERVICES */
    .story-container {
        display: block;
        text-align: center;
    }

    .story-title {
        display: inline;
    }

    .story-divider {
        border-left: none;
        border-bottom: 2px solid;
        height: 0;
        width: 80%;
        margin: 20px auto;
    }

    .story-text {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .stats {
        gap: 45px;
        padding: 15px 50px 0 50px;
    }

    .client-title {
        font-size: 30px;
    }

    .slide img {
        width: 100px;
    }
}