/*===============================*/
/*========= GOOGLE FONTS ========*/
/*===============================*/
/* @import url("https://fonts.googleapis.com/css2?family=NotoSans:wght@400...900&display=swap"); */

@font-face {
  font-family: "Noto Sans";
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/NotoSans-Black.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/NotoSans-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/NotoSans-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/NotoSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans";
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/NotoSans-Light.woff2") format("woff2");
}

/*===============================*/
/*======== VARIABLES CSS ========*/
/*===============================*/
:root {
  --header-height: 3rem;

  --container-width: 1366px;

  /* change backgound image */
  --bg-image: url("../img/placeholder-42.webp");

  /* change the size of footer title */
  --font-footer: clamp(5.75rem, 24vw, 24rem);

  /*===============================*/
  /*======== THEME COLORS =========*/
  /*===============================*/
  --hue-color: 385;
  /*- Red     = 0 
    - Green   = 120
    - Cyan    = 180 
    - Blue    = 230
    - Purple  = 250 
    - Magenta = 300 
    - Pink    = 340
    - Orange  = 380
    - Yellow  = 400
  */

  /* HSL color mode */
  --first-color: hsl(var(--hue-color), 45%, 40%);
  --first-color-second: hsl(var(--hue-color), 67%, 91%);
  --first-color-alt: hsl(var(--hue-color), 20%, 23%);
  --first-color-lighter: hsl(var(--hue-color), 92%, 98%);
  --title-color: hsl(var(--hue-color), 8%, 15%);
  --text-color: hsl(var(--hue-color), 9%, 30%);
  --text-color-light: hsl(var(--hue-color), 8%, 50%);
  --input-color: hsl(var(--hue-color), 8%, 89%);
  --body-color: hsl(var(--hue-color), 30%, 92%);

  --container-color: hsl(0, 0%, 98%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);
  --danger-color: hsl(0, 100%, 50%);
  --light-color: hsl(0, 0%, 100%);
  --dark-color: hsl(10, 0%, 0%);
  --hero-color: hsl(10, 0%, 0%);
  --check-color: hsl(132, 52%, 40%);

  /* #ff0000 red */
  --filter-close: invert(21%) sepia(49%) saturate(7492%) hue-rotate(354deg) brightness(103%)
    contrast(128%);

  /*===============================*/
  /*===== FONT AND TYPOGRAPHY =====*/
  /*===============================*/
  --body-font: "Noto Sans", sans-serif;

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --h1-font-size: clamp(2.85rem, 5vw, 5rem);
  --h2-font-size: clamp(2rem, 2.5vw, 2.5rem);
  --h3-font-size: clamp(1.125rem, 5vw, 1.35rem);
  --font-size-5: 5rem;
  --font-size-4-5: 4.5rem;
  --font-size-3-5: 3.5rem;
  --font-size-3: 3rem;
  --font-size-2-5: 2.5rem;
  --font-size-2: 2rem;
  --font-size-1-75: 1.75rem;
  --font-size-1-5: 1.5rem;
  --font-size-1-25: 1.25rem;
  --font-size-1-2: 1.2rem;
  --font-size-1-1: 1rem;
  --font-size-0-9: 0.9rem;
  --font-size-0-813: 0.85rem;
  --font-size-0-825: 0.825rem;

  /*===============================*/
  /*========= FONT WEIGHT =========*/
  /*===============================*/
  --font-light: 300;
  --font-normal: 400;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-black: 900;

  /*===============================*/
  /*========== SPACINGS ===========*/
  /*===============================*/
  /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
  --space-0-25: 0.25rem;
  --space-0-5: 0.5rem;
  --space-0-75: 0.75rem;
  --space-1: 1rem;
  --space-1-25: 1.25rem;
  --space-1-5: 1.5rem;
  --space-2: 2rem;
  --space-2-5: 2.5rem;
  --space-3: 3rem;
  --space-3-5: 3.5rem;
  --space-4: 4rem;
  --space-4-5: 4.5rem;
  --space-5: 5rem;
  --space-5-5: 5.5rem;
  --space-6: 6rem;
  --space-8: 8rem;
  --space-10: 10rem;
  --space-12: 12rem;
  --space-14: 14rem;
  --space-16: 16rem;
  --space-20: 22rem;

  /*===============================*/
  /*=========== Z INDEX ===========*/
  /*===============================*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /*===============================*/
  /*=========== SHADOW ============*/
  /*===============================*/
  --shadow-sm: 2px 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 2px 2px 8px rgba(0, 0, 0, 0.2);

  /*===============================*/
  /*============ EMBLA ============*/
  /*===============================*/
  --slide-height: 36rem;
  --slide-spacing-2xs: 2rem;
  --slide-spacing-xs: 2rem;
  --slide-spacing-sm: 3rem;
  --slide-spacing-md: 4rem;
  --slide-spacing-lg: 5rem;
  --slide-spacing-xl: 6rem;
  --slide-spacing-2xl: 8rem;
  --slide-spacing-3xl: 10rem;
  --slide-size: 100%;
  --slide-size-sm: 50%;
  --slide-size-lg: calc(100% / 3);
  --slide-size-xl: calc(100% / 4);
  --slide-size-2xl: calc(100% / 5);
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
  :root {
    --font-size-0-9: 0.875rem;
    --font-size-0-813: 0.813rem;
    --font-size-0-825: 0.75rem;
  }
}

