/* intro */

.intro {
    height: calc(100vh - 112px);
    grid-template-rows: calc(100vh - 112px - 85px - 30px) min-content;
    row-gap: unset;
    padding-top: 112px;

    .title {
        grid-column: 1/8;
        grid-row: 1/2;
        display: flex;
        flex-direction: column;
        justify-content: center;

        h1 {
            line-height: 120%;
        }

        div {
            display: flex;

            p {
                text-transform: uppercase;
                color: var(--color-accent-secondary);

                &:first-child {
                    margin-right: 39px;
                }

                &:last-child {
                    margin-left: 34px;
                }
            }
        }
    }

    .image {
        grid-column: 5/13;
        grid-row: 1/2;
        display: flex;
        align-items: center;
        background-image: url("../assets/images/main/intro/astronaut.png");
        background-repeat: no-repeat;
        background-size: contain;
        background-position: right;
        transform: translateX(150px);
        z-index: -1;
    }

    .rocket {
        grid-column: 1/13;
        grid-row: 2/3;

        * {
            margin: 0 auto;
            width: max-content;
        }

        p {
            color: var(--color-text-secondary);
            margin-top: 15px;
        }
    }

    @media (max-width: 1350px) {
        .image {
            transform: translateX(50px);
        }
    }

    @media (max-width: 767px) {
        height: auto;
        padding-top: 106px;
        grid-template-rows: 400px min-content;

        .title,
        .rocket,
        .image {
            grid-column: 1/7;
        }

        .image {
            grid-row: 1/2;
            transform: none;
            justify-content: center;
            background-position: center;
        }

        .title {
            grid-row: 2/3;

            h1 {
                text-align: center;

                span {
                    display: none;
                }
            }

            div {
                width: 100%;
                text-align: center;
                align-items: center;
                display: flex;
                justify-content: space-between;
                margin-top: 16px;
            }
        }

        .rocket {
            display: none;
        }
    }
}

/* section */

section.content {
    margin-top: 192px;

    h2 {
        text-align: center;
        margin-bottom: 88px;

        @media all and (max-width: 767px) {
            margin-bottom: 54px;
        }
    }
}

/* services */

#services {
    scroll-margin-block-start: 120px;
}

.services {
    background: radial-gradient(
            48.62% 45.5% at 50% 50%,
            rgba(225, 104, 154, 0.15) 0%,
            rgba(141, 162, 243, 0.063) 49.1%,
            rgba(23, 23, 23, 0) 100%
    );
    position: relative;

    .circle {
        position: absolute;
        top: -140px;
        left: -530px;

        @media all and (max-width: 767px) {
            top: 10%;
            right: 50%;
            left: unset;
        }
    }
}

/* card */

.card {
    background: rgba(255, 255, 255, 0.01);
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(7px);
    border-radius: 33px;
    padding: 63px 55px;
    display: flex;
    flex-direction: column;
    align-items: center;

    img {
        min-height: 99px;
    }

    h3 {
        margin-top: 63px;
        margin-bottom: 16px;
    }

    h3,
    p {
        text-align: center;
    }

    &:nth-of-type(1) {
        grid-column: 1/5;
    }

    &:nth-of-type(2) {
        grid-column: 5/9;
    }

    &:nth-of-type(3) {
        grid-column: 9/13;
    }

    @media (max-width: 767px) {
        padding: 46px 30px;

        &:nth-of-type(1) {
            grid-column: 1/7;
        }

        &:nth-of-type(2) {
            grid-column: 1/7;
        }

        &:nth-of-type(3) {
            grid-column: 1/7;
        }
    }
}

/* about */

#about-us {
    scroll-margin-block-start: 120px;
}

.about-us {
    margin-top: -80px;

    .header5 {
        text-align: left;
        margin-bottom: 0;
    }

    .rocket-img {
        width: 100%;
        height: auto;
    }

    > div {
        &:first-child {
            grid-column: 1/7;
        }

        &:last-child {
            grid-column: 7/13;
            display: flex;
            flex-direction: column;
            justify-content: center;

            .text {
                margin-top: 16px;
                color: var(--color-text-secondary);
            }

            .stats {
                display: flex;
                justify-content: space-between;
                margin-top: 64px;
                width: 100%;

                .swiper-slide {
                    width: 33%;
                }

                @media (max-width: 767px) {
                    text-align: center;

                    & > div {
                        padding: 4px;
                    }
                }
            }

            @media (max-width: 767px) {
                grid-column: 1/7;

                h2,
                .text {
                    text-align: center;
                }
            }
        }
    }
}

/* projects */

#projects {
    scroll-margin-block-start: 120px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;

    .project-card {
        grid-column: span 6;
        background: linear-gradient(
                145deg,
                rgba(255, 255, 255, 0.08),
                rgba(255, 255, 255, 0.03)
        );
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 24px;
        overflow: hidden;
        display: grid;
        grid-template-rows: auto 1fr;
        backdrop-filter: blur(8px);
    }

    .project-card__media {
        aspect-ratio: 16 / 10;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.35s ease;
        }
    }

    .project-card__content {
        padding: 22px 22px 24px;

        h3 {
            margin-bottom: 12px;
        }

        p {
            color: var(--color-text-secondary);
        }
    }

    .project-card__tags {
        margin: 0 0 14px;
        padding: 0;
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;

        li {
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 999px;
            padding: 6px 10px;
            color: var(--color-text-primary);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
    }

    .project-card:hover .project-card__media img {
        transform: scale(1.04);
    }

    @media (max-width: 1024px) {
        .project-card {
            grid-column: span 12;
        }
    }

    @media (max-width: 767px) {
        gap: 16px;

        .project-card {
            border-radius: 18px;
        }

        .project-card__content {
            padding: 16px;
        }
    }
}

