/*===============================*/
/*========= GOOGLE FONTS ========*/
/*===============================*/
/* IMPORT FONTS */
/* @import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap'); */

/* LOCAL FONTS */
@font-face {
  font-family: "Nunito";
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/Nunito-Black.woff2") format("woff2");
}

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

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

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

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

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

  --container-width: 1440px;

  /*===============================*/
  /*======== FONT SIZE H1 =========*/
  /*===============================*/
  --title-h1: 3vw; /* Adjust number hero title font: high = big, low = small */

  /*===============================*/
  /*======== THEME COLORS =========*/
  /*===============================*/
  /* Change favorite color */
  --hue-color: 380;
  /*- 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), 40%, 52%);
  --first-color-second: hsl(var(--hue-color), 69%, 94%);
  --first-color-alt: hsl(var(--hue-color), 49%, 51%);
  --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
  --title-color: hsl(var(--hue-color), 8%, 5%);
  --text-color: hsl(var(--hue-color), 8%, 30%);
  --text-color-light: hsl(var(--hue-color), 8%, 50%);

  --input-color: hsl(var(--hue-color), 10%, 90%);
  --body-color: hsl(var(--hue-color), 60%, 93%);
  --container-color: hsl(0, 0%, 100%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);
  --danger-color: hsl(0, 100%, 50%);

  --icon-color: hsl(var(--hue-color), 20%, 2%);
  --light-color: hsl(10, 10%, 100%);
  --dark-color: hsl(10, 10%, 0%);
  --icon-check: hsl(122, 78%, 42%);

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

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --h1-font-size: clamp(2.25rem, var(--title-h1), 3rem);
  --h2-font-size: clamp(1.75rem, 2vw, 2rem);
  --h3-font-size: clamp(1.125rem, 5vw, 1.35rem);
  --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-6: 1.6rem;
  --font-size-1-5: 1.5rem;
  --font-size-1-25: 1.25rem;
  --font-size-1-2: 1.2rem;
  --font-size-1-1: 1.1rem;
  --font-size-1: 1rem;
  --font-size-0-938: 0.938rem;
  --font-size-0-813: 0.813rem;
  --font-size-0-75: 0.75rem;

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

  /*===============================*/
  /*========== 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-25: 2.25rem;
  --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-11: 11rem;
  --space-12: 12rem;
  --space-14: 14rem;
  --space-16: 16rem;
  --space-18: 18rem;

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

  /*===============================*/
  /*=========== SHADOW ============*/
  /*===============================*/
  --shadow-sm: 2px 2px 10px rgba(129, 129, 129, 0.205);
  --shadow-md: 0 -1px 4px rgba(0, 0, 0, 0.15);

  /*===============================*/
  /*=========== BORDER ============*/
  /*===============================*/
  --border-sm: 1px solid var(--border-color);

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

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

/*===============================*/
/*===== VARIABLES DARK THEME ====*/
/*===============================*/
body.dark-theme {
  /* HSL color mode */
  --first-color: hsl(var(--hue-color), 49%, 48%);
  --first-color-second: hsl(var(--hue-color), 30%, 11%);
  --first-color-lighter: hsl(var(--hue-color), 49%, 15%);
  --first-color-alt: hsl(var(--hue-color), 49%, 38%);
  --title-color: hsl(var(--hue-color), 8%, 98%);
  --text-color: hsl(var(--hue-color), 8%, 75%);

  --input-color: hsl(var(--hue-color), 9%, 11%);
  --body-color: hsl(var(--hue-color), 28%, 7%);
  --container-color: hsl(var(--hue-color), 29%, 16%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);

  --icon-color: hsl(var(--hue-color), 49%, 48%);
}

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

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

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

.moon__mode.visible,
.sun__mode.visible {
  visibility: visible;
}

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

.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);
}

.sun__mode,
.moon__mode {
  color: var(--icon-color);
  cursor: pointer;
}

.moon__mode svg,
.sun__mode svg {
  margin-top: 0.25rem;
  width: var(--space-1-5);
  height: var(--space-1-5);
}

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

.embla__viewport {
  overflow: hidden;
  padding: 0 1rem;
}

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

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

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

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

