@import url('global.css');

/* ----- HERO SECTION ----- */
.hero-section, 
.hero-section .container {
    text-align: center;
}

.hero-section .container {
    padding-top: 200px;
}

.hero-title {
    font-size: 44px;
    font-weight: 600;
}

.hero-section p {
    margin: 24px 0;
}

.hero-img {
    /* border: 1px solid black; */
    position: relative;
}

.hero-section .img-foreground {
    /* border: 1px solid red; */
    position: absolute;
    left: -50vw;
    bottom: 0;
    z-index: 1;
    width: 200vw;
}

.hero-section .img-midground {
    /* border: 1px solid blue; */
    position: relative;
    height: 70vh;
}

/* ----- ABOUT SECTION ----- */
.about-section,
.project-section {
    background: #1e1e1e;
    color: #cfcfcf;
}

.stats {
    flex-direction: column;
    margin-top: 48px;
    gap: 20px;
}

.stats-card h3 {
    justify-content: space-between;
    align-items: end;
    margin-bottom: 12px;
}

.stats-card .h-xs {
    /* border: 1px solid lime; */
    width: min-content;
}

/* ----- PROJECT SECTION ----- */
.project-section {
    text-align: center;
}

.project-section .btn-primary {
    margin: 24px 0 80px 0;
}

.slider-container {
    /* border: 1px solid red; */
    padding: 16px 0;
    text-align: left;
}

.slider {
    /* border: 1px solid yellow; */
    overflow-x: scroll;
    scrollbar-width: none;
    gap: 16px;
    padding: 0 16px
}

.project-section .card-img {
    background: #303030;
    aspect-ratio: 5 / 4;
    width: 85vmin;
}

.card-info {
    margin-top: 8px;
}

.card-info h3 {
    margin-bottom: 4px;
}

.card-info h3,
.card-info p {
    /* border: 1px solid red; */
    max-width: 240px;
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
}

/* ----- SERVICE SECTION ----- */
.service-section {
    background: #eff1f3;
}

.service-section .title {
    margin-bottom: 32px;
}

.service-list {
    flex-direction: column;
    gap: 24px;
}

.service-card {
    /* border: 1px solid blue; */
    flex-direction: column;
    gap: 16px;
}

.service-info h3 {
    margin-bottom: 8px;
}

/* ----- PRODUCT SECTION ----- */
.product-section {
    text-align: center;
}

.product-section .title {
    margin-bottom: 32px;
}

.product-list {
    text-align: left;
    grid-template-columns: 1fr;
    gap: 16px;
}

.product-section .card-img {
    background: #e8eaeb;
    text-align: center;
    padding-top: 36px;
}

.product-img {
    /* border: 1px solid red; */
    max-width: 224px;
}

.product-info {
    /* border: 1px solid blue; */
    background: #f1f3f4;
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 4px;
}

.product-info h3,
.product-info p {
    max-width: 280px;
}

.product-section .btn-primary {
    margin-top: 32px;
}

/* ===== | MEDIUM SCREEN | ===== */
@media screen and (min-width: 576px) {
    /* ----- HERO SECTION ----- */
    .hero-section .img-midground {
        height: 95vh;
    }

    .hero-section .img-foreground {
        width: 100vw;
        left: 0;
    }

    /* ----- ABOUT SECTION ----- */
    .about-section .container {
        text-align: center;
    }

    .about-section .title {
        max-width: 832px;
        margin-inline: auto;
    }

    .stats {
        /* border: 1px solid red; */
        flex-direction: row;
        justify-content: space-between;
        max-width: 580px;
        margin-inline: auto;
    }

    .stats-card h3 {
        gap: 48px;
    }

    /* ----- PROJECT SECTION ----- */
    .slider {
        gap: 32px;
        padding: 0 32px
    }

    .project-section .card-img {
        aspect-ratio: 4 / 3;
    }

    /* ----- SERVICE SECTION ----- */
    .service-section {
        text-align: center;
    }

    .service-section .title {
        max-width: 360px;
        margin-inline: auto;
    }

    .service-card {
        margin: 0 auto;
        max-width: 457px;
    }

    /* ----- PRODUCT SECTION ----- */
    .product-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .product-img {
        width: 20vw;
    }
}

/* ===== | LARGE SCREEN | ===== */
@media screen and (min-width: 992px) {
    /* ----- HERO SECTION ----- */
    .hero-title {
        font-size: 64px;
    }

    .hero-section p {
        max-width: 480px;
        margin-inline: auto;
    }

    /* ----- SERVICE SECTION ----- */
    .service-section {
        text-align: left;
    }

    .service-section .container {
        display: flex;
        justify-content: space-between;
    }

    .service-section .title,
    .service-card {
        /* border: 1px solid red; */
        margin-inline: 0;
    }

    .service-card {
        flex-direction: row;
        gap: 28px;
    }
}