@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #363636;
  --secondary-color: #000000;
  --text-light: #969696;
  --extra-light: #f7f8fd;
  --white: #ffffff;
  --bg: #111111; 
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  white-space: nowrap;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
}

.btn:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
   background-color: var(--bg);
   font-family: "Poppins", sans-serif;
}

nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  z-index: 9;
}

.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.nav__logo a {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.5rem;
}

.nav__logo a img {
  max-width: 80px;
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--primary-color);
  transition: transform 0.5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(100%);
}

.nav__links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}

.nav__btns {
  display: none;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 3rem 1rem;
}

.section__header {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--extra-light);
  text-align: center;
}

.section__subheader {
  font-size: 1.3rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-light);
}

.section__description {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.5rem;
  text-align: center;
}

/* Header */

.header__container {
  display: grid;
  overflow: hidden;
}

.header__image {
  grid-area: 1/1/2/2;
}

.header__image img {
  max-width: 900px;
  margin-left: auto;
}

.header__content {
  grid-area: 1/1/2/2;
  display: flex;
  align-items: center;
}

.header__content > div {
  max-width: 500px;
  padding: 4rem 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--extra-light);
}

.header__content p {
  font-size: 1.2rem;
  color: var(--text-light);
}

/* Service */

.service {
  background-color: var(--primary-color);
}

.service__container.section__header {
  max-width: 750px;
  margin-inline: auto;
}

.service__grid {
  margin-block: 4rem;
  display: grid;
  gap: 1rem;
}

.service__card {
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: var(--bg);
  border-bottom: 2px solid transparent;
  transition: 0.3s;
}

.service__card:hover {
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.267);
}

.service__card:nth-child(1):hover {
  border-color: #00d5be;
}

.service__card:nth-child(2):hover {
  border-color: #ff637e;
}

.service__card:nth-child(3):hover {
  border-color: #c27aff;
}

.service__card:nth-child(4):hover {
  border-color: #00bcff;
}

.service__card div {
  margin-bottom: 1rem;
  max-width: max-content;
  padding: 5px 8px;
  font-size: 1.75rem;
  border-radius: 5px;
}

.service__card:nth-child(1) div {
  color: #00d5be;
  background-color: var(--secondary-color);
}

.service__card:nth-child(2) div {
  color: #ff637e;
  background-color: var(--secondary-color);
}

.service__card:nth-child(3) div {
  color: #c27aff;
  background-color: var(--secondary-color);
}

.service__card:nth-child(4) div {
  color: #00bcff;
  background-color: var(--secondary-color);
}

.service__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--extra-light);
}

.service__card .section__description {
  text-align: left;
}

/* Quality */

.quality__flex {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

.quality__card div {
  margin-bottom: 1rem;
  margin-inline: auto;
  width: 120px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  border-radius: 100%;
}

.quality__card h2 {
  font-size: 2.5rem;
  color: var(--extra-light);
}

.quality__card p {
  font-weight: 500;
  color: var(--extra-light);
}

/* portfolio */

  .video-grid {
    display: grid;
    margin-top: 4rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }

  .video-thumb {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
  }

  .video-thumb:hover {
    transform: scale(1.03);
  }

  .video-thumb img {
    width: 100%;
    display: block;
  }

  .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    padding: 12px 16px;
    pointer-events: none;
  }

/* footer */

.footer {
  background-color: var(--secondary-color);
}

.footer__container {
  display: grid;
  gap: 4rem 2rem;
}

.footer__logo {
  margin-bottom: 2rem;
}

.footer__logo a {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--extra-light);
}

.footer__logo a span {
  color: var(--secondary-color);
}

.footer__logo img {
  max-width: 150px;
}

.footer__col .section__description {
  margin-bottom: 2rem;
  text-align: left;
}

.footer__col h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--extra-light);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__socials a {
  padding: 4px 7px;
  font-size: 1.125rem;
  color: var(--text-light);
  border: 1px solid var(--text-light);
  border-radius: 100%;
}

.footer__socials a:hover {
  color: var(--white);
  background-color: var(--secondary-color);
}

.footer__col h4 {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--extra-light);
}

.footer__links {
  display: grid;
  gap: 1rem;
}

.footer__links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.footer__links a:hover {
  color: var(--extra-light);
}

.footer__links a span {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  color: var(--text-light);
}

.footer__bar a {
    color: #505050;
    text-decoration: none;
}

.footer__bar {
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
  border-top: .5px solid var(--primary-color);
}

@media (width > 540px) {
  .service__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (width > 768px) {
  nav {
    position: static;
    padding: 1rem;
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid var(--primary-color);
  }

  .nav__header {
    flex: 1;
    padding: 0;
    background-color: transparent;
  }

  .nav__logo a {
    color: var(--extra-light);
  }

  .nav__logo a span {
    color: var(--secondary-color);
  }

  .nav__logo a img {
    max-width: 120px;
  }

  .nav__menu__btn {
    display: none;
  }
  
  .nav__links {
    position: static;
    width: fit-content;
    padding: 0;
    flex-direction: row;
    background-color: transparent;
    transform: none !important;
  }

  .nav__links a {
    color: var(--text-light);
  }

  .nav__links a:hover {
    color: var(--extra-light);
  }

  .nav__btns {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .section__container {
    padding: 5rem 1rem;
  }

  .service__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__col:nth-child(1) {
    grid-column: 1/3;
    max-width: 350px;
  }
}

@media (width > 1024px) {
  .service__grid {
    gap: 1.5rem;
  }
}