* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #a78bfa;
  --primary-dark: #8b5cf6;
  --primary-light: #c4b5fd;
  --bg-dark: #0f0f23;
  --bg-gradient: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  --card-bg: #1e1e2e;
  --card-hover: #252535;
  --text-light: #f3f4f6;
  --text-gray: #9ca3af;
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(167, 139, 250, 0.3);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

body {
  background: var(--bg-gradient);
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 30px 15px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: backgroundMove 20s linear infinite;
  z-index: -1;
}

@keyframes backgroundMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.container {
  width: 100%;
  max-width: 800px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h1 i {
  -webkit-text-fill-color: var(--primary-color);
  margin-right: 10px;
}

header p {
  color: var(--text-gray);
  font-size: 1rem;
}

.search-container {
  display: flex;
  margin-bottom: 30px;
  gap: 10px;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

input[type="text"] {
  flex: 1;
  padding: 14px 18px;
  font-size: 1rem;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  background-color: var(--card-bg);
  color: var(--text-light);
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

input[type="text"]:focus {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

input[type="text"]::placeholder {
  color: var(--text-gray);
  opacity: 0.7;
}

button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

button:hover::before {
  left: 100%;
}

button:active {
  transform: translateY(0);
}

#profile-container {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
  border: 1px solid rgba(167, 139, 250, 0.1);
  animation: fadeIn 0.6s ease-out;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

#avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  animation: fadeIn 0.6s ease-out;
}

#avatar:hover {
  transform: scale(1.05) rotate(5deg);
  border-color: var(--primary-light);
}

.profile-info {
  flex: 1;
}

#name {
  font-size: 1.8rem;
  margin-bottom: 5px;
  font-weight: 700;
  color: var(--text-light);
}

#username {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 1.1rem;
}

.bio {
  color: var(--text-gray);
  margin-bottom: 15px;
}

.location-date {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.location-date i {
  color: var(--primary-color);
  margin-right: 5px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn:hover::before {
  left: 100%;
}

/* Stats */
.stats {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  margin-bottom: 25px;
}

.stat {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: var(--border-radius);
  padding: 12px 10px;
  text-align: center;
  flex: 1;
  transition: var(--transition);
  cursor: default;
}

.stat:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  box-shadow: var(--shadow-glow);
}

.stat i {
  color: var(--primary-color);
  margin-right: 5px;
  font-size: 0.95rem;
}

.stat span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-light);
}

#error-container {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
  color: #fca5a5;
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

#error-container p {
  font-weight: 600;
  font-size: 1.1rem;
}

.hidden {
  display: none;
}

.additional-info {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  border-top: 1px solid rgba(167, 139, 250, 0.1);
  padding-top: 25px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-gray);
  font-size: 0.95rem;
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
}

.info-item:hover {
  background: rgba(167, 139, 250, 0.1);
  transform: translateX(5px);
}

.info-item i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.info-item a {
  color: var(--text-gray);
  text-decoration: none;
  word-break: break-all;
}

.info-item a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.repos-section {
  margin-top: 35px;
}

.repos-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--text-light);
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(167, 139, 250, 0.2);
  font-weight: 700;
}

.repos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.repo-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(167, 139, 250, 0.03) 100%);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid rgba(167, 139, 250, 0.15);
  transition: var(--transition);
  cursor: pointer;
}

.repo-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(167, 139, 250, 0.08) 100%);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-color);
}

.repo-name {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-light);
  text-decoration: none;
  display: block;
  font-size: 1.05rem;
  transition: var(--transition);
}

.repo-name:hover {
  color: var(--primary-color);
  text-decoration: none;
  transform: translateX(5px);
}

.repo-name i {
  margin-right: 6px;
}

.repo-description {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 15px;
  overflow: hidden;
  min-height: 40px;
  line-height: 1.5;
}

.repo-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-gray);
  flex-wrap: wrap;
}

.repo-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 6px;
  transition: var(--transition);
}

