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

:root {
  --header-height: 5rem;
  /* color */
  --main-color: #ff7101;
  --black-color: #171717;
  --white-color: #ffffff;

  /* font and tyography */
  --font-body: "Poppins", sans-serif;
  --font-title: "Raleway", sans-serif;

  --big-font-size: 3.5rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  border: none;
  outline: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--normal-font-size);
  color: var(--black-color);
  position: relative;
  overflow-x: hidden;
}
/* common style */

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  font-family: var(--font-title);
  border: 1px solid var(--white-color);
  padding: 1rem 1.5rem;
  color: var(--white-color);
  font-size: var(--h2-font-size);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

.btn:hover {
  color: var(--white-color);
  background: var(--main-color);
  border-color: var(--main-color);
}

/* header */

.header {
  width: 100%;
  background: #000;
  padding: 1rem 1.25rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header-shadow {
  background-color: rgba(0, 0, 0, 0.8);
}

.header-container {
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--white-color);
  font-size: var(--h1-font-size);
  text-transform: uppercase;
}

.logo i {
  font-size: var(--h1-font-size);
  transform: rotate(45deg);
  color: var(--main-color);
}

.logo span {
  font-weight: 200;
  color: var(--main-color);
  margin-left: 5px;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu li {
  margin-left: 1rem;
}

.nav-link {
  font-size: var(--h3-font-size);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--white-color);
  padding-bottom: 0.5rem;
  transition: all 0.4s ease-in-out;
}

.nav-link:hover,
.active {
  border-bottom: 2px solid var(--main-color);
}

.nav-toggle {
  display: none;
}

/* home */
.home {
  padding: 0;
}

.home .slide {
  width: 100%;
  height: 100vh;
  background-size: cover !important;
  background-position: center !important;
  padding: 2rem 9%;
  display: flex;
  align-items: center;
  /* get code link: https://bennettfeely.com/clippy/ */
  clip-path: polygon(50% 0%, 100% 0, 100% 88%, 0 99%, 0 0);
}

.slide-1 {
  background: url(./images/home-1.png);
  background-repeat: no-repeat;
}

.slide-2 {
  background: url(./images/home-2.jpg);
  background-repeat: no-repeat;
}

.slide-3 {
  background: url(./images/home-3.png);
  background-repeat: no-repeat;
}

.home .slide .content {
  width: 60rem;
  transform: translateY(-5rem);
}

.section-title {
  position: relative;
  font-size: var(--big-font-size);
  margin: 1rem 0;
  color: var(--white-color);
  text-transform: uppercase;
}

.section-title::after {
  content: "";
  position: absolute;
  top: 0;
  left: -20px;
  background: url(./images/title-bg.png) no-repeat;
  background-position: center;
  background-size: cover;
  width: 130px;
  height: 130px;
  z-index: -1;
}

.section-header {
  color: var(--white-color);
  font-size: var(--h2-font-size);
  font-family: var(--font-title);
  font-weight: 300;
  text-transform: uppercase;
  margin-top: -20px;
  z-index: 1;
}

.home p {
  color: var(--white-color);
  font-family: var(--font-title);
  font-size: var(--h2-font-size);
  padding: 2rem 0;
}

.swiper-pagination-bullet {
  height: 1rem !important;
  width: 1rem !important;
  background: var(--white-color) !important;
  transform: translateY(-7rem) !important;
}

.swiper-pagination-bullet-active {
  background: var(--main-color) !important;
}

/* about */
.about {
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.about-container .left {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  height: 80vh;
}

.about-container .left img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.about-container .left img:first-child {
  transform: translateY(-30px);
  filter: grayscale(1);
}

.about-container .right {
  padding: 0 2rem;
}

.about-container .right h1 {
  color: var(--black-color);
}

.about-container .right h3 {
  color: var(--black-color);
}

.about-container .right p {
  margin-top: 3rem;
  line-height: 1.6;
  font-size: var(--h3-font-size);
  font-weight: 400;
}

.about-container .right .btn {
  margin: 3rem 0;
  color: var(--black-color);
  border-color: var(--main-color);
}

.about-container .right .btn:hover {
  color: var(--white-color);
}

/* courses section start */
.course-container {
  width: 100%;
  min-height: 100vh;
  background: url(./images/courses.png);
  background-position: center;
  background-size: cover;
  clip-path: polygon(50% 0%, 100% 0, 100% 90%, 0 99%, 0 0);
}

.course-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--header-height) 3rem;
}

