@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}

.transitions {
  transition-delay: 0s !important;
  -webkit-transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
  -moz-transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
  transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
  transition-delay: 0s;
}

body {
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--header);
  font-family: "IBM Plex Sans", sans-serif;
  background-color: var(--bg);
  transition: all 500ms;
}

body * img {
  filter: var(--image-filter);
}

a:active,
a:focus,
a:hover {
  outline: none;
}

/* ------- Theme switcher------- */
:root {
  --gray1: #f3f3f3;
  --gray10: #e9e9e9;
  --gray2: #6e6e6e;
  --gray3: #5a5a5a;
  --gray4: #555555;
  --gray5: #0000009a;
  --gray6: #424242;
  --gray7: #cfcfcf;
  --gray8: #222222;
  --gray9: #333;
  --red: #ff2600;
  --blue: #00fff2;
  --yellow: #ffbb00;
  --red2: #ff7259;
  --blue2: #60fff7;
  --yellow2: #ffd45e;
  --border-radius: 6px;
  --border-radius-two: 16px;
  --border-radius-three: 16px 16px 0px 0px;
}

.light {
  --bg: var(--gray1);
  --btn: var(--gray2);
  --subtext: var(--gray3);
  --header: var(--gray4);
  --btn-hover: var(--gray9);
  --btn-border: 1px solid #86868681;
  --btn-shadow: 0 2px 44px 0 rgba(0, 0, 0, 0.035);
  --h1-border: var(--gray9);
  --card-bg: var(--gray1);
  --card-shadow: 0 2px 44px 0 rgba(0, 0, 0, 0.14);
  --icon-shadow: drop-shadow(1px 6px 10px hsla(0, 0%, 38%, 0.239));
  --nav-shadow: var(--gray7);
  --image-filter: brightness(1) contrast(1);
  --rainbow-bg-color: linear-gradient(to right, var(--blue) 25%, var(--red) 25% 50%, var(--blue) 50% 75%, var(--yellow) 75%);
}

.dark {
  --bg: var(--gray8);
  --btn: var(--gray10);
  --subtext: var(--gray1);
  --header: var(--gray1);
  --btn-hover: var(--blue);
  --btn-border: 1px solid #fafafa;
  --h1-border: var(--gray1);
  --nav-shadow: var(--gray5);
  --card-bg: var(--gray6);
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  --icon-shadow: drop-shadow(1px 6px 10px rgba(20, 20, 20, 0.141));
  --rainbow-bg-color: linear-gradient(to right, var(--blue2) 25%, var(--red2) 25% 50%, var(--blue2) 50% 75%, var(--yellow2) 75%);
  --image-filter: brightness(0.8) contrast(1.2);
}

/* ------- Header ------- */
.navbar {
  display: flex;
  flex-direction: row;
  padding: 1rem 20rem 1rem;
  justify-content: flex-end;
  /* background: #ebebeb; */
  /* box-shadow: 0 3px 6px rgba(0, 0, 0, 0.042), 0 3px 6px rgba(0, 0, 0, 0.021); */
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.14);
}

.hidden {
  opacity: 0 !important;
}

.navbar__logo {
  opacity: 1;
  transition: opacity 700ms;
  position: absolute;
  width: 4.5rem;
  left: 10rem;
  top: 0.99rem;
  filter: brightness(1) contrast(1);
}

.navbar__nav {
  padding: 12px 0;
  position: relative;
  display: inline-block;
  margin: 0 1.5rem;
  /* color: var(--btn-border); */
  color: rgb(85, 85, 85);
}

.navbar__nav:after {
  position: absolute;
  display: block;
  content: "";
  width: 0;
  left: 50%;
  bottom: 0;
  height: 1px;
  background: var(--btn-hover);
  transition: width 0.3s ease 0s, left 0.3s ease 0s;
}

.navbar__nav:not(#theme-switch):hover:after {
  width: 100%;
  left: 0;
}

.nav__raindow {
  top: 0px;
  z-index: -1;
  width: 100%;
  height: 1px;
  position: relative;
  /* background: var(--rainbow-bg-color); */
}
/* ------- Section ------- */
h1,
h2 {
  text-align: center;
  letter-spacing: 0.2rem;
  color: var(--header);
  /* font-size: calc(.9rem + .9vmax); */
}

h2 {
  width: 11rem;
  margin: 5rem auto;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--h1-border);
}

h3 {
  margin: 1rem 0;
  font-weight: 900;
  color: var(--subtext);
}

.emoji {
  font-size: 1.5rem;
}

section {
  display: flex;
  min-height: 90vh;
  flex-flow: column;
  justify-content: center;
}

/* ------- About me Section ------- */

/* #about-me {
  background: #ebebeb;
} */

