/* =========================
   PROJECTS HERO
========================= */

.projects-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 8% 0;
  background: linear-gradient(135deg, #062058 0%, #0c307c 55%, #0c307c 100%);
  color: #ffffff;
  overflow: hidden;
}

/* =========================
 BACKGROUND GRID
========================= */

.projects-hero-grid {
  position: absolute;

  inset: 0;

  opacity: 0.08;

  background-image: linear-gradient(
      rgba(169, 220, 248, 0.35) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(169, 220, 248, 0.35) 1px, transparent 1px);

  background-size: 70px 70px;

  pointer-events: none;
}

/* =========================
 BLUE GLOW
========================= */

.projects-hero::before {
  content: '';

  position: absolute;

  width: 600px;
  height: 600px;

  right: -180px;
  top: -180px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(38, 123, 180, 0.45),
    transparent 70%
  );

  pointer-events: none;
}

.projects-hero::after {
  content: '';

  position: absolute;

  width: 450px;
  height: 450px;

  left: -250px;
  bottom: -250px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(38, 123, 180, 0.25),
    transparent 70%
  );

  pointer-events: none;
}

/* =========================
 MAIN CONTAINER
========================= */

.projects-hero-container {
  position: relative;

  z-index: 2;

  width: 100%;

  max-width: 1500px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(350px, 0.9fr)
    minmax(450px, 1.1fr);

  gap: 90px;

  align-items: center;
}

/* =========================
 HERO CONTENT
========================= */

.projects-hero-content {
  max-width: 650px;
}

.projects-hero-label {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 25px;

  font-size: 13px;

  font-weight: 700;

  letter-spacing: 2.5px;

  color: #a9dcf8;
}

.projects-hero-label::before {
  content: '';

  width: 32px;
  height: 2px;

  background: #267bb4;
}

/* =========================
 HERO HEADING
========================= */

.projects-hero h1 {
  margin: 0 0 30px;

  font-size: clamp(52px, 5vw, 82px);

  line-height: 0.98;

  letter-spacing: -2px;

  font-weight: 700;

  color: #ffffff;
}

.projects-hero h1 span {
  display: block;

  color: #a9dcf8;
}

/* =========================
 HERO DESCRIPTION
========================= */

.projects-hero-content p {
  max-width: 590px;

  margin-bottom: 40px;

  font-size: 17px;

  line-height: 1.8;

  color: rgba(255, 255, 255, 0.72);
}

/* =========================
 BUTTONS
========================= */

.projects-hero-actions {
  display: flex;

  align-items: center;

  gap: 15px;

  flex-wrap: wrap;
}

.projects-primary-btn,
.projects-secondary-btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  min-height: 50px;

  padding: 0 22px;

  border-radius: 50px;

  text-decoration: none;

  font-size: 14px;

  font-weight: 600;

  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

/* PRIMARY */

.projects-primary-btn {
  background: #267bb4;

  color: #ffffff;
}

.projects-primary-btn span {
  font-size: 20px;

  transition: transform 0.3s ease;
}

.projects-primary-btn:hover {
  transform: translateY(-3px);

  background: #1f6f9f;
}

.projects-primary-btn:hover span {
  transform: translateX(5px);
}

/* SECONDARY */

.projects-secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);

  color: #ffffff;

  background: rgba(255, 255, 255, 0.04);
}

.projects-secondary-btn:hover {
  transform: translateY(-3px);

  background: #ffffff;

  color: #102f4a;

  border-color: #ffffff;
}

/* =========================
 PROJECT VISUAL
========================= */

.projects-hero-visual {
  position: relative;

  display: flex;

  justify-content: center;
}

