@import url("https://fonts.googleapis.com/css2?family=Lora&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Righteous&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Londrina+Solid&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Rufina&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nanum+Myeongjo&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&display=swap");

html {
  font-family: "Lora", serif;
  background: #f4f7f6;
  scroll-behavior: smooth;
}

header {
  height: 100vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

nav {
  position: fixed;
  display: flex;
  align-items: center;
  width: 100%;
  height: 5vh;
  background: #f4f7f6;
  font-size: 0.95rem;
  justify-content: space-between;
  z-index: 3;
}

a {
  text-decoration: none;
  color: #000;
}

a:hover {
  cursor: pointer;
}

button:hover {
  cursor: pointer;
}

footer {
  text-align: center;
  padding-top: 0;
  padding-bottom: 2rem;
  /* margin-top: 5%; */
}

button {
  border: 0.5px solid rgba(58, 58, 58, 1);
  background: #fff;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: bold;
  min-width: 8rem;
}

.section-title {
  font-size: 50px;
  padding: 1rem;
  line-height: 1.5;
}

.nav-link {
  padding: 10px;
  height: 100%;
}

.right {
  display: flex;
}

/* HEADER SECTION */

.header-container {
  font-family: "Lora", serif;
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-title {
  font-size: 65px;
}

.header-title span {
  font-family: "Nanum Myeongjo", serif;
  font-size: 60px;
}

.header-description {
  opacity: 0;
  font-size: 20px;
  /* padding: 30px; */
  color: rgb(101, 41, 243);
  font-family: "Lora", serif;
}

.see-more {
  animation-name: textappear;
  animation-duration: 2s;
  animation-delay: 2.5s;
  animation-fill-mode: both;
}

.see-more p {
  margin-bottom: 1rem;
}

.bounce {
  animation-duration: 2s;
  animation-iteration-count: infinite;
  transform-origin: bottom;
  animation-name: bounce;
  animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1);
}

@keyframes bounce {
  0% {
    transform: scale(1, 1) translateY(0);
  }
  10% {
    transform: scale(1.1, 0.9) translateY(0);
  }
  30% {
    transform: scale(0.9, 1.1) translateY(-20px);
  }
  50% {
    transform: scale(1.05, 0.95) translateY(0);
  }
  57% {
    transform: scale(1, 1) translateY(-7px);
  }
  64% {
    transform: scale(1, 1) translateY(0);
  }
  100% {
    transform: scale(1, 1) translateY(0);
  }
}

.ascent-color {
  color: rgb(101, 41, 243);
}

.typewriter {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: 0.05em solid rgb(0, 0, 0);
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  /* letter-spacing: 0.1em; Adjust as needed */
  line-height: 8vw;
  animation: typing 2.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: rgb(0, 0, 0);
  }
}

.appear {
  animation-name: textappear;
  animation-duration: 2s;
  animation-delay: 2.5s;
  animation-fill-mode: both;
}

@keyframes textappear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ABOUT SECTION */

#about {
  color: white;
  background: rgb(101, 41, 243);
  border-bottom-right-radius: 10rem;
  border-top-right-radius: 10rem;
  margin-right: 1rem;
}

.about-container {
  padding: 5%;
  min-height: 50vh;
  /* margin-bottom: 5rem; */
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.about-container p {
  line-height: 1.5;
  padding: 1rem;
  text-align: justify;
}

.about-container span {
  font-style: italic;
}

.end {
  text-align: center;
}

/* END OF ABOUT */

/* SKILLS SECTION */

#skills {
  /* color: white; */
  /* background: rgb(141 105 226); */
  border-bottom-left-radius: 10rem;
  border-top-left-radius: 10rem;
  margin-left: 1rem;
}

.skill-section-container {
  padding: 5%;
  /* text-align: center; */
  min-height: 50vh;
  /* margin-bottom: 5rem; */
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

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

.skill-container {
  margin: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 65px;
  height: 65px;
}

.skills-grid svg {
  width: 60px;
  height: 60px;
  margin-bottom: 0.5rem;
  fill: #fff;
}

.skills-grid {
  margin: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgb(101, 41, 243);
  border-radius: 3rem;
  color: white;
  padding: 3rem;
}

.skills-grid > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.skill-title {
  color: rgb(0, 0, 0);
  text-align: left;
}

.title {
  font-size: 1.5rem;
  /* text-decoration: underline; */
  text-align: center;
  border-bottom: 1px solid white;
  padding-bottom: 0.5rem;
}

/* END OF SKILLS */

/* PROJECTS SECTION */

#projects {
  min-height: 50vh;
  /* margin-bottom: 5rem; */
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 5%;
}

