
:root {
  --bg-color: #111111;
  --second-bg-color: #151515;
  --text-color: white;
  --main-color: #04fffb;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

@media(max-width:1285px) {
  html {
    font-size: 55%;
  }

  .skill-container {
    padding-bottom: 7rem;
    grid-template-columns: repeat(2,1fr);
    margin: 0 5rem;
  }
}

@media(max-width:991px) {
  header {
    padding: 2rem 3%;
  }

  .navbar a {
    margin-left: 3rem;
  }

  section {
    padding: 10rem 3% 2rem;
  }

  .skills {
    padding-bottom: 7rem;
  }

  .footer {
    padding: 2rem 3%;
  }
}

@media(max-width:895px) {
  #menu-icon {
    cursor: pointer;
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none;
  }

  .navbar.active {
    display: block;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: white;
  }

  .home {
    flex-direction: column;
    margin: 5rem 4rem;
  }

  .home-content h3 {
    font-size: 2.6rem;
  }

  .home-content h1 {
    font-size: 8rem;
    margin-top: 3rem;
  }

  .home-content p {
    max-width: 600px;
    margin: 0 auto;
  }

  .home-img img {
    width: 56vw;
    margin-top: -2rem;
  }

  .about {
    flex-direction: column-reverse;
  }

  .about-content {
    margin: 0 2rem 4rem;
  }

  .about img {
    width: 52vw;
    margin-top: 1rem;
    margin-bottom: 3rem;
  }

  .skills h2 {
    margin-bottom: 3rem;
  }

  .skill-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .project {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .project img {
    width: 100%;
  }
}
