@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Caveat:wght@700&family=Poppins:wght@300;400;500;600;800;900&family=Vina+Sans&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}
:root {
  --bg-color: #000;
  --second-bg-color: #1f242d;
  --text-color: #fff;
  --main-color: #fec000;
  --second-main-color: #0ef;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
}
body {
  background-color: var(--bg-color);
  color: var(--text-color);
}
section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
}
/* header section design */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background-color: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}
.header.sticky {
  border-bottom: 0.1rem solid rgba(0, 0, 0, 0.2);
}
.logo {
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 600;
  cursor: pointer;
  /* font-family: "Caveat", cursive; */
  letter-spacing: 0.75rem;
  transition: 0.8s ease-in-out;
}
.logo:hover {
  color: var(--main-color);
}
.nav-bar a {
  font-size: 1.7rem;
  text-transform: uppercase;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 600;
  transition: 0.3s;
}
.nav-bar a:hover,
.nav-bar a.active {
  color: var(--main-color);
}
#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
}
/* home section design */
.home {
  display: flex;
  justify-content: center;
  gap: 8rem;
  align-items: center;
}

.home-img img {
  padding: 2vw;
  width: 35vw;
  /* animation: floatImage 4s ease-in-out infinite; */
}

.home-content h3 {
  font-size: 3.2rem;
  font-weight: 700;
}

.home-content h4 {
  font-size: 3.2rem;
  font-weight: 700;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 2rem;
}

span {
  color: var(--main-color);
}

.home-content h1 {
  font-size: 5.6rem;
  font-size: 700;
  line-height: 1.3;
  /* color: var(--second-main-color); */
}

.home-content .greet {
  color: var(--second-main-color);
}

.home-content p {
  font-size: 1.6rem;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--second-main-color);
  /* border: 0.2rem solid var(--main-color); */
  border-radius: 50%;
  font-size: 2rem;
  color: var(--second-main-color);
  /* color: var(--main-color); */
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
}

.social-media a:hover {
  background: var(--second-main-color);
  /* background: var(--main-color); */
  color: var(--second-bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  /* background: var(--main-color); */
  background: transparent;
  border: 0.2rem solid var(--main-color);

  border-radius: 4rem;
  /* box-shadow: 0 0 1rem var(--main-color); */
  font-size: 1.6rem;
  color: var(--main-color);
  /* color: var(--second-bg-color); */
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.5s ease;
}

.btn:hover {
  /* box-shadow: none; */
  box-shadow: 0 0 1rem var(--main-color);
  background-color: #fec000;
  color: var(--bg-color);
}
/* portfolio section design */
.heading {
  text-align: center;
  font-size: 4.5rem;
}
.portfolio {
  background: var(--bg-color);
  width: 100%;
  display: flex;
  flex-direction: column;
}
.portfolio h2 {
  margin-bottom: 4rem;
}
.portfolioBtn ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.portfolioBtn ul li {
  font-size: 1.6rem;
  font-weight: 600;
  list-style: none;
  background: #1f242d;
  padding: 1rem 2.8rem;
  letter-spacing: 1px;
  cursor: pointer;
  margin-bottom: 3rem;
  border-radius: 4rem;
  transition: 0.8s ease-in;
}
.portfolioBtn ul li.active {
  background: var(--main-color);
  color: #000;
}
.portfolioBtn ul li:hover {
  background: var(--main-color);
  color: #000;
}
.portfolio-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2rem;
}
.portfolio-container .item-box {
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: var(--second-bg-color);
}
.portfolio-container .item-box.hide {
  display: none;
}

.item-box img {
  max-width: 100%;
  height: auto;
  /* transition: 0.8s ease; */
}

/* .portfolio-container .item-box img:hover {
    transform: scale(1.1);
} */
.layer {
  opacity: 0;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 75%;
  height: 75%;
  background-color: #b9b9b9;
  transition: all 0.9s ease;
}
.layer p {
  transition: all 0.9s ease;
  transform: scale(0.1);
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--bg-color);
  letter-spacing: 1px;
}

.item-box:hover {
  cursor: pointer;
}
.item-box:hover .layer {
  opacity: 0.8;
  width: 90%;
  transition: all 0.5s ease;
}

.item-box:hover .layer p {
  transform: scale(1);
  transition: all 0.9s ease;
}
/* end */