/* blog */

.blog-hero {
    min-height: 360px;
    align-content: center;
    padding-top: 112px;
    padding-bottom: 32px;

    h1 {
        text-align: center;
        margin-bottom: 14px;
    }

    p {
        text-align: center;
        max-width: 680px;
        margin: 0 auto;
    }

    @media (max-width: 767px) {
        min-height: 300px;
        padding-top: 106px;
    }
}

#blog-list {
    margin-top: 88px;
    padding-bottom: 80px;

    @media (max-width: 767px) {
        margin-top: 56px;
        padding-bottom: 56px;
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    grid-column: span 6;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(
            160deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02)
    );
    backdrop-filter: blur(7px);

    .blog-card__link {
        display: grid;
        grid-template-rows: auto 1fr;
        height: 100%;
    }

    .blog-card__media {
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

    .blog-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }

    .blog-card__content {
        padding: 18px 20px 22px;
    }

    h3 {
        margin: 0 0 8px;
        line-height: 1.2;
    }

    .blog-card__date {
        color: var(--color-accent-secondary);
        margin: 0 0 12px;
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .blog-card__excerpt {
        color: var(--color-text-secondary);
        margin: 0;
    }

    &:hover .blog-card__media img {
        transform: scale(1.04);
    }
}

@media (max-width: 1024px) {
    .blog-card {
        grid-column: span 12;
    }
}

/* blog post */

.blog-post-page main {
    width: auto;
    max-width: 100%;
    margin: 0 2rem;
    padding-top: 176px;
}

@media (max-width: 767px) {
    .blog-post-page main {
        width: auto;
        margin: 0 1rem;
        padding-top: 124px;
    }
}

.blog-post-page .hero-image {
    width: 100%;
}

.blog-post-page .hero-image__media {
    width: 100%;
    max-width: 1020px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

.blog-post-page .prose {
    width: 720px;
    max-width: calc(100% - 2em);
    margin: auto;
    padding: 1em;
    color: rgb(var(--gray-dark));
}

.blog-post-page .prose picture {
    display: block;
    width: 100%;
    max-width: 1020px;
    margin: 1.25rem auto;
}

.blog-post-page .prose img {
    width: 100%;
    max-width: 1020px;
    height: auto;
    display: block;
    margin: 1.25rem auto;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

.blog-post-page .title {
    margin-bottom: 1em;
    padding: 1em 0;
    text-align: center;
    line-height: 1;
}

.blog-post-page .title h1 {
    margin: 0 0 0.5em 0;
}

.blog-post-page .date {
    margin-bottom: 0.5em;
    color: rgb(var(--gray));
}

.blog-post-page .last-updated-on {
    font-style: italic;
}

.blog-post-page .blog-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: border-color 0.25s ease,
    transform 0.25s ease,
    background-color 0.25s ease;
    background: rgba(255, 255, 255, 0.04);
}

.blog-post-page .blog-nav-link:hover {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.blog-post-page .blog-nav-link::before {
    content: "\2190";
    font-size: 1rem;
    line-height: 1;
}

.blog-post-page .blog-nav-link.bottom {
    margin: 28px auto 0;
}

.blog-post-page .blog-nav-wrap {
    width: 720px;
    max-width: calc(100% - 2em);
    margin: 0 auto;
    padding: 0 1em;
    display: flex;
    justify-content: center;
}

/* If you already have a design token, replace this variable */
:root {
    --color-text-primary: #fff;
}

@keyframes example {
    0% {
        background-position: -100% -100%;
    }
    100% {
        background-position: 100% 100%;
    }
}

button.btn {
    background: radial-gradient(
            35.83% 70.83% at 0% 0%,
            rgba(93, 52, 69, 0.15) 0%,
            rgba(161, 183, 254, 0) 100%
    ),
    linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0) 100%
    ),
    #111;
    border-radius: 37.5px;
    color: var(--color-text-primary);
    text-transform: uppercase;
    font-weight: 700;
    padding-top: 16px;
    padding-bottom: 16px;
    border: 2px solid transparent;
    position: relative;
    background-clip: padding-box;
}

button.btn::after {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 37.5px;
    background: linear-gradient(
            172.29deg,
            rgba(241, 161, 254, 0.3) 6.23%,
            rgba(161, 183, 254, 0) 94.36%
    ),
    linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(170, 170, 170, 0.04) 100%
    );
}

button.btn:hover {
    background: linear-gradient(
            180deg,
            rgba(194, 64, 118, 0.25) 0%,
            rgba(0, 40, 170, 0) 100%
    ),
    linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0) 100%
    ),
    #111;
    background-clip: padding-box;
    background-size: 100% 100%;
}

button.btn:hover::after {
    background: none;
}
