:root {
  --bg: #ffffff;
  --soft: #f2f4ff;
  --ink: #0c1228;
  --muted: #5f6884;
  --line: #dfe4f3;
  --primary: #5b2cff;
  --primary-dark: #3d18c9;
  --card: #ffffff;
  --dark: #10172f;
  --footer: #080d1d;
  --shadow: 0 20px 60px rgba(17, 24, 39, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(58px, 6vw, 86px);
}

h2 {
  font-size: clamp(32px, 3.4vw, 46px);
}

h3 {
  font-size: 18px;
}

.container {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223, 228, 243, 0.65);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: 300px;
  max-width: 52vw;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.menu-toggle,
.primary-nav {
  display: none;
}

/* Shared sections */

.section {
  padding: 84px 0;
}

.section-soft {
  background: var(--soft);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.text-link {
  color: var(--primary);
  font-weight: 900;
}

/* Hero */

.hero {
  padding: 42px 0 74px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.85fr);
  gap: 72px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(58px, 6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: inline-block;
  margin-top: 16px;
  max-width: 780px;
  color: var(--primary);
  font-size: clamp(42px, 4.5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(91, 44, 255, 0.25);
}

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

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--line);
}

.hero-card {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  padding: 42px 38px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(91, 44, 255, 0.16), rgba(255, 91, 127, 0.22));
  z-index: -1;
}

.hero-card h2 {
  margin: 0 0 28px;
  font-size: clamp(34px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.hero-card p {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.68;
}

.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.status-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--soft);
  color: #293251;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Cards */

.cards {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

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

.cards article {
  padding: 30px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.cards article:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 44, 255, 0.38);
}

.cards h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.cards p {
  font-size: 15.5px;
  line-height: 1.65;
}

/* Blog */

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 34px;
}

.category-tab {
  border: 1px solid var(--line);
  background: #ffffff;
  color: #26304d;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.category-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 44, 255, 0.38);
}

.category-tab.is-active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 14px 34px rgba(91, 44, 255, 0.18);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.blog-grid article {
  min-height: 220px;
}

.blog-grid h3 {
  font-size: 20px;
  line-height: 1.2;
}

.post-date {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.86rem;
}

/* Contact */

.section-contact {
  padding: 86px 0;
  background: var(--dark);
  color: #ffffff;
}

.section-contact p {
  color: #cbd3ea;
}

.contact-card {
  max-width: 980px;
  padding: 42px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(91, 44, 255, 0.35), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
}

.contact-card p {
  max-width: 780px;
  font-size: 16px;
  line-height: 1.65;
}

.contact-card .hero-actions {
  margin-top: 28px;
}

/* Footer */

.site-footer {
  padding: 32px 0;
  background: var(--footer);
  color: #ffffff;
}

.site-footer p {
  margin: 6px 0 0;
  color: #aeb7d1;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d9e0f5;
}

/* Posts / pages */

.post-content {
  max-width: 860px;
}

.post-content h1 {
  margin-bottom: 28px;
}

.post-content .prose {
  color: var(--ink);
}

.archive-grid h2 {
  font-size: 1.4rem;
}

/* Responsive */

@media (max-width: 900px) {
  .container {
    width: min(100% - 40px, 1120px);
  }

  .brand-logo {
    width: 220px;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding: 32px 0 72px;
  }

  .hero-grid,
  .skills-grid,
  .project-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 46px;
  }

  .hero-card {
    max-width: 100%;
    justify-self: stretch;
  }

  .section-head,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .cards article {
    padding: 26px;
  }

  .contact-card {
    padding: 34px 26px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand-logo {
    width: 174px;
    max-width: 68vw;
  }

  .nav-wrap {
    min-height: 64px;
  }

  .hero {
    padding: 28px 0 64px;
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 3.35rem);
  }

  .hero h1 span {
    font-size: 0.78em;
  }

  .lead {
    font-size: 16.5px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card {
    padding: 28px 24px;
  }

  .hero-card h2 {
    font-size: 34px;
  }
}

@media (min-width: 901px) {
  .container {
    width: min(1240px, calc(100% - 64px));
  }

  .hero h1 {
    font-size: clamp(64px, 6.4vw, 92px);
  }

  .hero h1 span {
    font-size: clamp(46px, 4.7vw, 66px);
  }

  .lead {
    font-size: 20px;
  }
}
/* Final layout spacing */

.contact-card {
  margin: 0 auto;
}

.site-footer {
  padding: 40px 0;
}

.section {
  padding: 72px 0;
}

.hero {
  padding-top: 32px;
  padding-bottom: 42px;
}

/* Skills section */

section#skills.section {
  padding-top: 28px;
  padding-bottom: 28px;
}

section#skills .cards {
  margin-top: 28px;
}

/* Blog section */

section#blog.section {
  padding-top: 28px;
  padding-bottom: 72px;
}

#blog .section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
  margin-bottom: 22px;
}

#blog .section-head .text-link {
  align-self: start;
  margin-top: 4px;
}

#blog .category-tabs {
  margin-top: 0;
  margin-bottom: 28px;
}

/* Mobile spacing */

@media (max-width: 900px) {
  section#skills.section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  section#blog.section {
    padding-top: 28px;
    padding-bottom: 64px;
  }

  #blog .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #blog .section-head .text-link {
    margin-top: 0;
  }
}