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

body {
  background: #0a0c12;
  background-image: radial-gradient(circle at 25% 0%, rgba(30, 50, 80, 0.2) 0%, transparent 60%),
                    radial-gradient(circle at 85% 100%, rgba(80, 70, 150, 0.15) 0%, transparent 55%);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #e2e8f0;
  line-height: 1.6;
  scroll-behavior: smooth;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800;14..32,900&display=swap');

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

html {
  scroll-padding-top: 2rem;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.lang-select {
  background: rgba(20, 28, 40, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #cbd5e6;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  backdrop-filter: blur(2px);
}
.lang-select:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.2);
}
.lang-select:focus {
  outline: none;
  border-color: #60a5fa;
}
.lang-select option {
  background: #0f172a;
  color: #e2e8f0;
}

/* Hero */
.hero-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0.5rem 0 2rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(15, 25, 45, 0.5) 0%, rgba(10, 14, 30, 0.3) 100%);
  border-radius: 2rem;
  padding: 1.8rem 2rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(4px);
}
.hero-left {
  flex-shrink: 0;
}
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, border-color 0.2s;
}
.avatar:hover {
  transform: scale(1.02);
  border-color: #3b82f6;
}
.hero-right {
  flex: 1;
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3f8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.hero-title {
  font-size: 1rem;
  color: #9bb4d4;
  margin-bottom: 0.75rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.location-badge {
  background: rgba(59, 130, 246, 0.15);
  padding: 0.3rem 0.9rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.badge-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.badge {
  background: rgba(20, 28, 40, 0.7);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e6;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.badge:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  transform: translateY(-2px);
  color: white;
}

/* Stats */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin: 2rem 0 2rem;
}
.stat-card {
  background: rgba(15, 20, 30, 0.65);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 28px;
  padding: 1.4rem 1.2rem;
  flex: 1;
  min-width: 140px;
  text-align: center;
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  background: rgba(25, 35, 50, 0.7);
}
.stat-number {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, #94a3f8, #38bdf8);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.4rem;
  font-weight: 500;
}

/* Bio card */
.bio-card {
  background: rgba(12, 16, 24, 0.6);
  border-radius: 32px;
  padding: 1.8rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin: 1rem 0 2rem;
}
.bio-text {
  font-size: 1rem;
  color: #cbd5e6;
  line-height: 1.65;
}
.bio-text a {
  color: #60a5fa;
  text-decoration: none;
  border-bottom: 1px dashed #3b82f6;
}
.bio-text a:hover {
  color: #93c5fd;
}

/* Section title */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.01em;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #2d3a5e, transparent);
}

/* Projects */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.project-card {
  background: rgba(15, 20, 32, 0.6);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 24px;
  padding: 1.2rem 1.6rem;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.project-card:hover {
  border-color: #3b82f6;
  background: rgba(25, 35, 55, 0.7);
  transform: translateX(4px);
}
.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f0f4ff;
  margin-bottom: 0.3rem;
}
.project-desc {
  font-size: 0.9rem;
  color: #a0b3d9;
  margin-bottom: 0.6rem;
}
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.tech-tag {
  background: #0f172a;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #90cdf4;
  border: 1px solid #1e293b;
}

/* Contributions table */
.contrib-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 24px;
  background: rgba(10, 14, 23, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.contrib-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.contrib-table th {
  text-align: left;
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.2);
  font-weight: 600;
  color: #94a3f8;
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
}
.contrib-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e6;
}
.contrib-table tr:last-child td {
  border-bottom: none;
}
.contrib-table a {
  color: #7aa9ff;
  text-decoration: none;
  font-weight: 500;
}
.contrib-table a:hover {
  text-decoration: underline;
}

/* Stack */
.stack-box {
  background: rgba(12, 16, 24, 0.5);
  border-radius: 28px;
  padding: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-top: 0.5rem;
}
.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
}
.stack-list li {
  background: #0f172a;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #b9d0f0;
  border: 1px solid #1e2a44;
}

/* Footer */
.footer {
  margin-top: 3rem;
  text-align: center;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  padding-top: 2.5rem;
  font-size: 0.8rem;
  color: #7e8ba3;
}

/* Animations */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-slide {
  animation: fadeSlide 0.6s ease forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 700px) {
  .container { padding: 1.5rem 1rem; }
  .hero-section { flex-direction: column; text-align: center; padding: 1.5rem; }
  .hero-meta { justify-content: center; }
  .stats-grid { flex-direction: column; align-items: stretch; }
  .stat-card { min-width: auto; }
  .section-title { font-size: 1.3rem; }
  .project-card { padding: 1rem; }
  .lang-switch { justify-content: center; margin-top: 0.5rem; }
}