/* variables */
:root {
  --primary: #0052cc;
  --primary-light: #0e62ab;
  --accent: #805500;
  --accent-light: #cc8800;
  --footer-color: #04030f;
}

html {
  box-sizing: border-box;
}

/* reset */
ul li {
  list-style: none;
}

ul li,
p,
a,
h1,
h2,
h3,
h4,
h5,
h6,
body {
  margin: 0;
  padding: 0;
  text-decoration: none;
  transition: color 1s;
}

/* General styles */
section,
footer,
header {
  padding: 1em 1.5em;
}

section {
  width: 80%;
  margin: auto;
  max-width: 500px;
}

hr {
  height: 1px;
  color: rgba(240, 203, 203, 0.787);
}

/* Border Box */

*,
*::before,
::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Raleway", sans-serif;
  overflow-x: hidden;
}

header {
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.7)
    ),
    url(assets/images/pic-about-us.jpg);
  /* background-position: center; */
  background-size: cover;
  object-fit: cover;
  object-position: center;
  color: #fff;
  font-size: 0.8rem;
  height: 100vh;
  position: relative;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  width: 10rem;
  margin: 0;
  display: flex;
  align-items: center;
}

.nav-logo span {
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  /* font-family: "Raleway", sans-serif; */
}

.nav-img {
  width: 4rem;
}

.nav-links,
.nav-logo,
.header-text h1 {
  animation: header-load 1000ms ease-in both;
}

.nav-links {
  position: fixed;
  inset: 0;
  /* background: var(--primary); */
  /* background: hsl(216, 100%, 40%, 0.9); */
  /* background: hsl(0, 0%, 0); */
  backdrop-filter: blur(1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  padding-top: 3em;
  transform: translateX(100%);
}

.nav-links a {
  font-size: 1rem;
  color: #fff;
  transition: all 0.5s;
}

.nav-links a:hover {
  font-size: 1.05rem;
  color: var(--accent);
}

.nav-links[data-visible="true"] {
  transform: translateX(0%);
}

.mobile-nav-toggle {
  font-size: 1.3rem;
  margin-right: 0.5em;
  cursor: pointer;
  z-index: 100;
}

.header-text {
  position: absolute;
  bottom: 10%;
  color: #fff;
  width: 80%;
  max-width: 1000px;
}

.header-text h1 {
  margin-bottom: 1em;
}

.nav-btn {
  color: inherit;
  background: var(--accent);
  padding: 1em;
  border-radius: 20px;
  margin-top: 0.2em;
  display: inline-block;
  animation: navbtn-load 400ms ease-in 500ms both;
}

/* VALUES */

.values {
  margin-top: 4em;
  margin-bottom: 4em;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.values__title,
.services__title,
.partners__title,
.footer__title-text {
  color: var(--accent);
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.6em;
}

.services__title {
  color: #fff;
}

.values__items {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s;
}

.values__items.show {
  opacity: 1;
  transform: translateY(0%);
}

.values__items svg,
.values__items img,
.values__items i {
  /* border: 1px solid black; */
}

.values__items-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: var(--accent);
}

.values__items i {
  font-size: 3.5rem;
  color: var(--accent);
}

.values__items-title {
  font-size: 1rem;
}

.services {
  padding: 2.5em 1.5em;
  background: var(--primary-light);
}

.services__list {
  list-style: none;
  padding-left: 0;
  counter-reset: my-counter;
  font-size: 0.9rem;
}

.services__title ~ p,
.services__list {
  color: #fff;
}

.services__list li::before {
  content: counter(my-counter) ". ";
  counter-increment: my-counter;
  margin-right: 0.5em;
}

.services__slides {
  margin-bottom: 3em;
}

.services__slide {
  height: 24rem;
}

.services__slide-content {
  /* margin: auto; */
  margin-bottom: 3rem;
  width: 90%;
}

.services__slide-content p {
  font-size: 1rem;
}

.swiper {
  width: 100%;
  height: 100%;
  position: relative;
  margin-top: 2.5em;
  /* border: 3px solid salmon; */
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 3em auto !important; */
  /* position: relative; */
}

.swiper-slide img {
  display: block;
  margin: 1.5em auto;
  width: 90%;
  height: 10rem;
  object-fit: cover;
}

/* .swiper-button-next,
.swiper-button-prev {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 10px;
} */

#my-swiper .swiper-pagination {
  /* bottom: 4rem; */
}

#my-swiper .swiper-button-prev,
#my-swiper .swiper-button-next {
  /* position: absolute; */
  top: 60%;
  /* bottom: 0; */
  height: 0.4rem;
  width: 0.4rem;
}

.swiper-custom-nav {
  z-index: 100;
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
  /* border: 3px solid green; */
}

.swiper-custom-nav svg {
  color: #fff;
  background: var(--accent);
  /* display: inline; */
  border-radius: 50%;
}

.partners {
  margin-top: 2rem;
}

.partners__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.partner__img {
  height: 7rem;
  object-fit: contain;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s;
}

.partner__img.show {
  opacity: 1;
  transform: translateY(0%);
}

.speech {
  margin-bottom: 3em;
}

