/* ============================================================
   CSS VARIABLES & RESET
============================================================ */
:root {
  --blue:       #2A7FFF;
  --blue-dark:  #1A6AE8;
  --blue-light: #EBF3FF;
  --white:      #FFFFFF;
  --gray-50:    #F8FAFC;
  --gray-100:   #F1F5F9;
  --gray-300:   #CBD5E1;
  --gray-500:   #64748B;
  --gray-700:   #334155;
  --gray-900:   #0F172A;
  --shadow-sm:  0 1px 3px rgba(42,127,255,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 20px rgba(42,127,255,.12), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(42,127,255,.18), 0 4px 16px rgba(0,0,0,.08);
  --radius-card: 20px;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--gray-50);
  color: var(--gray-700);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42,127,255,.10);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gray-900);
}

.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), #6EA8FE);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: .9rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: .3rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-500);
  font-weight: 500;
  font-size: .9rem;
  padding: .45rem .9rem;
  border-radius: 10px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   PAGE HEADER
============================================================ */
.page-header {
  padding: 130px 2rem 70px;
  text-align: center;
  background: linear-gradient(160deg, var(--white) 0%, var(--blue-light) 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.page-header::before,
.page-header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .18;
}
.page-header::before {
  width: 400px; height: 400px;
  background: var(--blue);
  top: -120px; left: -100px;
}
.page-header::after {
  width: 300px; height: 300px;
  background: #6EA8FE;
  bottom: -80px; right: -60px;
}

.page-header .badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(42,127,255,.2);
  animation: fadeDown .7s ease both;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .8rem;
  animation: fadeDown .7s .1s ease both;
}

.page-header h1 span { color: var(--blue); }

.page-header p {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto;
  animation: fadeDown .7s .2s ease both;
}

/* ============================================================
   TEAM SECTION
============================================================ */
.team-section {
  padding: 80px 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Last row: 2 cards → center them */
.team-grid .card:nth-child(4),
.team-grid .card:nth-child(5) {
  grid-column: auto;
}

/* Center last two cards when on 3-col grid */
@media (min-width: 769px) {
  .team-grid .card:nth-child(4) { grid-column: 1; }
  .team-grid .card:nth-child(5) { grid-column: 3; }

  .team-grid::after {
    content: '';
    grid-column: 2;
    grid-row: 2;
  }
}

/* ============================================================
   CARD
============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2.4rem 1.8rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(42,127,255,.07);
  transition: var(--transition);
  cursor: default;

  /* Scroll reveal: start hidden */
  opacity: 0;
  transform: translateY(30px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg);
  border-color: rgba(42,127,255,.25);
}

/* Avatar */
.card-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.2rem;
  border: 4px solid var(--blue-light);
  box-shadow: 0 0 0 2px rgba(42,127,255,.15);
  display: block;
  transition: var(--transition);
}

.card:hover .card-avatar {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(42,127,255,.18), 0 8px 24px rgba(42,127,255,.2);
}

/* Role pill */
.card-role {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .28rem .85rem;
  border-radius: 999px;
  margin-bottom: .7rem;
  border: 1px solid rgba(42,127,255,.18);
}

.card-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .5rem;
}

/* Email */
.card-email {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  padding: .35rem .75rem;
  border-radius: 8px;
  border: 1px solid rgba(42,127,255,.2);
  margin-top: .5rem;
  transition: var(--transition);
}

.card-email:hover {
  background: var(--blue);
  color: var(--white);
}

/* Divider line on card */
.card-divider {
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #6EA8FE);
  border-radius: 2px;
  margin: .9rem auto .2rem;
}

/* ============================================================
   MISSION SECTION
============================================================ */
.mission-section {
  background: linear-gradient(135deg, var(--blue) 0%, #1A6AE8 100%);
  color: var(--white);
  padding: 80px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,.08)'/%3E%3C/svg%3E") repeat;
}

.mission-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.mission-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.15);
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin: 0 auto 1.5rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
}

.mission-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.mission-section p {
  font-size: 1rem;
  opacity: .88;
  line-height: 1.8;
  margin-bottom: .8rem;
}

.mission-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
}

.mission-pill {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: .45rem 1.1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: .82rem;
  color: var(--gray-500);
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

/* ============================================================
   KEYFRAMES
============================================================ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid .card:nth-child(4),
  .team-grid .card:nth-child(5) {
    grid-column: auto;
  }
  .team-grid::after { display: none; }
}

@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem 1rem; border-radius: 10px; }
}