:root {
  --bg: #000000;
  --panel: #0d121f;
  --panel-bg: #090e19;
  --border: #2d3a4f;
  --text: #e7ecf3;
  --muted: #9aa8bc;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  background: radial-gradient(1400px 700px at 15% -5%, #0a0d13 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 7px 13px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav a.active {
  color: var(--text);
  background: var(--panel);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin-bottom: 28px;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.hero .tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.35rem);
  margin: 0 0 8px;
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.15;
}

.hero .subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 18px;
  font-weight: 450;
}

.hero p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.65;
  font-size: 0.98rem;
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--panel);
  border-color: #3d4a61;
}

/* Sections */
.section {
  margin-top: 72px;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
  }
}

.about-text p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
  font-size: 0.97rem;
  text-align: justify;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.about-card {
  background: var(--panel);
  border-radius: 12px;
  padding: 22px 20px;
  border: 1px solid var(--border);
  height: fit-content;
}

.about-card h3 {
  margin: 0 0 16px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.info-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.info-list strong {
  color: var(--text);
  min-width: 72px;
  font-weight: 550;
  font-size: 0.85rem;
}

.info-list a {
  color: var(--accent);
  text-decoration: none;
}

.info-list a:hover {
  text-decoration: underline;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.skill {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  transition: border-color 0.15s;
}

.skill:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.skill span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}

.project-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.project-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.project-card h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.project-card .lang {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  letter-spacing: 0.02em;
}

.project-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}

.project-card .links {
  display: flex;
  gap: 12px;
}

.project-card .links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.project-card .links a:hover {
  text-decoration: underline;
}

/* Contact */
.contact-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.contact-box p {
  color: var(--muted);
  margin: 0 auto 20px;
  font-size: 0.95rem;
  max-width: 420px;
  line-height: 1.6;
}

.socials {
  min-width:100px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.socials a {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}

.socials a:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}

/* Footer */
.footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 560px) {
  .nav a {
    padding: 7px 10px;
    font-size: 0.82rem;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .avatar {
    width: 96px;
    height: 96px;
  }
}
