/*importing font*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

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

body {
    font-family: "Poppins", serif;                           /*default font family for body*/ 
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;                                /*property to control scrolling animation when navigating through links*/
}

p {                                                        
    color: rgb(85, 85, 85);                               /*change this later lol*/
}


/*TRANSITION*/
a, .btn {                                                   /*a = links, .btn = elements with class btn*/
    transition: all 300ms ease;                             /*ease --> starts transition slowly, then speeds up*/
}


/*NAVIGATION (desktop-nav)*/
nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    height: 12vh;
    background-color: #70bafb;
    background-color: rgb(112, 186, 251);
}

.nav-links {
    gap: 2rem;                                              /*note: 1rem equals the font size of the root element!*/
    list-style: none;
    font-size: 1.4rem;
}

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

a:hover {
    color: rgb(255, 255, 255);
    /*text-decoration: underline;*/
    /*text-decoration-color: rgb(181, 181, 181);*/
    /*text-underline-offset: 1rem;*/
    transform: scale(1.2);
    transition: transform 0.3s, color 0.3s;
}

.logo {
    font-size: 1.8rem;
}

.logo:hover {   
    cursor: default;                                        /*stops cursor from changing when hovering over logo feature*/
}


/*NAVIGATION (hamburger-nav)*/
#hamburger-nav {
    display: none;                                         
}

.hamburger-menu {
    position: relative;                                     /*element can be moved relative to normal position using top, bottom, L, R w/o affecting surrounding elements*/
    display: inline-block;                                  /*behaves like an inline element but allowed to set properties typical of block-level elements like width, height*/
}

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

.hamburger-icon span {
    width: 100%;                                            /*sets width of each <span> element to 100% of its parent container's width*/
    height: 2px;                                            /*this defines height of the "lines" in the hamburger icon!*/
    background-color: black;
    transition: all 0.3 ease-in-out;                        /*ease-in-out --> starts transition slowly, speeds up, then slows down*/
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0%;                                              /*positions menu-links flush to the right (right edge) of containing element*/
    background-color: white;
    width: fit-content;
    max-height: 0;                                          /*makes element invisible by collapsing it vertically*/
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a {                                             /*targets links within menu-links class*/
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links li {                                            /*targets list elements inside menu-links class*/
    list-style: none;
}

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

.hamburger-icon.open span:first-child {                    /*targets first span element of hamburger icon*/
    transform: rotate(45deg) translate(10px, 5px);         /*transforming line to create first diagonal of "X"*/
}

.hamburger-icon.open span:nth-child(2) {                    
    opacity: 0;                                            /*removing second line from icon completely*/
}

.hamburger-icon.open span:last-child {                    
    transform: rotate(-45deg) translate(10px, -5px);       /*transforming line to create other diagonal of "X*/
}

.hamburger-icon span:first-child {
    transform: none;                                       /*resets any previous transformations applied to first line*/
}

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

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


/*SECTIONS*/
section {
    position: relative; 
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;                                       /*0 = top-bottom, 10rem = left-right*/
    max-width: 100%;
    box-sizing: border-box;                                /*width includes padding and border, so element won't exceed specified width or height*/
    min-height: fit-content;
}

section::before {
    content: '';                                            /*make sure pseudo-element is empty*/
    position: absolute;                                     /*position pseudo-element absolutely within section*/
    top: 0;
    left: -10rem;       
    right: -10rem;      
    bottom: 0;
    background-color: inherit;                              /*inherit background color of section*/
    z-index: -1;                                            /*place pseudo-element behind other content*/
}

section:nth-of-type(odd)::before {
    background-color: #eaf2f0;                            /*light gray for odd sections*/
}

section:nth-of-type(even)::before {
    background-color: #ffffff;                            /*white for even sections*/
}

.section-container {
    display: flex;
}


/*ABOUT SECTION*/
#about {
    display: flex;
    justify-content: center;
    align-items: center;  
    gap: 5rem;
    height: 85vh;
}

.section__pic-container {
    display: flex;
    height: 300px;
    width: 300px;
    margin: auto 0;                                        /*auto --> automatically calculates margins so element is centered horizontally within its containing element*/
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;                                        /*prevents shrinking of the image*/
    overflow: hidden;
}

.section__pic-container img {
    width: 100%;                                           /*makes image fill container's width*/
    height: 100%;                                          /*makes image fill container's height*/
    object-fit: cover;                                     /*ensures the image covers without distortion*/
}

.section__text {
    align-self: center;
    text-align: center;
    flex: 1;
}

.section__text_p1 {
    padding: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem; 
}

.title {
    font-size: 3rem;
    text-align: center;
    position: relative; 
}

section .title::after {
    content: '';                                           /*content property must be specified for ::after!*/
    width: 100px;
    height: 4px;
    background-color: #70bafb;
    bottom: -5px;
    left: 0;        
    right: 0;
    margin-left: auto;  
    margin-right: auto;  
    border-radius: 2px;
    display: block; 
}

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

#socials-container .icon:hover {
    transform: scale(1.2);
    transition: transform 0.3s, color 0.3s;
}

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

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

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

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

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

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

.about-containers {
    gap: 2rem;
    display: flex;
}


/*RESEARCH SECTION*/
#research {
    position: relative;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
}

