/* COMMENT OR UNCOMMENT, Crtl + / */

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

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

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

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

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

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

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

  --container-width: 1440px;

  /*===============================*/
  /*======== GALLERY MASON ========*/
  /*===============================*/
  --gallery-gap: 10px; /* Adjust spacing between images: NOTE: must be the same in gallery-gap json.data */

  /* Adjust offset from load more images */
  --gallery-offset-sm: -4rem;
  --gallery-offset-md: -16rem;
  --gallery-offset-lg: -50rem;

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

  /*===============================*/
  /*======== THEME COLORS =========*/
  /*===============================*/
  --hue-color: 220;
  /*- 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), 89%, 7%);
  --first-color-alt: hsl(var(--hue-color), 20%, 23%);
  --first-color-lighter: hsl(var(--hue-color), 92%, 45%);
  --title-color: hsl(var(--hue-color), 8%, 15%);
  --text-color: hsl(var(--hue-color), 8%, 30%);
  --text-color-light: hsl(var(--hue-color), 8%, 90%);
  --input-color: hsl(var(--hue-color), 27%, 92%);
  --body-color: hsl(var(--hue-color), 60%, 99%);
  --body-gradient-color: linear-gradient(
    to top right in hsl,
    hsl(var(--hue-color), 29%, 97%),
    hsl(var(--hue-color), 21%, 96%),
    hsl(var(--hue-color), 19%, 94%),
    hsl(var(--hue-color), 12%, 99%),
    hsl(var(--hue-color), 16%, 97%)
  );
  --nav-gradient-color: linear-gradient(
    to top in hsl,
    hsl(var(--hue-color), 29%, 95%),
    hsl(var(--hue-color), 16%, 95%)
  );
  --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%);
  --light-color: hsl(10, 10%, 100%);

  /* #ff0000 red */
  --filter-close: invert(21%) sepia(49%) saturate(7492%) hue-rotate(354deg) brightness(103%)
    contrast(128%);
  /* #DA9829 dark purple */
  --filter-icon: invert(2%) sepia(74%) saturate(5616%) hue-rotate(265deg) brightness(97%)
    contrast(101%);
  /* #ffffff white */
  --filter-icon-lighter: invert(99%) sepia(15%) saturate(5033%) hue-rotate(180deg) brightness(100%)
    contrast(100%);

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

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --h1-font-size: clamp(2.5rem, var(--title-h1), 3.75rem);
  --h2-font-size: clamp(1.75rem, 2vw, 2rem);
  --h3-font-size: clamp(1.125rem, 2vw, 1.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-semibold: 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-8: 8rem;
  --space-10: 10rem;
  --space-12: 12rem;
  --space-16: 16rem;
  --space-20: 20rem;

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

  /*===============================*/
  /*=========== SHADOW ============*/
  /*===============================*/
  --shadow-sm: 5px 5px 10px rgba(2, 2, 2, 0.12);
  --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: 992px) {
  :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), 92%, 55%);
  --first-color-lighter: hsl(var(--hue-color), 92%, 60%);
  --title-color: hsl(var(--hue-color), 8%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 75%);

  --input-color: hsl(var(--hue-color), 29%, 14%);
  --body-color: hsl(var(--hue-color), 28%, 12%);
  --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%)
  );
  --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%);
}

body.dark-theme .theme__mode {
  filter: var(--filter-icon-lighter);
}

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

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

.theme__mode {
  filter: var(--filter-icon);
}

.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 ============*/
/*===============================*/
.grid__embla {
  display: grid;
}

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

.embla {
  max-width: 95rem;
  margin: auto;
}

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

.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__gallery {
    margin-left: calc(var(--slide-spacing-sm) * -1);
  }
}

@media (min-width: 768px) {
  .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: 767px) {
  .embla__slide.gallery__modal-slide {
    flex: 0 0 var(--slide-size);
    padding-left: var(--slide-spacing-lg);
  }
}

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

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

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

.embla__button:disabled {
  color: var(--light-color);
}

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

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

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

.embla__dot {
  -webkit-tap-highlight-color: var(--light-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.5rem var(--text-color);
  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(--light-color);
}

.embla__selected-snap-display {
  margin-top: 1rem;
  justify-self: center;
  align-self: end;
  color: var(--light-color);
  font-weight: 400;
  font-size: var(--font-size-0-813);
}

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

.modal.modal-show {
  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: absolute;
  top: calc(var(--space-1) * -1);
  right: var(--space-0-75);
  color: var(--danger-color);
  font-size: var(--font-size-2);
  scale: 1.4;
  font-weight: var(--font-normal);
  cursor: pointer;
  z-index: 1100;
}

/*===============================*/
/*=========== SOCIALS ===========*/
/*===============================*/
.socials__container {
  display: flex;
  column-gap: var(--space-1-25);
}

.socials-icon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-0-25);
  transition: 1s;
}

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

