:root {
  --gutter: 20px;
  --primary: #85cbce;
  --background: #f3f3f3;
  --font-color: #36454f;
  --font-text: #6c777e;
  --white: white;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--font-color);
  width: 100vw;
  overflow-x: hidden;
}

.en {
  font-family: "Outfit", sans-serif;
}

.ar {
  font-family: "GE SS Two Medium", sans-serif;
}

a {
  text-decoration: none;
  color: var(--font-color);
}

h3 {
  padding-top: 2rem;
  font-size: 1.5rem;
}

p,
span {
  color: var(--font-text);
}

img {
  border-radius: 1rem;
}

li {
  list-style: none;
}

.main-header {
  background-image: url(Assets/BG1-03.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
  display: flex;
  margin-bottom: 5rem;
  -webkit-animation: slidebot 1s forwards;
  animation: slidebot 1s forwards;
}

@-webkit-keyframes slidebot {
  from {
    height: 0;
  }

  to {
    height: 70vh;
  }
}

@keyframes slidebot {
  from {
    height: 0;
  }

  to {
    height: 70vh;
  }
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 3rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0 2rem;
  background-color: var(--white);
  z-index: 10;
  box-shadow: 5px 10px 50px #888;
}

.nav-logo {
  width: 7rem;
  display: inline;
  transition: width 0.25s ease-out;
}

.nav-logo:hover {
  width: 9rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  margin: 0;
  padding: 0;
  display: inline-block;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: width 0.25s ease-out;
}

.nav-item:hover::before {
  width: 100%;
}

.nav-item:hover {
  color: var(--primary);
}

.language {
  border: none;
  outline: none;
  background-color: transparent;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
}

.first-section {
  margin: 0 auto 4rem auto;
  position: relative;
  height: 21rem;
  width: 70vw;
}

.first-section-div {
  display: flex;
  justify-content: space-between;
}

.animated {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#slide {
  position: absolute;
  display: flex;
  background-color: var(--background);
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  -webkit-animation: slide 1s forwards;
  animation: slide 1s forwards;
}

@-webkit-keyframes slide {
  from {
    left: -85%;
  }

  to {
    left: 0%;
  }
}

@keyframes slide {
  from {
    left: -85%;
  }

  to {
    left: 0%;
  }
}

#typeWriter {
  position: relative;
  align-items: flex-start;
  width: min-content;
  overflow: hidden;
  animation: typing 1.5s steps(40, end), display 3s steps(40, end);
}

@keyframes typing {
  15% {
    display: none;
    width: 0;
  }

  25% {
    display: flex;
  }

  100% {
    width: 100%;
  }
}

#typeWriter2 {
  align-items: flex-start;
  height: 8rem;
  animation: opacity 2s steps(40, end);
}

.first-section-container {
  position: relative;
  width: min-content;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.first-section-sub {
  display: flex;
  padding-top: 0;
  white-space: nowrap;
  font-size: 1.5rem;
  margin: 0;
}

.first-section-sub::after {
  content: "";
  position: absolute;
  width: 30%;
  display: block;
  height: 2px;
  background-color: var(--font-color);
  bottom: 0;
}

.first-section-span,
.first-section-span-ar {
  display: flex;
  margin-bottom: 2rem;
  line-height: 2rem;
  font-size: 1rem;
  font-weight: 300;
  animation: opacity 2s steps(40, end);
}

.first-section-span-ar {
  padding-right: 0;
}

@keyframes opcaity {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.first-section-img {
  width: 40%;
}

.btn,
.btn-ar {
  background-color: var(--primary);
  border: none;
  border-radius: 30px;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  margin: 0.5rem;
  transition: transform 0.25s ease-out, color 0.25s ease-out;
}

.btn-ar {
  font-family: "GE SS Two Medium", sans-serif;
}

.btn:hover {
  cursor: pointer;
  transform: scale(1.3);
  background-color: var(--background);
  color: var(--primary);
}

.underline {
  position: relative;
  width: min-content;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.media::after {
  content: "";
  position: absolute;
  width: 30%;
  display: block;
  height: 2px;
  background-color: var(--font-color);
}

.third-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: hidden;
  margin-bottom: calc(-0.1 * var(--gutter));
}

.hide-scroll {
  overflow-y: hidden;
  margin-bottom: calc(-0.1 * var(--gutter));
  position: relative;
}

.third-section-grid {
  width: 100vw;
  display: grid;
  grid-gap: calc(var(--gutter) / 0.5);
  grid-template-columns: 10px repeat(4, calc(35% - var(--gutter) * 2)) 10px;
  overflow-x: hidden;
  scroll-snap-type: x proximity;
  padding-bottom: calc(0.75 * var(--gutter));
  overflow-y: hidden;
  margin-bottom: calc(-0.1 * var(--gutter));
  scroll-behavior: smooth;
}

.third-section-grid::-webkit-scrollbar {
  display: none;
}

.third-section-grid::before,
.third-section-grid::after {
  content: "";
}

.grid-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--background);
  padding: 2rem;
  align-self: center;
  border-radius: 1rem;
  height: 36rem;
}

.grid-img {
  width: 100%;
}

.previous-btn,
.next-btn {
  position: absolute;
  height: 50%;
  top: 25%;
  padding: 0 1rem;
  color: var(--font-color);
  font-size: 4rem;
  border: none;
  background-color: transparent;
  outline: none;
}

.previous-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

.previous-btn:active,
.next-btn:active {
  color: white;
}

.media-card::before {
  content: "";
  position: absolute;
  width: 30%;
  display: block;
  height: 2px;
  background-color: var(--font-color);
  bottom: 0;
}

.media-container {
  display: flex;
}

.fourth-section {
  background-color: var(--background);
  margin: 2rem;
  padding: 2rem;
  border-radius: 1rem;
}

.fourth-container {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.fourth-title {
  font-size: 3rem;
  font-weight: 300;
  margin: 0;
}

.fourth-desc {
  letter-spacing: 0.05rem;
}

.upper-footer {
  display: flex;
  justify-content: space-between;
  background-color: var(--background);
  padding: 4rem 3rem;
}

.footer-logo {
  height: 6rem;
}

.social-media {
  display: flex;
  align-self: end;
  gap: 0.5rem;
  padding: 1rem;
}

.media-items {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4rem;
  border-radius: 7px;
}

.media-icon {
  width: 1.5rem;
  border-radius: 0;
  transition: transform 0.25s ease-out;
}

.media-icon:hover {
  cursor: pointer;
  transform: scale(2);
}

.lower-footer {
  width: 90%;
  margin: -2rem auto;
  background-color: var(--font-color);
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem 1rem 0;
  gap: 1rem;
  border-radius: 1rem 1rem 0 0;
}

.copy {
  display: flex;
  align-items: flex-end;
}