#research h2 {
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0.1rem;
    color: black;
}

#research .section__text__p1 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #494a4a;
}

.research-img {
    width: 320px; 
    height: 250px;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
    margin-top: -0.5rem;
}

.research-sub-title {
    color: #70bafb;
    font-weight: 550;
    font-size: 0.95rem;
    padding: 0.09rem;
}

#research .experience-details-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.research-wrapper {                                 
    width: 100%; 
    display: flex;
    justify-content: center; 
    margin-left: 6rem;
    margin-right: 6rem;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
    gap: 2.5rem;
}

.research-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-grow: 1;
}

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

.research-box {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex-grow: 1;
    min-height: 250px;
    max-width: 110%;
    width: 525px; 
    border: 1px solid #d7dbd8;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#research .arrow {
    position: absolute;
    right: 1.65rem;
    bottom: 2.5rem;
}


/*PROJECTS SECTION*/
#projects {
    position: relative;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
}

.project-1 h2, .project-2 h2 {
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0.1rem;
    color: black;
}

.project-3 h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: black;
    padding: 0.5rem;
    margin-top: 9.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#projects .section__text__p1 {
    color: #494a4a;
    text-align: center;
    margin-bottom: -0.5rem;
}

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

.project-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.1rem;
}

.projects-scroll-wrapper {
    position: relative;
    display: flex;
    gap: 1.5rem; 
    justify-content: flex-start;
    padding: 0.4rem 10rem;
    overflow-x: auto; 
    overflow-y: hidden; 
    margin-bottom: 0.1rem;
    width: 100%;
    max-width: 100%;
    height: auto; 
    flex-wrap: nowrap;

    /*position: relative;
    display: flex;
    justify-content: center;
    overflow-y: hidden;
    gap: 3rem; 
    padding: 1rem;
    margin-bottom: 0.1rem;
    margin-left: 3%;
    margin-right: 3%;
    width: 90%;
    height: auto;*/
}

.projects-scroll-container {
    /*display: flex;
    padding: 1rem;
    max-width: 1600px;
    overflow-x: auto;
    margin: 0 auto;
    margin-bottom: 4rem;
    margin-top: 1rem;
    flex-wrap: nowrap;
    height: 90%;*/

    display: flex;
    padding: 0.8rem;
    margin: 0 auto;
    flex-wrap: nowrap;
    height: 100%;
    min-width: 0;                                         /*prevents child elements from causing overflow*/
}

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

.project-box {
    flex: 0 0 auto;                                       /*auto = flex-basis, sets initial size before any growing or shrinking happens*/
    width: 300px;
    height: 500px;
    text-align: center;
    border: 1px solid #d7dbd8;
    border-radius: 0.5rem;
    padding: 0.5rem;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#projects .arrow {
    position: absolute;
    right: 1.65rem;
    bottom: 2.5rem;
}


/*EXPERIENCE SECTION*/
#experience {
    position: relative;
    text-align: center;
    justify-content: center;
    align-items: center;
    height: auto;
}

.experience-sub-title {
    color: #70bafb;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
}

.details-container {
    flex: 1;
    display: flex;
    text-align: center;
}

.experience-details-container {
    display: flex;
    justify-content: center; 
    flex-direction: row;
    gap: 1.5rem;
}

#experience a:hover {
    color: #70bafb;
    transform: scale(1.2);
    transition: transform 0.1s, color 0.1s;
}

.experience-1, .experience-2, .experience-3 {
    background-color: white;
    border: 1px solid rgb(53, 53, 53); 
    border-radius: 2rem;
    padding: 1rem;
    margin: 1rem;
    width: 300px;
}

.experience-2 h2 {
    margin-bottom: 1.5rem;
}

.experience-2 {
    height: 250px;
    margin-top: 7.5rem;
}

#experience h3 {
    font-size: medium;
    text-align: center;
}

#experience .section__text__p1 {
    font-size: small;
    text-align: center;
}

.experience-1 h3 {
    margin-top: -1rem;
}

.experience-3 .section__text__p1 {
    font-size: x-small;
    margin-bottom: -1rem;
}

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

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

article .icon {
    cursor: default;
}

article .icon:hover {
    transform: scale(1.2);
    transition: transform 0.3s, color 0.3s;
}

#experience .arrow {
    position: absolute;
    right: -8.5rem;
    bottom: 2.5rem;
}


/*CONTACT SECTION*/
#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: auto;
}

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

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

#contact a:hover {
    color: #70bafb;
    transform: scale(1.2);
    transition: transform 0.1s, color 0.1s;
    font-weight: bold;
}

#contact .section__text__p1 {
    color: #494a4a;
    text-align: center;
    margin-bottom: -0.5rem;
}

#contact .title {
    margin-bottom: -1rem;
}

.contact-icon {
    cursor: default;
}

.email-icon {
    height: 2.5rem;
}

#contact .arrow {
    position: absolute;
    right: -8.5rem;
    bottom: 2.5rem;
}


/*FOOTER SECTION*/
footer {
    height: 20vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
}

footer nav {
    background-color: transparent;
    justify-content: center;
    align-items: center;
    display: flex;
}

footer a:hover {
    color: #70bafb;
    transform: scale(1.2);
    transition: transform 0.1s, color 0.1s;
}