body {
  margin: 0;
  font-size: 1.2rem;
  font-family: sans-serif;
  background-color: #fff;
  color: #222;
  line-height: 1.7;
}


/* ========== Services Section (text overview + description) ========== */
#project-1-services {
  padding: 4rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-wrapper {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
}

.services-heading {
  font-size: 4rem;
  color: #0065E6;
  flex: 1 1 40%;
  text-align: left;
}

.services-textboxes {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1 1 50%;
}

.textbox {
  background-color: rgba(85, 184, 255, 0.3);
  padding: 1.5rem;
  border-radius: 1rem;
  font-size: 1.2rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 101, 230, 0.12);
}


/* ========== Section Dividers ========== */
.fullwidth-section {
  width: 100%;
  height: 8rem;
}

.light-blue {
  background-color: #55B2FF;
}

.dark-blue {
  background-color: #0065E6;
}


/* ========== Gallery Section (cards) ========== */
#project-3-gallery {
  padding: 4rem 5%;
  margin-top: 3%;
  margin-bottom: 5%;
}

.gallery-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2%;
}


/* CARD: modern, index.css-like spacing, rem-only, smooth transitions */
.gallery-item {
  width: 32%;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 0.6rem 1.8rem rgba(2, 20, 45, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-0.8rem);
  box-shadow: 0 1.8rem 4rem rgba(2, 20, 45, 0.10);
}

.gallery-item img {
  width: 100%;
  height: 12.5rem; /* 200px → rem */
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

.gallery-item h3 {
  margin: 0;
  font-size: 1.35rem;
  color: #0065E6;
}

.card-info {
  margin: 0;
  color: #333;
  font-size: 1rem;
  line-height: 1.45;
}


/* Learn more button — adapted to index.css style */
.learn-more {
  display: inline-block;
  margin-left: 37.5%;
  padding: 0.55rem 1rem;
  border-radius: 0.6rem;
  background: #0065E6;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.learn-more:hover {
  transform: translateY(-0.2rem);
  background: #004bb5;
}

.gallery-item a.learn-more:visited {
  color: #ffffff;
}


/* ========== Responsive ========== */
@media (max-width: 48rem) {
  .services-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .services-heading {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
  }

  .services-textboxes {
    width: 100%;
  }

  .gallery-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .gallery-item {
    width: 90%;
    margin-bottom: 1.5rem;
  }

  .gallery-item img {
    height: 11.25rem; /* 180px → rem */
  }
}

@media (min-width: 87.5rem) { /* 1400px */
  .gallery-item {
    width: 30%;
  }
}