/*===============================*/
/*===== VARIABLES DARK THEME ====*/
/*===============================*/
body.dark-theme {
  /* HSL color mode */
  --first-color-second: hsl(var(--hue-color), 20%, 15%);
  --first-color-lighter: hsl(var(--hue-color), 30%, 4%);
  --title-color: hsl(var(--hue-color), 8%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 75%);
  --input-color: hsl(var(--hue-color), 20%, 30%);
  --body-color: hsl(var(--hue-color), 28%, 7%);

  --container-color: hsl(var(--hue-color), 28%, 1%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
  --light-color: hsl(0, 0%, 100%);
  --dark-color: hsl(21, 23%, 87%);
  --black-color: hsl(0, 0%, 0%);
}

body.dark-theme .theme__mode,
body.dark-theme .section__icon {
  filter: invert(100%);
}

#dark-mode > img {
  cursor: pointer;
}

body.dark-theme .sun__mode,
body.dark-theme .home__scroll-img {
  filter: invert(100%);
}

#dark-mode.dark-theme .moon__mode,
#dark-mode .sun__mode {
  display: none;
}

#dark-mode.dark-theme .sun__mode {
  display: block;
}

/*===============================*/
/*======= BUTTON DARKMODE =======*/
/*===============================*/
.theme__container {
  display: flex;
  align-items: center;
  column-gap: var(--space-0-75);
}

.change-theme {
  font-size: var(--font-size-1-25);
  color: var(--title-color);
  margin-right: var(--space-1);
  cursor: pointer;
}

.change-theme:hover {
  color: var(--first-color);
}

.theme__icon {
  margin-top: var(--space-0-25);
  width: 2.25rem;
  padding: 0.35rem;
  border: 2px solid var(--hero-color);
  border-radius: 100%;
  scale: 0.65;
  transition: 1s;
}

#dark-mode.dark-theme .theme__icon {
  filter: invert(100%);
}

/*===============================*/
/*============ EMBLA ============*/
/*===============================*/
.embla {
  max-width: 113.5rem;
  margin: auto;
}

.embla__viewport {
  overflow: hidden;
  padding: 0 var(--space-0-25);
}

.embla__container {
  backface-visibility: hidden;
  display: flex;
  touch-action: pan-y pinch-zoom;
  /* margin-left: calc(var(--slide-spacing-lg) * -1); */
}

@media (max-width: 767px) {
  .embla__container.embla__portfolios,
  .embla__container.embla__modal-portfolio,
  .embla__container.embla__testimonial {
    margin-left: calc(var(--slide-spacing-lg) * -1);
  }

  .embla__container.embla__team {
    margin-left: calc(var(--slide-spacing-xs) * -1);
  }
}

@media (min-width: 768px) {
  .embla__container.embla__portfolios,
  .embla__container.embla__modal-portfolio {
    margin-left: calc(var(--slide-spacing-md) * -1);
  }

  .embla__container.embla__testimonial,
  .embla__container.embla__team {
    margin-left: calc(var(--slide-spacing-xs) * -1);
  }
}

@media (min-width: 1024px) {
  .embla__container.embla__portfolios {
    margin-left: calc(var(--slide-spacing-xs) * -1);
  }
}

@media (min-width: 1280px) {
  .embla__container.embla__testimonial {
    margin-left: calc(var(--slide-spacing-md) * -1);
  }

  .embla__container.embla__team {
    margin-left: calc(var(--slide-spacing-md) * -1);
  }
}

.embla__slide {
  min-width: 0;
  /* flex: 0 0 var(--slide-size); */
  /* padding-left: var(--slide-spacing-md); */
  cursor: grab;
}

@media (max-width: 767px) {
  .embla__slide.portfolio__slide,
  .embla__slide.portfolio__modal-slide,
  .embla__slide.testimonial__slide {
    flex: 0 0 var(--slide-size);
    padding-left: var(--slide-spacing-lg);
  }

  .embla__slide.team__slide {
    flex: 0 0 var(--slide-size-sm);
    padding-left: var(--slide-spacing-xs);
  }
}

/* TODO */

@media (min-width: 768px) {
  .embla__slide.portfolio__slide,
  .embla__slide.portfolio__modal-slide {
    flex: 0 0 var(--slide-size);
    padding-left: var(--slide-spacing-md);
  }

  .embla__slide.testimonial__slide,
  .embla__slide.team__slide {
    flex: 0 0 var(--slide-size-sm);
    padding-left: var(--slide-spacing-xs);
  }
}

@media (min-width: 1024px) {
  .embla__slide.portfolio__slide {
    flex: 0 0 var(--slide-size-lg);
    padding-left: var(--slide-spacing-xs);
  }
}

@media (min-width: 1280px) {
  .embla__slide.testimonial__slide {
    flex: 0 0 var(--slide-size-lg);
    padding-left: var(--slide-spacing-md);
  }

  .embla__slide.team__slide {
    flex: 0 0 var(--slide-size-2xl);
    padding-left: var(--slide-spacing-md);
  }
}

