:root
{
    --bg: #0f0f0f;
    --sbg: #1f1f1f;
    --font: #f0f0f0;
    --sfont: #909090;
    --primary: #34B3F1;
    --primary2: #007eb9;
    font-size: 16px;
}

*
{
    margin: 0;
    padding: 0;
}

html
{
    scroll-behavior: smooth;
}

body
{
    background-color: var(--bg);
    font-family: "Inter", sans-serif;
    color: var(--font);
}

a
{
    color: inherit;
    text-decoration: none;
}

main
{
    margin: 2.5rem auto;
    width: 60rem;
    padding: 0 1rem;
}

/*** CLASS ***/

.colorFont
{
    color: var(--font);
}

.colorSFont
{
    color: var(--sfont);
}

.colorBg
{
    color: var(--bg);
}

.colorsBg
{
    color: var(--sbg);
}

.colorPrimary
{
    color: var(--primary);
}

.colorPrimaryGradient
{
    background-image: linear-gradient(to right, #34b3f1, #2aa5e3, #1f98d5, #128bc7, #007eb9);    -webkit-background-clip: text;
    color: transparent;
    background-clip: text;
}

.textSmall
{
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.025rem;
    font-weight: normal;
}

.textSmallBold
{
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.025rem;
    font-weight: 600;
}

.text
{
    font-size: 1.2rem;
    line-height: 1.5;
    letter-spacing: 0.025rem;
    font-weight: normal;
}

.textBold
{
    font-size: 1.2rem;
    line-height: 1.5;
    letter-spacing: 0.025rem;
    font-weight: 600;
}

.textSmallBig
{
    font-size: 1.5rem;
    line-height: 1.5;
    letter-spacing: 0.025rem;
}

.textSmallBigBold
{
    font-size: 1.5rem;
    line-height: 1.5;
    letter-spacing: 0.025rem;
    font-weight: 600;
}

.textMid
{
    font-size: 2rem;
    line-height: 1.3;
    letter-spacing: 0.045rem;
    font-weight: normal;
}

.textMidBold
{
    font-size: 2rem;
    line-height: 1.3;
    letter-spacing: 0.045rem;
    font-weight: 600;
}

.textMidBig
{
    font-size: 2.75rem;
    line-height: 1.3;
    letter-spacing: 0.045rem;
    font-weight: normal;
}

.textMidBigBold
{
    font-size: 2.75rem;
    line-height: 1.3;
    letter-spacing: 0.045rem;
    font-weight: 600;
}

.textBig
{
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: 0.06rem;
    font-weight: normal;
}

.textBigBold
{
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: 0.06rem;
    font-weight: 600;
}

.bentoItem
{
    padding: 2rem;
    border-radius: 2rem;
}

@media only screen and (max-width: 30rem)
{

    .textMid
    {
        font-size: 1.5rem;
    }

    .textMidBold
    {
        font-size: 1.5rem;
    }

    .textBig
    {
        font-size: 3rem;
    }
    
    .textBigBold
    {
        font-size: 3rem;
    }

    .bentoItem
    {
        padding: 2rem 0;
    }
}

.textSection
{
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    word-spacing: 0.5rem;
}

/*** NAV ***/

header
{
    position: sticky;
    z-index: 900;
    top: 1rem;
}

header > nav
{
    padding: 1rem 2rem;
    border-radius: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
}

header > nav > a 
{
    display: flex;
    align-items: center;
    gap: 1rem;
}

header > nav > a > img
{
    height: 1.5rem;
}

header > nav > ol
{
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 3rem;
}

header > nav > ol > li > a
{
    color: var(--sfont);
    transition: 0.5s;
}

header > nav > ol > li > a:hover
{
    color: var(--font);
}

.hamburger
{
    cursor: pointer;
    display: none;
}

.hamburger-item1, .hamburger-item2
{
    width: 1.5rem;
    height: 0.2rem;
    margin: 0.26rem 0;
    transition: 0.5s;
    background-color: var(--sfont);
}

.hamburger:hover > .hamburger-item1,
.hamburger:hover > .hamburger-item2
{
    background-color: var(--font);
}

.btnClose
{
    cursor: pointer;
    display: none;
}

.btnClose-1
{
    transform: translate(0, 0) rotate(-45deg);
    width: 1.5rem;
    height: 0.2rem;
    margin: 0.26rem 0;
    transition: 0.5s;
    background-color: var(--sfont);
}

.btnClose-2
{
    transform: translate(0, -0.46rem) rotate(45deg);
    width: 1.5rem;
    height: 0.2rem;
    margin: 0.26rem 0;
    transition: 0.5s;
    background-color: var(--sfont);
}

.btnClose:hover > .btnClose-1,
.btnClose:hover > .btnClose-2
{
    background-color: var(--font);
}

@media only screen and (max-width: 62rem)
{
    main
    {
        width: calc(100% - 2rem);
    }

    header > nav > ol
    {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 900;
        background-color: var(--bg);
        width: calc(100% - 8rem);
        height: calc(100vh - 8rem);
        padding: 4rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: end;
        gap: 1.5rem;
        font-size: 2rem;
        overflow: hidden;
    }

    .btnClose
    {
        display: block;
        position: absolute;
        top: 4rem;
        right: 3rem;
        z-index: 900;
    }

    .hamburger
    {
        display: block;
    }

}

@media only screen and (max-width: 22rem)
{
    header > nav > a > span
    {
        display: none;
    }
}


/*** TOP ***/

#top
{
    margin-top: 3.5rem;
    /* border: 1px solid var(--sbg); */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.topProfile
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.topAvatar
{
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1rem;
}

.topAvatarProfile
{
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    transition: 0.5;
}

.topAvatarProfile > img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.topAvatarProfile > img:hover
{
    transform: scale(1.2);
}

.topSocials
{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.topSocials > a
{
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    /* background: rgba(255, 255, 255, 0.02); */
    background-color: var(--sbg);
    position: relative;
    transition: 0.5s;
}

.topSocials > a:hover
{
    background-color: var(--primary2);
}

@media only screen and (max-width: 48rem)
{
    .topProfile
    {
        display: flex;
        flex-direction: column;
        align-items: start;
    }
}

@media only screen and (max-width: 30rem)
{
    #top
    {
        margin-top: 1.5rem;
    }
}


/*** ABOUT ***/

#about
{
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/*** WORK ***/

#work
{
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.workItem
{
    background-color: var(--sbg);
    padding: 1rem 1rem 2rem 1rem;
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.workItemImg
{
    border-radius: 1rem;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.workItemImg > img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workItemText
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.workItemTextText
{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.workItemText > a
{
    min-width: 3.5rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--font);
    color: var(--sbg);
    font-size: 1.5rem;
    transition: 0.5s;
}

.workItemText > a:hover
{
    background-color: var(--sbg);
    color: var(--font);
}

.workItemText > a > i
{
    transform: rotate(45deg);
}

@media only screen and (max-width: 48rem)
{
    .workItemText
    {
        flex-direction: column;
        align-items: start;
    }
}

/*** CONTACT ***/

#contact
{
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contactCont
{
    border-radius: 2rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.contactCont > a
{
    background-color: var(--primary2);
    transition: 0.5s;
    min-width: 100%;
    padding: 1rem 2rem;
    border-radius: 2rem;
}

.contactCont > a:hover
{
    background-color: var(--primary);
}

.contactSocials
{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.contactSocials > a
{
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: var(--sbg);
    position: relative;
    transition: 0.5s;
}

.contactSocials > a:hover
{
    background-color: var(--primary2);
}

@media only screen and (max-width: 22rem)
{

    .contactCont > a
    {
        padding: 1rem;
    }
}
