/* Ubuntu CurioTech — Our Team page */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

:root {
  --ink: #202039;
  --muted: #687087;
  --purple: #6040b5;
  --purple-deep: #3e267a;
  --purple-pale: #f1edfc;
  --cyan: #50cfd4;
  --peach: #ffa875;
  --line: rgba(81, 57, 155, .14);
  --shadow: 0 18px 48px rgba(42, 31, 83, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 7% 6%, rgba(80, 207, 212, .18), transparent 32rem),
    radial-gradient(ellipse at 92% 10%, rgba(96, 64, 181, .18), transparent 35rem),
    radial-gradient(ellipse at 50% 100%, rgba(255, 168, 117, .1), transparent 38rem),
    linear-gradient(135deg, #fbfaff 0%, #f1edfb 54%, #f7fbfc 100%);
  background-attachment: fixed;
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Team introduction, statistics and navigation */
.team-sectio {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 56px;
}
.team-header {
  position: relative;
  margin: 0 0 30px;
  padding: clamp(27px, 5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr);
  align-items: center;
  gap: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 27px;
  background: linear-gradient(125deg, rgba(255,255,255,.88), rgba(244,239,255,.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.team-header::after {
  position: absolute;
  z-index: 0;
  top: -145px;
  right: -105px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80,207,212,.16), transparent 70%);
  content: "";
  pointer-events: none;
}
.header-text, .team-stats, .nav-links { position: relative; z-index: 1; }
.header-text h1 {
  margin: 0;
  color: var(--ink);
  font: 800 clamp(38px, 6vw, 66px)/1.06 "Manrope", "Segoe UI", sans-serif;
  letter-spacing: -.055em;
}
.header-text h2 {
  margin: 11px 0 12px;
  color: var(--purple);
  font: 700 clamp(18px, 2.6vw, 24px)/1.3 "Manrope", "Segoe UI", sans-serif;
}
.header-text p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.team-stats { display: grid; gap: 11px; }
.stat-box {
  min-height: 72px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.77);
}
.stat-box > i {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--purple);
  background: var(--purple-pale);
  font-size: 17px;
}
.stat-box strong, .stat-box span { display: block; }
.stat-box strong { color: var(--ink); font: 800 16px "Manrope", "Segoe UI", sans-serif; }
.stat-box span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.nav-links {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.nav-links a {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #565d73;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--purple); background: #fff; }
.nav-links a:hover { transform: translateY(-1px); }

/* Team member cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.team-card {
  min-width: 0;
  padding: 17px 17px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 21px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96,64,181,.22);
  box-shadow: 0 24px 54px rgba(42,31,83,.14);
}
.profile-link { width: 100%; display: block; text-decoration: none; }
.profile-image {
  position: relative;
  width: 100%;
  height: 235px;
  overflow: hidden;
  border: 1px solid rgba(96,64,181,.12);
  border-radius: 16px;
  background: linear-gradient(145deg, #f1edfc, #e9f9fa);
}
.profile-image::after {
  position: absolute;
  inset: 0;
  border: 5px solid rgba(255,255,255,.22);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}
.profile-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform .35s ease;
}
.team-card:hover .profile-image img { transform: scale(1.045); }
.member-name {
  margin: 17px 0 5px;
  color: var(--purple-deep);
  text-decoration: none;
  font: 800 18px/1.3 "Manrope", "Segoe UI", sans-serif;
  letter-spacing: -.02em;
}
.member-name:hover { color: var(--purple); }
.team-card h4 {
  margin: 0;
  color: #414960;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.team-card > p, .mimi > p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.social-links { margin-top: auto; padding-top: 16px; display: flex; justify-content: center; gap: 9px; }
.social-links a {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--purple);
  background: #faf9fe;
  text-decoration: none;
  font-size: 13px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.social-links a:hover { transform: translateY(-2px); color: #fff; background: var(--purple); }
.mimi { width: 100%; display: flex; flex-direction: column; align-items: center; }
.mimi .profile-link { width: 100%; }
.mimi .social-links { margin-top: auto; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-header { grid-template-columns: 1fr; }
  .team-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .team-sectio { width: calc(100% - 28px); padding-top: 14px; }
  .team-header { margin-bottom: 18px; padding: 25px 18px; border-radius: 21px; gap: 20px; }
  .header-text h1 { font-size: clamp(35px, 11vw, 50px); }
  .header-text h2 { font-size: 18px; }
  .header-text p { font-size: 13px; }
  .team-stats { grid-template-columns: 1fr; }
  .stat-box { min-height: 62px; }
  .nav-links { justify-content: center; gap: 2px; }
  .nav-links a { min-height: 35px; padding: 0 9px; font-size: 11px; }
  .team-grid { grid-template-columns: 1fr; gap: 13px; }
  .team-card { padding: 14px 14px 18px; }
  .profile-image { height: min(75vw, 300px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.team-email-link:focus-visible {
  outline: 3px solid rgba(91, 53, 181, .3);
  outline-offset: 3px;
}