@media (max-width: 798px) {
  .embla__slide.portfolio__modal-slide,
  .embla__slide.testimonial__content {
    flex: 0 0 var(--slide-size);
    padding-left: var(--slide-spacing-sm);
  }
}

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

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

.embla__slide__number {
  box-shadow: inset 0 0 0 0.2rem var(--first-color-lighter);
  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 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
}

.embla__button {
  -webkit-tap-highlight-color: var(--first-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(--dark-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-theme .embla__button {
  color: var(--light-color);
}

.embla__button:disabled {
  cursor: default;
  opacity: 0.4;
}

.embla__button:hover {
  background-color: transparent;
}

.embla__button__svg {
  width: 35%;
  height: 35%;
}

.embla__bottom {
  margin-bottom: var(--space-1-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 1rem;
}

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

.embla__dot {
  -webkit-tap-highlight-color: var(--first-color-lighter);
  -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.6rem var(--first-color-lighter);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  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-weight: 600;
  font-size: var(--font-size-0-813);
}

/*===============================*/
/*============ 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: 0.4rem;
  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;
}

/*===============================*/
/*=========== SOCIALS ===========*/
/*===============================*/
.socials {
  column-gap: var(--space-1);
}

.socials__icon {
  display: flex;
}

/*===============================*/
/*========== ANIAMTION ==========*/
/*===============================*/
.animate-fade {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

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

/*===============================*/
/*========== 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 {
  font-size: clamp(4rem, 6vw, 8rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.page__subtitle {
  max-width: 25rem;
  font-size: clamp(1.35rem, 3vw, 1.5rem);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.page__link {
  font-size: clamp(0.893rem, 3vw, 1.1rem);
  background: var(--first-color);
  color: var(--container-color);
}

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

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

body {
  font-family: var(--body-font);
  font-size: var(--font-size-0-938);
  background: var(--body-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}

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

h1 {
  font-weight: var(--font-black);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*===============================*/
/*===== REUSABLE CSS CLASSES ====*/
/*===============================*/
.section__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
}

.section__subtitle {
  display: block;
  font-size: var(--font-size-0-938);
  font-weight: var(--font-bold);
  text-transform: uppercase;
}

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

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

.grid__stack > * {
  grid-area: 1/-1;
}

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

/*=============================*/
/*========== BUTTONS ==========*/
/*=============================*/
.button {
  display: inline-block;
  width: fit-content;
  padding: var(--space-0-5) var(--space-1-25);
  background-color: var(--icon-color);
  color: var(--light-color);
  font-weight: var(--font-bold);
  font-family: var(--body-font);
  font-size: var(--font-size-0-938);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--space-0-25);
  cursor: pointer;
}

.button:hover {
  background-color: var(--first-color-alt);
  border: 1px solid var(--first-color-alt);
}

.button__white {
  background-color: var(--light-color);
  color: var(--first-color);
}

.button__white:hover {
  background-color: var(--light-color);
}

.button__flex {
  display: inline-flex;
  align-items: center;
}

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

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

/*===============================*/
/*========== RIGHT ICON =========*/
/*===============================*/
.right__icon {
  opacity: 0;
  visibility: hidden;
  margin: var(--space-0-25) 0 0 var(--space-0-25);
}

.right__button {
  padding: var(--space-0-25) var(--space-1-25);
  white-space: nowrap;
  transition: width 0.3s ease-in;
}

.right__button:hover .right__icon {
  opacity: 1;
  visibility: visible;
  transition: 0.9s ease-out;
}

.right__icon svg {
  height: var(--space-1-25);
  width: var(--space-1-25);
  color: var(--light-color);
}

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

.nav__logo {
  margin-right: var(--space-1);
  margin-bottom: var(--space-0-25);
  display: flex;
  align-items: center;
  z-index: 9999;
}

.nav__logo span {
  color: var(--title-color);
  text-transform: uppercase;
  font-weight: var(--font-black);
}

.nav__logo.scroll__up:hover {
  transform: translateY(0);
}

/* REMOVE WHEN YOUR LOGO COLOR IS WHITE/BLACK */
body.dark-theme .nav__icon {
  filter: invert(100%);
}

.nav__icon {
  width: var(--space-2-25);
  height: var(--space-2-25);
  cursor: pointer;
}

.nav__title {
  font-size: var(--font-size-1-6);
  font-weight: var(--font-semibold);
  color: var(--title-color);
}

.nav__list {
  display: flex;
  gap: var(--space-1);
  width: 100%;
}

.nav__items:first-child {
  margin-left: calc(var(--space-2-5) * -1);
  opacity: 0;
  visibility: hidden;
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--font-size-0-938);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  color: var(--title-color);
}

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

.nav__toggle {
  z-index: 1;
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: var(--space-0-25);
  color: var(--icon-color);
  cursor: pointer;
}

.nav__toggle.visible {
  visibility: visible;
}

.nav__close {
  position: fixed;
  top: var(--space-1);
  right: var(--space-1-25);
  scale: 1.1;
  width: var(--space-1-5);
  height: var(--space-1-5);
  color: var(--danger-color);
  cursor: pointer;
  transform: translateX(750rem);
  transition: 0.3s ease-in-out;
}

/* Active link */
.nav__link.active-link {
  color: var(--first-color);
  transition: 0.7s ease-out;
}

/* Change background header */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: var(--shadow-sm);
}

body.dark-theme .scroll-header {
  box-shadow: none;
}

/*===============================*/
/*============= HOME ============*/
/*===============================*/
.home__container {
  display: flex;
  flex-direction: column;
}

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

.home__title {
  max-width: 35rem;
  font-size: var(--h1-font-size);
  text-transform: uppercase;
}

.home__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--space-0-5);
}

