@font-face {
  font-family: "zenex";
  src: url(../vender/fonts/Nunito-Regular.ttf);
}

body,
html {
  font-family: "zenex";
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.svg-background {
  height: 100vh;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  background-color: #003c61;
  height: 12vh;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
}

nav ul li {
  margin-left: -1.5rem;
}

nav ul li a {
  color: rgb(1, 1, 1);
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.logo img {
  max-height: 60px;
  border-radius: 50%;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.menu li {
  margin-left: 20px;
}

.menu li a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  padding-bottom: 5px;
  position: relative;
}

.menu li a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #00aeff;
  transition: width 0.5s;
  position: absolute;
  left: 0;
  bottom: 0;
}

.menu li a:hover::after {
  width: 100%;
}

#menu-toggle {
  display: none;
}

.close-btn {
  display: none;
}
@media (max-width: 768px) {
  nav {
    flex-direction: row;
  }

  .menu-icon {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    padding: 1rem;
  }

  nav ul {
    flex-direction: row;
    width: 100%;
    display: none;
  }

  nav ul li {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0;
  }

  #menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -250px;
    height: 80%;
    width: 194px;
    background: rgba(0, 0, 0, 0.9);
    /* padding-top: -10px; */
    transition: right 0.3s;
    z-index: 10;
    border-radius: 10px;
  }

  .menu li {
    margin: 20px 0;
    text-align: center;
  }

  #menu-toggle:checked + .menu-icon + .menu {
    display: flex;
    right: 0;
  }

  .menu-icon {
    display: block;
    color: white;
    font-size: 30px;
  }

  .close-btn {
    display: block;
    text-align: right;
    margin: 10px 20px 0 0;
    font-size: 20px;
    color: white;
    cursor: pointer;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    box-shadow: 0 0 10px 0 #ffffff1a;
    height: 10vh;
  }
}

.svg-bg {
  position: relative;
  width: 100%;
  height: 90%;
}
.content {
  position: absolute;
  top: 50%;
  left: 2%;
  transform: translateY(-50%);
  color: rgb(0, 0, 0);
  z-index: 3;
}
.content h1 {
  font-size: 2.5rem;
  margin: 0;
}
.content p {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.content h1,
.content p {
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeIn 1.5s forwards;
}

.content h1 {
  animation-delay: 0.3s;
}

.content p {
  animation-delay: 0.6s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

svg {
  position: absolute;
  top: 0;
  left: 0;
  right: 90px;
  height: 100vh;
  width: 100%;
}
.truck-image {
  position: absolute;
  top: 45%;
  left: 0;
  margin-top: -1.5rem;
  transform: translate(-50%, -50%);
  max-height: 60%;
  z-index: 2;
  animation: drive 3s ease-out forwards;
  transform: translateX(100%);
}

@keyframes drive {
  to {
    transform: translateX(0); /* Ends at the original position (left: 70%) */
  }
}

.content {
  position: relative;
  z-index: 2;
  text-align: center;
  top: 30%;
  color: #ffffff;
}

.content h1 {
  font-size: 3.5rem;
}

/* Button css */
.content .btn {
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  border: none;
  background-color: #05376d;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.content .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: left 0.5s;
}

.content .btn:hover::after {
  left: 100%;
}

/* end */

@media (max-width: 768px) {
  .svg-background {
    height: 100vh;
  }
  .svg-bg {
    overflow: hidden;
    height: 75%;
    width: 100%;
  }

  .content {
    position: relative;
    z-index: 2;
    text-align: center;
    top: 30%;
  }

  svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    z-index: 1;
  }

  .truck-image {
    position: relative;
    max-width: 100%;
    left: 10%;
    top: 15%;
    max-height: 100%;
    z-index: 2;
  }
  .content h1 {
    font-size: 2rem;
}
}
/* media query at 1024px screen */
@media (width: 1024px) {
  .svg-background {
    height: 55vh;
  }
  .svg-bg {
    overflow: hidden;
    height: 85%;
  }

  .content {
    position: relative;
    z-index: 2;
    text-align: center;
    top: 25%;
  }

  .content h1 {
    font-size: 2.5rem;
  }

  svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    z-index: 1;
  }

  .truck-image {
    position: relative;
    max-width: 80%;
    left: 25%;
    top: 15%;
    max-height: 50%;
    z-index: 2;
  }
}