.embla__slide__number {
  box-shadow: inset 0 0 0 0.2rem var(--text-color);
  border-radius: 1.8rem;
  font-size: 4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--slide-height);
  user-select: none;
}

.embla__buttons {
  margin-right: calc(var(--space-0-75) * -1);
  display: flex;
  align-items: center;
  gap: 0;
}

.embla__buttons .embla__button--prev {
  margin-right: calc(var(--space-0-75) * -1);
}

.embla__button {
  -webkit-tap-highlight-color: var(--text-color);
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  width: 3.6rem;
  height: 3.6rem;
  z-index: 1;
  border-radius: 50%;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.embla__button:disabled {
  color: var(--text-color);
  opacity: 0.4;
}

.embla__button__svg {
  width: var(--space-2);
  height: var(--space-2);
}

.embla__bottom {
  margin-top: calc(var(--space-0-75) * -1);
}

.embla__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  column-gap: 1rem;
  /* margin-right: calc((2.8rem - 1.4rem) / 2 * -1); */
}

.embla__dot {
  -webkit-tap-highlight-color: var(--first-color-second);
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.embla__dot:after {
  box-shadow: inset 0 0 0 0.65rem var(--first-color-second);
  width: 1.2rem;
  height: 0.5rem;
  border-radius: 5%;
  display: flex;
  align-items: center;
  content: "";
}

.embla__dot--selected:after {
  box-shadow: inset 0 0 0 0.6rem var(--first-color);
}

.embla__selected-snap-display {
  justify-self: center;
  align-self: center;
  color: var(--text-color);
  font-size: 0.837rem;
  font-weight: var(--font-light);
}

/*===============================*/
/*============ MODAL ============*/
/*===============================*/
.modal {
  position: fixed;
  z-index: -1;
  left: -100rem;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--body-color);
  opacity: 0;
  visibility: hidden; /* Hides and allows transition */
  transition:
    opacity 0.2s ease,
    visibility 0.4s ease;
}

.modal.modal-show {
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible; /* Smoothly reveal */
  z-index: 10000;
}

.modal__content {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 75vh;
  transition: transform 0.6s ease;
}

.close {
  position: fixed;
  top: var(--space-0-5);
  right: var(--space-1);
  color: var(--danger-color);
  font-size: var(--font-size-1-75);
  font-weight: var(--font-normal);
  cursor: pointer;
  z-index: 1100;
}

/*===============================*/
/*========== ANIMATION ==========*/
/*===============================*/
.animate-fade {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.animate-fade.active {
  opacity: 1;
}

/*===============================*/
/*=========== SOCIALS ===========*/
/*===============================*/
.socials {
  width: fit-content;
  height: fit-content;
  display: flex;
  gap: 0;
}

.socials-icon {
  padding: var(--space-0-25);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dark-color);
  border-radius: 100%;
  scale: 0.6;
}

body.dark-theme .socials-icon {
  border: 2px solid var(--light-color);
}

body.dark-theme .socials-icon img {
  filter: invert(100%);
}

/*===============================*/
/*========== SCROLL BAR =========*/
/*===============================*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-bar-color);
  border-radius: var(--space-0-5);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: var(--space-0-5);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-light);
}

/*=============================*/
/*=========== PAGE ============*/
/*=============================*/
.page__container {
  padding: 2rem;
  height: 100dvh;
}

.page__content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page__title {
  margin-bottom: 1rem;
  font-weight: var(--font-light);
  line-height: 1;
  text-transform: uppercase;
}

.page__title-error {
  font-size: clamp(3.75rem, 5vw, 5rem);
}

.page__title-thanks {
  font-size: clamp(3.3rem, 4vw, 4rem);
}

.page__subtitle {
  max-width: 18rem;
  font-size: clamp(1rem, 1vw, 1.2rem);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

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

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--font-size-0-9);
  color: var(--text-color);
  background: var(--body-color);
  transition: 0.6s;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  font-weight: var(--font-light);
}

p {
  font-weight: var(--font-light);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--space-0-5);
}

button {
  font-family: var(--body-font);
}

/*===============================*/
/*===== REUSABLE CSS CLASSES ====*/
/*===============================*/
.grid__stack > * {
  grid-area: 1/-1;
}

.section__head {
  display: flex;
  align-items: end;
  gap: 0;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  text-transform: uppercase;
}

