/* --- about.css --- */

.about-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 60px) 60px;
}

/* Section Styling */
.about-section {
  margin-bottom: 100px;
}

.about-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 40px;
}

.about-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 600;
  color: #3B3C44;
  margin-bottom: 55px;
  text-align: left;
  line-height: 1.3;
}

/* Profile Row - Desktop: 5 in a row */
.profile-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 35px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 175px;
  flex-shrink: 0;
}

.profile-pic {
  width: 175px;
  object-fit: cover;
  cursor: pointer;
  transition: filter 0.3s ease, transform 0.2s ease;
  filter: grayscale(100%);
  border-radius: 8px;
}

.profile-pic.active {
  filter: none;
}

.profile-pic:hover {
  transform: scale(1.02);
}

.profile-name {
  margin-top: 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.1vw, 16px);
  color: #3B3C44;
  text-align: center;
  line-height: 1.3;
}

/* Content Section */
.about-content {
  text-align: left;
  max-width: 1400px;
  margin: 0 auto;
}

.bio-text {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.6;
  color: #3B3C44;
  margin-bottom: 30px;
  max-width: 1800px;
}

.links {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 35px;
  margin-bottom: 60px;
}

.links a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.1vw, 16px);
  color: #3B3C44;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.links a:hover {
  color: #666;
}

/* Footer */
.page-footer {
  background: #f8f8f8;
  text-align: center;
  padding: 30px 10px;
  font-size: 14px;
  color: #999;
  font-family: 'Poppins', sans-serif;
  margin-top: 30px;
  border-radius: 16px;
}

/* Tablet/Medium screens - 3 on top, 2 below */
@media (max-width: 900px) {
  .about-wrapper {
    padding: 30px clamp(16px, 4vw, 40px) 40px;
  }

  .profile-row {
    gap: 25px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-card {
    width: 150px;
  }

  .profile-pic {
    width: 150px;
  }

  /* Force 3-2 layout */
  .profile-card:nth-child(4),
  .profile-card:nth-child(5) {
    flex-basis: calc(50% - 12.5px);
    max-width: 150px;
  }
}

/* Small tablet - 2 columns, 3 rows (2-2-1) */
@media (max-width: 768px) {
  .about-wrapper {
    padding: 0 40px;
  }

  .profile-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    justify-items: center;
    margin-bottom: 40px;
    max-width: 400px;
  }

  .profile-card {
    width: 140px;
  }

  .profile-pic {
    width: 140px;
  }

  /* Center the last item */
  .profile-card:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .links {
    gap: 25px;
    justify-content: center;
  }

  .about-content {
    text-align: center;
  }
}

/* Mobile - 2 columns, 3 rows (2-2-1) smaller */
@media (max-width: 600px) {
  .about-wrapper {
    padding: 20px clamp(12px, 3vw, 20px) 30px;
  }

  .about-heading {
    text-align: center;
    margin-bottom: 35px;
  }

  .profile-row {
    gap: 20px 15px;
    margin-bottom: 35px;
    max-width: 300px;
  }

  .profile-card {
    width: 120px;
  }

  .profile-pic {
    width: 120px;
  }

  .links {
    gap: 20px;
    justify-content: center;
  }
}

/* Very small mobile - 2 columns, smaller images */
@media (max-width: 480px) {
  .about-wrapper {
    padding: 15px clamp(12px, 3vw, 16px) 25px;
  }

  .profile-row {
    gap: 15px 10px;
    margin-bottom: 30px;
    max-width: 250px;
  }

  .profile-card {
    width: 100px;
  }

  .profile-pic {
    width: 100px;
  }

  .profile-name {
    margin-top: 10px;
    font-size: 12px;
  }

  .links {
    gap: 15px;
    flex-direction: column;
    align-items: center;
  }

  .bio-text {
    margin-bottom: 25px;
  }
}

/* Extra small screens - maintain 2 column grid */
@media (max-width: 320px) {
  .profile-row {
    max-width: 200px;
    gap: 15px 8px;
  }
  
  .profile-card {
    width: 85px;
  }
  
  .profile-pic {
    width: 85px;
  }
}