.socials-icon span {
  font-size: var(--font-size-0-938);
  color: var(--text-color);
}

/*===============================*/
/*========== 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);
}

/*===============================*/
/*========== ANIMATION ==========*/
/*===============================*/
.animate-fade {
  opacity: 0;
  transition: opacity 0.4s ease-in;
  /* transform: translateY(50px); */
  /* transition: opacity 0.2s ease-in-out, transform 4s ease-in-out; */
}

.animate-fade.active {
  opacity: 1;
  /* transform: translateY(0); */
}

/*=============================*/
/*=========== PAGE ============*/
/*=============================*/
.page__container {
  padding: var(--space-2);
  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(4rem, 14vw, 14rem);
  line-height: 1.1;
  text-transform: uppercase;
}

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

.page__link {
  padding: 12px 24px;
  font-size: clamp(0.893rem, 3vw, 0.938rem);
  background: var(--first-color);
  color: var(--container-color);
}

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

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

body {
  margin: 0 0 var(--space-1) 0;
  font-family: var(--body-font);
  background: var(--body-gradient-color);
  color: var(--text-color);
  transition: background 0.3s ease-in 0.5s;
}

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

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

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-semibold);
  text-transform: capitalize;
}

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

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

.grid__nostack {
  grid-area: none;
}

.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(--first-color);
  color: #fff;
  font-weight: var(--font-semibold);
  font-family: var(--body-font);
  font-size: var(--font-size-0-938);
  border: none;
  border-radius: var(--space-0-5);
  cursor: pointer;
}

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

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

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

/*===============================*/
/*============== NAV ============*/
/*===============================*/
.nav {
  max-width: var(--container-width);
  height: calc(var(--header-height) + 1rem);
  display: flex;
  align-items: center;
}

.nav__logo {
  margin-left: calc(var(--space-0-25) * -1);
  display: flex;
  align-items: center;
  column-gap: var(--space-0-25);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 999;
}

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

.nav__img,
.nav__logo span {
  transition: 0.3s;
}

.nav__logo span {
  font-weight: var(--font-bold);
}

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

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

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

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

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

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

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

.nav__toggle {
  cursor: pointer;
}

.nav__close {
  position: absolute;
  right: 5%;
  top: 1.35rem;
  cursor: pointer;
  filter: var(--filter-close);
}

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

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

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

/*===============================*/
/*============= HOME ============*/
/*===============================*/
.home {
  min-height: 30rem; /* Fix Layout Shift */
}

.home__container {
  align-items: center;
}

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

.home__head {
  margin-left: auto;
}

.home__description {
  font-size: var(--font-size-0-938);
  line-height: 1.4;
}

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

.home__scroll {
  display: block;
  width: 100%;
  margin: 0 auto;
  background: none;
  border: none;
  cursor: pointer;
}

.scroll__down {
  transition: 1s;
}

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

/*===============================*/
/*=========== GALLERY ===========*/
/*===============================*/
.gallery__offset {
  transform: translateY(6rem);
  height: 20px;
  width: 100%;
}

.gallery__filter-container {
  display: flex;
  flex-direction: row;
  justify-content: end;
  flex-wrap: wrap;
  column-gap: var(--space-0-5);
  row-gap: var(--space-0-75);
  padding: var(--space-0-5) var(--space-0-75);
  border-radius: var(--space-0-5);
}

/* Filter Buttons */
.gallery__filter-btn {
  padding: var(--space-0-5);
  border: none;
  color: var(--text-color);
  background: none;
  font-size: var(--font-size-0-813);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery__filter-btn:hover,
.gallery__filter-btn.active {
  color: var(--first-color-lighter);
}

.gallery__seperator {
  transform: translateY(0.35rem);
}

.gallery__seperator:last-child {
  display: none;
}

.gallery__masonry {
  position: relative;
  width: 100%;
  min-height: 100px;
  max-width: none;
  margin-bottom: calc(var(--gallery-gap) * -1); /*offset must be the same gap 50 in js */
  transform: translateX(calc(var(--gallery-gap) / 2)); /*must be the same gap 50 / 2 in js */
}

.gallery__button {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  background: transparent;
  border: none;
  border-radius: var(--space-0-5); /* Remove border-radius */
  overflow: hidden;
  cursor: pointer;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: 0.5s ease;
}

.gallery__img:hover {
  transform: scale(1.05);
}

.gallery__load {
  display: block;
  margin: var(--space-2) auto 0;
}

.gallery__hidden {
  opacity: 0;
  visibility: hidden;
}

/* modal */
.gallery__modal-container {
  position: relative;
  max-height: 90dvh;
}

.gallery__modal-container::-webkit-scrollbar {
  display: none;
}

.gallery__modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__modal-title {
  color: var(--text-color-light);
  font-size: var(--font-size-0-813);
  text-align: center;
}

/*===============================*/
/*============ ABOUT ============*/
/*===============================*/
.about__description {
  margin: var(--space-1-5) 0 var(--space-3);
  font-size: var(--font-size-0-938);
  line-height: 1.4;
}

.about__alt {
  margin-top: var(--space-0-5);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-0-813);
}

