@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap');

* {
      box-sizing: border-box;
}

html {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100vh;
}

body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100vh;
      font-family: Poppins;
      font-weight: 400;
      background: url(chip.jpg);
      background-position: center;
      background-size: cover;
      overflow-x: hidden !important;

      animation-name: animate;
      animation-direction: alternate-reverse;
      animation-play-state: running;
      animation-timing-function: ease-in-out;
      animation-duration: 10s;
      animation-fill-mode: forwards;
      animation-iteration-count: infinite;
}

@keyframes animate{
      100%{
            background-image: url(dna.jpg);
      }
}


nav {
      padding: 8px;
}

.logo {
      float: left;
      padding: 8px;
      cursor: pointer;
      width: 50%;
      height: auto;
      min-width: 200px;
      margin-top: 0%;
      margin-left: 2.5%;
    
}


nav ul {
      float: right;
}

nav a:hover {
      color: #33A0FF;    
  }

nav ul li {
      display: inline-block;
      float: left;
      margin-top: 10%;
}

nav ul li:not(:first-child) {
      margin-left: 48px;
      margin-top: 10%;
}

nav ul li:last-child {
      margin-right: 50px;
      margin-top: 10%;
}

nav ul li a {
      display: inline-block;
      outline: none;
      color: rgb(255, 255, 255);
      text-transform: uppercase;
      text-decoration: none;
      font-size: 14px;
      letter-spacing: 1.2px;
      font-weight: 600;
}

.text{
      position: relative;
      z-index: 10;
      margin-top: 375px;
      margin-left: 50px;
  }
  
  .text h2
  {
    font-size: 5em;
    font-weight: 800;
    color: #fff;
    line-height: 1em;
    text-transform: uppercase;
  }


  .text p
{
  font-size: 2.1em;
  color: #fff;
  margin: 20px 0;
  font-weight: 400;
  max-width: 1000px;
  background: rgba(0,0,0,0.3);
}

@media screen and (max-width: 864px) {
      .logo {
            padding: 0;
      }

      .nav-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: #fff;
            opacity: 0;
            transition: all 0.2s ease;
      }

      .nav-wrapper ul {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100%;
      }

      .nav-wrapper ul li {
            display: block;
            float: none;
            width: 100%;
            text-align: right;
            margin-bottom: 10px;
      }

      .nav-wrapper ul li:nth-child(1) a {
            transition-delay: 0.2s;
      }

      .nav-wrapper ul li:nth-child(2) a {
            transition-delay: 0.3s;
      }

      .nav-wrapper ul li:nth-child(3) a {
            transition-delay: 0.4s;
      }

      .nav-wrapper ul li:nth-child(4) a {
            transition-delay: 0.5s;
      }

      .nav-wrapper ul li:not(:first-child) {
            margin-left: 0;
      }

      .nav-wrapper ul li a {
            padding: 10px 24px;
            opacity: 0;
            color: rgb(0, 0, 0);
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 1.2px;
            transform: translateX(-20px);
            transition: all 0.2s ease;
      }


      .nav-btn {
            position: fixed;
            right: 10px;
            top: 2.6%;
            display: block;
            width: 48px;
            height: 48px;
            cursor: pointer;
            z-index: 9999;
            border-radius: 50%;
      }

      .nav-btn i {
            display: block;
            width: 20px;
            height: 2px;
            background: rgb(255, 255, 255);
            border-radius: 2px;
            margin-left: 14px;
      }

      .nav-btn i:nth-child(1) {
            margin-top: 16px;
      }

      .nav-btn i:nth-child(2) {
            margin-top: 4px;
            opacity: 1;
      }

      .nav-btn i:nth-child(3) {
            margin-top: 4px;
      }
}

#nav:checked + .nav-btn {
      transform: rotate(45deg);
}

#nav:checked + .nav-btn i {
      background: #000;
      transition: transform 0.2s ease;
}

#nav:checked + .nav-btn i:nth-child(1) {
      transform: translateY(6px) rotate(180deg);
}

#nav:checked + .nav-btn i:nth-child(2) {
      opacity: 0;
}

#nav:checked + .nav-btn i:nth-child(3) {
      transform: translateY(-6px) rotate(90deg);
}

#nav:checked ~ .nav-wrapper {
      z-index: 9990;
      opacity: 1;
}

#nav:checked ~ .nav-wrapper ul li a {
      opacity: 1;
      transform: translateX(0);
}

.hidden {
      display: none;
}