.item-box .text-content h3 {
  color: var(--second-main-color);
  font-size: 2.6rem;
}
.item-box .text-content p {
  font-size: 1.3rem;
}
.youtube-player-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  transition: all 0.8s ease;
}
.youtube-player-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.youtube-player-popup {
  position: fixed;
  width: 80%;
  left: 50%;
  transform: translate(-50%, -100%);
  /* background-color: red; */
  transition: all 0.8s ease;
}
.youtube-player-overlay.active .youtube-player-popup {
  transform: translate(-50%, 0%);
}
.youtube-player-popup iframe {
  width: 100%;
  aspect-ratio: 16/9;
}
/* about section */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: var(--second-bg-color);
}

.about img {
  padding: 2vw;
  width: 35vw;
}

.about .heading {
  text-align: center;
  font-size: 4.5rem;
}

.about-content h2 {
  text-align: left;
  line-height: 1.2;
}

.about-content h3 {
  font-size: 2.6rem;
  color: var(--main-color);
}

.about-content h3 span {
  color: var(--second-main-color);
}

.about-content p {
  max-width: 45rem;
  font-size: 1.6rem;
  margin: 2rem 0 3rem;
}
.also-on-container {
  margin: 2rem 4rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding: 1rem 2rem;
}
.also-on-container svg g {
  transition: all 0.8s ease;
}
.also-on-container a:hover svg g {
  fill: var(--main-color);
}

.portfolio {
  background: var(--bg-color);
  /* background: red; */
}

.portfolio h2 {
  margin-bottom: 4rem;
}

.portfolio-container {
  width: 100%;
}

.portfolio-container .portfolio-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 6rem;
}

.portfolio-box .video-content {
  width: fit-content;
  position: relative;
}

.portfolio-box .text-content {
  /* background: var(--second-bg-color); */
  text-align: center;
}

.portfolio-box .text-content h3 {
  color: var(--second-main-color);
  font-size: 2.6rem;
}

.portfolio-box .text-content p {
  font-size: 1.6rem;
}
/* contact section */
.contact {
  background: var(--bg-color);
}

.contact h2 {
  margin-bottom: 3rem;
}

.contact form {
  max-width: 70rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3rem;
}

.contact form .input-box,
.contact form .dual-input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form .dual-input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--bg-color);
  background: var(--second-bg-color);
  border-radius: 0.8rem;
  margin: 0.7rem 0;
}

.contact form .input-box input {
  width: 100%;
}

.contact form .dual-input-box input {
  width: 49%;
}

.contact form textarea {
  resize: none;
}

.contact form .btn {
  margin-top: 2rem;
  cursor: pointer;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--bg-color);
}

.footer-text {
  /* display: flex; */
  text-align: center;
  align-items: center;
  gap: 3rem;
  justify-content: center;
}

.footer-text a {
  color: var(--second-main-color);
}

.footer .wrapper {
  text-align: center;
}

.footer-text p {
  font-size: 1.6rem;
  font-weight: 600;
}

.footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  background: var(--main-color);
  border-radius: 0.8rem;
  transition: 0.5s ease;
}

.footer-iconTop a:hover {
  box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--second-bg-color);
}

/* BREAKPOINTS */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }

  section {
    padding: 10rem 3% 2rem;
  }

  .services {
    padding-bottom: 7rem;
  }

  .portfolio {
    padding-bottom: 7rem;
  }

  .portfolio-box {
    flex-wrap: column-reverse;
  }

  .contact {
    min-height: auto;
  }

  .footer {
    padding: 2rem 3%;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .header {
    width: 100vw;
  }

  #menu-icon {
    display: block;
  }

  .nav-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: var(--bg-color);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    display: none;
  }

  .nav-bar.active {
    display: block;
  }

  .nav-bar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  .home {
    flex-direction: column;
  }

  .home-img img {
    width: 100vw;
  }
  .home-content h3 {
    font-size: 2.6rem;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  .home-img img {
    width: 70vw;
    margin-top: 4rem;
  }

  .about {
    flex-direction: column-reverse;
  }

  .about img {
    width: 70vw;
    margin-top: 4rem;
  }

  .services h2 {
    margin-bottom: 3rem;
  }

  .portfolio h2 {
    margin-bottom: 3rem;
  }

  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolioBtn {
    overflow-x: auto;
    display: flex;
  }
  .youtube-player-popup {
    width: 100%;
    bottom: 50%;
    transform: translate(-50%, -50%);
  }
  .contact {
    display: flex;
    flex-direction: column;
  }

  .contact .contact-detail {
    width: fit-content;
  }
}

@media (max-width: 617px) {
  .portfolio-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }

  .contact form .input-box input {
    width: 100%;
  }
}

@media (max-width: 365px) {
  .home-img img {
    width: 90vw;
  }

  .about-img img {
    width: 90bw;
  }

  .footer {
    flex-direction: column-reverse;
  }

  /* .footer p {
    text-align: center;
    margin-top: 2rem;
  } */
}
