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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text',
    'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, #1e293b, #020617 40%, #000 80%);
  color: #e5e7eb;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section.alt {
  background: radial-gradient(circle at top right, rgba(148, 163, 184, 0.12),
      rgba(15, 23, 42, 0.9));
}

.section-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: #9ca3af;
  max-width: 32rem;
}

.overline {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92),
      rgba(15, 23, 42, 0.5));
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.mobile-nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mobile-nav-toggle span {
  position: relative;
  width: 1.1rem;
  height: 2px;
  background: #e5e7eb;
}

.mobile-nav-toggle span::before,
.mobile-nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
}

.mobile-nav-toggle span::before {
  top: -0.3rem;
}

.mobile-nav-toggle span::after {
  top: 0.3rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav a {
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.2s ease;
}

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

.hero {
  padding-top: 6rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-sub {
  color: #d1d5db;
  margin-bottom: 1rem;
}

.hero-body {
  color: #9ca3af;
  margin-bottom: 2rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, border-color 0.12s ease,
    color 0.12s ease;
}

.btn-primary {
  background: #2563eb;
  color: #f9fafb;
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.mini-card {
  border-radius: 1rem;
  padding: 0.8rem;
  font-size: 0.8rem;
  text-align: center;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.35),
      rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

.projects-overview {
  padding-top: 4rem;
}

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

.project-card {
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background 0.15s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top left,
      rgba(37, 99, 235, 0.32), rgba(15, 23, 42, 0.96));
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-one-liner {
  font-size: 0.9rem;
  color: #d1d5db;
}

.card-keywords {
  font-size: 0.8rem;
  color: #9ca3af;
}

.card-link {
  margin-top: auto;
  font-size: 0.85rem;
  color: #bfdbfe;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.project-detail {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.project-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.project-lead {
  color: #d1d5db;
  margin-bottom: 0.75rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.project-meta a {
  color: #bfdbfe;
}

.project-body {
  margin-top: 2rem;
}

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

.project-columns h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.project-columns ul {
  margin-bottom: 1.4rem;
  padding-left: 1.2rem;
}

.project-columns li {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 0.35rem;
}

.project-columns li strong {
  color: #e5e7eb;
}

.archion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 2.5rem;
}

.archion-text p {
  color: #d1d5db;
  margin-bottom: 1rem;
}

.archion-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.archion-panel {
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.87);
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.3rem 1.2rem;
}

.archion-panel h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.archion-panel ul {
  list-style: none;
}

.archion-panel li {
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 0.25rem;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 2.5rem;
}

.about-text p {
  color: #d1d5db;
  margin-bottom: 1rem;
}

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

.about-panel {
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.87);
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.3rem 1.2rem;
}

.about-panel h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.about-panel ul {
  list-style: none;
}

.about-panel li {
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 0.25rem;
}

.contact {
  background: radial-gradient(circle at center,
      rgba(59, 130, 246, 0.32), rgba(15, 23, 42, 0.95));
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  padding: 0.75rem 1.5rem 1.25rem;
  background: rgba(15, 23, 42, 0.97);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(18px);
  z-index: 40;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav a {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.2rem 0 1.8rem;
  background: rgba(15, 23, 42, 0.95);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-grid {
    order: -1;
  }

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

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

  .about-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .projects-grid {
    gap: 1rem;
  }

  .project-card {
    padding: 1.3rem 1.1rem;
  }

  .nav {
    display: none;
  }

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