* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  min-height: 100vh;
  padding: 30px;
  color: #e2e8f0;
}

/* CONTAINER */
.container {
  max-width: 900px;
  margin: auto;
}

/* HEADER */
h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
  color: #f1f5f9;
}

/* SEARCH BAR */
.search-box {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  padding: 12px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.search-box input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: transparent;
  color: white;
}

.search-box button {
  padding: 12px 18px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.25s;
}

.search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}

/* STATES */
#loading {
  margin-top: 20px;
  text-align: center;
  font-weight: 600;
}

#error {
  margin-top: 20px;
  text-align: center;
  color: #ef4444;
}

/* PROFILE CARD */
.profile {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.profile img {
  width: 90px;
  border-radius: 50%;
  border: 2px solid #6366f1;
}

.profile-info {
  flex: 1;
}

.profile-info h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.profile-info p {
  font-size: 14px;
  color: #94a3b8;
}

.profile-info a {
  display: inline-block;
  margin-top: 8px;
  color: #6366f1;
  text-decoration: none;
}

/* REPO SECTION */
.repos {
  margin-top: 25px;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.repos h3 {
  margin-bottom: 15px;
}

.repos ul {
  list-style: none;
}

.repos li {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.03);
  transition: 0.2s;
}

.repos li:hover {
  background: rgba(99,102,241,0.15);
  transform: translateX(5px);
}

.repos a {
  color: #93c5fd;
  text-decoration: none;
}

/* UTIL */
.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: #111827;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
}

.hidden {
  display: none;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #ccc;
  border-top: 3px solid #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}