/* custom scrollbar design */

/* width */
::-webkit-scrollbar {
  width: 15px;
}

/* button */
::-webkit-scrollbar-button {
  display: none;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #00000050;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #00000070;
}

/* Track */
::-webkit-scrollbar-track {
  background: #ffffff90;
}

/* Corner */
::-webkit-scrollbar-corner {
  display: none;
}

/* Resizer */
::-webkit-resizer {
  background: #999;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  user-select: none;
  scroll-behavior: smooth;
}

body {
  background: #080808;
}

.container {
  position: relative;
  max-width: 1440px;
  margin: auto;
}

/* header section start ------------------------------------------- */

header {
  position: relative;
  top: 0;
  left: 0;
  /* transform: translateX(-50%); */
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  padding: 40px 50px;
  z-index: 100;
}

a.logo {
  position: relative;
  display: inline-block;
  max-width: 100px;
  font-size: 30px;
  font-weight: 900;
  line-height: 0.9;
  text-decoration: none;
  color: #ffffff;
  z-index: 100;
}

/* menu btn design -------------------------------------- */

.menu-btn {
  position: absolute;
  top: 40px;
  right: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: 0.5s cubic-bezier(0.8, -0.01, 0.49, 0.71);
  z-index: 1000;
}

.menu-btn.active {
  transition: 0.5s cubic-bezier(0.8, -0.01, 0.49, 0.71);
}

.menu-btn span {
  display: block;
  width: 40px;
  height: 2px;
  background: #ffffff;
  transform-origin: right;
  margin: 10px 0;
  transition: 0.5s cubic-bezier(0.8, -0.01, 0.49, 0.71);
}

.menu-btn.active span:nth-child(1) {
  transform: rotate(-30deg) translate(-11px, -5px) scaleX(0.5);
}

.menu-btn.active span:nth-child(2) {
  transform: translateX(10px);
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(30deg) translate(-11px, 5px) scaleX(0.5);
}

/* nav section ------------------------------------------ */

.nav {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.5s cubic-bezier(0.8, -0.01, 0.49, 0.71);
  transition-delay: 1s;
  opacity: 0;
  z-index: 900;
}

.nav.active {
  top: 0;
  transition-delay: 0s;
  opacity: 1;
}

.nav li {
  list-style: none;
  margin: 20px 0;
  overflow: hidden;
}

.nav li a {
  display: block;
  transform: translateY(80px);
  font-size: 60px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  transition: 0.5s cubic-bezier(0.8, -0.01, 0.49, 0.71);
  animation: navDeactiveLinkTransform 1s cubic-bezier(0.8, -0.01, 0.49, 0.71) forwards;
}

@keyframes navDeactiveLinkTransform {
  0% {
    transform: translateY(0);
  } 100% {
    transform: translateY(80px);
  }
}

.nav.active li a {
  animation: navActiveLinkTransform 1s cubic-bezier(0.8, -0.01, 0.49, 0.71) forwards;
  animation-delay: 0.5s;
}

@keyframes navActiveLinkTransform {
  0% {
    transform: translateY(80px);
  } 100% {
    transform: translateY(0);
  }
}

.nav li a:hover {
  letter-spacing: 10px;
}

/* hero section start --------------------------------------- */

.hero {
  position: relative;
  height: 800px;
  background: url(./images/rally-slider-bg-bike.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom right;
  overflow: hidden;
}

.hero h1 {
  position: absolute;
  top: 30%;
  left: 60%;
  width: 430px;
  line-height: 0.8;
  font-size: 70px;
  font-weight: 900;
  border-left: 2px solid;
  padding-left: 10px;
}

.hero h1 span {
  color: #000000;
}

.hero h1 ion-icon {
  font-size: 55px;
}

.divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

/* about section start --------------------------------------- */

.about {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 50px;
  padding-bottom: 0;
  background: #0a0a0a;
}

.about-text {
  max-width: 600px;
}

.about-text .title {
  letter-spacing: 2px;
  font-weight: 500;
  font-size: 15px;
}

.about-text p {
  margin: 30px 0;
  max-width: 500px;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 600;
}

.about-text .btn {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  border-bottom: 2px solid #ffffff;
  cursor: pointer;
  transition: 0.5s cubic-bezier(0.8, -0.01, 0.49, 0.71);
}

.about-text .btn:hover {
  letter-spacing: 2px;
}

.about-img {
  width: 500px;
}

/* gallery section start -------------------------------------------- */

.gallery {
  position: relative;
  padding: 100px 150px;
  display: grid;
  grid-gap: 30px 30px;
  background: #0a0a0a;
}

.gallery .item {
  position: relative;
  overflow: hidden;
}

.gallery .item1 {
  grid-area: 1 / 1 / 3 / 2;
}

.gallery .item2 {
  grid-area: 1 / 2 / 2 / 3;
}

.gallery .item3 {
  grid-area: 2 / 2 / 3 / 3;
}

.gallery .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  cursor:pointer;
  transition: 1s;
}

.gallery .item:hover img {
  filter: grayscale(0);
}

.gallery .item .expand {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: #ffffff;
  color: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  transition: 0.5s cubic-bezier(0.8, -0.01, 0.49, 0.71);
  opacity: 0;
  cursor: pointer;
}

.gallery .item:hover .expand {
  opacity: 1;
}

.gallery .item .expand:hover {
  transform: scale(1.1);
}

.gallery .item .expand ion-icon {
  --ionicon-stroke-width: 25px;
  font-size: 25px;
}

/* image viewer ------------------------------------------- */

.img-veiwer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: #1a1a1a;
  display: none;
  z-index: 1000;
}

.img-veiwer.active {
  display: block;
}

.img-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  opacity: 0.9;
  display: none;
  z-index: 1000;
}

.img-viewer-overlay.active {
  display: block;
}

.img-veiwer .close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  transition: 0.5s cubic-bezier(0.8, -0.01, 0.49, 0.71);
  cursor: pointer;
}

.img-veiwer .close-btn:hover {
  transform: scale(1.1);
}

.img-veiwer .close-btn ion-icon {
  font-size: 30px;
}

.img-veiwer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* sponsors  section start----------------------------------*/

.sponsors {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0a0a0a;
  padding: 100px 50px 200px;
}

.sponsors img {
  display: inline-block;
  width: 150px;
  margin: 0 30px;
  opacity: 0.3;
  transition: 0.5s cubic-bezier(0.8, -0.01, 0.49, 0.71);
}

.sponsors img:hover {
  opacity: 0.5;
}

/* footer section start------------------------------------- */
footer {
  background: #0a0a0a;
  border-top: 1px solid #111111;
  padding: 40px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social ion-icon {
  font-size: 25px;
  margin: 10px;
  color: #cfcfcf;
  cursor: pointer;
  transition: 0.25s;
}

.social ion-icon:hover {
  color: #ffffff;
}

.copyright {
  width: 120px;
  font-size: 14px;
}

.copyright span {
  font-weight: 700;
  cursor: pointer;
}

.copyright span:hover {
  text-decoration: underline;
}
