@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");

/*--------------------Reset--------------------*/
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/*--------------------General Styles--------------------*/
:root {
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

  --color-primary: #ffffff;
  --color-secondary: #73eedc;
  --color-tertiary: rgb(25, 118, 210);

  --color-background-primary: #000;
  --color-background-secondary: rgb(62, 62, 63);
}

* {
  font-family: var(--font-primary);
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-background-primary);
  color: var(--color-secondary);
}

/*--------------------Header--------------------*/
.navbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;

  position: fixed;
  top: 0;

  transition: backdrop-filter 0.3s ease-in-out;

  z-index: 100;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0.5rem;

  transition: backdrop-filter 0.3s ease-in-out;
}

.nav-menu.scrolled {
  background-image: linear-gradient(rgba(13, 13, 13, 0.8), rgba(13, 13, 13, 0));
  backdrop-filter: blur(8px);
  border-bottom-right-radius: 0.5rem;
}

.nav-link {
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-secondary);
}

.hamburger {
  display: none;
  cursor: pointer;

  backdrop-filter: blur(8px);

  padding: 0 5px 0 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hover-underline-animation {
  position: relative;
}

.hover-underline-animation:hover {
  color: var(--color-secondary);
}

.hover-underline-animation::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  bottom: 5px;
  left: 0;
  background-color: var(--color-secondary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.hover-underline-animation:hover::before {
  transform: scaleX(0.7);
}

/*--------------------Welcome Section--------------------*/
.welcome {
  height: auto;
  width: 100%;
  aspect-ratio: 539 / 300;

  background-image: linear-gradient(
      270deg,
      /* was 90deg */ rgb(193, 193, 193),
      rgb(107, 107, 107)
    ),
    linear-gradient(
      337.5deg,
      /* was 157.5deg */ rgb(0, 125, 180) 0%,
      rgb(0, 125, 180) 39%,
      rgb(14, 113, 164) 39%,
      rgb(14, 113, 164) 56%,
      rgb(28, 100, 148) 56%,
      rgb(28, 100, 148) 60%,
      rgb(41, 88, 133) 60%,
      rgb(41, 88, 133) 68%,
      rgb(55, 75, 117) 68%,
      rgb(55, 75, 117) 86%,
      rgb(68, 63, 102) 86%,
      rgb(68, 63, 102) 100%
    ),
    linear-gradient(
      315deg,
      /* was 135deg */ rgb(0, 125, 180) 0%,
      rgb(0, 125, 180) 39%,
      rgb(14, 113, 164) 39%,
      rgb(14, 113, 164) 56%,
      rgb(28, 100, 148) 56%,
      rgb(28, 100, 148) 60%,
      rgb(41, 88, 133) 60%,
      rgb(41, 88, 133) 68%,
      rgb(55, 75, 117) 68%,
      rgb(55, 75, 117) 86%,
      rgb(68, 63, 102) 86%,
      rgb(68, 63, 102) 100%
    );
  background-blend-mode: overlay, overlay, normal;
}

.welcome__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

  padding-top: 5rem;

  gap: 1rem;
}

.welcome__message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  width: 24.084rem;
}

.hidden {
  opacity: 0;
}

