/* Global Styles */
:root {
  --background-color: #f4f4f4;
  --primary-text-hero: rgba(67, 147, 112, 1);
  --primary-text: rgba(54, 119, 91, 1);
  --primary-color: rgba(80, 175, 133, 1);
  --primary-light: rgb(221, 238, 235);
  --primary-100: rgba(192, 226, 211, 1);
  --primary-dark: rgba(173, 213, 205, 0.62);
  --secondary-color: rgba(121, 121, 121, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Almarai', serif;
}

body {
  direction: rtl;
  background-color: var(--background-color);
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(20px);
  }
}

/* Container */
.container {
  margin-inline: auto;
  padding-inline: 0.5rem;
}

h1,
h2 {
  font-size: 28px;
  line-height: 40px;
  font-weight: 800;
}

h3 {
  font-size: 24px;
  line-height: 32px;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  transition: background-color 0.2s linear;
  white-space: nowrap;
}

button img {
  width: 16px;
  height: 16px;
}

.hero {
  background-color: var(--primary-light);
  padding-block: 30px; /* 30px */
  padding-block-end: 50px; /* 50px */
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .hero-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 40px;
}

.hero-content .hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding-inline-start: 30px;
}

.hero-text h1 {
  position: relative;
}
.hero-text h1 span {
  color: var(--primary-text-hero);
}

.hero-text h1::before {
  content: url(../../assets/logistics/shapes/fireworks-1.svg);
  transform: scale(0.4);
  position: absolute;
  inset-inline-start: -60px;
  inset-block-start: -60px;
}

.hero-text h1::after {
  content: url(../../assets/logistics/shapes/fireworks-2.svg);
  transform: scale(0.4);
  position: absolute;
  inset-inline-end: -30px;
  inset-block-start: -40px;
}

.hero-text p {
  margin-block-end: 14px;
  color: var(--secondary-color);
  font-size: 14px;
  line-height: 20px;
}

.hero-content .hero-img {
  width: 100%;
  /* max-width: 100%; */
  max-inline-size: 700px;
  object-fit: cover;
}

.hero button,
.contact-us button {
  background-color: var(--primary-color);
}

.hero button:hover,
.contact-us button:hover {
  background-color: var(--primary-text-hero);
}

.services {
  margin-block: 70px;
}

.services-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-main #hero-arrow {
  cursor: pointer;
  width: 40px;
  object-fit: contain;
  animation: bounce 2s infinite;
  margin-block-end: 40px;
}

.services-main img {
  width: 100%;
  object-fit: contain;
}

.services-main .services-title {
  text-align: center;
  margin-block-end: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.services-title h2,
.features-title h2 {
  color: var(--primary-text);
}

.services-title h2 span,
.features-title h2 span {
  position: relative;
}

.services-title h2 span::before,
.features-title h2 span::before {
  content: url(../../assets/logistics/shapes/title-circle-orange.svg);
  position: absolute;
  transform: scale(0.7);
  inset-inline-start: -2rem;
  inset-block-start: -2.2rem;
  z-index: -1;
  pointer-events: none;
}

.services-title p,
.about-app-titles p {
  color: var(--secondary-color);
  font-size: 16px;
  line-height: 24px;
}

.services-title h3 {
  font-weight: 800;
  text-align: center;
}

.services-title h3 span::before {
  content: url(../../assets/logistics/shapes/title-circle-orange.svg);
  position: absolute;
  transform: scale(0.5);
  inset-block-start: -0.5rem;
  inset-inline-start: 22rem;
  transform-origin: top right;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.services-solutions h2 {
  font-weight: 800;
  margin-block-end: 40px;
  text-align: center;
}

.services-solutions .services-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  text-align: center;
}

.services-list .service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background-color: #fff;
  padding: 24px;
  border-radius: 24px;
  transition: box-shadow 0.3s linear;
  cursor: pointer;
  border: 1px solid var(--primary-100);
  box-shadow: 0 0 0 0 var(--primary-100);
  transition: box-shadow 0.3s linear;
}