.course-content .section-title {
  color: var(--white-color);
}

.courses-box {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 3rem;
}

.courses-box .box {
  width: 300px;
  height: 200px;
  margin: 10px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.courses-box .box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.courses-box .box .info {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(0);
  height: 100%;
  width: 100%;
  background: rgba(255, 71, 01, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.courses-box .box:hover .info {
  transform: translateX(-50%) scale(1);
}

.courses-box .box .info h3 {
  text-transform: capitalize;
  font-size: 2rem;
  color: var(--white-color);
  margin-bottom: 1.2rem;
}

.courses-box .box .info .btn {
  padding: 10px;
}

/* courses section end */

/* trainer */
.trainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--header-height) 3rem;
}

.tranier-container {
  width: 100%;
  min-height: 100vh;
}

.tranier-container h1 {
  color: var(--black-color);
}

.tranier-container h3 {
  color: var(--black-color);
}

.tranier-container p {
  font-size: var(--h3-font-size);
  font-weight: 300;
  padding-top: 2rem;
}

.trainer-box {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.trainer-box .trainer-img {
  width: 300px;
  height: 480px;
  margin-left: 2rem;
  margin-bottom: 7rem;
  position: relative;
  cursor: pointer;
}

.trainer-box .trainer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trainer-box .trainer-img::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 100px;
  height: 100px;
  background: var(--main-color);
  z-index: -1;
}

.trainer-box .trainer-img::before {
  content: "";
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100px;
  height: 100px;
  background: var(--main-color);
  z-index: -1;
}

.trainer-box .trainer-img .inner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 71, 01, 0.5);
  opacity: 0;
}

.trainer-box .trainer-img:hover .inner {
  opacity: 1;
}
.trainer-box .trainer-img .inner a {
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.trainer-box .trainer-img .inner a i {
  font-size: var(--h1-font-size);
  background: var(--white-color);
  padding: 1rem;
  color: var(--main-color);
  border-radius: 50%;
}

.trainer-box .trainer-img h1 {
  color: var(--main-color);
  text-transform: uppercase;
  font-size: var(--h2-font-size);
  font-weight: 700;
  padding-top: 1rem;
  text-align: center;
}

.trainer-box .trainer-img p {
  text-align: center;
  font-size: var(--h3-font-size);
  text-transform: uppercase;
  font-size: 300;
  margin-top: -1.5rem;
}

/* video section */
.video {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: url(./images/video.jpg) no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  background-attachment: fixed;
}

.video-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.video-content i {
  font-size: var(--big-font-size);
  color: var(--white-color);
  background: var(--main-color);
  padding: 1rem;
  border-radius: 50%;
}

.video-content h1 {
  font-size: var(--h1-font-size);
  padding: 1rem 0;
  color: var(--white-color);
  text-transform: uppercase;
}

/* schedule */
.time-container {
  width: 100%;
  min-height: 60vh;
}

.time-text {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--header-height) 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.time-text .left .section-title {
  color: var(--black-color);
}

.time-text .left .section-header {
  color: var(--black-color);
  margin-bottom: 3rem;
}

.time-text .left p {
  font-size: var(--h3-font-size);
  font-weight: 400;
  text-transform: capitalize;
}

.time-text .right .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 2rem;
  color: var(--main-color);
  border-color: var(--black-color);
  font-size: var(--h2-font-size);
  padding: 10px 50px;
}

.time-text .right .btn:hover,
.time-text .right .active-btn {
  color: var(--white-color);
  background: var(--main-color);
  border-color: var(--main-color);
}

.time-imgs .slide {
  text-align: center;
  margin-bottom: 2rem;
}

.time-imgs .slide img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  filter: grayscale(50%);
  margin: 0;
}

.time-imgs .slide img:hover {
  filter: grayscale(0);
}

/* Blog */
.blog {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--header-height) 3rem;
}

.blog-container {
  width: 100%;
  min-height: 60vh;
}

.blog-container .section-title {
  color: var(--black-color);
}

.blog-container .section-header {
  color: var(--black-color);
}

.blog-container .blog-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  padding-top: 3rem;
}