.home__description {
  max-width: 25rem;
  margin-top: var(--space-1-5);
  font-size: var(--font-size-1-1);
  line-height: 1.4;
}

.home__unique {
  background: var(--first-color-lighter);
  border-radius: var(--space-0-25);
}

.home__scroll {
  margin-left: -0.15rem;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: var(--space-0-5);
  background: none;
  border: none;
  cursor: pointer;
}

.home__scroll-mouse {
  transition: 1s;
}

.home__scroll-mouse svg {
  width: var(--space-2);
  height: var(--space-2);
  color: var(--dark-color);
}

body.dark-theme .home__scroll-mouse svg {
  color: var(--light-color);
}

.home__scroll-mouse:hover {
  transform: translateY(0.25rem);
}

.home__clients {
  margin-bottom: calc(var(--space-1) * -1);
  display: flex;
  align-items: center;
  justify-content: start;
}

.home__clients-images {
  display: flex;
  transform: translateX(var(--space-1));
}

.home__clients-img {
  width: var(--space-3);
  height: var(--space-3);
  object-fit: cover;
  border-radius: var(--space-0-5);
  border: 4px solid var(--body-color);
}

.home__clients-img:nth-child(2) {
  transform: translateX(-0.5rem);
}

.home__clients-img:nth-child(3) {
  transform: translateX(-1rem);
}

.home__clients-title {
  margin-top: calc(var(--space-0-25) * -1);
  font-size: var(--font-size-0-75);
  text-transform: capitalize;
}

.home__clients-value {
  font-size: var(--font-size-1-6);
  font-weight: var(--font-semibold);
  color: var(--title-color);
}

/*===============================*/
/*========== CLIENTS ============*/
/*===============================*/
.clients .container {
  padding-top: var(--space-8);
  overflow: hidden;
}

.clients__container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: var(--space-10);
  animation: marquee 25s linear infinite alternate;
}

.clients__icon {
  width: var(--space-10);
  height: var(--space-10);
  filter: invert(70%);
  transition: 1s;
}

.clients__icon:hover {
  opacity: 1;
}

@keyframes marquee {
  0% {
    transform: translate3d(12.5%, 0, 0);
  }

  100% {
    transform: translate3d(-12.5%, 0, 0);
  }
}

/*===============================*/
/*============ ABOUT ============*/
/*===============================*/
.about .section__title {
  max-width: 35rem;
}

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

.about__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--space-0-5);
}

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

.about__description p {
  max-width: 50rem;
  font-size: var(--font-size-0-938);
  line-height: 1.4;
}

.about__button {
  width: 9.25rem;
  margin-top: calc(var(--space-0-25) * -1);
}

.about__button:hover {
  width: 10.5rem;
}

/*===============================*/
/*========= PORTFOLIO ===========*/
/*===============================*/
.portfolio__container {
  margin-top: calc(var(--space-0-5) * -1);
  gap: var(--space-3);
}

