* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Marcellus", sans-serif;
  font-family: "Lato", sans-serif;
}

main {
  background-image: url(../assets/background/Ellipse\ 3.png);

}

/* About Section Styling */
.about-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container {
  max-width: 98%;
  width: 100%;
  text-align: center;
  margin-top: 50px;
}

/* Title and Subtitle Styling */
.about-title {
  font-size: 60px;
  font-family: "Marcellus", sans-serif;
  font-weight: 400;
  margin-bottom: 30px;
  color: #47301F;
}

.about-subtitle {
  max-width: 70%;
  font-size: 28px;
  font-family: "Lato", sans-serif;
  color: #000000;
  margin: 50px auto 20px;
  line-height: 1.6;
}

.team-section {
  padding: 10px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 5px;
}


/* team card */
.team-card-section {
  display: flex;
  justify-content: center;
}

.team-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 28%, 320px), 1fr));
  gap: clamp(4px, 1vw, 8px);
  width: min(100%, 1200px);
}

.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 3.3;
  background: #000000;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

/* Overlay text */
.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: start;
  padding: clamp(10px, 3vw, 24px);
  padding-bottom: clamp(40px, 0.6vw, 6px);
}

.team-overlay h3 {
  font-size: clamp(18px, 28px, 30px);
  font-weight: 500;
  margin-bottom: clamp(2px, 0.6vw, 6px);
}

.team-overlay p {
  font-size: clamp(12px, 20px, 22px);
  line-height: 1.3;
  opacity: 0.9;
  text-align: start;
  letter-spacing: 1px;
}

@media screen and (max-width: 480px) {
  .team-card-container {
    padding: 10px;
  }

  .about-subtitle {
    font-size: 20px;
    max-width: 80%;
  }

  .about-title {
  font-size: 32px;
  }
}