/* GENERAL */

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

* {
  /*target the whole page using star*/
  margin: 0;
  padding: 0;
  cursor: url('../images/cursor.png'), auto;
  /* Change default mouse to custom image */
}


body {
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  /* move smoothly to the target link*/
}

/* h1 {
  font-size: 4.625rem;
  margin: 50px auto 0 auto;
  font-family: cursive;
  color: #efefef;
  line-height: 2;
  font-weight: bold;
  text-shadow: -2px -2px 0 #000000, 
              1px -1px 0 #000000,
              -1px 1px 0 #000000,
              1px 1px 0 #000000;
  letter-spacing: 5px;
} */

h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2cap;
  /* color: #b44c30; */
}

h4 {
  text-align: right;
  margin-right: 530px;
  font-family: "Marker Felt", fantasy;
  font-size: 2.5rem;
  color: #2c7537;
  font-weight: normal;
  text-decoration: underline;
}

hr {
  /* margin-top: 2rem; */
  border: 0;
  height: 2px;
  background-color: black;
}

/* p1 {
  line-height: 2;
  color: #418a55;
} */

p {
  /* line-height: 2; */
  color: rgb(85, 85, 85);
  font-family: "Montserrat", sans-serif;
}

/* TRANSITION */

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

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
  /*child elements can automatically adjust their size and arrangement to suit different screen size and display needs*/
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 20vh;
  /*sets the height of the navigation bar to 17% of the viewport's height*/
}

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

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
  /* make the hamburger menu not show up*/
  margin-left: 1cm;
}

.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%;
  height: 2px;
  background-color: #000000;
  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: #000000;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

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

.menu-links.open {
  /* function used in js*/
  max-height: 300px;
}

/* change the hamburger icon to a cross icon */
.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

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

/* 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;
}

.section_pic-container {
  display: flex;
  height: 370px;
  width: 370px;
  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;
  color: rgba(145, 18, 18, 0.702);
}

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

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  /* distance to the item on the top of this one*/
  gap: 1rem;
  /* gap between two items in the same line */
}

/* ICONS */

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

/* BUTTONS */

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

}

.btn {
  font-weight: 450;
  transition: all 300ms ease;
  padding: 1rem;
  /* the size of the btn box */
  width: 10rem;
  border-radius: 2rem;
  /* change the box to a circle*/
}

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

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

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

.btn-color-1 {
  border: black 0.1rem solid;
  background: none;
  color: black;
}

.btn-color-1:hover,
.btn-color-2:hover {
  border: white 0.1rem solid;
  background: #b44c30;
  color: white;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.description-containers {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

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

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

.arrow {
  cursor: pointer;
  position: absolute;
  right: -4rem;
  bottom: 0.5rem;
}

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

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

/* .title2 {
  font-size: 3rem;
  text-align: center;
  color: rgb(145, 18, 18,0.75); 
} */

/* .head3 {
  color: rgba(145, 18, 18,0.85);
} */

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

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

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

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

.details-container1 {

  align-items: center;
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: black 0.1rem solid;
  text-align: center;

}

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

article {
  display: flex;
  width: 10rem;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;
}

html:lang(zh) .text-container p {
  text-align: center;
  line-height: 1.8;
}

article .icon {
  cursor: pointer;
}

/* h2 {
  text-decoration: underline;  
  text-underline-offset: 0.5rem; 
  text-decoration-color: rgb(44, 44, 44);
} */

/* PROJECTS SECTION */

#projects {
  position: relative;
  height: 150vh;
}

.color-container {
  border-color: rgb(85, 139, 178);
  background: rgb(250, 250, 250);
  ;
}

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

.project-title {
  font-size: large;
  margin: 0.4rem;
  color: black;
}

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

.article-proj-container {
  display: flex;
  gap: 1rem;

}

/* CONTACT */

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

.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 {
  margin-top: 1rem;
  font-size: larger;
}

.contact-icon {
  cursor: pointer;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

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

footer p {
  text-align: center;
}

/* .bot {
  background-image: linear-gradient(to bottom, #0f3f16de, #0f3f16);
  /* background-color: #0f3f16de; */
/* margin-top: 100px;
  padding: 50px 0 25px;
} */
*/ .contact-message {
  width: 40%;
  margin: 40px auto 60px auto;
}

.copyright {
  font-size: 10px;
}

/* .btn {
  background: #134d1c;
  background-image: -webkit-linear-gradient(top, #35723e, #0f3f16);
  background-image: -moz-linear-gradient(top, #35723e, #0f3f16);
  background-image: -ms-linear-gradient(top, #35723e, #0f3f16);
  background-image: -o-linear-gradient(top, #35723e, #0f3f16);
  background-image: linear-gradient(to bottom, #35723e, #0f3f16e7);
  -webkit-border-radius: 8;
  -moz-border-radius: 8;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  color: #ffffff;
  font-size: 20px;
  padding: 10px 20px 10px 20px;
  text-decoration: none;
} */

/* .btn:hover {
  background: #30e3cb;
  background-image: -webkit-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: -moz-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: -ms-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: -o-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: linear-gradient(to bottom, #e9c494, #915206);
  text-decoration: none;
} */

a {
  color: black;
  margin: 10px 20px;
  text-decoration: none;
}

a:hover {
  /* color: rgb(184, 32, 32); */
  color: rgb(85, 139, 178);
  text-decoration: underline;
  text-underline-offset: 1rem;
  /*make a bit more space between the text and the underline*/
  text-decoration-color: rgb(181, 181, 181);
}


.logo {
  font-size: 2.3rem;
  letter-spacing: 1.3px;
}



/* .copyright {
  color: #eaf6f6;
  font-size: 0.75rem;
  padding-top: 10px;
} */

/* .container{
  display: flex;
  flex-direction: row;
  align-items: center;
} */

/* .intro-text, .my-image{
  padding: 30px;
}

.intro-text{
  flex: 1;
  padding: 2px;
}

.illustration1{
  float: left;
  margin-left: 100px;
}

.illustration2{
  float: right; 
  margin-right: 90px;
} */