* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

body {
  background: radial-gradient(circle at top, #1e293b, #020617);
  color: white;
  min-height: 100vh;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  backdrop-filter: blur(10px);
  background: rgba(2, 6, 23, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #22c55e;
}

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

.nav-links a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
  position: relative;
  transition: 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #22c55e;
  transition: 0.25s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #22c55e;
}

.section {
  padding: 80px 20px;
  max-width: 900px;
  margin: auto;
  line-height: 1.7;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #22c55e;
}

.section ul {
  margin-left: 20px;
  display: grid;
  gap: 8px;
}

.main {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.title {
  text-align: center;
  margin-bottom: 40px;
}

.title h1 {
  font-size: 46px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  -webkit-background-clip: text;
  color: transparent;
}

.title p {
  color: #94a3b8;
}

.search {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.search input {
  width: 420px;
  max-width: 90%;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 16px;
  background: #1e293b;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.25s;
}

.search input:focus {
  border: 1px solid #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.characters {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.card {
  background: #020617;
  border-radius: 14px;
  overflow: hidden;
  transition: 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

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

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.status {
  font-size: 14px;
  color: #94a3b8;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 10px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #020617;
  padding: 30px;
  border-radius: 12px;
  width: 350px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content img {
  width: 180px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.modal-content p {
  margin: 6px 0;
  color: #94a3b8;
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}
