/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Red+Hat+Display:wght@400;700;900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  --box-shadow: rgb(0 0 2 / 3%) opx 20px 30px -10px;
  
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(49, 100%, 41%);
  --first-color-light: hsl(49, 100%, 61%);
  --first-color-alt: 	hsl(49, 82%, 30%);
  --first-color-dark: hsl(48, 82%, 20%);
  --first-color-gray: hsl(79, 6%, 64%);
  --title-color: hsl(180, 4%, 98%);
  --title-color-black: hsl(180, 4%, 12%);
  --text-color: hsl(180, 4%, 72%);
  --text-color-light: hsl(180, 4%, 65%);
  --body-color: hsl(180, 12%, 8%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Red Hat Display', sans-serif;
  --second-font: 'Kaushan Script', cursive;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.5rem;
  --big-font-size: 1.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-bold: 700;
  --font-black: 900;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 6rem;
    --bigger-font-size: 3.5rem;
    --big-font-size: 2.75rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body,
button,
input {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1124px;
  margin-right: 1.5rem;
  margin-left: 1.5rem;
}

.section {
  padding: .5rem 0 2rem;
}

.section__data {
  display: flex;
  flex-direction: column;
  row-gap: .75rem;
  text-align: center;
  margin-bottom: 0rem;
}

.section__title, 
.section__title-border {
  font-size: var(--big-font-size);
  letter-spacing: 1.5px;
}

.section__subtitle {
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--first-color);
  transform: rotate(-2deg);
}

.section__titles {
  display: flex;
  column-gap: .75rem;
  justify-content: center;
  margin-bottom: .5rem;
}

.section__title-border {
  -webkit-text-stroke: 1px var(--first-color);
  color: transparent;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

.color-red {
  color: hsl(0, 80%, 64%);
}

.color-green {
  color: var(--first-color);
}

/*=============== HEADER & NAV ===============*/
.header {
  width: 100%;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: background .3s;
}

.nav {
  /*height: var(--header-height);*/
  height: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--body-color);
}

.nav__logo,
.nav__toggle {
  color: var(--first-color-light);
  display: flex;
}

.nav__logo {
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-bold);
  display: block;
}

.nav__logo img {
  width: 5rem;
  margin-right: 2.5rem;
}

.nav__toggle {
  font-size: 1.25rem;
  cursor: pointer;
}

@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    background-color: hsla(180, 12%, 8%, .8);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    border-left: 2px solid var(--first-color-gray);
    transition: right .3s;
  }
}

.nav__list {
  padding: 5rem 0 0 3rem;
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--title-color);
  transition: color .3s;
  font-size: 19px;
  font-weight: 600;
  text-shadow: 2px 2px black;
}

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

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

.nav .nav__button {
  background-color: var(--first-color);
  border: 2px solid var(--first-color-dark);
}

/* Show menu */
.show-menu {
  right: 0;
}


/* Change background header */
.bg-header {
  background-color: var(--body-color);
  box-shadow: 0 4px 8px hsla(180, 12%, 4%, .3);
}


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



/*=============== BUTTON ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  padding: 18px 32px;
  border: 2px solid var(--first-color-light);
  color: var(--title-color-black);
  font-weight: var(--font-bold);
  cursor: pointer;
  transition: background .3s;
}

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

.button i {
  font-size: 1.25rem;
  transition: transform .3s;
}

.button__flex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: .5rem;
}

.button__flex:hover i {
  transform: translateX(.25rem);
}


/*=============== BODY ===============*/
main .container {
  max-width: 960px;
  margin: 5.5rem auto 0 auto;
}

h1 {
  text-align: center;
  font-style: var(--body-font);
  color: var(--first-color-light);
  padding-bottom: 1rem;
}

.client-section {
  margin-bottom: 40px;
  background-color: var(--body-color);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(227, 201, 84, 0.9); /* Subtle shadow */
}

.client-images {
  display: flex;
  justify-content: center; /* Center images */
  margin-bottom: 15px;
}

.client-images img:hover {
  transform: scale(1.05);
}