.speech__img img {
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.speech__text-title {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1em;
  /* margin: 0; */
}

.speech__text-content {
  margin-top: 1em;
}

.speech__text-footer {
  font-family: "Sofia", cursive;
  color: var(--primary);
  font-size: 1.5rem;
}

.speech__text-content p {
  /* animation: speech-slide-in 500ms ease-in both; */
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.8s;
}

.speech__text-content p.show {
  /* animation: speech-slide-in 500ms ease-in both; */
  opacity: 1;
  transform: translateX(0);
}

footer {
  padding-top: 5em;
  background: var(--footer-color);
}

.footer__title-text {
  color: #fff;
  margin-bottom: 0.5em;
  /* font-size: 2rem; */
}

.footer__title-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  /* border: 1px solid #fff; */
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.footer__title-form input,
.footer__title-form button {
  outline: none;
  padding: 1em 0.8em;
  font-family: "Raleway", sans-serif;
  border: none;
  border-radius: 7px;
}

.footer__title-form button {
  font-size: 1rem;
  background: var(--accent);
  color: #fff;
  transition: all 0.3s;
  cursor: pointer;
}

.footer__title-form button:hover {
  opacity: 0.9;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1em;
}

.footer__link-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__link,
.footer__link-title {
  color: #fff;
  padding: 0.5em 0;
  transition: all 0.4s;
}

.footer__link-title {
  color: var(--accent-light);
  cursor: default;
}

.footer__link:hover {
  color: var(--accent-light);
  padding: 0.5em 0;
}

.brand-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  row-gap: 0.5em;
  padding: 0 3em;
  align-content: start;
}

.brand-logos a {
  /* border: 1px solid var(--accent-light); */
}

.footer__link-section {
  /* border: 1px solid var(--accent-light); */
}

.brand-logos-title {
  grid-column: 1 / -1;
}

.brand-logos i {
  color: #fff;
  font-size: 2rem;
  margin: 0;
  padding: 0.5em;
  transition: color 0.3s;
}

.brand-logos i:hover {
  color: var(--accent);
}

@media screen and (min-width: 768px) {
  /* General styles */
  section {
    padding: 1.5em 2em;
    width: 80%;
    margin: auto;
    max-width: 800px;
  }

  header {
    height: 100vh;
  }

  .nav-logo {
    width: 12rem;
    /* height: 5rem; */
    margin: 0;
    /* margin-left: 2em; */
    /* display: none; */
  }

  footer,
  header {
    padding: 1.5em 2em;
  }

  .values__title,
  .services__title,
  .footer__title-text {
    font-size: 2rem;
    margin-bottom: 0.6em;
  }

  nav {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* border: 1px solid white; */
    justify-content: space-between;
  }

  .mobile-nav-toggle {
    display: none;
    align-self: flex-start;
  }

  .nav-links {
    /* border: 1px solid white; */
    padding: 0;
    position: static;
    transform: translateX(0%);
    flex-direction: row;
    backdrop-filter: none;
  }

  .values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* flex-direction: row; */
    /* align-items: center; */
  }

  .values__items:first-child {
    grid-column: 1 / -1;
  }

  .services__slide {
    height: 21.25rem;
  }

  .services__slide-content p {
    font-size: 15px;
  }

  .services__slide-content > h5 {
    margin-top: 1.5em;
  }

  .footer__title-form {
    flex-direction: row;
    /* border: 1px solid white; */
    margin-bottom: 2em;
  }

  .footer__title-form > * {
    /* flex-direction: row; */
    /* border: 1px solid white; */
    flex-grow: 1;
  }

  .footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    margin: 1em auto auto auto;
    max-width: 500px;
  }

  .brand-logos {
    padding: 0 6em;
  }
}

@media screen and (min-width: 1168px) {
  section {
    width: 90%;
    max-width: none;
    /* border: 1px solid; */
  }

  header {
    height: 100vh;
  }

  .header-text a {
    font-size: 1rem;
  }

  .nav-logo {
    width: 15rem;
    margin-left: 2em;
  }

  .values {
    margin-top: 6em;
    margin-bottom: 6em;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2em;
  }

  .values__item-text {
    border: 1px solid;
    height: 5rem;
  }

  .services {
    padding: 8em 0;
    min-height: 100vh;
  }

  .services__content {
    display: flex;
    padding: 2em;
    gap: 1.5em;
  }

  .services__slide-content p {
    font-size: 15px;
  }

  .services__title ~ p {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    font-size: 1.2rem;
  }

  .services__list {
    line-height: 2;
    font-size: 1.1rem;
  }

  .swiper-slide {
    height: 23rem;
  }

  .swiper-slide img {
    height: 11rem;
    /* margin-top: 1em; */
  }

  .swiper {
    padding-bottom: 3em;
  }

  .partners {
    margin: 5rem auto;
    padding: 5em 0;
  }

  .partners__content {
    width: 70%;
    margin: auto;
    /* display: grid; */
    flex-direction: row;
    /* grid-template-columns: repeat(6, 1fr); */
    gap: 1rem;
  }

  .partners__content img {
    width: calc(100% / 6);
  }

  .speech {
    /* border: 1px solid; */
  }

  .speech__content {
    width: 75%;
    margin: 0 auto;
    /* border: 1px solid; */
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .speech__text-title {
    grid-column: 1 / -1;
  }

  .speech__img img {
    height: 20rem;
    width: 20rem;
  }

  .footer__links {
    display: flex;
    flex-direction: row;
    gap: 1em;
    margin-top: 1em;
    max-width: none;
    margin: 0;
    /* border: 1px solid #fff; */
  }

  .footer__link-section {
    /* border: 1px solid #fff; */
    flex-grow: 1;
  }
}

@keyframes header-load {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes navbtn-load {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes partners-load {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  50% {
    transform: translateY(-50%);
    opacity: 0.5;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes speech-slide-in {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  50% {
    transform: translateX(-50%);
    opacity: 0.5;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