.section__subtitle {
  display: block;
  font-size: var(--font-size-0-825);
  font-weight: var(--font-light);
  text-transform: capitalize;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.section__icon {
  width: var(--space-1-25);
}

/*===============================*/
/*=========== LAYOUT ============*/
/*===============================*/
.container {
  max-width: var(--container-width);
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: var(--space-1-5);
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

/*=============================*/
/*========== BUTTONS ==========*/
/*=============================*/
.button {
  display: inline-block;
  padding: var(--space-0-5) var(--space-1-25);
  background-color: var(--first-color-alt);
  color: var(--light-color);
  font-weight: var(--font-semi-bold);
  font-size: var(--font-size-0-9);
  border: none;
  box-shadow: var(--shadow-sm);
  border-radius: var(--space-0-25);
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  background-color: var(--first-color);
}

.button__icon svg {
  margin-top: var(--space-0-25);
  width: var(--space-1);
  height: var(--space-1);
  transition: 1s;
}

button:hover .button__icon svg {
  transform: translateX(0.5rem);
}

.button__flex {
  display: inline-flex;
  align-items: center;
  gap: var(--space-0-25);
}

.button__link {
  padding: 0;
  background: transparent;
  color: var(--first-color);
}

.button__link:hover {
  background-color: transparent;
  color: var(--first-color);
}

/*===============================*/
/*============== NAV ============*/
/*===============================*/
.nav {
  height: var(--header-height);
  display: flex;
  /* center */
  /* justify-content: space-between; */
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: var(--space-0-25);
  z-index: var(--z-fixed);
}

.nav__logo.scroll__up {
  margin-left: 0;
}

.nav__img {
  width: var(--space-2);
  height: var(--space-2);
}

.nav__title {
  font-size: var(--font-size-1-5);
  font-weight: var(--font-bold);
  color: var(--title-color);
  text-transform: uppercase;
  transition: 1s;
}

.nav__logo .nav__title:hover {
  color: var(--first-color);
}

.nav__list {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--font-size-0-813);
  font-weight: var(--font-normal);
  color: var(--title-color);
  text-transform: uppercase;
  transition: 0.6s;
}

.nav__link:hover {
  color: var(--first-color);
  text-decoration: underline;
}

.nav__icon {
  font-size: var(--font-size-1-2);
}

.nav__toggle {
  cursor: pointer;
}

.nav__close {
  position: absolute;
  right: calc(var(--space-1-5) + 0.05rem);
  top: calc(var(--space-0-75) + 0.05rem);
  cursor: pointer;
  filter: var(--filter-close);
  scale: 1.1;
}

/* show menu */
.show-menu {
  top: 0;
}

/* Active link */
.nav__link.active-link,
.footer__link.active-link {
  color: var(--first-color);
  transition: 0.8s;
}

/* Change background header */
.scroll-header {
  background: var(--body-color);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
}

/*===============================*/
/*============= HOME ============*/
/*===============================*/
.home__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2-5);
}

.home__head {
  padding-top: var(--space-10);
  padding-bottom: var(--space-5);
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}

.home__services {
  padding-top: var(--space-5);
  display: flex;
  align-items: end;
  gap: var(--space-2-5);
}

.home__item {
  display: flex;
  align-items: center;
  gap: var(--space-0-5);
  font-size: var(--font-size-1);
}

.home__item:first-child {
  margin-right: auto;
  align-items: start;
  flex-direction: column;
}

.home__item:first-child p:first-of-type {
  margin-bottom: calc(var(--space-0-5) * -1);
  font-weight: var(--font-semi-bold);
  font-size: var(--font-size-1-75);
}

.home__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
}

.home__side {
  transform: translateY(-0.75rem);
}

.home__description {
  max-width: 20rem;
  font-size: clamp(var(--font-size-0-813), 1vw, var(--font-size-1-1));
  line-height: 1.4;
}

/* SCROLL DOWN */
.home__scroll-button {
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-0-25);
  border: none;
  background: none;
  color: var(--title-color);
  font-size: var(--font-size-0-9);
  font-weight: var(--font-light);
  transform: translateY(0.2rem);
  cursor: pointer;
}

.home__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*===============================*/
/*========= PORTFOLIO ===========*/
/*===============================*/
.portfolio .section__title,
.portfolio .section__subtitle {
  text-align: left;
}

.portfolio__main {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-2-5);
}

.portfolio__card {
  cursor: pointer;
}

.portfolio__images {
  overflow: hidden;
  border-radius: var(--space-0-5);
}

.portfolio__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: 1s;
}

.portfolio__img:hover {
  scale: 1.05;
}

.portfolio__content {
  padding: var(--space-1-5);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-0-25);
  border-radius: var(--space-0-5);
  transition: 1s;
}

.portfolio__card:hover .portfolio__content {
  background: var(--first-color-second);
}

.portfolio__title {
  font-size: var(--font-size-1-25);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
}

.portfolio__description {
  max-width: 24rem;
  margin-top: var(--space-0-25);
  font-size: var(--font-size-0-9);
  line-height: 1.5;
}

.portfolio__content svg {
  opacity: 0;
  transition: 0.6s;
}

.portfolio__card:hover svg {
  opacity: 1;
}

/* MODAL PORTFOLIO */
.portfolio__scroll {
  position: fixed;
  right: var(--space-1);
  z-index: 99999;
  font-size: var(--font-size-0-825);
  color: var(--text-color-light);
}

.portfolio__modal-container .embla__viewport {
  padding: var(--space-1);
}

.portfolio__modal-container {
  position: relative;
}

.portfolio__modal-container::-webkit-scrollbar,
.portfolio__modal-images::-webkit-scrollbar,
.portfolio__modal-head::-webkit-scrollbar {
  display: none;
}

.portfolio__modal-grid > img {
  height: 100%;
}