.client-images img {
  width: 30%; /* Adjust as needed */
  margin: 0 30px; /* Space between images */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial {
  margin-bottom: 5px;
  text-align: justify; /* Justified text */
}

.testimonial p {
  margin-bottom: 10px; /* Space between paragraphs */
  line-height: 1.2; /* Improved readability */
  font-size: 1.2rem;
}

.testimonial p i {
  color: var(--first-color-light);
}

h2 {
  color: #333; /* Darker heading color */
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto;
}

.home .home__btn {
  background-color: var(--first-color);
  border: none;
  color: var(--body-color);
  font-weight: bold;
  cursor: pointer;
  width: 12rem;
  height: 3rem;
  border-radius: 10px;
}

.home .home__btn:hover {
  background-color: var(--first-color-alt);
  transition: background-color .3s;
}

/*=============== FOOTER ===============*/
.footer__container {
  row-gap: 1.75rem;
  padding-top: 1rem;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.footer__logo,
.footer__description {
  color: var(--title-color);
}

.footer__logo,
.footer__form,
.footer__social {
  display: flex;
}

.footer__logo {
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
}

.footer__logo img {
  width: 1.5rem;
}

.footer__description {
  margin-bottom: 2rem;
}

.footer__form {
  flex-direction: column;
  gap: 1.25rem;
}

.footer__input {
  padding: 20px 56px 20px 24px;
  border: 2px solid var(--first-color-light);
  background: transparent;
  color: var(--text-color);
  outline: none;
}

.footer__content,
.footer__links,
.footer__group {
  display: grid;
}

.footer__content {
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3.5rem;
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
  color: var(--first-color);
}

.footer__links {
  row-gap: .5rem;
}

.footer__link {
  color: var(--text-color);
  transition: color .3s;
}

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

.footer__group {
  margin-top: 1rem;
  justify-items: center;
  row-gap: 2rem;
}

.footer__social {
  column-gap: 1.25rem;
}

.footer__social-link {
  display: inline-flex;
  padding: .35rem;
  background-color: var(--first-color);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--title-color-black);
  transition: background .4s;
}

.footer__social-link:hover {
    background-color: var(--first-color-dark);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.footer__message {
  position: absolute;
  transform: translateY(1rem);
}



/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: .5rem;
  background-color: hsl(79, 4%, 15%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(79, 4%, 25%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  /*background-color: hsl(79, 4%, 35%);*/
  background-color: var(--first-color);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -30%;
  background-color: var(--first-color);
  display: inline-flex;
  padding: .35rem;
  color: var(--title-color-black);
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: .3s;
}

.scrollup:hover {
  transform: translateY(-.25rem);
}


/* Show Scroll Up*/
.show-scroll {
  bottom: 3rem;
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 360px) {
  .client-images img {
    width: 90%; /* Full width on mobile */
    margin: 10px 0; /* Adjust margins */
  }

  .client-images {
      flex-direction: column; /* Stack images vertically */
      align-items: center;
  }

  .container{
      padding: 0px; /* removes container padding on extra small devices */
  }

  .client-section{
      padding: 10px; /* reduces client-section padding on extra small devices */
  }
  
  .footer__container {
    row-gap: .2rem;
  }

  .footer__content {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    margin-top: .5rem;
  }

  .footer__content .footer__title {
    margin-bottom: .2rem;
  }

  .footer__links {
    row-gap: 0.25rem;
  }

  .footer__group {
    row-gap: .75rem;
    margin-top: 2.5rem;
  }
  
  .footer__content {
    margin-left: .5rem;
    margin-right: .5rem;
  }
}

@media screen and (max-width: 440px) {
   
}

@media screen and (max-width: 768px) {
  .client-images img {
    width: 90%; /* Stack images on smaller screens */
    margin: 10px 0; /* Adjust margins */
  }

  .client-images {
      flex-direction: column; /* Stack images vertically */
      align-items: center;
  }
  
}


/* For medium devices */
@media screen and (min-width: 768px) {
  .nav__menu {
    width: 50%;
  }

  .footer__container {
    grid-template-columns: repeat(1, 1fr);
    justify-content: space-between;
  }

  .footer__content {
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
  }

}

@media screen and (max-width: 1022px) {
  .nav__logo {
    display: block;
  }

  .nav {
    justify-content: space-between;
  }

  .nav__logo {
    padding-top: .8rem;
  }

  .nav__toggle {
    font-size: 2rem;
  }
}


/* For large devices */
@media screen and (min-width: 1023px) {
  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__menu {
    width: initial;
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    padding: 0;
    align-items: center;
    column-gap: 4rem;
  }
  
  .footer {
    padding-bottom: 3rem;
  }

  .footer__form {
    flex-direction: row;
  }

  .footer__content {
    column-gap: 6rem;
    margin-left: 2.2rem;
    margin-top: 1rem;
  }

  .footer__group {
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
    margin-top: 2rem;
  }

  .footer__social {
    order: 1;
    margin-right: 4rem;
  }

}

@media screen and (min-width: 1150px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .scrollup {
    right: 2rem;
  }
  
}