* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: "Almarai", sans-serif;
}

body {
  background-image: url("../assets/background-main.webp");
  min-height: 100vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

header {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 0;
}

#write-effect img {
  animation: show-off 0.4s ease-in forwards;
}

@keyframes show-off {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.container {
  margin: 0 auto;
  max-width: 80rem;
  padding: 0 2rem;
}

.section__wrapper {
  margin: 64px 0;
  display: grid;
  align-items: flex-start;
  gap: 4rem;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "desc images";
  animation: y-fade 0.8s ease-in;
}

.section__wrapper:nth-of-type(even) {
  grid-template-areas: "images desc";
  grid-template-columns: 1fr 1fr;
}

.section__wrapper article {
  grid-area: desc;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.section__wrapper article h2 {
  display: inline-block;
  position: relative;
  background-image: linear-gradient(to left, #6ebaae, #4c84bc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: white;
  font-weight: 100;
  text-transform: uppercase;
  font-size: 18px;
}

/* .section__wrapper article h2::after {
  content: "";
  width: 20px;
  height: 2px;
  background: linear-gradient(to bottom, #6ebaae, #4c84bc);
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
} */

.section__wrapper article h3 {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.75rem;
}

.section__wrapper article p {
  font-weight: lighter;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.section__wrapper .right-side {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.section__wrapper .right-side .controls-wrapper {
  position: relative;
  background: rgba(255, 0, 0, 0.5);
}

.circles {
  display: flex;
  gap: 16px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
}

.circles span {
  cursor: pointer;
  border-radius: 100%;
  display: block;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.3s ease-in;
}

.circles .circle-active {
  background: rgba(255, 255, 255, 0.5);
}

#previous,
#next {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  position: absolute;
  z-index: 999;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  opacity: 0.8;
  transition: 0.3s ease-in;
}

#previous svg,
#next svg {
  color: rgba(0, 0, 0, 0.5);
}

#previous:hover,
#next:hover {
  opacity: 1;
}

#previous {
  left: 16px;
}

#next {
  right: 16px;
}

.section__wrapper .right-side img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  height: 100%;
}

.section__wrapper:nth-of-type(2) .right-side img {
  opacity: 0;
}

.image-animate {
  transition: 0.2s ease-in;
  opacity: 1 !important;
}

.section__wrapper + .section__wrapper {
  margin-top: 8rem;
}

footer {
  padding: 4rem 0;
}

.footer__wrapper {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.footer__wrapper section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__wrapper section p {
  max-width: 400px;
  color: #646464;
  min-height: 50px;
  font-weight: 100;
}

.footer__wrapper section img {
  max-width: 150px;
  min-height: 50px;
  object-fit: contain;
}

.footer__wrapper section div {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 884px) {
  .section__wrapper {
    margin: 64px 0;
    display: grid;
    align-items: flex-start;
    gap: 4rem;
    grid-template-columns: 1fr;
    grid-template-areas:
      "desc"
      "images";
    animation: y-fade 0.3s ease-in;
  }
  .section__wrapper .right-side img {
    width: 100%;
  }
  .section__wrapper:nth-of-type(even) {
    grid-template-areas:
      "desc"
      "images";
    grid-template-columns: 2fr;
  }
}

@media (max-width: 428px) {
  header {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    padding: 8rem 0;
  }

  .section__wrapper article h3 {
    font-size: 18px;
  }
  .section__wrapper article p {
    font-size: 16px;
  }

  .section__wrapper {
    margin: 32px 0;
  }
  .footer__wrapper {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 64px;
  }
  .footer__wrapper section p {
    max-width: 100%;
    color: #646464;
  }
  .circles {
    opacity: 0;
  }
}

@media (max-width: 360px) {
  .section__wrapper article h2 {
    font-size: 16px;
  }

  .section__wrapper article h3 {
    font-size: 18px;
    line-height: 1.5rem;
  }

  .section__wrapper article p {
    font-size: 16px;
    line-height: normal;
  }
}

@keyframes y-fade {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes image-fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
