:root {
  --bg: #07111f;
  --panel: rgba(10, 20, 35, 0.9);
  --panel-2: #0f2037;
  --text: #e8f1ff;
  --muted: #9fb4cc;
  --accent: #67e8f9;
  --accent-2: #7c3aed;
  --border: rgba(255,255,255,0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #14253d 0%, var(--bg) 55%, #050913 100%);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.lang-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px 0 0;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.lang-btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  color: #03111d;
  border-color: transparent;
}

.hero {
  padding: 64px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.12);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 12px;
}
.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 20px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.btn {
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: rgba(103, 232, 249, 0.25);
}
.btn.primary:hover {
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  color: #03111d;
}
.btn.secondary {
  background: rgba(255,255,255,0.05);
}
.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.highlights li {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.03);
}

.profile-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 15px 45px rgba(0,0,0,0.25);
}
.profile-card img {
  width: min(220px, 100%);
  height: min(220px, 100%);
  border-radius: 50%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  margin: 0 auto 12px;
}
.profile-card .info {
  padding-top: 14px;
}
.profile-card h2 { margin: 0 0 6px; font-size: 1.3rem; }
.profile-card p { margin: 0; color: var(--muted); }

section {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
section h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.35rem;
}
section p {
  color: var(--muted);
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.skill-list span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.16);
  color: #d8c8ff;
  border: 1px solid rgba(124, 58, 237, 0.25);
  font-size: 0.95rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.card {
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
}
.card h3 { margin: 0 0 8px; font-size: 1.07rem; }
.card h3 a {
  color: inherit;
  display: inline-block;
  transition: color 0.2s ease;
}
.card h3 a:hover {
  color: var(--accent);
}
.card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 12px; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tags span {
  font-size: 0.82rem;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.12);
  color: var(--accent);
}
.card a {
  color: #ffffff;
  font-weight: 600;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.contact-list a {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}

.mini-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.mini-project {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.mini-project strong {
  display: block;
  margin-bottom: 4px;
  color: #f3f8ff;
}
.mini-project span {
  color: var(--muted);
  font-size: 0.93rem;
}

@media (max-width: 820px) {
  .hero-grid,
  .grid,
  .project-grid,
  .mini-projects {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }
}

@media (max-width: 820px) {
  .hero-grid, .grid, .project-grid, .mini-projects { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
}
