* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a{
    text-decoration: none;
  font-size: 24px;

}

body {
  font-family: 'Georgia', serif;
  background: linear-gradient(to bottom, #140000, #000000 60%);
  color: #d4af37;
  min-height: 100vh;
}

/* NAV */

nav {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.95);
  border-bottom: 1px solid rgba(212,175,55,0.2);
  z-index: 1000;
}
nav a {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}


.logo {
  font-size: 24px;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #d4af37;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.nav-links a:hover {
  color: white;
}

/* HERO */

.hero {
  margin-top: 120px;
  text-align: center;
  padding: 60px 20px 20px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero p {
  color: #aaa;
}

/* GRID */

.membros-container {
  max-width: 1100px;
  margin: 80px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 50px;
  padding: 0 40px;
}

/* CARD */

.card-membro {
  background: #0c0f1a;
  border-radius: 20px;
  overflow: hidden;
  transition: 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.card-membro:hover {
  transform: translateY(-8px);
}

.card-membro img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: white;
}

.idade {
  font-size: 14px;
  margin-bottom: 12px;
  color: #ccc;
}

.historia-resumo {
  font-size: 13px;
  color: #bbb;
  line-height: 1.6;
  margin-bottom: 10px;
}

.ver-mais {
  font-size: 13px;
  color: #ff0077;
  cursor: pointer;
  margin-bottom: 10px;
  display: inline-block;
}

.ver-mais:hover {
  color: #ff4da6;
}

.personalidades {
  font-size: 13px;
  line-height: 1.6;
  color: #ff4da6;
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: #111;
  width: 85%;
  max-width: 900px;
  max-height: 85vh;
  border-radius: 20px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.25);
  position: relative;
}

.modal-content img {
  width: 45%;
  object-fit: cover;
}

.modal-info {
  width: 55%;
  padding: 40px;
  overflow-y: auto;
}

.modal-info h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.modal-idade {
  color: #aaa;
  margin-bottom: 15px;
}

.modal-personalidade {
  margin-bottom: 20px;
  color: #ff4da6;
}

.modal-historia {
  color: #ccc;
  line-height: 1.7;
  font-size: 14px;
}

.fechar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
  color: #d4af37;
}

footer {
  text-align: center;
  padding: 30px;
  margin-top: 80px;
  color: #d4af37;
  font-size: 13px;
}
/* ================= RESPONSIVIDADE REAL ================= */

/* TABLET */
@media (max-width: 900px) {
  .modal-content {
    flex-direction: column;
    max-height: 95vh;
  }

  .modal-content img {
    width: 100%;
    height: 300px;
  }

  .modal-info {
    width: 100%;
  }
}

/* CELULAR */
@media (max-width: 600px) {

  nav {
    padding: 15px 20px;
  }

  .nav-links {
    gap: 15px;
  }

  .hero {
    margin-top: 100px;
  }

  .membros-container {
    margin: 40px auto;
    gap: 25px;
  }

  .card-membro img {
    height: 200px;
  }

  .modal-content img {
    height: 240px;
  }

  .modal-info {
    padding: 20px;
  }
}