/* =========================================
   q8lab Home Page
   This file affects index.html only
   ========================================= */

.home-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 18% 38%,
      rgba(55, 186, 223, 0.08),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 62%,
      rgba(55, 186, 223, 0.06),
      transparent 26%
    ),
    #f8fbfd;

  color: #23395d;
}


/* Hero */

.home-hero {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  padding: 55px 24px 35px;
  overflow: hidden;
}

.home-hero-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;

  gap: 90px;
}


/* Text */

.home-copy {
  max-width: 550px;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  background: #ffffff;
  border: 1px solid #dceff5;

  color: #49677b;

  padding: 8px 15px;

  border-radius: 999px;

  font-size: 0.9rem;
  font-weight: 600;

  margin-bottom: 25px;

  box-shadow: 0 5px 18px rgba(24, 89, 112, 0.05);
}

.home-badge-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #36bddc;

  box-shadow:
    0 0 0 5px rgba(54, 189, 220, 0.12);
}


.home-copy h1 {
  margin: 0;

  color: #162f49;

  font-size: clamp(3rem, 5vw, 5rem);

  line-height: 1.25;

  letter-spacing: -1.5px;

  font-weight: 800;
}

.home-copy h1 span {
  color: #36bddd;
}


.home-description {
  max-width: 520px;

  margin: 25px 0 0;

  color: #60788c;

  font-size: 1.12rem;

  line-height: 2;

  font-weight: 500;
}


/* Buttons */

.home-actions {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-top: 32px;
}

.home-button {
  min-height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  padding: 0 24px;

  border-radius: 12px;

  text-decoration: none;

  font-weight: 700;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.home-button:hover {
  transform: translateY(-2px);
}

.home-button-primary {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #37c0df,
      #25a9ce
    );

  box-shadow:
    0 9px 22px rgba(37, 169, 206, 0.22);
}

.home-button-primary:hover {
  box-shadow:
    0 12px 28px rgba(37, 169, 206, 0.3);
}

.home-button-secondary {
  color: #34546a;

  background: #ffffff;

  border: 1px solid #dbe8ee;
}

.home-button-secondary:hover {
  background: #f7fbfd;
}

.home-arrow {
  font-size: 1.15rem;
}


/* =========================================
   Visual Card
   ========================================= */

.home-visual {
  position: relative;

  min-height: 470px;

  display: flex;
  align-items: center;
  justify-content: center;
}


.visual-card {
  position: relative;
  z-index: 3;

  width: min(100%, 390px);

  aspect-ratio: 1 / 1;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(245, 252, 254, 0.98)
    );

  border:
    1px solid rgba(63, 183, 215, 0.16);

  border-radius: 48px;

  box-shadow:
    0 30px 65px rgba(29, 92, 116, 0.12),
    0 8px 24px rgba(29, 92, 116, 0.05);

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  transform: rotate(-1.5deg);
}


.visual-card::before {
  content: "";

  position: absolute;

  width: 82%;
  height: 82%;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(54, 190, 221, 0.09),
      transparent 68%
    );

  z-index: -1;
}


.visual-card img {
  width: 145px;
  height: 145px;

  object-fit: contain;

  border-radius: 35px;

  filter:
    drop-shadow(
      0 14px 18px rgba(37, 169, 206, 0.12)
    );
}


.visual-card-title {
  margin-top: 18px;

  font-size: 2.1rem;

  color: #1ca6cf;

  font-weight: 800;
}


.visual-card-subtitle {
  margin-top: 4px;

  color: #8195a4;

  font-size: 0.95rem;

  font-weight: 500;
}


/* Floating labels */

.visual-label {
  position: absolute;
  z-index: 5;

  background: rgba(255, 255, 255, 0.95);

  border: 1px solid rgba(51, 181, 214, 0.16);

  border-radius: 999px;

  padding: 9px 17px;

  color: #3d6175;

  font-size: 0.9rem;

  font-weight: 700;

  box-shadow:
    0 10px 25px rgba(34, 96, 120, 0.09);
}


.visual-label-simple {
  top: 75px;
  right: 15px;
}

.visual-label-arabic {
  top: 195px;
  left: -10px;
}

.visual-label-fast {
  bottom: 70px;
  right: 20px;
}


/* Decorative dots */

.visual-dot {
  position: absolute;

  border-radius: 50%;

  background: #36bddc;

  opacity: 0.55;
}

.visual-dot-one {
  width: 11px;
  height: 11px;

  top: 45px;
  left: 50px;
}

.visual-dot-two {
  width: 7px;
  height: 7px;

  bottom: 65px;
  left: 65px;
}

.visual-dot-three {
  width: 9px;
  height: 9px;

  top: 135px;
  right: 5px;
}


/* Footer */

.home-footer {
  margin-top: 0;
}


/* =========================================
   Tablet
   ========================================= */

@media (max-width: 900px) {

  .home-hero {
    padding-top: 45px;
  }

  .home-hero-inner {
    grid-template-columns: 1fr;

    gap: 50px;

    text-align: center;
  }

  .home-copy {
    max-width: 650px;
    margin: 0 auto;
  }

  .home-description {
    margin-left: auto;
    margin-right: auto;
  }

  .home-actions {
    justify-content: center;
  }

  .home-visual {
    min-height: 430px;
  }

  .visual-card {
    width: 360px;
  }

}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 600px) {

  .home-hero {
    min-height: auto;

    padding:
      40px 18px
      25px;
  }

  .home-hero-inner {
    gap: 40px;
  }

  .home-badge {
    font-size: 0.78rem;

    padding:
      7px 12px;
  }

  .home-copy h1 {
    font-size: 2.7rem;

    line-height: 1.3;
  }

  .home-description {
    font-size: 1rem;

    line-height: 1.9;
  }

  .home-actions {
    flex-direction: column;

    width: 100%;
  }

  .home-button {
    width: 100%;

    box-sizing: border-box;
  }

  .home-visual {
    min-height: 350px;
  }

  .visual-card {
    width: 275px;

    border-radius: 35px;
  }

  .visual-card img {
    width: 105px;
    height: 105px;

    border-radius: 26px;
  }

  .visual-card-title {
    font-size: 1.65rem;
  }

  .visual-card-subtitle {
    font-size: 0.78rem;
  }

  .visual-label {
    padding: 7px 12px;

    font-size: 0.75rem;
  }

  .visual-label-simple {
    top: 45px;
    right: 0;
  }

  .visual-label-arabic {
    top: 155px;
    left: 0;
  }

  .visual-label-fast {
    bottom: 45px;
    right: 5px;
  }

}