:root {
  --roxo-principal: #7b00ff;
  --gradiente-principal: linear-gradient(135deg, #6c63ff, #b366ff);
  --bg-escuro: radial-gradient(circle at top left, #1c1c28, #12121a 70%);
  --bg-light: #f5f5f5;
  --texto-escuro: #ffffff;
  --texto-claro: #000000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg-escuro);
  color: var(--texto-escuro);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition:
    background 0.3s,
    color 0.3s;
}
body.light-mode {
  background: var(--bg-light);
  color: var(--texto-claro);
}

/* =========================================
   HEADER
   ========================================= */
.header {
  background: rgba(28, 28, 40, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 1001;
  height: 72px;
  display: flex;
  align-items: center;
}
body.light-mode .header {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid #ddd;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.header-right {
  display: flex;
  align-items: center;
}
.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradiente-principal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn-voltar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-voltar:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
body.light-mode .btn-voltar {
  color: #666;
}
body.light-mode .btn-voltar:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}
.btn-icon {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
body.light-mode .btn-icon {
  color: #666;
}
body.light-mode .btn-icon:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

/* =========================================
   MAIN CONTENT
   ========================================= */
.main-content {
  flex: 1;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 10rem;
}

/* =========================================
   TEAM SECTION
   ========================================= */
.team-section {
  margin-bottom: 2.5rem;
}
.team-intro {
  text-align: center;
  color: #aaa;
  font-size: 1rem;
  margin-bottom: 2rem;
}
.team-intro b {
  color: var(--roxo-principal);
}
body.light-mode .team-intro {
  color: #666;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

/* =========================================
   MEMBER CARDS
   ========================================= */
.member-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}
.member-card:hover {
  background: rgba(165, 180, 252, 0.1);
  border-color: rgba(165, 180, 252, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
body.light-mode .member-card {
  background: #fff;
  border-color: #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
body.light-mode .member-card:hover {
  background: #fff;
  border-color: var(--roxo-principal);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.member-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(123, 0, 255, 0.4);
  transition: border-color 0.3s;
}
.member-card:hover .member-avatar {
  border-color: var(--roxo-principal);
}
.member-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(123, 0, 255, 0.2);
  border: 3px solid rgba(123, 0, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #a5b4fc;
}
body.light-mode .member-avatar-fallback {
  background: rgba(123, 0, 255, 0.08);
  color: var(--roxo-principal);
}

.member-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}
body.light-mode .member-name {
  color: #333;
}

.member-role {
  margin: 0;
  font-size: 0.85rem;
  color: #aaa;
}
body.light-mode .member-role {
  color: #666;
}

.member-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.3rem;
}
.member-links a {
  color: #ccc;
  font-size: 1.3rem;
  transition: color 0.3s;
}
.member-links a:hover {
  color: var(--roxo-principal);
}
body.light-mode .member-links a {
  color: #888;
}
body.light-mode .member-links a:hover {
  color: var(--roxo-principal);
}

/* =========================================
   CONTRIBUTE SECTION
   ========================================= */
.contribute-section {
  margin-bottom: 1rem;
}
.contribute-card {
  background: linear-gradient(
    135deg,
    rgba(123, 0, 255, 0.1),
    rgba(108, 99, 255, 0.05)
  );
  border: 1px solid rgba(123, 0, 255, 0.25);
  border-radius: 20px;
  padding: 2rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.contribute-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(123, 0, 255, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}
body.light-mode .contribute-card {
  background: linear-gradient(
    135deg,
    rgba(123, 0, 255, 0.06),
    rgba(108, 99, 255, 0.03)
  );
  border-color: rgba(123, 0, 255, 0.2);
}
.contribute-icon {
  font-size: 2.5rem;
  background: var(--gradiente-principal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse-icon 2s ease-in-out infinite;
}
@keyframes pulse-icon {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.contribute-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
body.light-mode .contribute-card h2 {
  color: #333;
}
.contribute-card p {
  font-size: 0.95rem;
  color: #b0b0c0;
  max-width: 420px;
  line-height: 1.5;
}
body.light-mode .contribute-card p {
  color: #666;
}
.btn-contribute {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  background: var(--gradiente-principal);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(123, 0, 255, 0.3);
}
.btn-contribute:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(123, 0, 255, 0.5);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  text-align: center;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.footer span {
  color: #888;
  font-size: 0.85rem;
}
.footer .footer-link {
  color: #aaa;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.3s;
}
.footer .footer-link:hover {
  color: var(--roxo-principal);
  text-decoration: underline;
}
body.light-mode .footer span {
  color: #999;
}
body.light-mode .footer .footer-link {
  color: #777;
}
body.light-mode .footer .footer-link:hover {
  color: var(--roxo-principal);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 1.1rem;
  }
  .main-content {
    padding: 1.5rem 0.8rem;
  }
}
