/* #region Main Section */

.main-section header {
    margin-bottom: 0;
}

.main-section .container {
    max-width: 1200px;
}

/* #endregion */

/* #region Work Marquee */
.work-marquee {
    overflow: hidden;
    width: 100%;
    padding-top: 0;
}

.work-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    animation: work-scroll var(--duration, 28s) linear infinite;
}

@keyframes work-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(calc(-1 * var(--shift, 0px)), 0, 0);
    }
}

.work-card {
    width: 220px;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(27, 27, 27, 0.10);
    background: rgba(255, 255, 255, 0.2);
    flex: 0 0 auto;
}

.work-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* #endregion */

/* #region About Me */

.about-me {
    background-color: var(--background-secondary);
    border-radius: 32px;
    margin: 0 auto;
    max-width: 1320px;
    padding: 60px 20px;
}

.about-me__right-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.about-me__img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(27, 27, 27, 0.10);
    object-fit: cover;
    display: block;
}

/* #endregion */

/* #region Services Grid */

.services-grid__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.services-grid__card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.4);
    height: 300px;
}

.services-grid__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.services-grid__card--text {
    background: var(--card-cream);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.services-grid__card--sand {
    background: var(--card-sand);
}

.services-grid__card--sage {
    background: var(--card-sage);
}

.services-grid__card--blush {
    background: var(--card-blush);
}

.services-grid__card-title {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.services-grid__card-text {
    font-size: 16px;
    line-height: 1.65;
    opacity: 0.9;
    margin: 0;
    margin-top: auto;
}

@media (hover: hover) {
    .services-grid__card--text:hover {
        transform: translateY(-2px);
        transition: transform 200ms ease;
    }
}

/* #endregion */

/* #region Responsive */

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .about-me {
        margin: 0 20px;
    }

    .about-me .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 24px;
        row-gap: 16px;
        align-items: start;
        margin-left: 0;
        margin-right: 0;
    }

    .about-me .row>[class*="col-"] {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
        padding-left: 0;
        padding-right: 0;
    }

    .about-me .row>.col-12:first-child {
        grid-column: 1 / -1;
    }

    .about-me .row>.col-12.col-md-6 {
        grid-column: 1;
        grid-row: 2 / span 2;
    }

    .about-me__left-text {
        grid-column: 2;
        grid-row: 2;
    }

    .about-me__right-text {
        grid-column: 2;
        grid-row: 3;
    }

    .about-me__left-text p,
    .about-me__right-text p {
        text-align: left !important;
    }

    .about-me__img {
        width: 100%;
        height: auto;
        display: block;
    }

    .about-me__tablet-right {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .about-me__tablet-right p {
        text-align: left !important;
        margin-bottom: 0;
    }

    .about-me__tablet-right h3 {
        display: block !important;
        margin-bottom: 8px;
    }

    .services-grid__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .services-grid__card {
        height: 250px;
    }
}

/* Mobile */
@media (max-width: 576px) {

    .work-track {
        animation-duration: 36s;
    }

    .work-card {
        width: 170px;
        border-radius: 16px;
    }

    .about-me {
        border-radius: 0;
    }

    .about-me header {
        margin-bottom: 0px;
    }

    .about-me__left-text {
        margin-bottom: 20px;
    }

    .about-me__right-text {
        margin-top: 20px;
    }

    .services {
        padding-bottom: 0;
    }

    .services-grid__list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .services-grid__card {
        height: auto;
        border-radius: 0;
    }

    .services-grid__card-text {
        margin-top: 0;
    }
}

/* #endregion */