/* ===============================
   TEAM PAGE – Premium Dual Theme
   =============================== */

/* ---------- DEFAULT (LIGHT THEME) ---------- */
:root {
  --bg: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  --card: #ffffff;
  --muted: #5e6673;
  --accent: #0b67ff; /* Icefame Blue */
  --accent-2: #ff6b00; /* Icefame Orange */
  --glass: rgba(11, 103, 255, 0.06);
  --gold: #c99a00;
  --text: #041017;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  --max-width: 1200px;
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  transition: all 0.4s ease;
}

/* ---------- DARK THEME OVERRIDES ---------- */
:root[data-theme="dark"] {
  --bg: linear-gradient(180deg, #0b0b0d 0%, #0f1114 100%);
  --card: #111316;
  --muted: #9aa4b2;
  --accent: #1DA1f2;
  --accent-2: #ff6b00;
  --glass: rgba(255, 255, 255, 0.04);
  --gold: #ffd166;
  --text: #ffffff;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* Global Text */
h1, h2, h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--text);
  transition: color 0.4s ease;
}

p {
  color: var(--muted);
  transition: color 0.4s ease;
}

/* ======= HERO SECTION ======= */
.team-hero {
  background: var(--bg);
  color: var(--text);
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(11,103,255,0.15), transparent 70%);
  z-index: 0;
  transition: opacity 0.4s ease;
}

:root[data-theme="dark"] .team-hero::before {
  background: radial-gradient(circle at 50% 30%, rgba(29,161,242,0.25), transparent 70%);
}

.team-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0 auto;
}

.team-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.team-hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ======= TEAM SECTION ======= */
.team-section {
  background: var(--bg);
  padding: 6rem 1rem;
  text-align: center;
  border-top: 1px solid var(--glass);
  transition: background 0.4s ease, color 0.4s ease;
}

.team-section .section-title {
  font-size: 2.3rem;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-member {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

:root[data-theme="dark"] .team-member:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.2rem;
  border: 3px solid var(--accent-2);
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.team-member:hover img {
  transform: scale(1.05);
}

.team-member h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.team-member .role {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.team-member .bio {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ======= MISSION SECTION ======= */
.mission-section {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
  transition: background 0.4s ease, color 0.4s ease;
}

.mission-section h2 {
  font-size: 2.3rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.mission-section p {
  font-size: 1.1rem;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.95;
}

/* ======= RESPONSIVENESS ======= */
@media (max-width: 768px) {
  .team-hero {
    padding: 6rem 0 4rem;
  }

  .team-hero h1 {
    font-size: 2.3rem;
  }

  .team-hero p {
    font-size: 1rem;
  }

  .team-member {
    padding: 1.5rem;
  }

  .mission-section h2 {
    font-size: 1.8rem;
  }
}