.about-content {
  text-align: center;
  margin: 0 auto;
  position: relative;
  top: -100px;
}

.about-content > p {
  max-width: 75ch;
  line-height: 2.5rem;
  /* font-size: calc(1rem + 0.1vw); */
  /* color: var(--subtext); */
}

.about-content > * {
  padding-bottom: 1.1rem;
  color: rgb(85, 85, 85);
}

.about-content > img {
  width: 10rem;
  filter: brightness(1) contrast(1);
}

.resume {
  display: block;
  width: 8rem;
  margin: 1.5rem auto;
  padding: 0.5rem 1rem;
  /* color: var(--btn); */
  box-shadow: var(--btn-shadow);
  /* border: var(--btn-border); */
  border: 1px solid #86868681;
  background-color: var(--gray1);
  border-radius: var(--border-radius);
  transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
  -moz-transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
  -webkit-transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
}

.resume:hover {
  color: var(--btn-hover);
  transform: translate(0px, -4px) !important;
  box-shadow: 0px 32px 60px rgba(0, 0, 0, 0.116);
}

/*------- Arrow -------*/
.arrow {
  position: relative;
  left: 50%;
  width: 20px;
  height: 20px;
  border-top: none;
  border-left: none;
  margin: 50px 0 0 -10px;
  -webkit-transform: rotate(45deg);
  /* border-bottom: 1px var(--btn) solid;
  border-right: 1.5px var(--btn) solid; */
  border-bottom: 1px #86868681 solid;
  border-right: 1.5px #86868681 solid;
}

.arrow:before {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-left: none;
  border-top: none;
  margin: -10px 0 0 -10px;
  animation-name: arrow;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  /* border-bottom: 1px var(--btn-hover) solid;
  border-right: 1.2px var(--btn-hover) solid; */

  border-bottom: 1px #86868681 solid;
  border-right: 1.5px #86868681 solid;
}

@keyframes arrow {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(30px, 30px);
  }
}

/* ------- Project Section ------- */
#projects {
  padding-top: 5rem;
}

.card-container {
  display: flex;
  flex-flow: row wrap;
  align-self: center;
  justify-content: center;
  gap: 3vmax 2.5vmax;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: center;
  max-width: 450px;
  height: 30rem;
  /* height: 500px; */
  /* margin: 2rem 2rem; */
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
  border-radius: var(--border-radius-two);
}

.card:hover {
  box-shadow: 0px 32px 60px rgba(0, 0, 0, 0.16);
  transform: translate(0px, -5px) !important;
  transition-delay: 0s !important;
  -webkit-transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
  -moz-transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
  transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
  transition-delay: 0s;
}

.card__img {
  height: 60%;
  background-size: cover;
  background-position: center;
  filter: var(--image-filter);
  background-repeat: no-repeat;
  border-radius: var(--border-radius-three);
}

.card__text {
  text-align: left;
  padding: 1rem 2rem;
}

