

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
:root {
  --background-colr: #fff;
  --text-color: #555;
  --title-color: #000;
}
.dark-theme {
  --background-colr: #000;
  --text-color: #999;
  --title-color: #fff;
}

body {
  background: var(--background-colr);
  transition: 0.5s;
}
.header {
  width: 100%;
  height: 100vh;
  padding: 0 8%;
  position: relative;
  overflow: hidden;
}
nav {
  display: flex;
  align-items: center;
  padding: 10px 0;
}
nav img {
  width: 80px;
}
nav ul {
  width: 100%;
  text-align: right;
  list-style: none;
  margin-right: 50px;
}
nav ul li {
  display: inline-block;
  margin: 5px 15px;
}
nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}
.toggle-btn {
  background-color: #4864ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 40px;
  border-radius: 20px;
  cursor: pointer;
}
.toggle-btn img {
  width: 25px;
  margin-left: 10px;
}
.content {
  margin-top: 10%;
  max-width: 600px;
}
.content h1 {
  font-size: 80px;
  font-family: serif;
  color: var(--title-color);
  font-weight: 600;
}
.content h1 span {
  font-family: serif;
  font-weight: 400;
  font-style: italic;
}
.content p {
  color: var(--title-color);
}
.content a {
  background: #4864ff;
  color: #fff;
  padding: 15px 70px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  margin-top: 30px;
}
.image-box {
  position: absolute;
  bottom: 0;
  right: 10%;
}
.image-box img {
  width: 400px;
  display: block;
}
.pattern {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  transform: rotate(40deg);
  z-index: -1;
}
.pattern img {
  width: 350px;
  position: absolute;
  top: 0;
  left: 0;
  animation: anime 1s linear infinite alternate-reverse;
}
.pattern img:nth-child(1) {
  transform: rotate(-45deg) translate(-70px, -50px);
  animation-delay: 0.5s;
}
.pattern img:nth-child(2) {
  transform: rotate(65deg) translate(0px, -40px) scale(0.8);
}
@keyframes anime {
  100% {
    margin-left: 40px;
    margin-top: 20px;
    opacity: 0.3;
  }
}
@media (max-width: 1000px) {
  nav {
    padding: 4px 0;
  }
  nav img {
    width: 60px;
  }
  nav ul {
    width: 100%;
    text-align: right;
    list-style: none;
    margin-right: 50px;
  }
  nav ul li a {
    font-size: 14px;
  }
  .content p {
    margin-top: 20px;
    max-width: 400px;
  }
  .toggle-btn {
    width: 130px;
    height: 30px;
  }
  .toggle-btn img {
    width: 15px;
    margin-left: 10px;
  }
  .content h1 {
    font-size: 50px;
  }
  .content a {
    padding: 10px 60px;
  }
  .image-box {
    position: absolute;
    bottom: 0;
    right: 10%;
  }
  .image-box img {
    width: 350px;
    display: block;
  }
  .pattern img {
    width: 300px;
  }
}
@media (max-width: 667px) {
  .image-box {
    display: none;
  }
  nav ul {
    display: none;
  }
  .toggle-btn {
    position: absolute;
    right: 40px;
  }

  .content {
    margin-top: 100px;
  }
}