.portfolio__modal-images {
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.portfolio__modal-images img {
  object-fit: cover;
}

.portfolio__modal-main-img {
  width: 100%;
  object-fit: cover;
}

.portfolio__modal-content {
  margin-top: var(--space-3);
}

.portfolio__modal-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.portfolio__modal-description {
  margin-top: calc(var(--space-1) * -1);
  font-size: var(--font-size-0-9);
  line-height: 1.5;
}

.portfolio__modal-details {
  margin-top: var(--space-0-75);
  display: flex;
  flex-direction: column;
  gap: var(--space-0-5);
}

.portfolio__modal-details:first-child {
  margin-top: 0;
}

.portfolio__modal-details-title,
.portfolio__modal-subtitle {
  font-weight: var(--font-normal);
  font-size: var(--font-size-1);
  color: var(--title-color);
  text-transform: uppercase;
}

.portfolio__modal-subtitle {
  font-weight: var(--font-semi-bold);
  font-size: var(--font-size-1-1);
}

.portfolio__modal-description,
.portfolio__modal-details-value {
  color: var(--text-color);
  font-weight: var(--font-light);
}

/* PORTFOLIO CONTACT */
.portfolio__modal-bottom {
  margin-top: var(--space-5);
  display: flex;
  gap: var(--space-3);
}

.portfolio__modal-title {
  font-size: var(--h1-font-size);
  line-height: 1.1;
}

.portfolio__modal-button {
  width: fit-content;
  background: none;
  border: none;
  cursor: pointer;
}

/* PORTFOLIO EMBLA */
.portfolio__actions .embla__button--prev,
.portfolio__actions .embla__button--next {
  position: fixed;
  top: -0.15rem;
  width: var(--space-3);
}

.portfolio__actions .embla__button--prev {
  right: calc(var(--space-5) + 0.5rem);
}

.portfolio__actions .embla__button--next {
  right: var(--space-2-5);
}

/*===============================*/
/*============ ABOUT ============*/
/*===============================*/
.about .section__head {
  text-align: left;
  align-items: start;
}

.about__container {
  margin-top: var(--space-2-5);
}

.about__img {
  width: 100%;
  object-fit: cover;
}

.about__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1-5);
}

.about__subtitle {
  font-size: var(--font-size-1-1);
  font-weight: var(--font-normal);
  text-transform: uppercase;
  color: var(--title-color);
}

.about__description {
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.about__description p {
  font-size: var(--font-size-0-9);
  line-height: 1.5;
}

.about__button {
  width: fit-content;
  border: none;
  font-size: var(--font-size-0-9);
  font-weight: var(--font-normal);
  color: var(--first-color);
  background: none;
  cursor: pointer;
  transition: 0.6s;
}

.about__button svg {
  margin-top: var(--space-0-25);
}

/*===============================*/
/*========= STATISTICS ==========*/
/*===============================*/
.stats__container {
  margin-top: var(--space-0-75);
}

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

.stats__card {
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: var(--space-2-5);
}

.stats__img {
  width: 100%;
  object-fit: cover;
}

.stats__info {
  display: flex;
  flex-direction: column;
}

.stats__info-title {
  font-weight: var(--font-semi-bold);
  font-size: var(--font-size-3-5);
  color: var(--text-color);
}

.stats__info-value {
  max-width: 28rem;
  font-size: var(--font-size-0-9);
  line-height: 1.5;
  color: var(--title-color);
}

.stats__bottom {
  margin-top: var(--space-2-5);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: var(--space-0-25);
}

.stats__text {
  font-size: var(--font-size-0-813);
  color: var(--text-color);
}

.stats__button {
  background: none;
  border: none;
  color: var(--first-color);
  cursor: pointer;
}

/*===============================*/
/*========== SERVICES ===========*/
/*===============================*/
.services__container {
  margin-top: var(--space-2-5);
}

.services__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.services .section__title,
.services .section__subtitle {
  text-align: left;
}

.services__description {
  max-width: 25rem;
  margin-bottom: var(--space-1-5);
  line-height: 1.5;
}

.services__main {
  display: flex;
  flex-direction: column;
}

.services__icon {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--first-color-second);
}

.services__icon svg {
  width: var(--space-5);
  height: var(--space-5);
}

.services__icon:hover svg {
  color: var(--first-color);
}

.services__card-title {
  font-size: var(--font-size-1-5);
  font-weight: var(--font-normal);
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--title-color);
}

.services__card-icon svg {
  width: var(--space-3);
  height: var(--space-3);
}

.services__card-description {
  max-width: 32rem;
  margin-top: var(--space-0-5);
  line-height: 1.5;
  font-size: var(--font-size-0-9);
}

/*===============================*/
/*========== TESTIMONIAL ========*/
/*===============================*/
.testimonial__overlay {
  padding: var(--space-10) 0;
  background: var(--first-color-second);
}

.testimonial .embla__main {
  margin-top: var(--space-2-5);
}

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

.testimonial__card {
  margin-bottom: var(--space-1);
  display: flex;
  gap: var(--space-1-25);
  text-align: center;
}

.testimonial__slide:nth-child(odd) .testimonial__card {
  flex-direction: column-reverse;
}

.testimonial__slide:nth-child(even) .testimonial__card {
  flex-direction: column;
}

.testimonial__card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-0-25);
}

.testimonial__card-img {
  width: var(--space-5);
  height: var(--space-5);
  margin: 0 auto;
  object-fit: cover;
  border-radius: var(--space-5);
}

.testimonial__card-name {
  font-size: var(--font-size-1);
  font-weight: var(--font-normal);
}