.console-container {
  display: block;
  white-space: nowrap;

  font-weight: 300;
  font-size: 3rem;
  color: var(--color-secondary);

  top: 0;
  bottom: 0;
  left: 0;
  right: 0;

  background-color: var(--color-background-primary);
  border: 1px solid var(--color-secondary);
  border-radius: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.console-underscore {
  display: inline-block;
  /* top: -0.14em;
    left: 10px; */
}

.welcome__message--titlescontainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.welcome__message--jobtitle {
  color: #4fffe2 !important;
  background: --color-background-secondary !important;
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.75rem;
  border-radius: 8px;

  font-weight: 400;
  font-size: 2.125rem;

  text-shadow: 0 0 8px rgba(0, 255, 220, 0.35), 0 0 16px rgba(0, 180, 255, 0.25);
}

.welcome__message--dividerline {
  width: 90%;
  height: 2px;

  padding-top: 0%;
  padding-bottom: 0%;
  margin-top: 0%;
  margin-bottom: 0%;

  background: linear-gradient(-45deg, #ffd166, #a0ff9a, #4fffe2);
}

.welcome__message--roles {
  font-weight: 500;
  font-size: 1.25rem;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.welcome__message--roles span:nth-child(1) {
  color: #4fffe2;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.welcome__message--roles span:nth-child(2) {
  color: var(--color-primary);
}

.welcome__message--roles span:nth-child(3) {
  color: #a0ff9a;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.welcome__message--roles span:nth-child(4) {
  color: var(--color-primary);
}

.welcome__message--roles span:nth-child(5) {
  color: #ffd166;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.welcome__image {
  width: 18rem;
  height: auto;

  border-radius: 0.5rem;
}

.welcome__image img {
  height: 100%;
  width: 100%;
  object-fit: contain;

  border-radius: 0.5rem;
}

/*--------------------About Section--------------------*/
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;

  margin-top: 5rem;
  margin-bottom: 5rem;

  padding: 2rem;
}

.about__title {
  color: var(--color-primary);
  font-weight: 300;
  font-size: 3.75rem;
}

.about__title span {
  color: var(--color-secondary);
}

.about__description {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;

  justify-content: center;
  align-items: center;
}

.about__description--figure {
  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;

  height: 20rem;

  border-radius: 0.5rem;
}

.about__description--figure::before {
  content: "";
  position: absolute;
  z-index: -1;

  right: -1rem;
  top: 1rem;
  height: 100%;
  width: 100%;
  border-radius: 0.5rem;
  background-color: var(--color-tertiary);
}

.about__description--figure img {
  height: 100%;
  border-radius: 0.5rem;
}

.about__description--text {
  width: 60%;
}

.about__description--text p {
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1.8;
}

.about__description--text p span {
  color: var(--color-tertiary);
}

.about__skills {
  border-radius: 0.5rem;

  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 8s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.about__skills--title {
  text-align: center;

  color: var(--color-primary);
  font-weight: 300;
  font-size: 3.75rem;

  margin-bottom: 2rem;
}

.about__skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;

  padding-bottom: 1rem;
}

.about__skills-container figure {
  height: 6rem;
  aspect-ratio: 2 / 1;

  color: var(--color-primary);
  background-color: rgb(62, 62, 63);

  padding: 0.5rem;
  border-radius: 0.5rem;

  display: flex;
  justify-content: center;
  gap: 1rem;
}

.about__skills-container span {
  align-self: center;
}

/*--------------------Contact Section--------------------*/
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;

  padding: 2rem;

  /*TODO: Remove this */
  width: 100%;
}

.contact__title {
  color: var(--color-primary);
  font-weight: 300;
  font-size: 3.75rem;

  margin-bottom: 2rem;
}

.contact__title span {
  color: var(--color-secondary);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  width: 100%;
  max-width: 40rem;
}

.contact__form fieldset {
  display: flex;
  gap: 1rem;

  border: none;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: var(--color-primary);
}

.contact__form--form__name input,
.contact__form--form__email input,
.contact__form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  border: none;
  background-color: var(--color-background-secondary);
  color: var(--color-primary);
}

.contact__form--form__name input {
  flex-basis: 50%;
}

.contact__form--form__email input {
  flex-basis: 100%;
}

.contact__form--form__submit {
  display: flex;
  justify-content: center; /* Centers the button */
}

.contact__form--form__submit input {
  width: auto;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  border-radius: 0.5rem;

  border: none;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 200% 200%;
  animation: gradient 8s ease infinite;

  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.5rem;
  cursor: pointer;
}

.contact__form--form__submit input[disabled] {
  background: none;
  border-color: #6c757d;
  background-color: #6c757d;
  cursor: not-allowed;
}

.contact__spinner,
.contact__spinner div,
.contact__spinner div:after {
  box-sizing: border-box;
}

.contact__spinner {
  display: none;

  position: absolute;
  transform: translate(0%, 300%);
  z-index: 1000;
  width: 80px;
  height: 80px;
}

.contact__spinner div {
  animation: contact__spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}

.contact__spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7.2px;
  height: 7.2px;
  border-radius: 50%;
  background: currentColor;
  margin: -3.6px 0 0 -3.6px;
}

.contact__spinner div:nth-child(1) {
  animation-delay: -0.036s;
}

.contact__spinner div:nth-child(1):after {
  top: 62.62742px;
  left: 62.62742px;
}

