:root {
  --bg: #0b1020;
  --bg-soft: #111827;
  --panel: rgba(17, 24, 39, 0.8);
  --card: #121a2e;
  --card-alt: #18233d;
  --text: #e5ecff;
  --muted: #a8b5d1;
  --primary: #79a8ff;
  --primary-strong: #4f8cff;
  --highlight: #c3d1ff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(15, 23, 42, 0.35);
  --green: #5be7a5;
  --header-bg: rgba(11, 16, 32, 0.7);
  --card-bg: rgba(18, 26, 46, 0.9);
  --button-bg: rgba(255, 255, 255, 0.03);
  --button-hover: rgba(255, 255, 255, 0.08);
}

body.light-theme {
  --bg: #f5f7ff;
  --bg-soft: #eef3ff;
  --panel: rgba(255, 255, 255, 0.8);
  --card: #ffffff;
  --card-alt: #edf3ff;
  --text: #141d33;
  --muted: #5c6b8a;
  --primary: #3366ff;
  --primary-strong: #224fc7;
  --highlight: #21314d;
  --border: rgba(20, 29, 51, 0.12);
  --shadow: rgba(74, 92, 136, 0.18);
  --green: #0d9f67;
  --header-bg: rgba(255, 255, 255, 0.82);
  --card-bg: rgba(255, 255, 255, 0.9);
  --button-bg: rgba(51, 102, 255, 0.06);
  --button-hover: rgba(51, 102, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(121, 168, 255, 0.25), transparent 22%),
    radial-gradient(circle at 80% 0%, rgba(91, 231, 165, 0.12), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

a,
button {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9e6ff, var(--primary));
  color: #09111d;
  font-size: 0.8rem;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a {
  transition: color 0.2s ease;
}

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

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--button-bg);
  color: var(--text);
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--button-hover);
  transform: translateY(-1px);
  border-color: rgba(121, 168, 255, 0.5);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow,
.section-label {
  margin: 0 0 1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
  font-size: 0.76rem;
}

.hero-copy h1,
.section h2 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 12ch;
}

.subtitle {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 1rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #08111f;
  box-shadow: 0 12px 30px rgba(79, 140, 255, 0.35);
}

.btn-secondary {
  border-color: var(--border);
  background: var(--button-bg);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.social-row a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--highlight);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-row a:hover,
.social-row a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(121, 168, 255, 0.6);
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-list li::before {
  content: "•";
  color: var(--primary);
  margin-right: 0.6rem;
}

.hero-card {
  background: linear-gradient(180deg, rgba(24, 35, 61, 0.95), rgba(17, 24, 39, 0.9));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 60px var(--shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

body.light-theme .hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 243, 255, 0.9));
}

.card-body {
  text-align: center;
}

.card-body h2 {
  margin: 0;
  font-size: 1.9rem;
}

.card-body p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

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

.stat-grid div {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 0.75rem;
  text-align: center;
}

body.light-theme .stat-grid div,
body.light-theme .info-card,
body.light-theme .project-card,
body.light-theme .contact-box {
  background: var(--card-bg);
}

.stat-grid strong {
  display: block;
  font-size: 1.3rem;
}

.stat-grid span {
  color: var(--muted);
  font-size: 0.8rem;
}

.section {
  padding: 4.5rem 0;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1.5rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.section-grid p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.alt-section {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.card-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.info-card,
.project-card {
  background: rgba(18, 26, 46, 0.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.info-card:hover,
.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(121, 168, 255, 0.5);
}

.info-card h3,
.project-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.info-card p,
.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--highlight);
  background: rgba(121, 168, 255, 0.12);
  border: 1px solid rgba(121, 168, 255, 0.26);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.contact-section {
  padding-bottom: 5rem;
}

.contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(121, 168, 255, 0.15), rgba(17, 24, 39, 0.9));
  border: 1px solid var(--border);
  border-radius: 24px;
}

.contact-box h2 {
  margin: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--highlight);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links a:hover,
.social-links a:focus-visible {
  text-decoration: underline;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.08);
}

.footer-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

@media (max-width: 760px) {
  .hero-grid,
  .section-grid,
  .card-grid,
  .project-grid,
  .contact-box {
    grid-template-columns: 1fr;
    display: grid;
  }

  .main-nav {
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .contact-box {
    padding: 1.5rem;
  }

  .contact-actions {
    display: grid;
    gap: 0.75rem;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn,
  .theme-toggle {
    width: 100%;
  }
}
