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

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

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

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

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

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

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

  --container-width: 1466px;

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

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

  /* HSL color mode */
  --first-color: hsl(var(--hue-color), 49%, 51%);
  --first-color-alt: hsl(var(--hue-color), 20%, 6%);
  --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
  --title-color: hsl(var(--hue-color), 8%, 15%);
  --text-color: hsl(var(--hue-color), 8%, 15%);
  --text-color-light: hsl(var(--hue-color), 2%, 83%);
  --contact-color: hsl(var(--hue-color), 2%, 88%);
  --input-color: hsl(var(--hue-color), 5%, 85%);
  --body-gradient-color: linear-gradient(
    to top right in hsl,
    hsl(var(--hue-color), 2%, 91%),
    hsl(var(--hue-color), 0%, 86%),
    hsl(var(--hue-color), 4%, 92%),
    hsl(var(--hue-color), 2%, 87%),
    hsl(var(--hue-color), 2%, 99%)
  );
  --nav-gradient-color: linear-gradient(
    to top in hsl,
    hsl(var(--hue-color), 29%, 95%),
    hsl(var(--hue-color), 16%, 95%)
  );
  --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(10, 10%, 87%);
  --dark-color: hsl(10, 10%, 9%);

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

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

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --h1-font-size: clamp(4.5rem, var(--title-h1), 5.5rem);
  --h2-font-size: clamp(2.35rem, 8.5vw, 2.5rem);
  --h3-font-size: clamp(1.125rem, 3vw, 1.4rem);
  --font-size-6: 6rem;
  --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-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-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-6: 6rem;
  --space-6-5: 6.5rem;
  --space-7: 7rem;
  --space-7-5: 7.5rem;
  --space-8: 8rem;
  --space-8-5: 8.5rem;
  --space-10: 10rem;
  --space-12: 12rem;
  --space-14: 14rem;
  --space-16: 16rem;

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

  /*===============================*/
  /*=========== SHADOW ============*/
  /*===============================*/
  --shadow-sm: 2px 2px 10px rgba(2, 2, 240, 0.05);
  --shadow-md: 3px 3px 20px rgba(3, 3, 15, 0.2);

  /*===============================*/
  /*============ 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.795rem;
  }
}

/*===============================*/
/*===== VARIABLES DARK THEME ====*/
/*===============================*/
body.dark-theme {
  /* HSL color mode */
  --first-color-alt: hsl(var(--hue-color), 29%, 40%);
  --title-color: hsl(var(--hue-color), 8%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 75%);
  --text-color-light: hsl(var(--hue-color), 8%, 15%);
  --contact-color: hsl(278, 27%, 8%);
  --input-color: hsl(var(--hue-color), 10%, 40%, 0.1);
  --body-gradient-color: linear-gradient(
    to top right in hsl,
    hsl(var(--hue-color), 28%, 2%),
    hsl(var(--hue-color), 35%, 10%),
    hsl(var(--hue-color), 20%, 5%),
    hsl(var(--hue-color), 38%, 12%),
    hsl(var(--hue-color), 10%, 1%)
  );
  --nav-gradient-color: linear-gradient(
    to top in hsl,
    hsl(var(--hue-color), 35%, 9%),
    hsl(var(--hue-color), 28%, 12%)
  );
  --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
}

body.dark-theme .nav__toggle {
  filter: invert(100%);
}

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

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

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

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

.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__work,
  .embla__container.embla__modal-work,
  .embla__container.embla__gallery,
  .embla__container.embla__testimonial {
    margin-left: calc(var(--slide-spacing-lg) * -1);
  }
}

@media (min-width: 799px) {
  .embla__container.embla__work,
  .embla__container.embla__gallery {
    margin-left: calc(var(--slide-spacing-md) * -1);
  }

  .embla__container.embla__modal-work,
  .embla__container.embla__testimonial {
    margin-left: calc(var(--slide-spacing-lg) * -1);
  }

  .embla__container .work__content:nth-child(even) {
    margin-top: 3rem;
  }
}

@media (min-width: 1024px) {
  .embla__container.embla__gallery {
    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); */
  cursor: grab;
}

