.home {
  background-image: url("../home_images/abstract-circles.jpg");
  background-size: cover;
  height: 100vh;
  color: white;
  position: relative;
  transition: opacity 2s;
}

.home::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.329);
}

.home header {
  padding: 15px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: absolute;
  width: 100%;
}

@media (max-width: 440px) {
  .home header {
    padding: 15px 30px;
  }
}

header .logo {
  display: flex;
  align-items: center;
}

.home header .name {
  font-weight: bold;
  font-size: 25px;
  user-select: none;
  margin-left: 20px;
}

@media (max-width: 365px) {
  .home header .name {
    font-size: 20px;
  }
}

header .logo img {
  width: 50px;
  height: 50px;
}


@media (max-width: 365px) {
  .home header img {
    width: 35px;
    height: 35px;
  }
}

.home header ul {
  list-style-type: none;
}

@media (max-width: 1160px) {
  .home header ul {
    display: flex;
    flex-direction: column;
    background-color: var(--mainColor);
    padding: 20px;
    border-radius: 7px;
    width: 330px;
    height: 358px;
    justify-content: center;
    position: absolute;
    right: 53px;
    top: 68px;
    display: none;
    transition: opacity 0.1s ease-in;
  }
  
  .home header ul.show {
    display: block;
  }
}

@media (max-width: 430px) {
  .home header ul {
    width: 280px;
  }
}

@media (max-width: 375px) {
  .home header ul {
    width: 260px;
  }
}

.home header ul li {
  display: inline-block;
  margin-left: 25px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s opacity ease-in, 0.3s margin-left ease-in;
  font-size: 20px;
}

.home header ul li:hover {
  opacity: 1;
}

.home header ul li i {
  margin-right: 13px;
}

@media (max-width: 1285px) {
  .home header ul li {
    font-size: 18px !important;
  }
}

@media (max-width: 1223px) {
  .home header ul li {
    font-size: 16px !important;
  }
}

@media (max-width: 1160px) {
  .home header ul li {
    margin-bottom: 19px;
    opacity: 1 !important;
    font-size: 25px !important;
    margin-left: 15px !important;
    width: 100%;
    position: relative;
  }

  .home header ul li:hover {
    margin-left: 70px !important;
  }

  .home header ul li i {
    margin-right: 30px;
  }
}

@media (max-width: 430px) {
  .home header ul li:hover {
    margin-left: 15px !important;
  }
}

.home header ul li a {
  width: 100%;
}

.home header ul li.active a {
  color: var(--mainColor);
  transition: color 0.3s ease;
}

.home header .burger-icon {
  width: 50px;
  height: 30px;
  position: relative;
  cursor: pointer;
  transition: margin-bottom 0.3s ease-in;
  display: none;
}

@media (max-width: 1160px) {
  .home header .burger-icon {
    display: block;
  }
}

.home header .burger-icon.clicked {
  margin-bottom: 20px;
}

@media (max-width: 365px) {
  .home header .burger-icon.clicked {
    margin-bottom: 5px;
  }
}

.home header .burger-icon span {
  width: 100%;
  background-color: white;
  height: 5px;
  display: inline-block;
  position: absolute;
  transition: all 0.3s ease-in;
}

.home header .burger-icon span:first-child {
  top: 0;
}

.home header .burger-icon span:nth-child(2) {
  top: 12px;
}

.home header .burger-icon span:last-child {
  top: 25px;
}

.home header .burger-icon.clicked span:nth-child(2) {
  opacity: 0;
}

.home header .burger-icon.clicked span:first-child,
.home header .burger-icon.clicked span:last-child {
  top: 25px;
  background-color: red;
  height: 7px;
}

.home header .burger-icon.clicked span:first-child {
  transform: rotate(45deg);
}

.home header .burger-icon.clicked span:last-child {
  transform: rotate(-45deg);
}

.home .description {
  width: 75%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.home .description h2 {
  font-size: 50px;
  margin: 0;
  margin-bottom: 10px;
  text-align: center;
}

@media (max-width: 840px) {
  .home .description h2 {
    font-size: 40px;
  }
}

@media (max-width: 530px) {
  .home .description h2 {
    font-size: 35px;
  }
}

@media (max-width: 461px) {
  .home .description h2 {
    font-size: 30px;
  }
}

@media (max-width: 397px) {
  .home .description h2 {
    font-size: 28px;
  }
}

.home .description h2 > span {
  color: var(--mainColor);
  transition: color 0.3s ease;
}

.home .description p {
  text-align: center;
  opacity: 0.7;
  line-height: 1.8;
}

@media (max-width: 840px) {
  .home .description p {
    font-size: 14px;
  }
}

@media (max-width: 397px) {
  .home .description p {
    font-size: 13px;
  }
}

.home .description .buttons {
  margin-top: 20px;
}

.home .description .buttons button:last-child {
  margin-left: 20px;
}

@media (max-width: 404px) {
  .home .description .buttons button {
    width: 120px;
  }
}

@media (max-width: 352px) {
  .home .description .buttons button {
    width: 100px;
    font-size: 18px;
  }
}