.testimonial__card-description {
  font-size: var(--font-size-1-1);
  text-align: center;
  line-height: 1.4;
}

/*===============================*/
/*============= CTA =============*/
/*===============================*/
.cta__card {
  align-items: end;
}

.cta__overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    hsla(0, 0%, 0%, 0.15),
    hsla(0, 0%, 0%, 0.15),
    hsla(0, 0%, 0%, 0.15)
  );
  z-index: 1;
  border-radius: var(--space-0-5);
  overflow: hidden;
}

.cta__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--space-0-5);
}

.cta__head {
  padding: var(--space-1-5);
  mix-blend-mode: difference;
  z-index: 1;
}

.cta .section__title {
  max-width: 22rem;
  text-align: left;
  color: var(--light-color);
  line-height: 1.1;
}

.cta__button {
  margin-top: var(--space-1);
  background: none;
  border: none;
  mix-blend-mode: difference;
  color: var(--light-color);
  cursor: pointer;
}

/*===============================*/
/*============= TEAM ============*/
/*===============================*/
.team__head {
  margin-bottom: var(--space-2-5);
}

.team__description {
  max-width: 28rem;
  margin: var(--space-1-5) auto 0;
  line-height: 1.4;
  text-align: center;
}

.team__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-0-75);
}

.team__img {
  width: 100%;
  aspect-ratio: 7/9;
  object-fit: cover;
}

.team__bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-0-25);
}

.team__job {
  font-size: var(--font-size-0-813);
}

.team__name {
  margin-top: calc(var(--space-0-25) * -1);
  font-size: var(--font-size-1-1);
  font-weight: var(--font-semi-bold);
}

.team__socials {
  margin-top: calc(var(--space-0-75) * -1);
  margin-left: calc(var(--space-0-25) * -1);
}

.team__info {
  margin-right: calc(var(--space-0-5) * -1);
  display: flex;
  justify-content: end;
  gap: 0;
}

/*===============================*/
/*=========== CONTACT ===========*/
/*===============================*/
.contact .section__title,
.contact .section__subtitle {
  text-align: left;
}

.contact__description {
  max-width: 20rem;
  margin-top: var(--space-1-5);
  font-size: var(--font-size-0-9);
  line-height: 1.4;
}

.contact__info {
  margin-top: var(--space-1-5);
  display: flex;
  gap: var(--space-0-5);
}

.contact__socials {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-0-25);
}

.contact__icon {
  scale: 0.8;
}

.contact__title {
  margin-left: calc(var(--space-0-5) * -1);
  font-size: var(--font-size-1);
  font-weight: var(--font-normal);
  text-align: right;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-0-5);
}

.contact__label {
  font-size: var(--font-size-0-825);
  color: var(--title-color);
  text-transform: uppercase;
}

.contact__input {
  width: 100%;
  margin-top: var(--space-0-5);
  padding: var(--space-0-75);
  background-color: var(--input-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--font-size-0-9);
  border-radius: var(--space-0-25);
  border: none;
  outline: none;
}

.contact__button {
  width: fit-content;
  text-align: center;
}