.portfolio__head {
  text-align: center;
}

.portfolio__card {
  padding: var(--space-2);
  display: block;
  border: none;
  border-radius: var(--space-0-5);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: 0.6s;
}

.portfolio__card:hover {
  background: var(--title-color);
}

.portfolio__card:hover .portfolio__title,
.portfolio__card:hover .portfolio__description {
  color: var(--light-color);
}

body.dark-theme .portfolio__card:hover {
  background: var(--input-color);
}

body.dark-theme .portfolio__card .portfolio__title,
body.dark-theme .portfolio__card .portfolio__description {
  color: var(--light-color);
}

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

.portfolio__bottom {
  padding-top: var(--space-1-5);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-1);
}

.portfolio__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  font-family: var(--body-font);
  text-transform: uppercase;
}

.portfolio__description {
  max-width: 35rem;
  font-size: var(--font-size-0-938);
  line-height: 1.4;
}

.portfolio__bottom svg {
  color: var(--light-color);
  transition: 0.6s;
}

body.dark-theme .portfolio__card svg {
  color: var(--dark-color);
}

body.dark-theme .portfolio__card:hover svg {
  color: var(--light-color);
}

.portfolio__img,
.portfolio__modal-img {
  border-radius: var(--space-0-5);
}

.portfolio__img {
  margin-top: -0.5rem;
}

/* MODAL PORTFOLIO */
.portfolio__modal-container {
  position: relative;
  max-height: 90dvh;
}

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

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

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

.portfolio__scroll {
  position: fixed;
  bottom: 5%;
  right: var(--space-1);
  z-index: 99999;
  writing-mode: sideways-rl;
  font-size: var(--font-size-0-75);
  color: var(--text-color-light);
}

.portfolio__modal-title {
  margin-bottom: calc(var(--space-0-75) * -1);
  font-size: var(--font-size-1-5);
  text-transform: uppercase;
}

.portfolio__modal-subtitle {
  font-size: var(--font-size-1-1);
  text-transform: capitalize;
}

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

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

.portfolio__modal-title,
.portfolio__modal-details-title,
.portfolio__modal-subtitle {
  color: var(--title-color);
}

.portfolio__modal-description,
.portfolio__modal-details-value {
  color: var(--title-color);
  opacity: 0.6;
}

.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: var(--space-4-5);
}

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

/*===============================*/
/*========= STATISTICS ==========*/
/*===============================*/
.stats {
  margin: var(--space-10) 0 var(--space-4);
  background: var(--dark-color);
  border-radius: var(--space-0-5);
}

.stats__head .section__title,
.stats__head .section__subtitle,
.stats__description {
  color: var(--light-color);
}

.stats__info {
  height: fit-content;
  grid-template-columns: repeat(2, 1fr);
}

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

.stats__description {
  max-width: 32rem;
  margin-top: calc(var(--space-0-5) * -1);
  margin-bottom: var(--space-2-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.stats__info-card {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-2);
  border-radius: var(--space-0-5);
  background: var(--input-color);
}

.stats__info-title {
  font-weight: var(--font-bold);
}

.stats__info-name {
  width: var(--space-2);
  line-height: 1.2;
  opacity: 0.95;
}

.stats__button {
  width: 13rem;
  margin-top: var(--space-3);
  background: var(--first-color);
}

.stats__button:hover {
  width: 14.25rem;
}

/*===============================*/
/*========== SERVICES ===========*/
/*===============================*/
.services__container .section__title {
  max-width: 30rem;
}

.services__card {
  padding: var(--space-2);
  border-radius: var(--space-0-5);
  gap: var(--space-0-5);
  background: var(--input-color);
}

.services__card-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.services__card-main .services__card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.services__card-side .services__card {
  display: flex;
}

.services__card-icon {
  margin-left: calc(var(--space-0-5) * -1);
  color: var(--icon-color);
}

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

.services__card-title {
  font-size: var(--font-size-1-2);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
}

.services__card-list {
  margin-top: var(--space-2);
  row-gap: var(--space-1);
}

.services__card-description {
  max-width: 32rem;
  font-size: var(--font-size-0-938);
  line-height: 1.4;
}

.services__card-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: var(--space-0-25);
}

.services__check-icon svg {
  color: var(--icon-check);
}