.services-list .service:hover {
  box-shadow: 0 0 0 4px var(--primary-100);
}

.service .service-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--primary-light);
  width: 80px;
  height: 80px;
}

.service .service-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.service .service-title {
  font-weight: 700;
  color: #000;
  font-size: 24px;
  line-height: 32px;
}

.service .service-desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--secondary-color);
}

.features {
  margin-block: 70px;
}

.features-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.features-text .features-text__title {
  text-align: center;
}

.features-text__title p {
  margin-block-start: 8px;
  font-size: 20px;
  line-height: 28px;
  color: var(--secondary-color);
}

/* Features Steps Styles */
.features-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding-block: 40px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

.step-image-wrapper {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-image-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  display: block;
}

.step-connector {
  width: 4px;
  height: 40px;
  background-color: #999;
  margin-block: 10px;
}

/* Last step doesn't need a connector */
.step-item:last-child .step-connector {
  display: none;
}

.features-text .features-text__description {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  counter-reset: feature-counter;
  margin-block-start: 40px;
}

.features-text__description .feature-desc-item {
  counter-increment: feature-counter;
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-desc-text {
  text-align: start;
}

.feature-desc-item::before {
  display: flex;
  align-items: center;
  justify-content: center;
  content: counter(feature-counter);
  min-width: 42px;
  min-height: 42px;
  padding: 8px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 28px;
  color: white;
  background-color: var(--primary-100);
}

.feature-desc-item p {
  margin-block-start: 4px;
  font-size: 16px;
  line-height: 24px;
  color: var(--secondary-color);
}

.about-app {
  margin-block: 70px;
}

.about-app .about-app-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: #d9d9d9;
  padding: 20px;
  border-radius: 0 0 24px 50px;
}

.about-app-content .about-app-titles {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.about-app-content .about-app-steps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-app-step {
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-app-step span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 40px;
  line-height: 24px;
  font-weight: 700;
  color: #fff;
  background-color: var(--primary-100);
}

.about-app-step .step-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  gap: 12px;
}

.step-text h4 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.step-text p {
  font-size: 12px;
  line-height: 16px;
  color: var(--secondary-color);
}

.about-app-steps .line {
  height: 80px;
  width: 1px;
  background-color: rgba(173, 173, 173, 1);
  border: 1px dashed rgba(173, 173, 173, 1);
  margin-block: 20px;
  margin-inline-start: 30px;
}

.app-feature {
  display: flex;
  align-items: center;
  margin-block: 50px;
}

.feature-content {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 24px;
}

.feature-content img {
  width: 100%;
}

.feature-content .feature-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.feature-text h2 {
  font-size: 28px;
  line-height: 40px;
  font-weight: 800;
}

.feature-text p {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--secondary-color);
}

.feature-content .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: rgba(67, 147, 112, 1);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
  transition: background-color 0.2s linear;
}

.feature-content.alt .btn {
  background-color: rgba(234, 193, 67, 1);
  color: black;
}

.feature-content .btn:hover {
  background-color: rgba(47, 107, 82, 1);
}

.options {
  margin-block: 50px;
  width: 100%;
}

.options .options-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.options .options-content img {
  object-fit: contain;
  width: 100%;
}

.options .options-text {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.options .options-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  justify-items: right;
  gap: 10%;
  width: 100%;
}

.options-grid .options-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.options-grid .options-item h5 {
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
}

.options-grid .options-item h5::before {
  content: '•';
  margin-left: 0.5rem;
  font-size: 14px;
  display: inline-block;
}

.options-item p {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--secondary-color);
  margin-inline-start: 15px;
  max-width: 520px;
}