.repo-meta-item:hover {
  background: rgba(167, 139, 250, 0.2);
  transform: scale(1.05);
}

.repo-meta-item i {
  color: var(--primary-color);
}

.loading-repos {
  color: var(--text-gray);
  text-align: center;
  padding: 30px;
  grid-column: 1 / -1;
  font-size: 1.1rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.no-repos {
  color: var(--text-gray);
  text-align: center;
  padding: 40px;
  grid-column: 1 / -1;
  border: 2px dashed rgba(167, 139, 250, 0.2);
  border-radius: var(--border-radius);
  background: rgba(167, 139, 250, 0.05);
  font-size: 1.05rem;
}

/* Responsive design for mobile devices */

/* Large tablets and small desktops (max-width: 900px) */
@media (max-width: 900px) {
  .container {
    max-width: 700px;
  }

  h1 {
    font-size: 2rem;
  }

  .repos-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  body {
    padding: 20px 15px;
  }

  .container {
    max-width: 100%;
  }

  h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 0.95rem;
  }

  #profile-container {
    padding: 20px;
  }

  .profile-header {
    gap: 20px;
  }

  #avatar {
    width: 90px;
    height: 90px;
  }

  #name {
    font-size: 1.5rem;
  }

  #username {
    font-size: 1rem;
  }

  .stats {
    gap: 10px;
  }

  .stat {
    padding: 10px 8px;
  }

  .stat i {
    font-size: 0.9rem;
  }

  .stat span {
    font-size: 0.95rem;
  }

  .repos-container {
    grid-template-columns: 1fr;
  }

  .additional-info {
    grid-template-columns: 1fr;
  }
}

/* Mobile devices (max-width: 600px) */
@media (max-width: 600px) {
  body {
    padding: 15px 10px;
  }

  body::before {
    background-size: 30px 30px;
  }

  header {
    margin-bottom: 25px;
  }

  h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.9rem;
  }

  .search-container {
    flex-direction: column;
    gap: 10px;
  }

  button {
    padding: 12px 24px;
    width: 100%;
  }

  #profile-container {
    padding: 15px;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding-bottom: 20px;
  }

  #avatar {
    width: 80px;
    height: 80px;
    border-width: 3px;
  }

  #name {
    font-size: 1.3rem;
  }

  #username {
    font-size: 0.95rem;
  }

  .bio {
    font-size: 0.9rem;
  }

  .location-date {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }

  .stats {
    flex-direction: column;
    gap: 10px;
  }

  .stat {
    padding: 12px 10px;
  }

  .stat i {
    font-size: 0.85rem;
  }

  .stat span {
    font-size: 1rem;
  }

  .additional-info {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
  }

  .info-item {
    justify-content: center;
    padding: 12px;
    font-size: 0.9rem;
  }

  .repos-section {
    margin-top: 25px;
  }

  .repos-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .repos-container {
    gap: 15px;
  }

  .repo-card {
    padding: 15px;
  }

  .repo-name {
    font-size: 1rem;
  }

  .repo-description {
    font-size: 0.9rem;
    min-height: 35px;
  }

  .repo-meta {
    gap: 10px;
    font-size: 0.8rem;
  }

  .repo-meta-item {
    padding: 3px 6px;
  }
}

/* Extra small devices (max-width: 400px) */
@media (max-width: 400px) {
  h1 {
    font-size: 1.3rem;
  }

  input[type="text"] {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  #profile-container {
    padding: 12px;
  }

  #avatar {
    width: 70px;
    height: 70px;
  }

  #name {
    font-size: 1.2rem;
  }

  .stat {
    padding: 10px 6px;
  }

  .stat i {
    font-size: 0.8rem;
  }

  .stat span {
    font-size: 0.95rem;
  }

  .stat i,
  .stat span {
    display: block;
    margin: 0 0 4px 0;
  }

  .repos-section h3 {
    font-size: 1.1rem;
  }

  .repo-card {
    padding: 12px;
  }
} 