:root {
  --bg: #050b12;
  --card: rgba(24, 46, 97, 0.35);
  --panel: rgba(11, 18, 35, 0.35);
  --accent: #5ee6ff;
  --accent-2: #ffb347;
  --muted: #b7c5dd;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 38px rgba(0, 0, 0, 0.35);
}

body.team-page {
  color: #e9eef7;
  font-family: 'Montserrat', sans-serif;
}

.team-hero,
.member-hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.team-hero::after,
.member-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.team-hero h1,
.member-hero h1 {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.team-hero p,
.member-hero p {
  color: var(--muted);
  max-width: 720px;
}

.team-shell {
  padding: 50px 0 80px;
}

.team-card {
  background: linear-gradient(120deg, rgba(169, 169, 169, 0.08) rgba(255, 255, 255, 0.01)), var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  inset: -40% auto auto -25%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(94, 230, 255, 0.18), transparent 70%);
  transform: rotate(12deg);
}

.team-card .avatar-frame {
  position: relative;
  z-index: 2;
}

.team-avatar {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(94, 230, 255, 0.6);
  background: linear-gradient(135deg, rgba(94, 230, 255, 0.2), rgba(255, 179, 71, 0.15));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.team-card .content {
  position: relative;
  z-index: 2;
}

.team-card h3 {
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  row-gap: 6px;
}

.team-card .role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(94, 230, 255, 0.12);
  color: #d9f9ff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.team-card .stack {
  margin: 6px 0;
  color: #cdd9ee;
  font-weight: 600;
}

.team-card .bio {
  margin: 0 0 12px;
  color: var(--muted);
}

.role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 4px;
}

.team-card .more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: #0b111d;
  background: linear-gradient(135deg, rgba(94, 230, 255, 0.9), rgba(255, 179, 71, 0.95));
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.team-card .more-link:hover {
  filter: brightness(1.05);
}

.breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-link:hover {
  color: #fff;
}

.member-hero .hero-wrap {
  position: relative;
  z-index: 2;
  background: linear-gradient(120deg, rgba(0, 29, 66, 0.06), rgba(255, 255, 255, 0.02)), var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid rgba(94, 230, 255, 0.65);
  background: linear-gradient(135deg, rgba(94, 230, 255, 0.2), rgba(255, 179, 71, 0.15));
  box-shadow: 0 15px 36px rgba(0, 0, 0, 0.42);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #d9f9ff;
  background: rgba(94, 230, 255, 0.1);
  font-weight: 600;
  font-size: 13px;
}

.panel {
  background: linear-gradient(120deg, rgba(0, 29, 66, 0.09), rgba(255, 255, 255, 0.02)), var(--panel);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.panel h4 {
  margin-bottom: 14px;
  font-weight: 700;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.skill {
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.skill .label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 8px;
}

.skill .label span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.skill .bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.skill .bar>div {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(94, 230, 255, 0.9), rgba(255, 179, 71, 0.95));
  transition: width 1s ease;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.portfolio-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.portfolio-card h5 {
  margin-bottom: 8px;
  font-weight: 700;
}

.portfolio-card p {
  margin: 0;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #d9f9ff;
  border: 1px solid var(--border);
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.cta-primary {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(94, 230, 255, 0.9), rgba(255, 179, 71, 0.95));
  color: #0b111d;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.cta-secondary {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: #d9f9ff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.cta-secondary:hover,
.cta-primary:hover {
  filter: brightness(1.05);
}

.code-box {
  backdrop-filter: blur(8px);
  overflow: auto;
  max-height: 480px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.code-box pre {
  margin: 0;
  background: transparent;
  color: #e9eef7;
}

.code-box code,
.code-box .hljs {
  background: transparent !important;
  font-family: 'Fira Code', 'JetBrains Mono', Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
}

.contact-form .form-control,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #e9eef7;
  padding: 12px;
  border-radius: 10px;
}

.contact-form label {
  font-weight: 600;
  color: #d9f9ff;
}

.contact-form .form-control:focus,
.contact-form textarea:focus {
  border-color: rgba(94, 230, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(94, 230, 255, 0.18);
  outline: none;
}

.contact-form .form-status {
  margin-left: 8px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .team-card {
    flex-direction: column;
    text-align: center;
    align-items: flex-start;
  }

  .team-card h3 {
    justify-content: center;
  }

  .team-card .more-link {
    align-self: center;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}