.projects-image-frame {
  position: relative;

  width: 100%;

  max-width: 650px;

  aspect-ratio: 4 / 4.2;

  padding: 12px;

  border-radius: 32px;

  background: linear-gradient(
    135deg,
    rgba(169, 220, 248, 0.5),
    rgba(38, 123, 180, 0.15)
  );

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

/* =========================
 IMAGE PLACEHOLDER
========================= */

.projects-image-placeholder {
  width: 100%;
  height: 100%;

  display: flex;

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

  border-radius: 24px;

  background: linear-gradient(145deg, #174f73, #0d3554);

  border: 1px solid rgba(255, 255, 255, 0.12);

  color: rgba(255, 255, 255, 0.35);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 2px;
}

/* =========================
 FLOATING CARD
========================= */

.projects-floating-card {
  position: absolute;

  left: -45px;

  bottom: 45px;

  min-width: 220px;

  padding: 22px 24px;

  display: flex;

  flex-direction: column;

  gap: 6px;

  border-radius: 18px;

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

  color: #102f4a;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(10px);
}

.floating-label {
  font-size: 10px;

  font-weight: 700;

  letter-spacing: 1.5px;

  color: #267bb4;
}

.projects-floating-card strong {
  font-size: 17px;
}

.projects-floating-card small {
  font-size: 12px;

  color: #687d8c;
}

/* =========================
 STATS
========================= */

.projects-hero-stats {
  position: relative;

  z-index: 2;

  width: 100%;

  max-width: 1500px;

  margin: 80px auto 0;

  padding: 25px 0;

  display: flex;

  justify-content: space-between;

  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.project-stat {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.project-stat strong {
  font-size: 20px;

  color: #a9dcf8;
}

.project-stat span {
  font-size: 12px;

  color: rgba(255, 255, 255, 0.5);

  letter-spacing: 0.5px;
}

/* =========================
 LAPTOP
========================= */

@media (max-width: 1100px) {
  .projects-hero {
    padding: 110px 6% 0;
  }

  .projects-hero-container {
    grid-template-columns: 1fr 1fr;

    gap: 50px;
  }

  .projects-hero h1 {
    font-size: clamp(48px, 5vw, 68px);
  }

  .projects-floating-card {
    left: -20px;
  }
}

/* =========================
 TABLET
========================= */

@media (max-width: 850px) {
  .projects-hero {
    min-height: auto;

    padding: 100px 6% 0;
  }

  .projects-hero-container {
    grid-template-columns: 1fr;

    gap: 60px;
  }

  .projects-hero-content {
    max-width: 700px;
  }

  .projects-hero h1 {
    font-size: clamp(48px, 8vw, 70px);
  }

  .projects-hero-visual {
    justify-content: center;
  }

  .projects-image-frame {
    max-width: 600px;
  }

  .projects-floating-card {
    left: 20px;

    bottom: 30px;
  }

  .projects-hero-stats {
    margin-top: 70px;

    gap: 25px;

    flex-wrap: wrap;
  }
}

/* =========================
 LARGE PHONE
========================= */

@media (max-width: 700px) {
  .projects-hero {
    padding: 80px 5% 0;
  }

  .projects-hero h1 {
    font-size: 46px;

    letter-spacing: -1.5px;
  }

  .projects-hero-content p {
    font-size: 15px;
  }

  .projects-image-frame {
    aspect-ratio: 1 / 1.1;

    border-radius: 24px;

    padding: 8px;
  }

  .projects-image-placeholder {
    border-radius: 18px;
  }

  .projects-floating-card {
    left: 10px;

    bottom: 20px;

    min-width: 190px;

    padding: 18px;
  }

  .projects-hero-stats {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;

    margin-top: 60px;

    padding: 25px 0;
  }
}

/* =========================
 SMALL PHONE
========================= */

@media (max-width: 480px) {
  .projects-hero {
    padding: 70px 20px 0;
  }

  .projects-hero h1 {
    font-size: 40px;
  }

  .projects-hero-actions {
    flex-direction: column;

    align-items: stretch;
  }

  .projects-primary-btn,
  .projects-secondary-btn {
    width: 100%;
  }

  .projects-floating-card {
    left: 5px;

    bottom: 15px;

    min-width: 170px;

    padding: 15px;
  }

  .projects-floating-card strong {
    font-size: 15px;
  }

  .project-stat strong {
    font-size: 18px;
  }
}
