:root {
    --generalFont: 'Inter', sans-serif;
    --mainFont: 'Share Tech', sans-serif;

    --dark-blue: #071E3D;
    --blue: #1F4287;
    --aqua-blue: #278EA5;
    --aqua: #21E6C1;
    --white: #EAF6F6;
    --red: #E64848;
}

/*----------------------------*/
/*---------- Global ----------*/
/*----------------------------*/

html {
    box-sizing: border-box;
    font-size: 62.5%; /* 1rem = 10px */
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: var(--generalFont);
    font-size: 2rem;
    line-height: 2;
    color: var(--white);
}

html,
body {
    margin: 0;
    height: 100%;
    width: 100%;
    padding: 0;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.8rem;
}

img {
    max-width: 100%;
}

ul {
    margin: 0;
}

section {
    padding: 3rem;
    background-color: var(--dark-blue);
    width: 100%;
    min-height: 100vh;
    scroll-snap-align: start;
}


/*----------------------------*/
/*--------- Utilities --------*/
/*----------------------------*/

.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;
}

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

.top-padding {
    padding-top: 5rem;
}

.color-aquablue {
    color: var(--aqua-blue);
}

.color-aqua {
    color: var(--aqua);
}

.main-font {
    font-family: var(--mainFont);
}

.font-light {
    font-weight: 300;
}


/*----------------------------*/
/*------- Main Section -------*/
/*----------------------------*/

.homepage-bg {
    background: linear-gradient(rgba(7, 30, 61, 1), rgba(31, 66, 135, 0.5)), url(../images/bg.png) no-repeat; /*cover.webp*/
    background-size: cover;
    background-position: center center;
}

.wrapper {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}


/*----------------------------*/
/*--------- Nav menu ---------*/
/*----------------------------*/

.nav {
    display: flex;
    justify-content: center;
    font-family: var(--mainFont);
    font-size: 2.5rem;
    margin: 3rem;
}

.nav__link {
    color: var(--aqua);
    text-align: center;
    margin: 2rem;
}

.nav__link:hover {
    color: var(--white);
    text-shadow: 0 0 7px rgb(190 254 194), 0 0 122px rgb(173 236 175);
    transition: all .3s ease-in-out;
}

.header-text {
    text-align: center;
    margin-top: 15rem;
}

.contact-links {
    display: flex;
    justify-content: center;
}

.contact__icon {
    margin: 2rem;
}


/*----------------------------*/
/*--------- Sections ---------*/
/*----------------------------*/

.section__title {
    text-align: center;
    font-family: var(--mainFont);
    color: var(--aqua);
}

#section-aboutme, #section-experience{
    padding: 3rem 0rem;
}

/*----------------------------*/
/*----- About Me Section -----*/
/*----------------------------*/

.section__description {
    text-align: center;
    margin: 2rem;
}


/*----------------------------*/
/*---- Experience Section ----*/
/*----------------------------*/

.resume__container {
    text-align: center;
    margin: 2rem;
    cursor: pointer;
}

.experience-card__date  {
    display: none;
}

.experience-card__top {
    background-color: var(--blue);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem;
    margin: 1rem;
}

.card-left {
    display: flex;
}

.circle {
    width: 2rem;
    height: 2rem;
    margin-right: 1rem;
    border: 2px solid var(--dark-blue);
    border-radius: 50%;
}

.circle__red {
    background-color: var(--red);
}

.circle__aqua {
    background-color: var(--aqua);
}

.experience-card__bottom {
    font-size: 1.6rem;
    padding: 1rem;
    background: linear-gradient(rgba(31, 66, 135, 1), rgba(31, 66, 135, 0));
    margin: 1rem;
}

.primary_button {
    color: var(--aqua);
    display: inline;
    font-family: var(--mainFont);
    border: 2px solid var(--aqua);
    border-radius: 30px;
    padding: 1rem;
}

.experience-card__img {
    margin-right: 2rem;
    flex: 0 0 20%;
    text-align: center
}


/*----------------------------*/
/*---- Projects Section ------*/
/*----------------------------*/

.project-nav {
    text-align: center;
}

.project-container {
    width: 100%;
    background: linear-gradient(rgba(31, 66, 135, 1), rgba(31, 66, 135, 0));
    border-radius: 1rem;
    padding: 2rem 1rem;
    font-size: 1.6rem;
    scroll-snap-align: center;
    flex: none;
    position: relative;
    margin: 1rem 3rem;
}

.project-container__mobile {
    display: flex;
    width: 100%;
}

.project-image {
    position: relative;
    height: 150px;
    width: 100%;
}

.project-container__mobile .project-image{
    height: 100%;
    margin-right: 1rem ;
}

.project-img {
    height: 100%;
    width: 100%;
    border-radius: 1rem;
    object-fit: cover;
}

.project__icon {
    height: 4rem;
}

.project-container_bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-title {
    text-align: center;
}

.project-card-container {
    display: flex;
    overflow: auto;
    flex-flow: row nowrap;
    scroll-snap-type: x proximity;
}


.project__links {
    align-self: flex-end;
}

.card-image {
    position: relative;
    height: 150px;
    width: 150px;
    border-radius: 50%;
}

.card-image .card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.project-nav__link {
    cursor: pointer;
}

.project-nav__link:hover {
    text-shadow: 0 0 7px rgb(190 254 194), 0 0 122px rgb(173 236 175);
    transition: all .3s ease-in-out;
}

@media (min-width: 768px) {
    #section-aboutme, #section-experience{
        padding: 3rem 30rem;
    }

    .project-container {
        width: 25%;
    }
    
    .project-container__mobile {
        width: 35%;
    }

    .experience-card__date  {
        display: inline;
    }

    .experience-card__bottom {
        display: flex;
        align-items: center;
    }
}

/*----------------------------*/
/*-------- Javascript --------*/
/*----------------------------*/

.open {
    border-radius: 1rem 1rem 0 0;
}

.hide {
    display: none;
}
