:root {
  --primary: #7f5af0;
  --secondary: #2cb67d;
  --dark: #16161a;
  --light: #fffffe;
  --gray: #94a1b2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, var(--dark) 0%, #0d0d12 100%);
  min-height: 100vh;
  color: var(--light);
  padding: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.search-box {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.search-box input {
  padding: 1rem 2rem;
  width: min(90%, 500px);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--gray);
  border-radius: 50px;
  color: var(--light);
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(127, 90, 240, 0.3);
}

.search-box button {
  padding: 1rem 2.5rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--light);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  margin-left: 1rem;
  transition: transform 0.3s ease;
  position: absolute;
  right: 5%;
}

.search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(127, 90, 240, 0.4);
}

.profile {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 3rem;
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease forwards;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: none;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile.active {
  display: block;
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  padding: 3px;
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: rotate(15deg) scale(1.05);
}

.user-info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user-info p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.stat {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
}

.stat h3 {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.stat p {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
}

.repos {
  margin-top: 2rem;
}

.repos h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--secondary);
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.repo-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.repo-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.repo-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.repo-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.repo-card a {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.repo-card a:hover {
  transform: scale(1.05);
}

.language {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(127, 90, 240, 0.2);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 0.5rem 0;
}

.load-more {
  text-align: center;
  margin-top: 2rem;
}

.load-more button {
  padding: 0.8rem 2.5rem;
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  border: none;
  border-radius: 50px;
  color: var(--light);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.load-more button:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(127, 90, 240, 0.4);
}

.load-more button.hidden {
  display: none;
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .search-box button {
    position: static;
    width: min(90%, 500px);
    margin: 1rem 0;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .repo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .profile {
    padding: 2rem 1rem;
  }

  .user-info h2 {
    font-size: 1.5rem;
  }

  .stat p {
    font-size: 1.5rem;
  }
}
