:root {
  --bg: #07111f;
  --bg-accent: #10213d;
  --panel: rgba(9, 19, 35, 0.72);
  --panel-strong: rgba(12, 26, 48, 0.92);
  --line: rgba(154, 177, 215, 0.16);
  --text: #e9f1ff;
  --muted: #9fb1d1;
  --brand: #78b7ff;
  --brand-strong: #4e94ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(120, 183, 255, 0.18), transparent 35%),
    radial-gradient(circle at top right, rgba(90, 140, 255, 0.14), transparent 32%),
    linear-gradient(180deg, #091423 0%, #06101d 100%);
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  padding: 24px;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.hero-content {
  max-width: 760px;
  padding: 48px 0 28px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.hero-copy,
.section-copy,
.card p,
.project-card p,
.status-text,
.updated-text,
.contact-note {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 60ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible,
.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #07111f;
  border-color: transparent;
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.panel {
  margin-top: 20px;
  padding: 32px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.about-grid,
.services-grid,
.projects-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.about-grid,
.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-strong);
}

.card,
.project-card {
  padding: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  text-decoration: none;
}

.contact-label,
.project-meta,
.project-description-label {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 18px;
}

.status-text,
.updated-text {
  margin-bottom: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card h3 {
  margin-bottom: 0;
}

.project-description {
  margin: 0;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.project-link::after {
  content: "\2192";
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

@media (max-width: 900px) {
  .about-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-inline,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero,
  .panel {
    padding: 22px;
  }

  .hero {
    min-height: auto;
  }

  .nav-links {
    gap: 12px;
  }
}