@media (max-width: 798px) {
  .embla__slide.work__content,
  .embla__slide.work__modal-content,
  .embla__slide.gallery__content,
  .embla__slide.testimonial__content {
    flex: 0 0 var(--slide-size);
    padding-left: var(--slide-spacing-lg);
  }
}

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

  .embla__slide.work__modal-content,
  .embla__slide.gallery__content,
  .embla__slide.testimonial__content {
    flex: 0 0 var(--slide-size);
    padding-left: var(--slide-spacing-lg);
  }
}

@media (min-width: 1024px) {
  .embla__slide.gallery__content {
    padding-left: var(--slide-spacing-sm);
  }
}

.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 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.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: 35%;
  height: 35%;
}

.embla__bottom {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
  margin-top: 2rem;
}

.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(--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;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.embla__dot:after {
  box-shadow: inset 0 0 0 0.6rem var(--text-color-light);
  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 {
  margin-top: 0.1rem;
  justify-self: center;
  align-self: center;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.837rem;
}

/*===============================*/
/*=========== SOCIALS ===========*/
/*===============================*/
.socials {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.socials__icon {
  display: flex;
  color: var(--text-color);
  text-transform: capitalize;
  transition: 1s;
}

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

/*===============================*/
/*========== ANIMATION ==========*/
/*===============================*/
.animate-fade {
  opacity: 0;
  transition: opacity 0.8s ease-in-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 {
  margin-bottom: 1rem;
  font-size: clamp(6rem, 16vw, 12rem);
  text-transform: uppercase;
  line-height: 1.1;
}

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

.page__link {
  padding: var(--space-0-75) var(--space-1-25);
  font-size: clamp(0.893rem, 3vw, 1rem);
  font-weight: var(--font-semi-bold);
  background: var(--first-color);
  color: var(--light-color);
  border-radius: var(--space-0-5);
}

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

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

html {
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*===============================*/
/*===== REUSABLE CSS CLASSES ====*/
/*===============================*/
.section__head {
  margin-bottom: var(--space-1);
  align-items: center;
  text-align: center;
}

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

.section__subtitle {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  color: var(--text-color-light);
  text-transform: uppercase;
  text-align: center;
}

.section__title-s {
  margin-bottom: var(--space-0-75);
  font-size: var(--h3-font-size);
  color: var(--title-color);
  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);
}

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

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

/*=============================*/
/*========== BUTTONS ==========*/
/*=============================*/
.button__base {
  width: fit-content;
  padding: var(--space-0-5) var(--space-1-25);
  font-weight: var(--font-semi-bold);
  font-family: var(--body-font);
  font-size: var(--font-size-0-813);
  border-radius: var(--space-0-5);
  text-transform: uppercase;
  cursor: pointer;
}

.button__base:hover {
  border: 2px solid var(--first-color);
}

.button {
  display: inline-block;
  background-color: var(--first-color-alt);
  color: #fff;
  border: 2px solid var(--first-color-alt);
}

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

.button__outline {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

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

.button__icon {
  filter: invert(100%);
  font-size: var(--font-size-1-25);
  margin-left: var(--space-0-5);
  transition: 0.3s;
}

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

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

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

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

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

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

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

.nav__items:first-child {
  opacity: 0;
  visibility: hidden;
}

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

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

.nav__toggle {
  cursor: pointer;
}

.nav__toggle.visible {
  visibility: visible;
}

.nav__close {
  position: fixed;
  top: 0.85rem;
  right: 5%;
  scale: 1.1;
  cursor: pointer;
  filter: var(--filter-close);
  transform: translateY(-20rem);
  transition: 0.8s ease-in-out;
}

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

/*===============================*/
/*============= HOME ============*/
/*===============================*/
.home__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: var(--space-1);
}

.home__img {
  width: var(--space-12);
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 100%;
  border: 1px solid var(--dark-color);
}

.home__content {
  display: flex;
  align-items: center;
  flex-direction: column;
  row-gap: var(--space-2);
  text-align: center;
}

.home__title {
  max-width: 85rem;
  font-size: var(--h1-font-size);
  font-weight: var(--font-black);
  line-height: 1;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

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

.home__line {
  width: 2px;
  background: var(--text-color);
  border-radius: var(--space-1);
}

/* info */
.home__info-container {
  margin-top: auto;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.home__info-title {
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

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

/* scroll down */
.home__scroll {
  width: fit-content;
  margin: 0 auto;
  background: none;
  border: none;
  cursor: pointer;
}

.home__scroll-name {
  font-size: var(--font-size-1-2);
  font-weight: var(--font-semi-bold);
}

.scroll__down {
  transition: 1s;
}

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

/*===============================*/
/*========= PORTFOLIO ===========*/
/*===============================*/
.portfolio__container {
  row-gap: var(--space-6);
}

/* card */
.portfolio__content:nth-child(even) {
  padding: var(--space-2);
  background: var(--dark-color);
  border-radius: var(--space-1);
}

.portfolio__content:nth-child(even) .portfolio__card-title,
.portfolio__content:nth-child(even) .portfolio__card-description,
.portfolio__content:nth-child(even) .portfolio__card-span {
  color: var(--light-color);
}

.portfolio__content:nth-child(even) .portfolio__card-button {
  color: var(--dark-color);
  background: var(--light-color);
}

.portfolio__content:nth-child(even) .portfolio__card-button:hover {
  color: var(--light-color);
  background: var(--first-color);
}

.portfolio__link {
  background: transparent;
}

.portfolio__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--space-1);
  border: 1px solid var(--dark-color);
}

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

.portfolio__card-title {
  font-size: var(--font-size-1-5);
  text-transform: uppercase;
}

.portfolio__card-description {
  opacity: 0.8;
  line-height: 1.4;
}

.portfolio__card-span {
  text-transform: uppercase;
  font-weight: var(--font-normal);
}

.portfolio__card-button {
  margin-top: var(--space-0-5);
}

/*===============================*/
/*============ ABOUT ============*/
/*===============================*/
.about .section__head {
  margin-top: calc(var(--space-0-75) * -1);
  text-align: left;
  justify-content: start;
}

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

.about__description p {
  margin-bottom: var(--space-1-5);
  font-size: var(--font-size-0-938);
  line-height: 1.4;
  opacity: 0.8;
}

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

/*===============================*/
/*============ SKILLS ===========*/
/*===============================*/
.skills__head {
  margin-bottom: var(--space-1-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-0-5);
}

.skills__title {
  width: var(--space-10);
  font-size: var(--font-size-1-2);
  text-transform: capitalize;
  font-weight: var(--font-normal);
}

.skills__subtitle {
  font-size: var(--font-size-0-813);
  font-weight: var(--font-light);
  color: var(--text-color);
}

.skills__list {
  row-gap: var(--space-1-25);
}

.skills__item {
  column-gap: var(--space-0-25);
  font-size: var(--font-size-0-938);
  font-weight: var(--font-normal);
}

/*===============================*/
/*==== EXPERIENCE & EDUCATION ===*/
/*===============================*/
.experience__container.grid,
.education__container.grid {
  gap: var(--space-2);
}

.education__title,
.experience__title {
  margin-top: var(--space-1);
  font-size: var(--font-size-0-938);
  font-weight: var(--font-normal);
}

.education__name,
.experience__name {
  color: var(--title-color);
  font-size: var(--font-size-1-2);
  font-weight: var(--font-normal);
}

.education__year,
.experience__year {
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  column-gap: var(--space-0-5);
  font-size: var(--font-size-0-813);
  font-weight: var(--font-light);
}

/*===============================*/
/*========== CLIENTS ============*/
/*===============================*/
.clients {
  overflow: hidden;
}

.clients__wrapper {
  background: var(--dark-color);
}

.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: grayscale(100%) invert(100%);
  opacity: 0.7;
  transition: 1s;
}

.clients__icon:hover {
  opacity: 1;
}

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

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

/*===============================*/
/*========== SERVICES ===========*/
/*===============================*/
.services .section__title,
.services .section__subtitle {
  text-align: left;
}

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

.services__title {
  font-size: var(--font-size-1-25);
  text-transform: uppercase;
}

.services__description {
  max-width: 30rem;
  opacity: 0.8;
  line-height: 1.4;
}

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

.services__content {
  margin-top: var(--space-1-25);
  display: flex;
  flex-direction: column;
  gap: var(--space-2-5);
}

.services__card-list {
  margin-top: var(--space-1-25);
  display: flex;
  flex-direction: column;
  gap: var(--space-0-75);
}

.services__card-item {
  font-size: var(--font-size-1);
  font-weight: var(--font-light);
}

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

/*===============================*/
/*========== TESTIMONIAL ========*/
/*===============================*/
.testimonial h2 {
  text-align: center;
}

.testimonial__data,
.testimonial__header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.testimonial__data {
  margin-bottom: var(--space-1);
  text-align: center;
}

.testimonial__img {
  margin-top: var(--space-1-5);
  width: var(--space-4);
  height: var(--space-4);
  object-fit: cover;
  border-radius: 100%;
  border: 1px solid var(--dark-color);
}

.testimonial__name {
  font-size: var(--font-size-1-25);
  font-weight: var(--font-normal);
  margin-top: var(--space-1);
}

.testimonial__description {
  margin: 0 auto var(--space-1-5);
  text-align: center;
  font-size: clamp(var(--font-size-1-25), 5vw, var(--font-size-1-5));
}

.testimonial .embla__buttons {
  align-items: end;
  justify-content: center;
  transform: translateY(4.35rem);
}

/*===============================*/
/*=========== CONTACT ===========*/
/*===============================*/
.contact .button__base {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.contact__container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: var(--space-3);
}

.contact__group p {
  margin-top: var(--space-0-25);
}

.contact__text {
  padding: var(--space-0-75);
  margin-top: calc(var(--space-1-25) * -1);
  background: var(--contact-color);
  font-size: var(--font-size-0-75);
  text-transform: uppercase;
}

.contact__line {
  width: 100%;
  height: 1px;
  display: flex;
  justify-content: center;
  background: var(--first-color-alt);
}

.contact__socials {
  padding: var(--space-1-5);
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: var(--space-2-5);
  background: var(--dark-color);
  border-radius: var(--space-0-5);
}

.contact__socials .contact__icon {
  filter: invert(100%);
}

.contact__socials .contact__socials-link {
  color: var(--light-color);
}

.contact__card {
  display: flex;
  align-items: center;
  gap: var(--space-0-25);
  font-weight: var(--font-semi-bold);
}

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

.contact__socials-link {
  color: var(--text-color);
  text-transform: capitalize;
}

/* form */
.contact__label {
  font-size: var(--font-size-1);
  color: var(--title-color);
}

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

/*===============================*/
/*=========== FOOTER ============*/
/*===============================*/
footer {
  background: var(--dark-color);
}

body.dark-theme footer {
  background: transparent !important;
}

footer .socials__icon {
  color: var(--light-color);
}

.footer__container {
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-6);
  padding: var(--space-4) 0 var(--space-1);
  border-top: 1px solid var(--first-color-alt);
  text-align: center;
}

.footer__title {
  margin-bottom: var(--space-0-25);
  font-size: var(--font-size-2-5);
  text-transform: uppercase;
  font-weight: var(--font-bold);
  color: var(--light-color) !important;
}

.footer__description {
  max-width: 33rem;
  margin: var(--space-1-25) auto 0;
  opacity: 0.8;
  line-height: 1.4;
  color: var(--light-color);
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row;
  gap: var(--space-2);
  text-transform: capitalize;
}

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

.footer__link {
  font-size: var(--font-size-0-938);
  color: var(--light-color) !important;
}

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

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

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

.footer__copy a {
  font-size: var(--font-size-0-75);
  color: var(--light-color);
}

.footer__title,
.footer__subtitle,
.footer__link,
.footer__social {
  color: var(--title-color);
}

/* Active link */
.active-link {
  color: var(--first-color);
  transition: 1s;
}

/*===============================*/
/*========== SCROLL UP ==========*/
/*===============================*/
footer .scroll__up {
  margin: 0 auto;
}

.scroll__up {
  width: fit-content;
  border: none;
  background: transparent;
  opacity: 0.8;
  cursor: pointer;
}

.scroll__up-icon {
  filter: invert(100%);
  transition: 1.5s;
}

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

/*===============================*/
/*======== MEDIA QUERIES ========*/
/*===============================*/
/*====== FOR SMALL DEVICES ======*/
/*===============================*/
/* For small devices */
@media screen and (max-width: 490px) {
  .section__title {
    font-weight: var(--font-semi-bold);
    line-height: 1.1;
    text-transform: uppercase;
  }

  .section {
    padding: 10rem 0 0;
  }

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

  .nav__list {
    column-gap: 0;
  }

  .home__container {
    min-height: 80dvh;
  }

  .home__title {
    line-height: 1.3;
  }

  .home__line {
    height: var(--space-8);
  }

  .home__info-container {
    gap: var(--space-4);
  }

  .home__info-title {
    font-size: var(--font-size-1-75);
  }

  .portfolio .section__title {
    text-align: left;
  }

  .portfolio__content.grid {
    gap: var(--space-2);
  }

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

  .about__img {
    order: 1;
  }

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

  .testimonial__data,
  .testimonial__header {
    flex-direction: column;
    align-items: center;
  }

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

  .testimonial__data,
  .testimonial__description {
    text-align: center;
  }

  .testimonial__description {
    width: 100%;
  }

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

  .services__icon {
    order: -1;
    transform: translateX(-0.5rem);
  }

  .contact__socials-link {
    display: none;
  }
}

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

  .section__title {
    font-weight: var(--font-semi-bold);
    line-height: 1.2;
    text-transform: uppercase;
  }

  .home__container {
    min-height: 80dvh;
  }

  .home__title {
    line-height: 1.2;
  }

  .home__line {
    height: var(--space-8);
  }

  .home__info-container {
    gap: var(--space-4);
  }

  .home__info-title {
    font-size: var(--font-size-1-75);
  }

  .portfolio .section__title {
    text-align: left;
  }

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

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

  .about__img {
    order: 1;
  }

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

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

  .services__icon {
    order: -1;
    transform: translateX(-0.5rem);
  }

  .testimonial__description {
    width: 85%;
  }
}

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

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

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

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

/*===============================*/
/*====== FOR MEDIUM DEVICES =====*/
/*===============================*/
@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }

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

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

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

  .change-theme {
    margin: 0;
  }

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

  .nav__icon,
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    margin-left: 0;
  }

  .nav__list {
    flex-direction: row;
    column-gap: var(--space-2-5);
    margin-left: calc(var(--space-5) * -1);
  }

  .home__container {
    min-height: 80dvh;
  }

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

  .portfolio .section__title {
    text-align: center;
  }

  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-14);
  }

  .footer__link {
    display: block;
    width: var(--space-5);
  }

  .contact__container {
    width: 75%;
  }
}