.card__title {
  font-weight: 900;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.card__tools {
  display: flex;
  flex-flow: row wrap;
  font-weight: 100;
  font-size: 0.8rem;
  margin: 0.6rem 0;
  color: var(--subtext);
  overflow: hidden;
}

.card__tools ul {
  margin: 0;
  padding: 0;
}
.card__tools > li {
  list-style: "|";
  padding: 0 0.6rem;
}

.card__tools > li:first-child {
  list-style: none;
  padding-left: 0rem !important;
  padding-right: 0.8rem !important;
}

.card__subtitle {
  font-weight: 100;
  line-height: 1.5rem;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  color: var(--subtext);
}

.card__btn {
  margin-bottom: 1rem;
}

.btn__github,
.btn__demo {
  font-weight: 100;
  display: inline-block;
  font-size: 0.9rem;
  margin-right: 1em;
  padding: 0.5em 1em;
  color: var(--btn);
  border: var(--btn-border);
  border-radius: var(--border-radius);
  transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
  -moz-transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
  -webkit-transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
}
.btn__github:hover,
.btn__demo:hover {
  position: relative;
  color: var(--btn-hover);
  transform: translate(0px, -1px) !important;
  box-shadow: 0px 32px 60px rgba(0, 0, 0, 0.116);
}

.card__raindow {
  align-self: center;
  width: 90%;
  height: 1px;
  background: var(--rainbow-bg-color);
  filter: var(--image-filter);
}

/* ------- Tools Section ------- */
.skill {
  display: flex;
  margin: 0 auto;
  max-width: 1000px;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

/* ------- Hexagon Tools Icon ------- */
.hexagon-wrapper {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  filter: var(--icon-shadow);
}

.hexagon-wrapper .hexagon {
  margin: 10px;
  width: 150px;
  height: 150px;
}

/* ------- Contact Section ------- */
/* #contact-me {
  background: #1c1d25;
} */

.contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: center;
  max-width: 800px;
  padding: 1rem 0rem;
  line-height: 3rem;
  background-color: var(--card-bg);
  color: var(--subtext);
  box-shadow: var(--card-shadow);
  border-radius: var(--border-radius-two);
}

.contact-info {
  font-size: 1.1rem;
}

.contact-info svg {
  position: relative;
  top: 0.3rem;
}

.contact-info__email {
  padding: 0.5rem 1rem;
  color: var(--subtext);
  border-radius: var(--border-radius);
}

svg {
  stroke: var(--subtext);
}

.contact-info__location p {
  display: inline;
  padding: 0.5rem 1rem;
}

.contact-info__email:hover {
  border: 1px solid #bbbbbb81;
  transform: translate(0px, -12px) !important;
  transition-delay: 0s !important;
  -webkit-transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
  -moz-transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
  transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
  transition-delay: 0s;
}

.contact-info__email:after {
  position: relative;
  content: "»";
  opacity: 0;
  right: -10px;
  transition: 0.5s;
  color: var(--btn-hover);
}

.contact-info__email:hover {
  padding-right: 2rem;
  /* padding-left: 10px; */
}

.contact-info__email:hover:after {
  opacity: 1;
  left: 10px;
}

.contact-icon-wrapper .contact-icon {
  display: inline-block;
  width: 95px;
  margin: 2rem 0rem;
  margin-right: 1rem;
  border: var(--btn-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-icon svg {
  position: relative;
  left: 50%;
  top: 50%;
  transform: translate(-55%, 15%);
}
.contact-icon:hover {
  transform: translate(0px, -5px);
  box-shadow: 0px 32px 60px rgba(0, 0, 0, 0.16);
}
.contact-icon:hover svg {
  stroke: var(--btn-hover);
}

.contact-info,
.contact-header,
.contact-icon-wrapper {
  margin: 0 5rem;
}

.contact__raindow {
  position: relative;
  top: 16px;
  height: 0.9px;
  width: 90%;
  background: var(--rainbow-bg-color);
  align-self: center;
}

/* ------- footer ------- */
footer {
  margin-top: 10rem;
  width: 100%;
}

.raindow {
  height: 1px;
  background: var(--rainbow-bg-color);
}

/* ------- @media  ------- */
@media screen and (prefers-reduced-motion: no-preference) {
  html,
  body {
    scroll-behavior: smooth;
  }
}

@media only screen and (max-width: 750px) {
  section {
    min-height: 100vh;
  }

  section:nth-child(n + 3) {
    min-height: 80vh;
  }

  .navbar__logo {
    display: none;
  }

  .navbar {
    font-size: 0.9rem;
    justify-content: center;
    /* box-shadow: 0 2px 10px 0 var(--nav-shadow); */
    -webkit-transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
    -moz-transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
    transition: all 250ms cubic-bezier(0.02, 0.01, 0.47, 1);
    padding: 1rem;
  }

  .about-content {
    margin: 0 auto;
    padding: 2rem;
    font-size: 0.9rem;
    top: -20px;
  }

  .card-container {
    gap: 0;
  }
  .card {
    margin: 1rem;
    /* height: 450px; */
  }

  .card__tools > li {
    list-style: "|";
    padding: 0 0.4rem;
  }

  .card__raindow {
    height: 1px;
  }

  .contact {
    margin: 0;
    box-shadow: none;
    padding: 0rem 2rem;
    background-color: var(--bg);
  }

  .contact-info {
    margin-top: 0;
    font-size: 1rem;
    margin-top: 1rem;
  }

  .contact-info,
  .contact-header,
  .hexagon-wrapper-contact {
    margin: 0rem;
  }

  #contact-me h2,
  .contact__raindow {
    display: none;
  }

  .hexagon-wrapper .hexagon {
    width: 6rem;
    margin: 0rem 0.5rem;
  }

  .contact-icon-wrapper {
    margin: 0rem;
  }
  .contact-icon-wrapper .contact-icon {
    width: 85px;
    margin-right: 0.5rem;
  }

  footer {
    margin-top: 100px;
  }

  .raindow {
    height: 1px;
  }
}

@media only screen and (max-width: 350px) {
  .navbar__nav {
    margin: 0 1rem;
  }

  .btn__github,
  .btn__demo {
    margin-right: 0.5rem;
    padding: 0.5rem;
  }
  .contact-icon-wrapper .contact-icon {
    width: 75px;
    margin-right: 0.1rem;
  }
  .contact-info,
  .contact {
    font-size: 0.9rem;
  }
}

.waves {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
}