.services__card-summary {
  margin-bottom: var(--space-0-25);
}

/*===============================*/
/*============= FAQ =============*/
/*===============================*/
.faq__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.faq__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--space-0-5);
}

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

.faq__button {
  width: 9.75rem;
}

.faq__button:hover {
  width: 11rem;
}

.faq__card {
  grid-template-columns: auto var(--space-2);
  align-items: start;
}

.faq__card-question {
  width: fit-content;
  color: var(--text-color);
  font-size: var(--font-size-1-2);
  font-weight: var(--font-bold);
  text-transform: uppercase;
}

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

.faq__card-answer p {
  max-width: 40rem;
  font-size: var(--font-size-0-938);
  line-height: 1.4;
}

.faq__content .faq__card-answer {
  max-height: 0;
  padding-top: var(--space-0-5);
  line-height: 1.4;
  color: var(--text-color);
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__card-button {
  height: fit-content;
  border: none;
  background: none;
  cursor: pointer;
  transition: 0.4s;
}

.faq__card-button svg {
  width: var(--space-1-25);
  height: var(--space-1-25);
  color: var(--dark-color);
}

body.dark-theme .faq__card-button svg {
  color: var(--light-color);
}

.faq__bottom {
  margin-top: var(--space-2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/*===============================*/
/*========== TESTIMONIAL ========*/
/*===============================*/
.testimonial .section__title {
  max-width: 32rem;
  margin: 0 auto var(--space-2-5);
}

.testimonial .embla__slide {
  cursor: grab;
}

.testimonial__head {
  text-align: center;
}

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

.testimonial__data {
  margin: 0 var(--space-1);
}

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

.testimonial__img {
  width: var(--space-8);
  height: var(--space-8);
  object-fit: cover;
  border-radius: var(--space-0-5);
}

.testimonial__name {
  font-size: var(--font-size-0-938);
  font-weight: var(--font-normal);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.testimonial__description {
  font-size: var(--font-size-1);
  font-style: italic;
  line-height: 1.4;
}

/*===============================*/
/*=========== CONTACT ===========*/
/*===============================*/
.contact .section__title {
  max-width: 30rem;
}

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

.contact__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--space-0-5);
}

.contact__group {
  padding: var(--space-0-75) var(--space-1) var(--space-0-25);
  border-radius: var(--space-0-5);
  border: 1px solid var(--input-color);
  background-color: var(--input-color);
}

.contact__label {
  font-size: var(--font-size-0-75);
  color: var(--title-color);
}

.contact__input {
  width: 100%;
  background-color: transparent;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--font-size-0-938);
  border: none;
  outline: none;
  padding: var(--space-0-25) var(--space-0-5) var(--space-0-5) 0;
}

.contact__button {
  width: 6rem;
}

.contact__button:hover {
  width: 7.25rem;
}

/*===============================*/
/*=========== FOOTER ============*/
/*===============================*/
footer {
  padding: 0 var(--space-3) var(--space-1);
  margin-top: var(--space-14);
  background: var(--dark-color);
  border-top-left-radius: var(--space-0-5);
  border-top-right-radius: var(--space-0-5);
}

.footer__container {
  padding-top: var(--space-3);
  justify-content: center;
  row-gap: var(--space-4-5);
}

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

.footer__logo {
  height: fit-content;
  display: flex;
  align-items: center;
}

.footer__icon {
  width: var(--space-2-25);
  height: var(--space-2-25);
  filter: invert(100%);
}

.footer__title {
  color: var(--light-color);
  font-size: var(--font-size-1-6);
  font-weight: var(--font-black);
  text-transform: uppercase;
}

.footer__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--space-0-5);
}

.footer__description {
  max-width: 40rem;
  margin-top: auto;
  color: var(--light-color);
  font-size: var(--font-size-0-938);
  line-height: 1.4;
}

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

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

.footer__list li:first-child {
  display: none;
}

.footer__link {
  font-size: var(--font-size-0-938);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
}

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

/* Active Link */
.footer__link.active-link {
  color: var(--first-color);
}