.contact__spinner div:nth-child(2) {
  animation-delay: -0.072s;
}

.contact__spinner div:nth-child(2):after {
  top: 67.71281px;
  left: 56px;
}

.contact__spinner div:nth-child(3) {
  animation-delay: -0.108s;
}

.contact__spinner div:nth-child(3):after {
  top: 70.90963px;
  left: 48.28221px;
}

.contact__spinner div:nth-child(4) {
  animation-delay: -0.144s;
}

.contact__spinner div:nth-child(4):after {
  top: 72px;
  left: 40px;
}

.contact__spinner div:nth-child(5) {
  animation-delay: -0.18s;
}

.contact__spinner div:nth-child(5):after {
  top: 70.90963px;
  left: 31.71779px;
}

.contact__spinner div:nth-child(6) {
  animation-delay: -0.216s;
}

.contact__spinner div:nth-child(6):after {
  top: 67.71281px;
  left: 24px;
}

.contact__spinner div:nth-child(7) {
  animation-delay: -0.252s;
}

.contact__spinner div:nth-child(7):after {
  top: 62.62742px;
  left: 17.37258px;
}

.contact__spinner div:nth-child(8) {
  animation-delay: -0.288s;
}

.contact__spinner div:nth-child(8):after {
  top: 56px;
  left: 12.28719px;
}

@keyframes contact__spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.contact__thankyou {
  position: absolute;
  transform: translate(0%, 300%);
  z-index: 1000;

  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  padding: 0rem 1rem 0rem 1rem;

  color: var(--color-primary);
}

.contact__thankyou span {
  color: var(--color-secondary);
}

/*--------------------Footer Section--------------------*/
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0.5rem;
  margin-top: 3rem;

  color: var(--color-primary);
  font-size: 0.9rem;

  background-color: var(--color-background-secondary);
}

footer a {
  display: flex;
  gap: 0.2rem;

  color: var(--color-primary);
  text-decoration: none;
}

/*--------------------Media Queries--------------------*/

@media screen and (max-width: 1069px) {
  /*--------------------About Section--------------------*/
  .about__description--text {
    width: 80%;
    text-align: justify;
    hyphens: auto;
    text-justify: inter-word;
  }
}

@media screen and (max-width: 721px) {
  /*--------------------Welcome Section--------------------*/
  .welcome__message {
    align-items: center;
  }
}

@media screen and (max-width: 599px) {
  /*--------------------Header Section--------------------*/
  .navbar {
    width: 0rem;
    padding: 0.5rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;

    width: 40%;
    height: 100vh;

    background-image: linear-gradient(
      rgba(13, 13, 13, 0.8),
      rgba(13, 13, 13, 0)
    );
    backdrop-filter: blur(8px);

    flex-direction: column;

    padding-top: 80px;
    border-radius: 0;

    transition: 0.3s ease-in-out;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .nav-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }

  .hamburger {
    display: block;
    z-index: 100;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /*--------------------Welcome Section--------------------*/
  .welcome {
    margin-top: 0rem;
  }

  .welcome__image {
    /* margin: 1rem; */
    /* width: 20rem; */
    height: 65vh;
    width: auto;
  }

  /*--------------------About Section--------------------*/
  .about__title {
    font-size: 2.5rem;
  }

  .about__description--figure {
    height: 17rem;
  }

  .about__description--text {
    width: 100%;
  }

  .about__skills-container figure {
    height: 4rem;
    aspect-ratio: 2 / 1;

    gap: 0.5rem;
  }

  /* Typescript*/
  .about__skills-container figure:nth-child(3) span {
    font-size: 0.6rem;
  }

  .about__skills-container span {
    font-size: 0.8rem;
  }

  /*--------------------Contact Section--------------------*/
  .contact__title {
    font-size: 2.5rem;
  }

  .contact__form fieldset {
    flex-direction: column;
  }
}

@media screen and (max-width: 384px) {
  /* Welcome Section */
  .welcome {
    margin-left: 0rem;
    margin-right: 0rem;
  }

  .welcome__message {
    width: 20.084rem;
  }

  .console-container {
    font-weight: 300;
    font-size: 2.5rem;
  }

  .welcome__message--roles {
    font-size: 1.1rem;
  }
}
