:root {
  --bg: #050816;
  --bg-elevated: #0b1020;
  --bg-alt: #070c1a;
  --text: #f5f5f7;
  --muted: #a3acc5;
  --accent: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.18);
  --border-subtle: rgba(148, 163, 184, 0.25);
  --chip-bg: rgba(148, 163, 184, 0.12);
  --danger: #f97373;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --nav-height: 64px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.88),
    rgba(2, 6, 23, 0.7),
    transparent
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.site-logo {
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at 0 0, #1f2937 0, transparent 55%),
    rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.5);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.1rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #22c1c3, var(--accent));
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.site-nav a:hover::after {
  width: 100%;
}

/* Mobile nav */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: var(--muted);
}

/* Hero */

.hero {
  position: relative;
  min-height: 70vh;
  padding: 5.5rem 0 4.5rem;
  display: flex;
  align-items: center;
  color: var(--text);
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.75)
    ),
    url("/assets/images/canary_laser.jpg");
  background-size: cover;
  background-position: center;
}

.hero .container {
  max-width: none;
  padding-left: 8%;
  padding-right: 4%;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-text {
  max-width: 40rem;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.hero-text::before {
  content: none;
}

.hero-text > * {
  position: relative;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  margin-bottom: 0.9rem;
}

.hero-kicker::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.24);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
}

.hero-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 40rem;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.12s ease-out,
    border-color 0.12s ease-out,
    transform 0.07s ease-out,
    box-shadow 0.12s ease-out;
}

.button.primary {
  background: linear-gradient(135deg, #22c1c3, var(--accent));
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.6);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(124, 58, 237, 0.75);
  text-decoration: none;
}

.button.ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--muted);
}

.button.ghost:hover {
  border-color: rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 1);
  text-decoration: none;
}

/* Sections */

.section {
  padding: 3.5rem 0 3.25rem;
}

.section-alt {
  background: radial-gradient(
    circle at top left,
    rgba(148, 163, 184, 0.16) 0,
    rgba(15, 23, 42, 0.98) 45%,
    #020617 80%
  );
}

.section h2 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-intro {
  max-width: 34rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.section p {
  line-height: 1.7;
}

.about-highlights {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}

.project-card {
  padding: 1.1rem 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    circle at top left,
    rgba(148, 163, 184, 0.12) 0,
    rgba(15, 23, 42, 0.96) 42%,
    #020617 100%
  );
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
}

.project-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.project-card p {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.project-link {
  font-size: 0.88rem;
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.08rem;
}

.project-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.08rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #22c1c3, var(--accent));
  opacity: 0.7;
  transition: opacity 0.12s ease-out;
}

.project-link:hover::after {
  opacity: 1;
}

/* Contact */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-label {
  display: inline-block;
  min-width: 4rem;
  margin-right: 0.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.contact-list a {
  color: #e5e7eb;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  padding: 1.3rem 0 1.6rem;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.9) 0,
    rgba(2, 6, 23, 0.95) 45%,
    #000 100%
  );
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-note {
  opacity: 0.8;
}

/* Responsiveness */

@media (max-width: 720px) {
  .hero {
    min-height: 50vh;
    padding: 4.5rem 0 3rem;
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.9)
      ),
      url("/assets/images/canary_laser.jpg");
  }

  .hero-text {
    margin-left: 0;
    padding: 0 1.25rem;
  }

  .section {
    padding: 3rem 0 2.8rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: var(--nav-height);
    padding: 0.2rem 1.25rem 0.9rem;
    background: radial-gradient(
      circle at top,
      rgba(15, 23, 42, 0.96) 0,
      rgba(2, 6, 23, 0.98) 55%,
      #000 100%
    );
    transform-origin: top;
    transform: scaleY(0.7);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.15s ease-out,
      transform 0.15s ease-out;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }
}

