/* GENERAL */

/* Google Fonts */

/* Fraunces */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Kulim+Park:ital,wght@0,200;0,300;0,400;0,600;0,700;1,200;1,300;1,400;1,600;1,700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

/* Source Sans 3 */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

:root {
    --Canopy-Black: #2F3429; 
    --Warm-Parchment: #EDE8DF; /* Main background */
    --Moss-Bark: #454D33; /* Nav/cards */
    --Fern-Olive: #65734B; /* UI accents */
    --Sage-Meadow: #758359; /* Buttons/links */
    --Lichen-Mist: #5F8581; /* Main text */
    --Forest-Umber: #664536; /* Emphasis/contrast */
}

* {
    /* removes padding and margin from the page 
    this helps to specify padding and margins we
    specifically added */
    margin: 0;
    padding: 0;
    background-color: var(--Warm-Parchment);
}

body {
    font-family: "Fraunces", "serif";
}

html {
    scroll-behavior: smooth; /* makes so that links in different sections don't instantly go to that section but rather scrolled in a smooth manner */
}

h1 {
    color: var(--Canopy-Black);
}

h3 {
    color: var(--Canopy-Black);
}

p { /* default gap is 1rem */
    color: var(--Sage-Meadow);
}

/* TRANSITION */

a, 
.btn { /* change between two styles */
    transition: all 300ms ease;
}

/* DESKTOP NAVIGATION */

nav, .nav-links {
    display: flex; /* makes navigation children go in one line */
}

nav {
    justify-content: space-around; /* items evenly distributed in the line with equal space around them */
    align-items: center; /* aligns all children of a container in center */
    height: 17vh; /* vh = view-height, means whatever the viewheight of the screen, the nav takes 17% of the view-height*/
}

.nav-links {
    gap: 2rem; /* gap between flex elements. rem is not pixels but related to it*/
    list-style: none; /* remove bullet points */
    font-size: 1.5rem; /* increase font size */
}

a {
    color: var(--Sage-Meadow);
    text-decoration: none;
    text-decoration-color: white;
}

a:hover { /* allow for underline to pop under links upon hover */
    color: gray; 
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: var(--Sage-Meadow);
}

.logo {
    font-size: 2rem;
    color: var(--Canopy-Black);
}

.logo:hover {
    cursor: default; /*nothing happens when you hover over logo now */
}

/* HAMBURGER MENU */

#hamburger-nav {
    display:none;
}

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

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

.hamburger-icon span {
    width: 100%; /* percent of the container width */
    height: 2px;
    background-color: var(--Canopy-Black);
    transition: all 0.3 ease-in-out;
}

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

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: var(--Sage-Meadow);
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links li {
    list-style: none;
}

.menu-links.open { /* when it opens */
    max-height: 300px;
}

.hamburger-icon.open span:first-child { /* first span element */
    transform: rotate(45deg) translate(10px, 5px); /* rotates first line */

}

.hamburger-icon.open span:nth-child(2) { /* first span element */
    opacity: 0; /* removing the second line */

}

.hamburger-icon.open span:last-child { /* first span element */
    transform: rotate(-45deg) translate(10px, -5px); 

}

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon span:first-child {
    opacity: 1;
}

.hamburger-icon span:first-child {
    transform: none;
}

/* SECTIONS */

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

.section-container {
    display: flex;
}

/* PROFILE SECTION */

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

#profile .section__text__p1, .section__text__p2 {
    background-color: var(--Warm-Parchment);
}

.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;
}

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

/* ICONS */

.icon {
    cursor: pointer;
    height: 2rem;
    background-color: transparent;
}

/* BUTTONS */

.btn-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.btn-color-1, 
.btn-color-2 {
    border: rgb(53, 53, 53) 0.1rem solid;
    font-weight: 600;
    font-family: "Source Sans 3", "sans serif";
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1:hover, 
.btn-color-2:hover {
    cursor: pointer;
}

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

.btn-color-1:hover {
    background: rgb(0, 0, 0);
}

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

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

.btn-container {
    gap: 1rem;
}

/* ABOUT SECTION */

#about {
    position: relative;
}

#about .section__text__p1 {
    background-color: var(--Warm-Parchment);
}

.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;
}

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

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
    position: relative;
}

#experience .section__text__p1 {
    background-color: var(--Warm-Parchment);
}

.experience-sub-title {
    color: var(--Canopy-Black);
    background-color: white;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

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

.about-details-container h3, p {
    background-color: white;
}

.text-container p {
    background-color: var(--Warm-Parchment);
}

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

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

article .icon {
    cursor: default;
}

article h3 {
    background-color: white;
}


/* PROJECTS SECTION */

#projects {
    position: relative;
}

#projects .section__text__p1 {
    background-color: var(--Warm-Parchment);
}

#projects .btn-container {
    background-color: white;
}

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

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

.project-title {
    margin: 1rem;
    color: var(--Canopy-Black);
}

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

}

/* CONTACT SECTION */

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

#contact .section__text__p1 {
    background-color: var(--Warm-Parchment);
}

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

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

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

.contact-info-container a {
    background-color: white;
}

.contact-icon {
    cursor: default;
}

.email-icon {
    height: 2.5rem;
}

/* FOOTER SECTION */

footer {
    height: 26vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
    background-color: var(--Warm-Parchment);
}