:root {
  --bg: #0f172a;
  --surface: #111827;
  --primary: #5b83ff;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, rgba(91, 131, 255, 0.2), transparent 40%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.main-nav {
  display: flex;
  gap: 1.25rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 1rem;
}

.hero p {
  max-width: 660px;
  margin: 0 auto 1.75rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  border: none;
  color: white;
  background: linear-gradient(135deg, #5b83ff, #8b5cf6);
  text-decoration: none;
  font-weight: 600;
}

.section {
  padding: 5rem 0;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: 1rem;
}

.section p {
  max-width: 740px;
  color: var(--muted);
}

.services .service-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
}

.service-card h3 {
  margin-top: 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-header p {
  color: var(--muted);
}

.hero small {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.about-grid,
.stack-grid,
.project-grid,
.app-grid {
  display: grid;
  gap: 1.5rem;
}

.about-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.about-item,
.stack-card,
.project-card,
.app-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
}

.about-item h3,
.stack-card h3,
.project-card h3,
.app-card h3 {
  margin-top: 0;
}

.stack-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.app-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.app-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-card p {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.site-footer {
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

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

@media (max-width: 720px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-actions {
    justify-content: stretch;
  }
}
