@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Merienda:wght@500&display=swap');

*{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}

:root {
    --primary-color: #80C7B9;
    --off-white: #eaebee;
    --dark-gray: #6b7280;
    --headings: #2A9D8F;
}

body{
    font-family: 'Montserrat', sans-serif;
}

a{
    text-decoration: none;
    color: black;
}

#nav::before{
    content: "";
    background-image: url("images/heart.svg");
    z-index: 55558;
    position: absolute;
    top: 27%;
    left: 45.5%;
    width: 4%;
    height: 8%;
    transform: scale(0.7);
    background-repeat: no-repeat;
    background-position: center;
    animation: pulse 1.2s infinite;
}

#header::before{
    content: "";
    background-image: url("images/code.svg");
    z-index: 55555;
    position: absolute;
    top: 38%;
    left: 55%;
    width: 4%;
    height: 8%;
    background-repeat: no-repeat;
    background-position: center;
    animation: jumpCode 1.5s infinite;
}

@keyframes pulse{
    50%{transform: scale(0.8);}
    100%{transform: scale(0.7);}
}

@keyframes jumpCode{
    0% {
        transform: translateY(0) scale3d(.96,.96,1) rotate(4deg);
    }
    20% {
        transform: translateY(8px) scale3d(1.1,1.1,1) rotate(4deg);
    }
    30% {
        transform: translateY(5px) scale3d(.98,.98,1) rotate(4deg);
    }
    40% {
        transform: translateY(6.2px) scale3d(1.05,1.05,1) rotate(4deg);
    }
    60% {
        transform: translateY(6px) scale3d(1.01,1.01,1) rotate(4deg);
    }
    80% {
        transform: translateY(6px) scaleX(1) rotate(4deg);
    }
    100% {
        transform: translateY(0) scale3d(.96,.96,1) rotate(4deg);
    }
}

nav{
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    border-bottom-left-radius: 35px;
    width: 80%;
    margin: auto;
    padding: 2rem;
}

nav div{
    font-family: 'Merienda', cursive;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight:600;
    cursor: pointer;
}

nav div:hover{
    transform: scale(1.02);
}

ul{
    list-style: none;
    display: flex;
    align-items: center;
    width: 30%;
    margin-right: 2%;
}

li{
    margin-left: 15%;
    cursor: pointer;
    padding: 1%;
}

li a:hover{
    color: brown;
}

header{
    text-align: center;
    margin: 5% 0% 4% 0%;
}

img:first-child{
    width: 28%;
    margin-bottom: 4%;
}

.heading{
    font-size: 2rem;
    font-weight: bolder;
    color: var(--dark-gray);
}

header span{
    font-size: 2rem;
    font-weight: bolder;
    color: var(--headings);
}

section{
    width: 80%;
    margin: auto;
    margin-bottom: 1.2%;
    text-align: center;
    padding: 1.5rem;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section h1{
    width: auto;
    border-bottom: 2px solid;
}

section small{
    margin-top: 1.5%;
}

section p{
    display: inline-block;
    margin: 1.5% 0% 0.8% 0%;
    max-width: 62%;
}

section div{
    display: flex;
    justify-content: space-around;
    width: 25%;
    margin-top: 1%;
}

.project-btn{
    padding: 3%;
    color: white;
    border-radius: 13px;
    background-color: var(--headings);
}

.project-btn:hover{
    transform: scale(1.02);
}

.colored-btn{
    margin-top: 1%;
    padding: 1%;
    font-size: 1rem;
    color: white;
    border: none;
    border-radius: 13px;
    background-color: var(--headings);
}

.colored-btn:hover{
    transform: scale(1.02);
}

.white-btn{
    background-color: white;
    color: var(--headings);
    border: 1px solid var(--headings);
}

footer{
    margin: auto;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5%;
    border-top-right-radius: 35px;
    width: 80%;
}

footer li{
    margin:auto;
    margin-left: 8%;
}

h3{
    margin-bottom: 1.3%;
}

.off-white{
    background-color: var(--off-white);
}