.footer__info {
  margin-top: calc(var(--space-0-5) * -1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.footer__info .socials__icon svg,
.footer__info .moon__mode svg,
.footer__info .sun__mode svg {
  width: var(--space-2);
  height: var(--space-2);
  color: var(--light-color);
}

.footer__bottom {
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__copy {
  display: flex;
  column-gap: var(--space-0-25);
  font-size: var(--font-size-0-75);
  color: var(--light-color);
}

.footer__title,
.footer__subtitle,
.footer__link,
.footer__copy-link,
.footer__social {
  color: var(--light-color);
}

/*===============================*/
/*========== SCROLL UP ==========*/
/*===============================*/
.scroll__up {
  margin-top: 0.15rem;
  border: none;
  background: none;
  transition: 1s;
}

.scroll__up:hover {
  transform: translateY(-0.25rem);
}

.scroll__up-icon {
  width: var(--space-1-5);
  height: var(--space-1-5);
  color: var(--light-color);
  cursor: pointer;
}

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

  .section__title {
    margin-bottom: var(--space-2-5);
    font-weight: var(--font-bold);
    line-height: 1.1;
    text-transform: uppercase;
  }

  .nav__menu {
    padding: var(--space-2) var(--space-0-25);
  }

  .nav__list {
    column-gap: 0;
  }

  .nav__socials {
    display: none;
  }

  .home__section {
    padding: var(--space-8) 0 var(--space-4);
  }

  .home__container {
    row-gap: var(--space-2-5);
  }

  .home__title {
    line-height: 1.2;
  }

  .home__clients {
    margin: 0 0 calc(var(--space-1-5) * -1) calc(var(--space-1-25) * -1);
  }

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

  .stats {
    padding: var(--space-1-5) 0;
  }

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

  .stats__info-title {
    font-size: clamp(1rem, 10vw, 6rem);
  }

  .stats__info-name {
    font-size: clamp(0.918rem, 1vw, 1.25rem);
  }

  .portfolio__modal-container {
    overflow-y: scroll;
    /* cursor: ns-resize; */
  }

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

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

  .services__card-side .services__card {
    flex-direction: column;
    justify-content: space-between;
  }

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

  .faq__bottom {
    flex-direction: column;
  }

  .testimonial__data {
    text-align: center;
  }

  .testimonial__img {
    margin: 0 auto;
  }

  .testimonial__description {
    max-width: 30rem;
    margin: 0 auto;
  }

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

  .contact__socials {
    display: none;
  }

  .footer__logo {
    margin: 0 auto;
  }

  .footer__description {
    text-align: center;
  }

  .footer__subtitle {
    text-align: center;
  }

  .footer__list {
    align-items: center;
  }

  .footer__info {
    justify-content: center;
  }

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

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

  .footer__copy {
    order: 1;
  }
}

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

  .section__title {
    margin-bottom: var(--space-2-5);
    font-weight: var(--font-bold);
    line-height: 1.1;
    text-transform: uppercase;
  }

  .nav__socials {
    display: none;
  }

  .home__section {
    padding: var(--space-18) 0 var(--space-4);
  }

  .home__container {
    row-gap: var(--space-2-5);
  }

  .home__title {
    line-height: 1.2;
  }

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

  .stats {
    padding: var(--space-2) 0;
  }

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

  .stats__info-title {
    font-size: clamp(1.125rem, 10vw, 6rem);
  }

  .stats__info-name {
    font-size: clamp(0.875rem, 1vw, 1.25rem);
  }

  .portfolio__modal-container {
    overflow-y: scroll;
    /* cursor: ns-resize; */
  }

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

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

  .services__card-side .services__card {
    flex-direction: column;
    justify-content: space-between;
  }

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

  .faq__bottom {
    flex-direction: column;
  }

  .testimonial__data {
    text-align: center;
  }

  .testimonial__img {
    margin: 0 auto;
  }

  .testimonial__description {
    max-width: 30rem;
    margin: 0 auto;
  }

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

  .contact__socials {
    display: none;
  }

  .footer__logo {
    margin: 0 auto;
  }

  .footer__description {
    text-align: center;
  }

  .footer__list {
    align-items: center;
  }

  .footer__subtitle {
    text-align: center;
  }

  .footer__info {
    justify-content: center;
  }

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

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

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

  .footer__copy {
    order: 1;
  }
}

/*===============================*/
/*=== MEDIA QUERIES NAVIGATION ==*/
/*===============================*/
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-modal);
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--body-color);
    padding: var(--space-2) var(--space-1-5);
    box-shadow: var(--shadow-sm);
    transform: translateY(-100%);
    opacity: 0;
    transition: 0.4s ease-in;
  }

  .nav__list {
    flex-direction: column;
  }

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

  /* show menu */
  .show-menu {
    transform: translateY(0%);
    opacity: 1;
  }

  .show-menu .nav__close {
    transform: translateY(0);
  }
}

