:root {
    --icon-slide-end: 144px;
}

.featured-box {
    display: flex;
    align-items: center;
    gap: 64px;
    min-height: 100vh;
    padding-top: 110px;
}

.featured-text {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 52%;
}

.hello {
    margin-bottom: -8px;
    color: var(--text-color);
    font-size: 48px;
    font-weight: 500;
}

.featured-name {
    margin-block: 18px 10px;
    color: var(--first-color);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
}

.text-info {
    max-width: 620px;
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.7;
}

.featured-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 48%;
    gap: 20px;
}

.panel-card {
    min-height: 190px;
    padding: 28px;
    border: 2px solid #FFF;
    border-radius: 20px;
    background: transparent;
    box-shadow: 1px 8px 10px 2px var(--first-shadow);
}

.panel-card.accent {
    grid-row: span 2;
    display: flex;
    justify-content: center;
    flex-direction: column;
    background: var(--first-color);
    color: #FFF;
}

.panel-number {
    display: block;
    margin-bottom: 10px;
    color: inherit;
    font-size: 54px;
    font-weight: 800;
}

.panel-card:not(.accent) .panel-number {
    color: var(--first-color);
}

.panel-card p {
    color: inherit;
    font-size: 16px;
    line-height: 1.5;
}

.top-header {
    margin-bottom: 4em;
}

.top-header h1 {
    font-size: 34px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 260px;
    padding: 28px 22px;
    border: 2px solid #FFF;
    border-radius: 20px;
    background: transparent;
    color: var(--text-color);
    box-shadow: 1px 8px 10px 2px var(--first-shadow);
    cursor: pointer;
    overflow: hidden;
    text-align: center;
}

.project-box::after {
    content: "";
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--first-color);
    transition: 0.4s;
    z-index: 0;
}

.project-box:hover::after,
.project-box:focus-visible::after {
    bottom: 0;
}

.project-box i,
.project-box h2,
.project-box p {
    position: relative;
    z-index: 1;
}

.project-box i {
    margin-bottom: 24px;
    color: var(--first-color);
    font-size: 48px;
}

.project-box h2 {
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
}

.project-box p {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}

.project-box:hover i,
.project-box:hover h2,
.project-box:hover p,
.project-box:focus-visible i,
.project-box:focus-visible h2,
.project-box:focus-visible p {
    color: #FFF;
}

.skill {
    max-width: 760px;
    margin-inline: auto;
    padding: 18px 24px;
}

@media only screen and (max-width: 1120px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 900px) {
    .featured-box {
        flex-direction: column;
        justify-content: center;
        gap: 36px;
        min-height: auto;
        padding-block: 130px 50px;
    }

    .featured-text,
    .featured-panel {
        width: 100%;
    }

    .hello {
        font-size: 38px;
    }

    .featured-name {
        font-size: 44px;
    }
}

@media only screen and (max-width: 620px) {
    .hello {
        font-size: 32px;
    }

    .featured-name {
        font-size: 36px;
    }

    .project-grid,
    .games-grid,
    .featured-panel {
        grid-template-columns: 1fr;
    }

    .panel-card.accent {
        grid-row: auto;
    }

    .project-box {
        min-height: 230px;
    }
}