@media (min-width: 700px) {
  .container {
    max-inline-size: 700px;
    padding-inline: 1rem;
  }

  h1 {
    font-size: 36px;
    line-height: 48px;
  }

  button {
    font-size: 14px;
    line-height: 20px;
  }

  button img {
    width: 18px;
    height: 18px;
  }

  .hero .hero-content {
    width: 100%;
    gap: 0;
  }

  .hero-text h1::before {
    transform: scale(0.6);
  }

  .hero-text h1::after {
    transform: scale(0.6);
  }

  .hero-content .hero-img {
    align-self: flex-end;
  }

  .services-solutions .services-list,
  .features .features-content,
  .features-text .features-text__description {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
    row-gap: 20px;
  }

  .features-steps {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .step-item {
    flex-direction: row;
    align-items: center;
  }

  .step-connector {
    width: 60px;
    height: 4px;
    margin-block: 0;
    margin-inline: 15px;
  }

  .step-image {
    max-width: 180px;
  }

  .feature-content {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .feature-content.alt {
    flex-direction: row-reverse;
  }

  .feature-content img {
    width: 50%;
  }

  .feature-content .feature-text {
    width: 50%;
  }

  .options {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .options .options-text {
    justify-content: center;
  }
  .options .options-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .container {
    max-inline-size: 900px;
    padding-inline: 1.5rem;
  }

  h1 {
    font-size: 40px;
    line-height: 52px;
  }

  h3 {
    font-size: 26px;
    line-height: 34px;
  }

  button img {
    width: 20px;
    height: 20px;
  }

  .step-image {
    max-width: 220px;
  }

  .step-connector {
    width: 80px;
    margin-inline: 20px;
  }

  .hero {
    padding-block-start: 0;
  }

  .hero .hero-content {
    flex-direction: row;
    gap: 40px;
  }

  .hero-content .hero-text {
    align-items: flex-start;
    text-align: start;
  }

  .hero-text p {
    font-size: 20px;
    line-height: 28px;
  }

  .hero-content .hero-img {
    width: 40%;
  }

  .services-solutions .services-list,
  .features .features-content {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-app .about-app-content {
    padding: 40px;
    border-radius: 100px 100px 0 100px;
  }

  .about-app-content .about-app-steps {
    flex-direction: row;
    justify-content: space-around;
  }

  .about-app-step {
    flex-direction: column;
  }
  .about-app-step .step-text {
    text-align: center;
    align-items: center;
  }

  .about-app-steps .line {
    width: 20%;
    height: 1px;
    margin-block: 30px;
    border-style: dashed;
  }

  .options {
    margin-block: 100px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-inline-size: 1200px;
  }

  h1 {
    font-size: 48px;
    line-height: 72px;
  }

  h2 {
    font-size: 40px;
    line-height: 48px;
  }

  h3 {
    font-size: 32px;
    line-height: 48px;
  }

  button {
    font-size: 16px;
    line-height: 24px;
    gap: 12px;
    padding: 12px 32px;
  }

  button img {
    width: 24px;
    height: 24px;
  }

  .step-image {
    max-width: 280px;
  }

  .step-connector {
    width: 100px;
    margin-inline: 25px;
  }

  .hero-text h1::after {
    inset-inline-end: 0;
  }

  .hero-content .hero-img {
    max-inline-size: 600px;
  }

  .services-title h2 span::before,
  .features-title h2 span::before {
    transform: scale(1);
    inset-inline-start: 0;
    inset-block-start: -1.8rem;
  }

  .services-title p {
    font-size: 20px;
    line-height: 28px;
  }

  .feature-text h2 {
    font-size: 48px;
    line-height: 72px;
  }

  .feature-text p {
    font-size: 20px;
    line-height: 30px;
  }

  .feature-content .btn {
    font-size: 16px;
    line-height: 24px;
  }

  .options-grid .options-item h5 {
    font-size: 16px;
    line-height: 24px;
  }

  .options-grid .options-item h5::before {
    font-size: 16px;
  }

  .options-item p {
    font-size: 14px;
    line-height: 21px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-inline-size: 1400px;
  }

  .step-image {
    max-width: 320px;
  }

  .step-connector {
    width: 120px;
    margin-inline: 30px;
  }

  .options-grid .options-item h5 {
    white-space: nowrap;
  }
}