/*===============================*/
/*====== FOR LARGE DEVICES ======*/
/*===============================*/
@media screen and (min-width: 1280px) {
  .nav__list {
    column-gap: var(--space-5);
    margin-left: calc(var(--space-7-5) * -1);
  }

  .home.section {
    padding: var(--space-12) 0 var(--space-4);
  }

  .home__container {
    min-height: 90dvh;
  }

  .home__line {
    height: var(--space-8);
  }

  .home__info-container {
    gap: var(--space-8);
  }

  .home__info-title {
    font-size: var(--font-size-2);
  }

  .portfolio .section__title {
    text-align: center;
  }

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

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

  .portfolio__content:nth-child(even) .portfolio__card {
    order: 1;
  }

  .portfolio__card-description {
    max-width: 30rem;
  }

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

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

  .about__content {
    position: sticky;
    top: var(--space-6);
    height: fit-content;
  }

  .about__description p {
    max-width: 30rem;
  }

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

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

  .services__card {
    grid-template-columns: auto 6rem;
  }

  .services__icon {
    order: 1;
    transform: translateX(2.5rem);
  }

  .testimonial__description {
    width: 45%;
  }

  .contact__container {
    width: 50%;
  }
}

@media screen and (min-width: 1440px) {
  .home__container {
    min-height: 77dvh;
  }
}
