:root {
  --bg: #070b14;
  --bg-elevated: #0d1424;
  --card: rgba(15, 23, 42, 0.78);
  --border: rgba(148, 163, 184, 0.16);
  --border-accent: rgba(34, 211, 238, 0.42);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --success: #34d399;
  --shadow: 0 20px 50px rgba(2, 6, 23, 0.55);
  --radius: 14px;
  --maxw: 1080px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(800px 480px at 90% 10%, rgba(167, 139, 250, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--maxw), 92%);
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.brand {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.lang-btn {
  border: 1px solid var(--border-accent);
  background: rgba(34, 211, 238, 0.08);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.lang-btn:hover {
  background: rgba(34, 211, 238, 0.18);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 78px 0 58px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(95deg, #22d3ee 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 700px;
  font-size: 1.06rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
}

.btn-primary {
  background: linear-gradient(95deg, #06b6d4 0%, #3b82f6 100%);
  border: none;
  color: #04101c;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Sections */
section {
  padding: 54px 0;
}

.section-head {
  margin-bottom: 26px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Cards grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

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

.card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  color: #f8fafc;
}

.tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.tag-purple {
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent-2);
  border-color: rgba(167, 139, 250, 0.3);
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.metrics {
  list-style: none;
  margin-bottom: 16px;
}

.metrics li {
  font-size: 0.87rem;
  color: #cbd5e1;
  padding-left: 14px;
  position: relative;
  margin-bottom: 5px;
}

.metrics li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.pill {
  font-size: 0.76rem;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--accent);
}

.card-link:hover {
  text-decoration: underline;
}

/* Articles */
.article-list {
  display: grid;
  gap: 12px;
}

.article-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.article-item:hover {
  border-color: var(--border-accent);
  transform: translateX(3px);
}

.article-title {
  font-weight: 650;
  font-size: 0.96rem;
  color: #f1f5f9;
}

.article-meta {
  font-size: 0.82rem;
  color: var(--accent);
  white-space: nowrap;
}

/* Skills & Education */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.skill-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.skill-box h4 {
  font-size: 0.95rem;
  color: #f8fafc;
  margin-bottom: 10px;
}

/* Contact & Footer */
.contact-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(13, 148, 136, 0.14));
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Filter bar & Back-to-Top */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: #04101c;
  background: var(--accent);
  border-color: var(--accent);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: rgba(13, 20, 36, 0.92);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 50px 0 38px;
  }
  .article-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
