:root {
    --gap: 4rem;
    --swiper-theme-color: #EEE;
}

html {
    font-size: 10px;
}

body {
    font-size: 2rem;
    font-family: "Lato", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

#fp-nav ul li a span,
.fp-slidesNav ul li a span {
    background-color: #EEE;
    border: 2px solid #072144;
}

.swiper,
.section,
#one,
#two {
    width: 100vw;
    height: 100svh;
}

#one {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #072144;
}

#two {
    padding: var(--gap);
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: var(--gap);
    box-sizing: border-box;
    background-color: #EEE;
}

.card {
    background-color: #072144;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;

    color: #EEE;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: capitalize;
    overflow: hidden;
    cursor: pointer;
}

.card>img {
    height: 50%;
    transform: translateY(50%);
    transition: transform 100ms linear;
}

.card:hover>img {
    transform: translateY(40%);
}

/* row col row col */
#linkedin {
    grid-area: 1 / 1 / 4 / 5
}

#dribbble {
    grid-area: 1 / 5 / 4 / 7
}

#github {
    grid-area: 1 / 7 / 3 / 9
}

#resume {
    grid-area: 4 / 1 / 6 / 3;
}

#tableau {
    grid-area: 4 / 3 / 6 / 5;
}

#dewdate {
    grid-area: 4 / 5 / 6 / 7;
}

#photography {
    grid-area: 3 / 7 / 6 / 9;
}

#name {
    max-width: 80%;
}

@media screen and (max-width: 768px) {

    #one>img {
        max-width: 80%;
        margin-top: var(--gap);
    }

    #one {
        box-sizing: border-box;
    }
}

@media only screen and (max-width: 600px) {

    #two {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    #linkedin,
    #dribbble,
    #github,
    #resume,
    #tableau,
    #dewdate,
    #photography {
        grid-area: unset;
    }

    .card {
        flex-direction: row;
        align-content: center;
        justify-content: space-between;
        padding-inline: var(--gap);
    }

    .card>img {
        height: 50%;
        transform: translateY(0%);
        transition: transform 100ms linear;
    }

    .card:hover>img {
        transform: translateY(0%);
    }
}