.about__img {
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border-radius: var(--space-0-5); /* Remove border-radius */
}

/*===============================*/
/*============ CUSTOM ===========*/
/*===============================*/
.custom .section__title,
.custom .section__subtitle {
  text-align: right;
}

.custom__content {
  margin-top: var(--space-1-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: right;
}

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

.custom__card-title {
  font-weight: var(--font-semibold);
  font-size: var(--font-size-1);
  margin-top: -0.15rem;
}

.custom__card-subtitle {
  font-size: var(--font-size-0-75);
}

.custom__card-description {
  line-height: 1.4;
  font-size: var(--font-size-0-813);
  margin-left: auto;
}

/*===============================*/
/*========== TESTIMONIAL ========*/
/*===============================*/
.testimonial .section__title,
.testimonial .section__subtitle {
  text-align: center;
}

.testimonial__content {
  margin-top: var(--space-1-5);
  grid-auto-flow: dense;
}

.testimonial__content.grid {
  gap: var(--space-0-75);
}

.testimonial__card {
  padding: var(--space-1-25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-0-5);
  background: var(--input-color);
  border-radius: var(--space-0-5);
}

.testimonial__card-date {
  font-size: var(--font-size-0-75);
  opacity: 0.9;
}

.testimonial__card-title {
  font-weight: var(--font-semibold);
  font-size: var(--font-size-1);
  margin-top: -0.15rem;
}

.testimonial__card-description {
  margin-top: var(--space-0-5);
  font-size: var(--font-size-0-938);
  font-style: italic;
  line-height: 1.4;
}

/*===============================*/
/*=========== CONTACT ===========*/
/*===============================*/
.contact__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
}

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

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

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

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

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

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

/*===============================*/
/*=========== FOOTER ============*/
/*===============================*/
.footer__container {
  margin-top: var(--space-6);
  padding: var(--space-4) 0 var(--space-1);
}

.footer__title {
  font-size: var(--font-size-2);
  margin-bottom: var(--space-0-5);
  margin-top: -0.35rem;
}

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

.footer__description {
  max-width: 33rem;
  margin-top: var(--space-1-25);
  line-height: 1.4;
  font-size: var(--font-size-0-813);
}

.footer__infos {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1-5);
}

.footer__link {
  color: var(--text-color);
  font-size: var(--font-size-0-813);
  text-transform: lowercase;
}

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

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

.footer__bottom {
  display: flex;
  margin-top: var(--space-2);
}

.footer__copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: var(--space-0-25);
  font-size: var(--font-size-0-75);
  color: var(--text-color);
}

/*===============================*/
/*========== SCROLL UP ==========*/
/*===============================*/
.scroll__up {
  background: none;
  border: none;
  cursor: pointer;
  transform: translateX(var(--space-0-5));
}

.scroll__up-icon {
  transform: translateY(var(--space-0-25));
  transition: 1.5s;
}

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

