.home {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.home .intro {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10rem 5rem 10rem 10rem;
    text-align: justify;
}

.home .intro p {
    font-size: 2rem;
    font-weight: 500;
}

.home .hero {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10rem 10rem 10rem 5rem;
}

.home .hero img {
    width: 70%;
    border: 1rem solid #fff;
    border-radius: 0.3rem;
    outline: 1rem solid #000;
}

.experiences {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.experiences .arrow {
    transform: translateY(-1.5rem) rotate(5deg);
    width: 5rem;
}

.experiences .title {
    font-family: var(--custom-font), system-ui;
    font-size: var(--title-font-size);
    background-color: #FFC9F0;
    box-shadow: 0.5rem 0.5rem #00000030;
    height: 8rem;
    display: flex;
    align-items: center;
}

.experiences ul {
    width: 80%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    justify-items: left;
    align-items: center;
}

.experiences ul li {
    min-height: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experiences ul li div {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    margin: 0 0 0 1rem;
}

.experiences ul li .index {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--custom-font), system-ui;
    font-size: 4.8rem;
    width: 9.5rem;
    height: 9.5rem;
    border-radius: 0.6rem;
}

.experiences ul li div .company {
    font-size: 3.3rem;
    font-weight: 600;
}

.experiences ul li div .description {
    font-size: 1.6rem;
}

.experiences ul li div .period {
    font-size: 1.6rem;
    color: #7f7f7f;
}

.experiences ul li:nth-child(1) .index {
    background-color: #FF905C;
    border: 0.2rem solid #C74608;
}

.experiences ul li:nth-child(2) .index {
    background-color: #C77ADB;
    border: 0.2rem solid #87329C;
}

.experiences ul li:nth-child(3) .index {
    background-color: #9DDCFF;
    border: 0.2rem solid #5AB5E8;
}

.experiences ul li:nth-child(4) .index {
    background-color: #FF905C;
    border: 0.2rem solid #C74608;
}

.contact {
    width: 100%;
    height: 30rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
    background-color: #000;
}

.contact .logo {
    display: flex;
}

.contact .nav {
    display: flex;
}

.contact .nav a {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin: 0 1rem 0 1rem;
}

.contact .links {
    display: flex;
}

.contact .links a {
    margin: 0 1.5rem 0 1.5rem;
}

@media (orientation: portrait) {
    .home {
        flex-direction: column-reverse
    }

    .home .intro {
        width: 90%;
        padding: 0;
        margin: 2rem 2rem 5rem 2rem;
    }

    .home .hero {
        width: 95%;
        padding: 0;
        margin: 5rem 2rem 4rem 2rem;
    }

    .experiences ul {
        display: flex;
        flex-direction: column;
    }

    .experiences ul li {
        min-height: 14rem;
    }

    .experiences ul li .index {
        min-width: 8rem;
        min-height: 8rem;
        max-width: 8rem;
        max-height: 8rem;
        font-size: 4rem;
    }

    .experiences ul li div .company {
        font-size: 2rem;
    }

    .experiences ul li div .description {
        font-size: 1.4rem;
    }

    .experiences ul li div .period {
        font-size: 1.4rem;
    }

    .contact {
        height: 50rem;
        display: flex;
        flex-direction: column;
    }

    .contact .nav {
        display: flex;
        flex-direction: column;
    }

    .contact .nav a {
        margin: 1rem auto 1rem auto;
    }

    .contact .links {
        width: 80%;
    }

    .contact .links a {
        margin: 2rem auto 2rem auto;
    }

    .contact .logo {
        margin: auto;
    }
}