/* =========================================================
   Base
   ========================================================= */

:root {
  --bg: #0b1220;
  --bg-alt: #111827;
  --surface: rgba(17, 24, 39, 0.78);
  --surface-strong: #172033;

  --text: #f8fafc;
  --text-muted: #a8b3c7;

  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.12);

  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(56, 189, 248, 0.35);

  --success: #4ade80;

  --shadow:
    0 20px 60px rgba(0, 0, 0, 0.28);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --content-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text);

  background:
    radial-gradient(
      circle at top left,
      rgba(14, 165, 233, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at top right,
      rgba(99, 102, 241, 0.10),
      transparent 30%
    ),
    var(--bg);

  line-height: 1.6;
}

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

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


/* =========================================================
   Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  border-bottom: 1px solid var(--border);

  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(16px);
}

.site-nav {
  width: min(
    calc(100% - 32px),
    var(--content-width)
  );

  margin: 0 auto;
  padding: 18px 0;

  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  position: relative;

  color: var(--text-muted);

  font-size: 0.95rem;
  font-weight: 600;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-links a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -7px;

  width: 100%;
  height: 2px;

  border-radius: 999px;
  background: var(--accent);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}


/* =========================================================
   Shared Layout
   ========================================================= */

.section,
.hero {
  width: min(
    calc(100% - 32px),
    var(--content-width)
  );

  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.hero h1 {
  margin: 0;

  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(
    2rem,
    5vw,
    3rem
  );
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;

  color: var(--text-muted);

  font-size: 1.05rem;
}


/* =========================================================
   Eyebrow Labels
   ========================================================= */

.eyebrow {
  margin: 0;

  color: var(--accent);

  font-size: 0.82rem;
  font-weight: 800;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
  min-height: 72vh;

  display: flex;
  align-items: center;

  padding: 96px 0;
}

.hero-content {
  width: 100%;
  max-width: 1100px;
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-bottom: 18px;
}

.hero-label {
  margin: 0;

  color: var(--text-muted);

  font-size: 0.82rem;
  font-weight: 600;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-label::before {
  content: "/";

  margin-right: 14px;

  color: var(--border-strong);
}

.hero h1 {
  max-width: none;

  font-size: clamp(
    3rem,
    5vw,
    5rem
  );
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-description {
  max-width: 700px;

  margin: 26px 0 0;

  color: var(--text-muted);

  font-size: clamp(
    1.05rem,
    2vw,
    1.25rem
  );
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 34px;
}


/* =========================================================
   Buttons
   ========================================================= */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  min-height: 46px;

  padding: 11px 18px;

  border: 1px solid transparent;
  border-radius: var(--radius-sm);

  font-weight: 700;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.primary-button {
  color: #04111a;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      #67e8f9
    );

  box-shadow:
    0 10px 30px rgba(56, 189, 248, 0.20);
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow:
    0 14px 36px rgba(56, 189, 248, 0.28);
}

.secondary-button {
  color: var(--text);

  border-color: var(--border);

  background:
    rgba(255, 255, 255, 0.035);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--border-strong);

  background:
    rgba(56, 189, 248, 0.08);
}

.text-link {
  display: inline-flex;
  align-items: center;

  color: var(--accent);

  font-weight: 700;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: #7dd3fc;
  transform: translateY(-1px);
}


/* =========================================================
   Projects
   ========================================================= */

.projects-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(300px, 1fr));

  gap: 24px;
}

.project-card {
  position: relative;
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.015)
    ),
    var(--surface);

  box-shadow: var(--shadow);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.project-card::before {
  content: "";

  position: absolute;
  inset: 0 0 auto 0;

  height: 3px;

  background:
    linear-gradient(
      90deg,
      var(--accent),
      #818cf8
    );
}

.project-card:hover {
  transform: translateY(-5px);

  border-color: var(--border-strong);

  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.35);
}

.project-content {
  padding: 32px;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin: 0 0 18px;

  color: var(--success);

  font-size: 0.82rem;
  font-weight: 800;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-status::before {
  content: "";

  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--success);

  box-shadow:
    0 0 14px rgba(74, 222, 128, 0.75);
}

.project-card h3 {
  margin: 0;

  font-size: clamp(
    1.8rem,
    4vw,
    2.4rem
  );

  letter-spacing: -0.02em;
}

.project-description {
  margin: 16px 0 0;

  color: var(--text-muted);
}


/* =========================================================
   Tech Stack
   ========================================================= */

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 24px;
}

.tech-stack span {
  padding: 7px 11px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: #cbd5e1;

  background:
    rgba(255, 255, 255, 0.035);

  font-size: 0.82rem;
  font-weight: 600;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 14px;

  margin-top: 28px;
}

.project-meta {
  margin: 24px 0 0;

  color: #738097;

  font-size: 0.82rem;
}


/* =========================================================
   Infrastructure
   ========================================================= */

.infrastructure-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 18px;
}

.infrastructure-card {
  min-height: 150px;

  padding: 24px;

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  background:
    rgba(255, 255, 255, 0.025);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.infrastructure-card:hover {
  transform: translateY(-3px);

  border-color: var(--border-strong);

  background:
    rgba(56, 189, 248, 0.055);
}

.infrastructure-card h3 {
  margin: 0;

  font-size: 1rem;
}

.infrastructure-card p {
  margin: 10px 0 0;

  color: var(--text-muted);

  font-size: 0.94rem;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  width: min(
    calc(100% - 32px),
    var(--content-width)
  );

  margin: 0 auto;

  padding: 32px 0 42px;

  border-top: 1px solid var(--border);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  color: var(--text-muted);

  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}


/* =========================================================
   Accessibility
   ========================================================= */

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {

  .hero h1 span {
    white-space: normal;
  }

}


@media (max-width: 900px) {

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

}


@media (max-width: 700px) {

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

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;

    gap: 14px 20px;
  }

  .hero {
    min-height: auto;

    padding: 72px 0;
  }

  .hero-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .hero-label::before {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .project-content {
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;

    align-items: flex-start;
  }

}


@media (max-width: 520px) {

  .infrastructure-grid {
    grid-template-columns: 1fr;
  }

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

  .button,
  .text-link {
    width: 100%;

    justify-content: center;
  }

}