/* ================================================================================================
  General
================================================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: #fff;
}

p {
  font-size: 20px;
  line-height: 35px;
}

h1 {
  font-size: 100px;
  font-weight: 550;
}

h2 {
  font-size: 50px;
  font-weight: 550;
  padding-bottom: 20px;
}

body {
  background: linear-gradient(
    90deg,
    rgba(0, 51, 199, 1) 0%,
    rgba(194, 0, 179, 1) 100%
  );

  /* CSS Grid */
  height: 100%;
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-rows: 80px 1fr 80px;
}

/* ================================================================================================
  Navigation
================================================================================================ */

.navbar {
  grid-area: header;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9;
  background: #222222;
}

.link-group {
  list-style: none;
  display: flex;
}

.link a {
  color: #fff;
  opacity: 0.5;
  text-decoration: none;
  padding: 10px 30px;
  margin: 0 20px;
  line-height: 80px;
  transition: 0s;
  font-size: 20px;
}

.link a:hover,
.link.active a {
  opacity: 1;
}

/* ================================================================================================
  Burger
================================================================================================ */

.burger {
  display: none;
  cursor: pointer;
  position: relative;
  width: 30px;
  height: 30px;
}

.line-1,
.line-2,
.line-3 {
  width: 30px;
  height: 3px;
  background-color: #fff;
  margin: 6px 0;
  border-radius: 5px;
}

/* ================================================================================================
  Content Container
================================================================================================ */

.content-container {
  grid-area: main;
  height: calc(100vh - 80px - 80px);
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  margin: 0 auto;
}

/* ================================================================================================
  Typing Animation
================================================================================================ */

.typer {
  width: 100%;
  padding: 0 12%;
}

.multi-text {
  color: #22222294;
  font-weight: 600;
}

/* ================================================================================================
  About Card
================================================================================================ */

.about-card {
  color: #fff;
  background-color: #222222;
  width: 100%;
  height: calc(100% - 150px);
  padding: 50px;
  margin: 100px;
  border-radius: 20px;
  overflow-y: auto;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}

.skill {
  padding: 1rem 2rem;
  margin: 0 1rem 1rem 0;
  color: #222222;
  background-color: #e2e2e2;
  border-radius: 8px;
  font-weight: bold;
}

/* ================================================================================================
  Contact Card
================================================================================================ */

.contact-card {
  color: #fff;
  background-color: #222222;
  width: 100%;
  height: calc(100% - 150px);
  padding: 50px;
  margin: 100px;
  border-radius: 20px;
  overflow-y: auto;
}

/* ================================================================================================
  Contact Form
================================================================================================ */

.contact-form {
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 2px solid #222222;
  background: #292929;
  color: #fff;
  font-size: 18px;
  border-radius: 10px;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 2px solid #fff;
}

.contact-form button {
  width: 100%;
  padding: 10px;
  border: 1px solid #222222;
  background: #222222;
  color: #fff;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #fff;
  color: #222222;
  transition: 0.5s;
}

/* ================================================================================================
  Footer
================================================================================================ */

.footer {
  grid-area: footer;
  font-size: 20px;
  width: 100%;
  color: #fff;
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-media {
  list-style: none;
  display: flex;
  padding: 0 10px;
}

.social-media li {
  margin: 0 10px;
}

.social-media li a {
  filter: invert(1);
  transition: 0.5s;
}

/* ================================================================================================
  Scrollbar
================================================================================================ */

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 30px;
}

::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 10px;
  height: 20%;
}

::-webkit-scrollbar-thumb:hover {
  background: #e2e2e2;
}

/* ================================================================================================
  Mobile
================================================================================================ */

@media (max-width: 768px) {
  .about-card,
  .contact-card {
    margin: 30px;
  }

  .about-card,
  .contact-card {
    height: calc(100vh - 80px - 80px - 60px);
  }

  .skill {
    padding: 0.7rem 1rem;
    margin: 0 0.7rem 0.7rem 0;
  }

  .footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 35px;
  }

  h1 {
    font-size: 50px;
    font-weight: 550;
  }

  h2 {
    font-size: 30px;
    font-weight: 550;
  }

  p {
    font-size: 18px;
  }

  /* Burger */

  .navbar {
    width: 100%;
    background: none;
  }

  .burger {
    display: block;
    cursor: pointer;
    position: absolute;
    left: 25px;
    top: 25px;
    z-index: 10;
  }

  .link-group {
    display: none;
  }

  .link-group.show {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    padding-top: 80px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* Burger fade in */

  .burger.active .line-1 {
    transform: rotate(-45deg) translate(-6.5px, 6px);
    transition: 0.5s;
  }

  .burger.active .line-2 {
    opacity: 0;
    transition: 0.5s;
  }

  .burger.active .line-3 {
    transform: rotate(45deg) translate(-6.5px, -6px);
    transition: 0.5s;
  }

  /* Burger fade out */

  .burger .line-1 {
    transition: 0.5s;
  }

  .burger .line-2 {
    transition: 0.5s;
  }

  .burger .line-3 {
    transition: 0.5s;
  }
}