.blog-container .blog-content .inner {
  width: 350px;
  margin-bottom: 1rem;
}

.blog-container .blog-content .inner .blog-img {
  position: relative;
  cursor: pointer;
}

.blog-container .blog-content .inner .blog-img img{
  width: 100%;
  height: 100%;
}

.blog-container .blog-content .inner .blog-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 71, 01, 0.5);
  opacity: 0;
}

.blog-container .blog-content .inner .blog-img:hover:after {
 opacity: 1; 
}

.blog-container .blog-content .inner p {
  font-weight: 300;
  text-transform: capitalize;
  line-height: 1.8;
  text-align: left;
}


/* footer */
.footer {
  width: 100%;
  background: url(./images/footer.png) no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.footer .footer-contaier {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 70vh;
}

.footer .footer-contaier .logo {
  padding-top: var(--header-height);
  font-size: 4rem;
  margin-bottom: 2rem;
}

.footer .footer-contaier .logo span {
  font-weight: 700;
}

.footer .footer-contaier .logo i {
  display: none;
}

.footer ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 3rem;
}

.footer ul::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--main-color);
}

.footer ul::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--main-color);
}

.footer ul li {
  margin-left: 1rem;
}

.footer ul li a {
  color: var(--white-color);
  font-size: var(--h3-font-size);
  text-transform: uppercase;
  padding: 1rem;
}

.footer .search-form {
  width: 25rem;
  height: 3rem;
  display: flex;
  border: 2px solid var(--white-color);
  text-align: center;
}

.footer .search-form input{
  height: 100%;
  width: 100%;
  background: transparent;
  color: var(--white-color);
  font-size: var(--h3-font-size);
  padding: 1rem;
}

.footer .search-form label {
  cursor: pointer;
  font-size: 1.8rem;
  margin-right: 1.5rem;
  color: var(--main-color);
}

.footer .search-form label img {
  width: 25px;
  height: 1.5rem;
}

.footer h1 {
  color: var(--white-color);
  font-size: var(--h1-font-size);
  margin-top: 2rem;
  text-transform: uppercase;
}

.footer P {
  color: var(--white-color);
  font-size: var(--h3-font-size);
  margin-top: 2rem;
  text-align: center;
  text-transform: capitalize;
  border-top: 1px solid var(--white-color);
  width: 100%;
  padding-top: .5rem;
}

.footer P span {
  color: var(--main-color);
  text-transform: uppercase;
}

/* scroll to up */
.up {
  height: 4rem;
  width: 4rem;
  position: fixed;
  bottom: 1.5rem;
  right: -5rem;
  z-index: 1000;
  background: var(--main-color);
  /* border-radius: 50%; */
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease-in-out;

  /* https://bennettfeely.com/clippy/ */
  clip-path: polygon(0 66%, 50% 0, 100% 66%, 66% 55%, 66% 100%, 33% 100%, 33% 55%);
}

.up.show {
  right: 0.5rem;
}


/* media queries */

@media (max-width: 860px) {
  .nav {
    width: 0;
    height: 100vh;
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    padding-top: var(--header-height);
    transition: all 0.4s ease-in-out;
  }

  .show-menu {
    width: 60%;
  }

  .nav-menu {
    display: block;
    text-align: center;
  }

  .nav-menu li {
    width: 100%;
    padding: 1.5rem 0;
  }

  .nav-link {
    font-size: var(--h2-font-size);
  }

  .nav-toggle {
    display: block;
    z-index: 100;
  }

  .nav-toggle i {
    font-size: var(--big-font-size);
    color: var(--white-color);
    padding: 5px;
    border: 1px solid var(--main-color);
    border-radius: 5px;
    cursor: pointer;
  }

  .nav-toggle:hover i {
    color: var(--main-color);
  }

  .home .slide {
    clip-path: polygon(50% 0%, 100% 0, 100% 100%, 0 100%, 0 0);
  }

  .home .content {
    padding-left: 0;
  }

  .about .about-container {
    grid-template-columns: unset;
  }

  .about .about-container .left {
    display: none;
  }

  .course-container {
    clip-path: polygon(50% 0%, 100% 0, 100% 100%, 0 100%, 0 0);
  }

  .trainer-box .trainer-img {
    margin-left: 0;
  }

  .footer .search-form {
    width: 90%;
  }
}
