:root {
  --primary: #02ca02;
  --black: #000;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  scroll-behavior: smooth;
  list-style: none;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--black);
  color: var(--white);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: rgba(1, 1, 1, 0.8);
  border-bottom: 0.5px solid var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.navbar .navbar-logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
}

.navbar .navbar-logo span {
  color: var(--primary);
}

.navbar .navbar-nav a {
  color: #fff;
  display: inline-block;
  font-size: 1.2rem;
  margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
  color: var(--primary);
}

.navbar .navbar-nav a::after {
  content: '';
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.3s linear;
}

.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar-extra i {
    font-size: 2rem;
}

.navbar .navbar-extra a {
  color: #fff;
  margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover {
  color: var(--primary);
}

#hamburger-menu {
  display: none;
}

/* Navbar End*/

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.gradient-background {
  background: var(--black);
  background: -webkit-linear-gradient(to left, #9afb8f, #4ecf74);
  width: 100%;
  height: 100vh;
}

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: #ffffff33;
  animation: animate 25s linear infinite;
  border: none;
  bottom: -150px;
}

.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

.foto-saya {
  width: 20rem;
  height: 20rem;
  border-radius: 20rem;
  box-shadow: 2px 2px 7px var(--primary);
}

.name {
  margin-top: 10px;
}

.sub-name {
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  margin: auto;
  transform: translateY(-50%);
}

.school {
  margin-top: 10px;
  color: var(--white);
  animation: typewriter 4s steps(50) 1s 1 normal both, blinkTextCursor 300ms steps(50) infinite normal;
}
/* Hero End*/

/* About */
.about {
  text-align: center;
  min-height: 20px;
}

.about-title {
  padding-top: 5rem;
  font-size: 30px;
  margin-bottom: 10px;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
}

.about-title span {
  color: var(--primary);
  font-weight: 700;
  font-size: 3rem;
}

.container {
  position: relative;
  width: 100%;
  min-height: 50vh;
  background-size: cover;
  align-items: center;
  justify-content: center;
  display: flex;
  background-position: center;
}

.content-about {
  max-width: 900px;
}

.kotak {
  padding: 30px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px var(--primary);
  backdrop-filter: blur(20px);
  --webkit-backdrop-filter: blur(20px);
  border: 1px solid #02ca02;
}

.kotak p {
  color: var(--white);
}
/* About End */

/* My Skills */

.my-skills {
  width: inherit;
  position: relative;
  padding: 100px;
}

.skill-title {
  font-size: 30px;
  font-weight: 400;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.skill-title span {
  color: var(--primary);
  font-weight: 700;
  font-size: 3rem;
}

.skills-kotak {
  margin-top: 20px;
  justify-content: center;
  align-items: center;
}

ul {
  padding-top: 90px;
}
ul li {
  margin-bottom: 70px;
  background: #000;
  height: 5px;
  border-radius: 3px;
  border-left: 1px solid #111;
  border-top: 1px solid #111;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
}

ul li em {
  font-family: 'Exo', sans-serif;
  font-size: 18px;
  position: relative;
  top: -30px;
}

ul li span {
  height: 1px;
  margin: 2px 0;
  background: var(--primary);
  position: absolute;
  box-shadow: 0px 0px 10px 1px var(--primary);
}

li {
  font-family: 'Poppins', sans-serif;
}

.html5 {
  width: 80%;
  animation: html5 2s ease-out;
}
.css3 {
  width: 80%;
  animation: css3 2s ease-out;
}
.javascript {
  width: 75%;
  animation: javascript 2s ease-out;
}
.python {
  width: 40%;
  animation: python 2s ease-out;
}

.cpp {
  width: 20%;
  animation: cpp 2s ease-out;
}
/* My Skills End */

/* Contact */
.contact {
  margin-bottom: 5rem;
  min-height: 20px;
}

.container-sosmed {
  position: relative;
  justify-content: space-evenly;
  align-items: center;
  display: flex;
  min-height: 50vh;
}

.contact-title {
  font-size: 30px;
  font-weight: 400;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.contact-title span {
  color: var(--primary);
  font-weight: 700;
  font-size: 3rem;
}

.kotak-sosmed {
  margin-top: 3rem;
  width: 20rem;
  height: 20rem;
  border-radius: 15px;
  border: 1px solid var(--primary);
  box-shadow: 0 5px 15px var(--primary);
}

.konten {
  text-align: center;
  padding: 20px;
}

.konten i {
  font-size: 5rem;
  color: color-mix(in srgb, var(--primary), var(--white));
  margin-top: 30%;
  display: block;
  margin-bottom: 5px;
}

.konten a {
  font-size: 2rem;
  font-family: 'Poppins', sans-serif;
  color: var(--white);
}

.konten a:hover {
  color: var(--primary);
  transition: all 1s ease-in-out;
}
/* Contact End */

/* Footer */
.footer {
  min-height: 10vh;
  background: linear-gradient(125deg, var(--primary), var(--black));
  text-align: center;
  padding-top: 30px;
}
/* Footer End */

/* Animation */
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 18rem;
  }
}

@keyframes blinkTextCursor {
  from {
    border-right-color: var(--primary);
  }
  to {
    border-right-color: transparent;
  }
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

@keyframes html5 {
  0% {
    width: 0px;
  }
  100% {
    width: 80%;
  }
}
@keyframes css3 {
  0% {
    width: 0px;
  }
  100% {
    width: 80%;
  }
}
@keyframes javascript {
  0% {
    width: 0px;
  }
  100% {
    width: 75%;
  }
}
@keyframes python {
  0% {
    width: 0px;
  }
  100% {
    width: 40%;
  }
}

@keyframes cpp {
  0% {
    width: 0px;
  }
  100% {
    width: 20%;
  }
}
/* Animation End*/

/* Media Queries */
/* Laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}

/* Tablet */
@media (max-width: 768px) {
  html {
    font-size: 62.5%;
  }

  #hamburger-menu {
    display: inline-block;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #000000;
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
  }

  .navbar-logo em {
    font-size: 20px;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: var(--bg);
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 2rem;
  }

  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }

  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.2);
  }

  /* Hero */
  .hero {
    justify-content: center;
    align-items: center;
    display: flex;
  }

  .foto-saya {
    width: 25rem;
    height: 25rem;
  }

  .name {
    margin-top: 3rem;
    font-size: 3rem;
  }

  .school {
    margin-top: 2rem;
    font-size: 2rem;
  }

  @keyframes typewriter {
    from {
      width: 0;
    }
    to {
      width: 35rem;
    }
  }
  /* About */
  .about {
    padding: 30px;
  }

  .kotak p {
    font-size: 14px;
  }
  /* My Skills */
  .my-skills {
    padding: 30px;
  }

  .skill-title {
    margin-top: 20px;
  }

  .skills-kotak {
    margin-top: auto;
  }

  /* Sosmed */
  .contact {
    padding: 30px;
  }

  .contact-title {
    margin-top: 30px;
  }

  .container-sosmed {
    position: relative;
    justify-content: center;
    align-items: center;
    display: inline-block;
    padding-left: 70px;
  }
}
/* Mobile Phone */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }

  .container-sosmed {
    position: relative;
    justify-content: center;
    align-items: center;
    display: inline-block;
    padding-left: 70px;
  }
}
