* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

:root {
  --primary-color: hsla(211, 100%, 50%, 1); /* Brightsite Blue */
  --primary-dark: hsla(211, 100%, 40%, 1);
  --primary-light: hsla(211, 100%, 60%, 1);
  --primary-gradient: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  --bg-dark: #ffffff; /* white background for clean look */
  --text-light: #ffffff;
  --text-dark: #1a1a1a;
  --text-gray: #4a5568;
  --card-bg: #ffffff;
  --card-hover: #f0f4ff;
  --border-radius: 12px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
  --border-light: rgba(0, 0, 0, 0.05);
  --bg-overlay: rgba(0, 0, 0, 0.05);
  --shadow-color-primary: rgba(0, 119, 255, 0.3);
  --shadow-color-primary-hover: rgba(0, 119, 255, 0.4);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 15px;
  line-height: 1.6;
  font-family: "Poppins", sans-serif;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 60px;
}

header h1 {
  font-size: 2.7rem;
  margin-bottom: 15px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-light)
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}

header h1::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

header p {
  color: var(--text-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.team-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-card:hover .profile-bg {
  transform: scale(1.1);
}

.card-top {
  position: relative;
  padding-top: 70px;
  padding-bottom: 30px;
  text-align: center;
  z-index: 1;
}

.profile-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--primary-gradient);
  z-index: -1;
  transition: transform 0.4s ease;
}

.profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid var(--card-bg);
  position: relative;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .profile-img img {
  transform: scale(1.1);
}

.card-top h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--primary-dark);
}

.role {
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 500;
}

.card-bottom {
  padding: 20px 25px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
}

.bio {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 25px;
  flex-grow: 1;
  line-height: 1.6;

  text-align: center;
  max-width: 700px; /* optional: keeps it neat */
  margin: 0 auto; /* optional: centers the block itself */
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  background-color: var(--bg-overlay);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-3px);
}

.team-cta {
  text-align: center;
  margin-top: 30px;
  padding: 40px;
  background-color: var(--bg-overlay);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.team-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary-gradient);
  width: 100%;
  height: 5px;
}

.team-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.team-cta p {
  color: var(--text-gray);
  max-width: 500px;
  margin: 0 auto 25px;
}

.cta-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-gradient);
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 5px 15px var(--shadow-color-primary);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-color-primary-hover);
}

.back-home {
  display: inline-block;
  margin: 15px 0 0 0;
  padding: 12px 25px;
  background-color: hsla(211, 100%, 50%, 1);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.back-home:hover {
  background-color: hsla(211, 100%, 40%, 1);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  header {
    margin-bottom: 40px;
  }

  header h1 {
    font-size: 2.2rem;
  }

  .team-grid {
    gap: 20px;
  }

  .team-cta {
    padding: 30px 20px;
  }

  .team-cta h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 30px 15px;
  }

  header h1 {
    font-size: 1.9rem;
  }

  .profile-img {
    width: 90px;
    height: 90px;
  }

  .card-top h3 {
    font-size: 1.3rem;
  }

  .team-cta {
    padding: 25px 15px;
  }
}