/* .projects-container {
} */

.projects-container p {
  line-height: 1.5;
  padding: 1rem;
  /* max-width: 600px; */
  text-align: left;
}

.project-card-container {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem; */
  justify-content: center;
  align-items: center;
}

.he {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card {
  border-radius: 1rem;
  width: 300px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 1rem;
}

.project-card:hover {
  cursor: pointer;
  opacity: 0.3;
}

.hytchhike {
  font-family: "Righteous", cursive;
  background-image: linear-gradient(45deg, #7f7fd5, #86a8e7, #91eae4);
}

.crewchat {
  font-family: "Gloria Hallelujah", cursive;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tempcard {
  display: none;
}

.project-title {
  z-index: 1;
}

.crewchat::before {
  content: "";
  border-radius: 1rem;
  background-image: url("../images/wp7994400.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
}

.battleship {
  font-family: "Londrina Solid", cursive;
  font-size: 2.5rem;
  border: 0.5rem solid #000;
  background: rgb(245, 245, 245);
  color: #000;
  width: 284px;
  height: 184px;
}

.streatfinder {
  font-family: "Montserrat", sans-serif;
  position: relative;
}

.streatfinder::before {
  content: "";
  border-radius: 1rem;
  background-image: url("../images/coverpage.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: opacity(0.3);
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
}

/* END OF PROJECTS SECTION */

/* CONTACTS SECTION */

#contacts {
  /* min-height: 50vh; */
  /* margin-bottom: 5rem; */
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 5%;
}

.contacts-container p {
  line-height: 1.5;
  padding: 1rem;
  text-align: center;
}

.contacts-container svg {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
  fill: rgb(101, 41, 243);
  padding: 1rem;
}

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

/* END OF CONTACTS */

/* MODAL */

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(58, 58, 58, 0.8);
  justify-content: center;
}

.modal-content {
  margin: auto;
  padding: 2rem 3rem;
  width: 80%;
  max-width: 900px;
  background-color: #fff;
  line-height: 1.5;
}

.modal-title {
  padding-top: 2rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.modal p > span {
  font-weight: bold;
}

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

.modal-button-container a {
  margin-left: 1rem;
  margin-right: 1rem;
}

.image-container {
  width: 80%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* new */
}

.image-carosuel img {
  max-width: 100%;
  max-height: 50vh;
  margin-bottom: 1rem;
  /* border: 1px solid black; */
}

.image-carosuel {
  width: 100%;
  position: relative;
  margin: auto;
}

.mySlides {
  display: none;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: rgb(101, 41, 243);
  font-weight: bold;
  font-size: 35px;
  border-radius: 0 3px 3px 0;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: rgb(101, 41, 243);
}

.close {
  color: #aaa;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* FOOTER */

.footer-container {
  max-width: 700px;
  border-top: 1px solid black;
  margin-left: auto;
  margin-right: auto;
}

.footer-container p {
  margin-top: 1rem;
}

@media screen and (max-width: 768px) {
  .header-container {
    height: 80%;
  }

  #about,
  #skills {
    margin: 0;
  }

  #about {
    border-bottom-right-radius: 5rem;
    border-top-right-radius: 5rem;
  }

  #skills {
    border-bottom-left-radius: 5rem;
    border-top-left-radius: 5rem;
  }

  .header-title {
    font-size: 8vw;
    line-height: 1.5;
  }

  .about-container p,
  .contacts-container p {
    text-align: left;
  }

  .header-title span {
    font-family: "Nanum Myeongjo", serif;
    font-size: 8vw;
  }

  .header-description {
    opacity: 0;
    font-size: 15px;
    color: rgb(101, 41, 243);
  }

  .section-title {
    font-size: 35px;
  }

  .skill-container {
    margin: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 75px;
  }

  .skills-grid {
    margin: 0;
  }

  .skills-grid svg {
    width: 45px;
    height: 45px;
    margin-bottom: 0.5rem;
  }
}

@media screen and (min-width: 1122px) {
  .tempcard {
    display: block;
    background: rgba(101, 41, 243, 0.1);
  }

  .tempcard:hover {
    cursor: default;
    opacity: 1;
  }
}