/*===============================*/
/*======== MEDIA QUERIES ========*/
/*===============================*/
/*====== FOR SMALL DEVICES ======*/
/*===============================*/
@media screen and (max-width: 490px) {
  .section__title {
    line-height: 1.1;
    text-transform: uppercase;
  }

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

  .section__gallery {
    padding: var(--space-5) 0 var(--space-4);
  }

  .seperator {
    display: none;
  }

  .mobile__seperator {
    margin-bottom: 0.15rem;
  }

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

  .socials-icon {
    flex-direction: column;
  }

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

  .nav__list {
    column-gap: 0;
  }

  .home__container {
    padding: var(--space-16) 0 var(--space-4);
  }

  .home__title {
    line-height: 1.3;
  }

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

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

  .gallery__filter-container {
    /* Position Left */
    /* margin-bottom: var(--space-0-25); */
    /* Position Center */
    /* margin: var(--space-1-5) auto var(--space-0-25); */
    /* Position Right */
    margin: var(--space-1-5) 0 var(--space-0-25) auto;
  }

  .gallery__modal-img {
    width: 100%;
    aspect-ratio: 7/9;
    object-fit: contain;
  }

  .gallery__hidden {
    transform: translateY(var(--gallery-offset-sm)); /* offset hidden smooth scroll */
  }

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

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

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

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

  .contact__form {
    order: 1;
  }

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

  .footer__head,
  .footer__infos {
    text-align: center;
    align-items: center;
  }

  .footer__links {
    flex-direction: column;
  }

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

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

  .footer__copy {
    order: 1;
    justify-content: center;
    row-gap: var(--space-0-5);
  }

  .scroll__up {
    transform: translateX(0);
  }
}

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

  .section__gallery {
    padding: var(--space-5) 0 var(--space-4);
  }

  .section__title {
    line-height: 1.1;
    text-transform: uppercase;
  }

  .seperator {
    display: none;
  }

  .mobile__seperator {
    margin-bottom: 0.15rem;
  }

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

  .socials-icon {
    flex-direction: column;
  }

  .home__container {
    padding: var(--space-16) 0 var(--space-4);
  }

  .home__title {
    line-height: 1;
    max-width: 65rem;
    margin-left: var(--space-0-25);
    margin-left: calc(var(--space-0-25) * -1);
  }

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

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

  .gallery__filter-container {
    /* Position Left */
    /* margin-bottom: var(--space-0-25); */
    /* Position Center */
    /* margin: var(--space-1-5) auto var(--space-0-25); */
    /* Position Right */
    margin: var(--space-1-5) 0 var(--space-0-25) auto;
  }

  .gallery__modal-img {
    width: 100%;
    aspect-ratio: 7/9;
    object-fit: contain;
  }

  .gallery__hidden {
    transform: translateY(var(--gallery-offset-sm)); /* offset hidden smooth scroll */
  }

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

  .about__description {
    max-width: 30rem;
  }

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

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

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

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

  .contact__form {
    order: 1;
  }

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

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

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

  .scroll__up {
    display: block;
    width: fit-content;
    margin-left: auto;
  }
}

/*===============================*/
/*=== MEDIA QUERIES NAVIGATION ==*/
/*===============================*/
@media screen and (max-width: 991px) {
  .theme__container {
    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: var(--shadow-md);
    transition: 0.3s;
  }

  .nav__list {
    gap: var(--space-0-75);
  }

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

/*===============================*/
/*====== FOR MEDIUM DEVICES =====*/
/*===============================*/
@media screen and (min-width: 768px) {
  .socials__container {
    flex-direction: row;
  }

  .socials-icon {
    flex-direction: row;
  }
}

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

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

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

  .change-theme {
    margin: 0;
  }

  .seperator {
    display: block;
  }

  .mobile__seperator {
    display: none;
  }

  .nav {
    column-gap: var(--space-1);
  }

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

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

  .nav__menu {
    margin-left: auto;
  }

  .home__description {
    max-width: 30rem;
  }

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

  .gallery__filter-container {
    position: sticky;
    top: 4.75rem;
    z-index: 10;
    width: fit-content;
    height: fit-content;
    /* Position Left */
    /* margin-bottom: var(--space-1); */
    /* Position Center */
    /* margin: var(--space-1-5) auto var(--space-1); */
    /* Position Right */
    margin: var(--space-1-5) 0 var(--space-1) auto;
    background: var(--body-color);
  }

  .gallery__modal-img {
    aspect-ratio: 13/9;
  }

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

  .contact__form {
    order: 0;
  }

  .footer__copy {
    order: 0;
  }
}

/*===============================*/
/*====== FOR MEDIUM DEVICES =====*/
/*===============================*/
@media screen and (min-width: 998px) {
  .gallery__hidden {
    transform: translateY(var(--gallery-offset-lg)); /* offset hidden smooth scroll */
  }
}

/*===============================*/
/*====== FOR LARGE DEVICES ======*/
/*===============================*/
@media screen and (min-width: 1280px) {
  .home__container {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    padding: var(--space-12) 0 var(--space-6);
  }

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

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

  .home__description {
    max-width: 26rem;
  }

  .gallery__modal-img {
    aspect-ratio: 17/9;
  }

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

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

  .about__description {
    max-width: 25rem;
  }

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

  .custom__card-description {
    max-width: 25rem;
  }

  .testimonial__content {
    grid-template-columns: repeat(5, 1fr);
  }

  .testimonial__card:nth-child(2),
  .testimonial__card:nth-child(4) {
    margin-top: var(--space-1-5);
  }

  .testimonial__container,
  .custom__container {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }

  .testimonial__container.grid,
  .custom__container.grid {
    gap: var(--space-10);
  }

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

  .contact__content {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__data .socials__container {
    margin-left: auto;
  }

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