:root {
  --bg: #07111f;
  --bg-soft: #0d1b2e;
  --panel: #111c2c;
  --panel-soft: #16243a;
  --text: #eef6ff;
  --muted: #a8b5c7;
  --line: rgba(238, 246, 255, 0.14);
  --accent: #4aa8ff;
  --accent-dark: #7bc0ff;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.navbar {
  width: min(640px, calc(100% - 32px));
  margin: 12px auto 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(7, 17, 31, 0.76);
  backdrop-filter: blur(18px);
}

.logo {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--bg);
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.hero {
  min-height: 56vh;
  position: relative;
  display: grid;
  align-items: center;
  gap: 24px;
  padding: 86px 24px 46px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.98), rgba(13, 27, 46, 0.92) 58%, rgba(17, 25, 39, 0.98)),
    var(--bg);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.96), rgba(7, 17, 31, 0.76) 48%, rgba(7, 17, 31, 0.42)),
    linear-gradient(0deg, rgba(7, 17, 31, 0.94), rgba(7, 17, 31, 0.1) 45%);
}

.hero-content {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.eyebrow,
.section-kicker,
.project-meta {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(2rem, 4.8vw, 4.15rem);
  line-height: 1;
}

.hero-copy {
  max-width: 650px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  color: var(--bg);
  background: var(--accent);
}

.btn.primary:hover {
  background: #7bc0ff;
}

.btn.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.section {
  padding: 72px 24px;
}

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

.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 38px;
}

.section h2 {
  max-width: 760px;
  margin-top: 8px;
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.05;
}

.body-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.body-copy p + p {
  margin-top: 16px;
}

.about {
  background: var(--bg);
}

.work,
.contact {
  background: var(--bg-soft);
}

.section-heading {
  margin-bottom: 24px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.empty-state {
  max-width: 720px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
}

.project-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
}

.project-card h3 {
  margin-top: 22px;
  font-size: 1.35rem;
}

.project-card p {
  margin-top: 12px;
  color: var(--muted);
}

.project-card a {
  margin-top: auto;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

.skills {
  background: #0a1525;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-list span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(74, 168, 255, 0.24);
  border-radius: 8px;
  color: var(--text);
  background: rgba(74, 168, 255, 0.1);
  font-weight: 700;
}

.contact-layout {
  align-items: start;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

footer {
  padding: 22px 24px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  background: var(--bg);
}

@media (max-width: 820px) {
  .navbar {
    width: calc(100% - 32px);
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(7, 17, 31, 0.96);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: 84px;
  }

  .two-column,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 20px;
  }
}

@media (max-width: 520px) {
  .navbar {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .hero {
    padding-top: 82px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 44px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .project-card {
    padding: 20px;
  }
}