/*===============================*/
/*====== FOR MEDIUM DEVICES =====*/
/*===============================*/
@media screen and (min-width: 768px) {
  .section {
    padding: calc(var(--space-12) + 1rem) 0 0;
  }

  .header {
    top: 0;
    bottom: initial;
  }

  .header,
  .main {
    padding: 0 var(--space-1);
  }

  .change-theme {
    margin: 0;
  }

  .nav {
    height: calc(var(--header-height) + 0.5rem);
    column-gap: var(--space-1);
  }

  .nav__menu-icon,
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    width: 100%;
    margin-left: 0;
  }

  .nav__list {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    column-gap: var(--space-2);
  }

  .nav__items:last-child {
    padding: var(--space-0-5) var(--space-1-25);
    background: var(--icon-color);
    border-radius: var(--space-0-25);
  }

  .nav__items:last-child:hover {
    background: var(--first-color-alt);
  }

  .nav__items:last-child a {
    color: var(--light-color);
    font-weight: var(--font-bold);
    cursor: pointer;
  }

  .home__clients {
    margin-left: auto;
  }

  .faq__bottom {
    flex-direction: row;
    align-items: center;
  }

  .footer__list {
    align-items: center;
    justify-content: space-between;
  }
}

/*===============================*/
/*====== FOR LARGE DEVICES ======*/
/*===============================*/
@media screen and (min-width: 1280px) {
  .home__section {
    padding: var(--space-12) 0 var(--space-4);
  }

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

  .stats {
    padding: var(--space-2);
  }
}

/*===============================*/
/*====== FOR LARGE DEVICES ======*/
/*===============================*/
@media screen and (min-width: 1366px) {
  .socials {
    display: flex;
    align-items: center;
    margin-right: var(--space-0-75);
  }

  .home__section {
    padding: var(--space-14) 0 var(--space-4);
  }

  .home__container {
    row-gap: var(--space-2-5);
  }

  .about__container {
    grid-template-columns: 50rem auto;
  }

  .stats {
    padding: var(--space-3);
  }

  .stats__container {
    grid-template-columns: auto 50rem;
  }

  .stats__sm .stats__info-title {
    font-size: var(--font-size-3);
  }

  .stats__lg .stats__info-title {
    font-size: var(--font-size-4-5);
  }

  .stats__sm .stats__info-name {
    font-size: var(--font-size-1);
  }

  .stats__lg .stats__info-name {
    font-size: var(--font-size-1-1);
  }

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

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

  .portfolio__modal-container {
    overflow-y: auto;
    cursor: default;
  }

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

  .portfolio__modal-images,
  .portfolio__modal-main {
    max-height: 90dvh;
    overflow-y: scroll;
    /* cursor: ns-resize; */
  }

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

  .services__container {
    grid-template-columns: 50rem auto;
  }

  .services__card-side .services__card {
    flex-direction: row;
    justify-content: start;
  }

  .services__card-main .services__card-icon svg {
    width: var(--space-6);
    height: var(--space-6);
    stroke-width: 1;
  }

  .faq__container {
    grid-template-columns: auto 50rem;
  }

  .testimonial__data {
    grid-template-columns: var(--space-6) auto;
    text-align: left;
  }

  .contact__content {
    grid-template-columns: auto 50rem;
  }

  .contact__socials {
    display: flex;
  }

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

  .footer__container {
    grid-template-columns: 1fr 0.75fr 0.75fr;
  }

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

  .footer__logo {
    margin: 0;
  }

  .footer__description {
    text-align: left;
  }

  .footer__subtitle {
    text-align: left;
  }

  .footer__list {
    align-items: start;
  }

  .footer__info {
    justify-content: start;
  }

  .footer__socials {
    display: flex;
    justify-content: start;
    column-gap: var(--space-1-5);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__copy {
    order: -1;
  }
}
