* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lexend';
}

@font-face {
    font-family: 'Lexend';
    src: url(../font/Lexend-VariableFont_wght.ttf);
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

h1 {
    margin-bottom: 1.5rem;
}

h2 {
    margin-bottom: 1.25rem;
}

h3 {
    margin-bottom: 1rem;
}

h4 {
    margin-bottom: 1rem;
}

p {
    color: rgb(85, 85, 85);
    margin-bottom: 1rem;
}

a, .btn {
    transition: all 300ms ease;
}

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

a:hover {
    color: #40e4bb;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: #40e4bb;
}

li {
    color: rgb(85, 85, 85);
}

nav {
    background-color: #209377;
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

nav, .nav-links {
    display: flex;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    gap: 0.5rem;
}

a[class="logo"] {
    color: white;
    text-decoration: none;
}

/*Mobile*/

#mobile-nav {
    display: none;
}

.mobile-menu {
    position: relative;
    display: inline-block;
}

.mobile-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.mobile-icon span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3 ease-in-out;
}

.mobile-nav-links {
    position: absolute;
    top: 100%;
    right: 0%;
    background-color: #4ca791;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.mobile-nav-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.mobile-nav-links li {
    list-style: none;
}

.mobile-nav-links.open {
    max-height: 300px;
}

.mobile-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}
.mobile-icon.open span:nth-child(2) {
    opacity: 0;
}
.mobile-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

.mobile-icon span:first-child {
    transform: none;
}
.mobile-icon span:nth-child(2) {
    opacity: 1;
}
.mobile-icon span:last-child {
    transform: none;
}

section {
    padding: 4vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;
    gap: 4rem;
    height: 80%;
}

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 40vh;
}

.section_pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

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

.section_text p {
    font-weight: 600;
}

.section_text_p1 {
    text-align: center;
}
 
.section_text_p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

.icon {
    cursor: pointer;
    height: 2rem;
}

.btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    min-width: 100%;
    margin: 0 auto;
}

.btn {
    display: inline-block; 
    text-align: center;   
    text-decoration: none; 
    font-family: 'Lexend';
    font-weight: 600;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
    box-sizing: border-box;
}

.btn-color-1, .btn-color-2 {
    border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover, .btn-color-2:hover {
    cursor: pointer;
    text-decoration: none; 
    color: white;
}

.btn-color-1, .btn-color-2:hover {
    background: rgb(53, 53, 53);
    color: white;
}

.btn-color-1:hover {
    background: black;
}

.btn-color-2 {
    background: none;
}

.btn-color-2:hover {
    background: rgb(255, 255, 255) 0.1rem solid;
}

#about {
    position: relative;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
}

.about-containers, .about-details-container {
    display: flex;
}

.about-pic {
    border-radius: 2rem;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163,163,163);
    text-align: center;
}

#experience {
    position: relative;
}

.experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}

article {
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
}

article .icon {
    cursor: default;
}

#projects {
    position: relative;
}

.color-container {
    border-color: rgb(163,163,163);
    background: rgb(245,245,245);
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}

.project-title {
    margin: 1rem;
    color: black;
}

.project-btn {
    color: black;
    border-color: rgb(163,163,163);
}

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53,53,53) 0.1rem solid;
    margin: 2rem auto;
    padding: 0.5rem; 
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    font-size: larger;
    margin-bottom: 0;
}

.contact-info-container a {
    color: #000000;
}

.contact-info-container a:hover {
    color: #555555;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: #555555;
}

.contact-icon {
    cursor: default;
    height: 2rem;
}

.contact-section-text-p1 {
    margin-inline: auto;
}

footer {
    background-color: #209377;
    height: 26vh;
    padding: 1rem;
}

footer p {
    text-align: center;
    color: white;
}