/*===============================*/
/*=========== FOOTER ============*/
/*===============================*/
footer {
  margin-top: var(--space-10);
  border-top: 1px solid var(--dark-color);
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer__line {
  width: 100%;
  height: 1px;
  background: var(--dark-color);
}

/* footer top */
.footer__top {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
}

.footer__img {
  width: var(--space-14);
  height: var(--space-14);
}

.footer__title {
  margin-top: calc(var(--space-1-5) * -1);
  margin-bottom: calc(var(--space-5) * -1);
  font-size: var(--font-footer);
  font-weight: var(--font-black);
  text-transform: uppercase;
  text-align: center;
  background-repeat: repeat;
  background-image: var(--bg-image);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* footer mid */
.footer__description {
  max-width: 27rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.footer__description p {
  font-size: var(--font-size-0-9);
  line-height: 1.5;
}

.footer__subtitle {
  margin-bottom: var(--space-1);
  font-size: var(--font-size-1-1);
  text-transform: uppercase;
}

.footer__side {
  display: flex;
  justify-content: space-between;
}

.footer__socials {
  display: flex;
  flex-direction: column;
  gap: var(--space-0-75);
}

.footer__socials a {
  color: var(--title-color);
  font-size: var(--font-size-0-813);
  font-weight: var(--font-normal);
  text-transform: uppercase;
}

.footer__socials a:hover {
  color: var(--first-color);
  text-decoration: underline;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-0-75);
}

.footer__link {
  color: var(--title-color);
  font-size: var(--font-size-0-813);
  font-weight: var(--font-normal);
  text-transform: uppercase;
}

.footer__link:hover {
  color: var(--first-color);
  text-decoration: underline;
}

/* footer bottom */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  border-top: 1px solid var(--dark-color);
}

.footer__copy {
  display: flex;
  flex-wrap: nowrap;
  column-gap: var(--space-0-25);
  font-size: var(--font-size-0-825);
}

.footer__copy-link {
  color: var(--text-color);
}

.footer__actions {
  display: flex;
  gap: var(--space-0-75);
}

/*===============================*/
/*========== SCROLL UP ==========*/
/*===============================*/
.scroll__up {
  border: none;
  background: none;
  cursor: pointer;
}

.scroll__up.show-scroll {
  scale: 1.1;
}

.scrollup__icon {
  transform: translateY(var(--space-0-25));
}

/*===============================*/
/*======== MEDIA QUERIES ========*/
/*===============================*/
/*====== FOR SMALL DEVICES ======*/
/*===============================*/
@media screen and (max-width: 490px) {
  .section {
    padding: var(--space-10) 0 0;
  }

  .section__title {
    line-height: 1.1;
  }

  .embla__buttons {
    justify-content: center;
  }

  .nav__menu {
    padding: 2rem 0.25rem;
  }

  .nav__list {
    column-gap: 0;
  }

  .home__services {
    gap: var(--space-1-5);
    justify-content: space-between;
  }

  .home__services svg {
    display: none;
  }

  .home__head {
    flex-direction: column;
  }

  .home__title {
    line-height: 1.2;
  }

  .home__img {
    aspect-ratio: 16/9;
  }

  .home__item:first-child {
    display: none;
  }

  .about__container.grid {
    gap: var(--space-3);
  }

  .about__img {
    aspect-ratio: 16/9;
  }

  .portfolio__main {
    gap: var(--space-3);
  }

  .portfolio__content {
    background: var(--first-color-second);
  }

  .portfolio__scroll {
    bottom: 0;
  }

  .portfolio__modal-container {
    max-height: 100dvh;
    overflow-y: auto;
    cursor: default;
  }

  .portfolio__modal-head {
    max-height: 100dvh;
    overflow-y: auto;
  }

  .portfolio__modal-images {
    max-height: 100dvh;
    overflow-y: scroll;
  }

  .portfolio__modal-main-img {
    aspect-ratio: 16/9;
  }

  .portfolios__content.grid {
    gap: var(--space-3);
  }

  .portfolio__modal-card.grid {
    gap: var(--space-3);
  }

  .portfolio__modal-bottom {
    flex-direction: column;
  }

  .stats__container.grid {
    gap: var(--space-3);
  }

  .stats__info {
    justify-content: center;
    text-align: center;
  }

  .stats__info-value {
    margin: 0 auto;
  }

  .stats__img {
    aspect-ratio: 16/9;
  }

  .services__main {
    gap: var(--space-5);
  }

  .services__card.grid {
    gap: var(--space-1-5);
  }

  .services__content.grid {
    gap: var(--space-3);
  }

  .testimonial__card {
    flex-direction: column;
    align-items: center;
  }

  .testimonial__card,
  .testimonial__card-description {
    text-align: center;
  }

  .cta__video {
    aspect-ratio: 7/9;
  }

  .contact__side,
  .contact__container.grid {
    gap: var(--space-3);
  }

  .contact__info {
    justify-content: center;
    flex-direction: column;
  }

  .contact__info .contact__socials {
    margin-left: calc(var(--space-0-75) * -1);
  }

  .footer__main.grid {
    gap: var(--space-3);
  }

  .footer__img {
    display: none;
  }

  .footer__title {
    margin-top: var(--space-3);
    margin-bottom: calc(var(--space-2) * -1);
  }
}

/*===============================*/
/*====== FOR MEDIUM DEVICES =====*/
/*===============================*/
@media screen and (min-width: 491px) {
  .section {
    padding: var(--space-10) 0 0;
  }

  .section__title {
    line-height: 1.1;
  }

  .embla__buttons {
    justify-content: center;
  }

  .home__head {
    flex-direction: column;
  }

  .home__title {
    max-width: 32rem;
    line-height: 1.1;
  }

  .home__img {
    aspect-ratio: 16/9;
  }

  .about__container.grid {
    gap: var(--space-3);
  }

  .about__img {
    aspect-ratio: 16/9;
  }

  .portfolio__main {
    gap: var(--space-3);
  }

  .portfolio__content {
    background: var(--first-color-second);
  }

  .portfolio__scroll {
    bottom: 0.5%;
  }

  .portfolios__content.grid {
    gap: var(--space-3);
  }

  .portfolio__modal-container {
    max-height: 100dvh;
    overflow-y: auto;
    cursor: default;
  }

  .portfolio__modal-head {
    max-height: 100dvh;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .portfolio__modal-images {
    max-height: 100dvh;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .portfolio__modal-main-img {
    aspect-ratio: 16/9;
  }

  .portfolio__modal-card.grid {
    gap: var(--space-3);
  }

  .portfolio__modal-bottom {
    flex-direction: column;
  }

  .stats__container.grid {
    gap: var(--space-3);
  }

  .stats__info {
    justify-content: center;
    text-align: center;
  }

  .stats__info-value {
    margin: 0 auto;
  }

  .stats__img {
    aspect-ratio: 16/9;
  }

  .services__main {
    gap: var(--space-5);
  }

  .services__card.grid {
    gap: var(--space-1-5);
  }

  .services__content.grid {
    gap: var(--space-3);
  }

  .testimonial__card-description {
    max-width: 22rem;
  }

  .contact__side,
  .contact__container.grid {
    gap: var(--space-4);
  }

  .contact__info {
    flex-direction: row;
    gap: var(--space-2-5);
  }

  .contact__info .contact__socials {
    margin-left: calc(var(--space-0-75) * -1);
  }

  .footer__main.grid {
    gap: var(--space-4);
  }

  .footer__img {
    display: none;
  }
}

/*===============================*/
/*=== MEDIA QUERIES NAVIGATION ==*/
/*===============================*/
@media screen and (max-width: 767px) {
  .nav__toggle {
    margin-left: auto;
  }

  .nav__menu {
    position: fixed;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--body-color);
    padding: 2rem 1.5rem;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
  }

  .nav__link {
    font-size: var(--font-size-1-25);
  }
}

/*===============================*/
/*====== FOR MEDIUM DEVICES =====*/
/*===============================*/
@media screen and (min-width: 768px) {
  .header {
    top: 0;
    bottom: initial;
  }

  .main {
    padding: 0 1rem;
  }

  .change-theme {
    margin: 0;
  }

  .nav {
    height: calc(var(--header-height) + 0.1rem);
  }

  .nav__icon,
  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    flex-direction: row;
    column-gap: var(--space-3);
  }

  .nav__menu {
    margin-left: auto;
  }

  .home__head {
    flex-direction: row;
    align-items: end;
  }

  .portfolio__content {
    background: none;
  }

  .portfolio__modal-title {
    max-width: 40rem;
  }
}

/*===============================*/
/*====== FOR LARGE DEVICES ======*/
/*===============================*/
@media screen and (width: 800px) and (height: 1278px) {
  .home__head {
    flex-direction: column;
    align-items: start;
  }
}

/*===============================*/
/*====== FOR LARGE DEVICES ======*/
/*===============================*/
@media screen and (min-width: 1024px) {
  .home__title {
    max-width: 40rem;
  }

  .about__container {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .about__container.grid {
    gap: var(--space-5);
  }

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

  .about__images .about__img {
    aspect-ratio: 1/1;
  }

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

  .footer__main.grd {
    gap: var(--space-10);
  }
}

/*===============================*/
/*====== FOR LARGE DEVICES ======*/
/*===============================*/
@media screen and (width: 1024px) and (height: 1366px) {
  .portfolio__modal-card {
    grid-template-columns: 1fr;
  }
}

/*===============================*/
/*====== FOR LARGE DEVICES ======*/
/*===============================*/
@media screen and (min-width: 1279px) {
  .home__title {
    max-width: 50rem;
  }

  .home__images {
    grid-template-columns: 0.34fr 0.66fr;
  }

  .home__img:last-of-type {
    aspect-ratio: 2/1;
  }

  .portfolio__main {
    gap: var(--space-5);
  }

  .portfolio__card {
    grid-template-columns: 0.66fr 0.34fr;
  }

  .portfolios__content.grid {
    gap: var(--space-5);
  }

  .portfolio__modal-card {
    grid-template-columns: 0.35fr 1fr;
  }

  .portfolio__modal-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
  }

  .portfolio__modal-main-img {
    aspect-ratio: 8/3;
  }

  .portfolio__modal-title {
    max-width: 50rem;
  }

  .stats__container {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .stats__container.grid {
    gap: var(--space-5);
  }

  .stats__img {
    aspect-ratio: 7/9;
  }

  .stats__info {
    justify-content: start;
    text-align: left;
  }

  .stats__card:first-child .stats__info {
    text-align: right;
  }

  .stats__card:first-child .stats__info-value {
    margin-left: auto;
  }

  .services__container {
    grid-template-columns: 0.34fr 0.66fr;
  }

  .services__main {
    gap: var(--space-1-5);
  }

  .services__card {
    grid-template-columns: repeat(2, 1fr);
    align-items: end;
  }

  .services__card.grid {
    gap: var(--space-5);
  }

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

  .services__content.grid {
    gap: var(--space-5);
  }
}

/*===============================*/
/*====== FOR LARGE DEVICES ======*/
/*===============================*/
@media screen and (min-width: 1366px) {
  .header,
  .main {
    padding: 0;
  }

  .embla__buttons {
    justify-content: end;
  }

  .home__title {
    max-width: 55rem;
  }

  .portfolio__scroll {
    bottom: 1.75%;
  }

  .portfolio__modal-container {
    max-height: 89.5dvh;
  }

  .portfolio__modal-head {
    max-height: 100dvh;
  }

  .portfolio__modal-images {
    max-height: 90dvh;
  }

  .portfolio__modal-content {
    grid-template-columns: 0.5fr 1fr;
  }

  .portfolio__modal-content.grid {
    gap: var(--space-5);
  }

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

  .portfolio__modal-card {
    grid-template-columns: 0.15fr 1fr;
  }

  .portfolio__modal-title {
    max-width: 55rem;
  }

  .contact__container {
    grid-template-columns: 0.35fr 1fr;
  }

  .contact__container.grid {
    gap: var(--space-10);
  }

  .contact__info {
    flex-direction: column;
    justify-content: start;
    gap: 0;
  }

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

  .footer__main.grid {
    gap: var(--space-10);
  }

  .footer__top {
    text-align: center;
    justify-content: center;
  }

  .footer__img {
    display: block;
  }

  .footer__group {
    margin-left: auto;
  }

  .footer__actions {
    margin-right: var(--space-0-25);
    justify-content: end;
  }
}
