@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;600;800;900&family=Poppins:wght@300;400;500;600&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

button {
  border: none;
  outline: none;
}

:root {
  --bg-color: #2a2a2a;
  --second-bg-color: #202020;
  --text-color: #fff;
  --second-color: #ccc;
  --main-color: #05b4ff;
  --big-font: 4.5rem;
  --h2-font: 2.5rem;
  --p-font: 1.1rem;
}

/* html{
    font-size: 62.5%;
} */

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

/* ! navbar */
nav {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  /* height: 80px; */
  padding: 22px 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* background-color: red; */
  border-bottom: 1px solid transparent;
  transition: all 0.45s ease;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-list a {
  color: var(--second-color);
  font-size: 17px;
  font-weight: 500;
  margin: 0 25px;
  transition: all 0.45s ease;
}

.nav-list a:hover {
  color: var(--main-color);
}

.active {
  color: var(--main-color) !important;
}

nav .logo {
  color: var(--text-color);
  font-size: 35px;
  font-weight: 700;
  letter-spacing: 1px;
}

nav .logo span {
  color: var(--main-color);
}

/* ! home */

.home {
  /* position: relative; */
  height: 100vh;
  width: 100%;
  padding: 0 10%;
  background-image: url("../img/background.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.home-text {
  /* width: 80%; */
  padding-right: 25%;
}

.slide {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.slide .one {
  background-color: var(--main-color);
  color: var(--text-color);
  padding: 0 15px;
  font-size: 20px;
  line-height: 32px;
  font-weight: 500;
  border-radius: 5px;
  margin-right: 15px;
}

.slide .two {
  color: var(--second-color);
  font-size: 20px;
  font-weight: 500;
}

.home-text h1 {
  font-size: var(--big-font);
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.1;
  font-size: var(--big-font);
}

.home-text h2 {
  color: var(--text-color);
  margin-bottom: 25px;
  font-size: var(--h2-font);
  font-weight: 700;
  line-height: 1.1;
}

.home-text h2 span {
  color: var(--main-color);
}

.home-text p {
  margin-bottom: 25px;
  font-size: var(--p-font);
}

.home-text .btn {
  display: inline-block;
  background-color: var(--main-color);
  border-radius: 5px;
  color: var(--text-color);
  letter-spacing: 1px;
  font-weight: 500;
  transition: all 0.45s ease;
  padding: 0px 25px;
  font-size: 18px;
  line-height: 49px;
  cursor: pointer;
}

.home-text .btn:hover {
  transform: scale(0.9);
}

#menu {
  font-size: 2rem;
}

#close {
  font-size: 2rem;
}

.d-none {
  display: none !important;
}

/* ! hover */
/* Underline From Center */
.hvr-underline-from-center {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  position: relative;
  overflow: hidden;
}
.hvr-underline-from-center:before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 51%;
  right: 51%;
  bottom: 0;
  background: var(--main-color);
  height: 2px;
  -webkit-transition-property: left, right;
  transition-property: left, right;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.hvr-underline-from-center:hover:before,
.hvr-underline-from-center:focus:before,
.hvr-underline-from-center:active:before {
  left: 0;
  right: 0;
}

/* ! media screen */
@media only screen and (max-width: 1480px) {
  nav {
    padding: 12px 5%;
  }

  .home {
    padding: 0 5%;
  }
}

@media only screen and (max-width: 1100px) {
  :root {
    --big-font: 4rem;
    --h2-font: 2rem;
    --p-font: 0.8rem;
  }
}

@media only screen and (max-width: 1024px) {
  .nav-list a {
    margin: 0 15px;
  }
}

@media only screen and (max-width: 768px) {
  #menu {
    display: block !important;
  }

  .nav-list {
    position: absolute;
    top: -1000px;
    left: 0;
    right: 0;
    width: 100%;
    /* background-color: var(--text-color); */
    background-color: var(--bg-color);
    display: block !important;
    padding: 0 5%;
    transition: all 0.3s;
    z-index: -100000;
  }

  .nav-list.show {
    top: 80px;
  }

  .nav-list a {
    padding: 5px 0;
    margin: 10px 0;
  }

  .home-text {
    width: 100%;
    padding-right: 0;
  }
}

@media only screen and (max-width: 480px) {
}
