:root {
  --bg: #07111f;
  --bg-alt: #0d1b2a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #112033;
  --line: rgba(148, 163, 184, 0.2);
  --text: #e2e8f0;
  --muted: #a8b8d3;
  --primary: #7dd3fc;
  --secondary: #a78bfa;
  --accent: #34d399;
  --warning: #fbbf24;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #020b16 0%, #07111f 18%, #0f172a 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(2, 11, 22, 0.8);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  color: #04121f;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #061827;
  box-shadow: var(--shadow);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.7);
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.kicker {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.2);
  color: var(--primary);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0 0 1.5rem;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-aside {
  background: linear-gradient(180deg, rgba(17, 32, 51, 0.9), rgba(9, 17, 29, 0.9));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(8, 14, 24, 0.7);
  border: 1px solid var(--line);
}

.profile-card .avatar {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 210px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.18), rgba(167, 139, 250, 0.18));
  border: 1px solid rgba(125, 211, 252, 0.2);
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.profile-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.profile-card p {
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  letter-spacing: -0.05em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

.stats-grid,
.cert-grid,
.project-grid,
.feature-grid {
  display: grid;
  gap: 1.2rem;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.cert-card,
.project-card,
.feature-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat-card span {
  color: var(--muted);
}

.cert-grid,
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cert-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.cert-card .tag,
.project-card .tag,
.feature-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  background: rgba(52, 211, 153, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--accent);
  margin: 0 0 0.7rem;
}

.cert-card p,
.project-card p,
.feature-card p {
  color: var(--muted);
  margin: 0;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.project-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.project-card ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 0;
}

.project-card li {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: #e6ddff;
  font-size: 0.75rem;
}

.page-hero {
  padding: 4rem 0 2rem;
}

.page-hero h1 {
  margin: 0.8rem 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.article-panel,
.sidebar-panel {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.article-panel h2,
.sidebar-panel h3 {
  margin-top: 0;
}

.article-panel p,
.sidebar-panel p,
.sidebar-panel li {
  color: var(--muted);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 0.7rem;
}

.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .detail-shell,
  .stats-grid,
  .cert-grid,
  .project-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

  .nav-links {
    justify-content: center;
  }

  .hero {
    padding-top: 3rem;
  }
}
