:root {
  --page-bg: #0a0a0a;
  --surface: rgba(15, 15, 15, 0.8);
  --surface-soft: rgba(12, 12, 12, 0.6);
  --card: rgba(255, 255, 255, 0.02);
  --card-highlight: linear-gradient(135deg,
      rgba(119, 188, 255, 0.1),
      rgba(7, 29, 46, 0.3));
  --accent: #7cc6ff;
  --text: #e5e8f0;
  --muted: #8b92a3;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --grid-gap: clamp(1.5rem, 2vw, 2.4rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050505;
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  position: relative;
  overflow-x: hidden;
}

#starsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(140, 165, 190, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 60%, rgba(120, 150, 180, 0.035) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(130, 155, 185, 0.03) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
  animation: nebulaDrift 30s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 10% 20%, white 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, white 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, white 1px, transparent 1px),
    radial-gradient(circle at 90% 10%, white 1px, transparent 1px),
    radial-gradient(circle at 20% 90%, white 0.5px, transparent 0.5px),
    radial-gradient(circle at 60% 30%, white 0.5px, transparent 0.5px),
    radial-gradient(circle at 30% 60%, white 0.5px, transparent 0.5px),
    radial-gradient(circle at 70% 70%, white 0.5px, transparent 0.5px);
  background-size:
    200px 200px,
    250px 250px,
    300px 300px,
    220px 220px,
    180px 180px,
    240px 240px,
    280px 280px,
    200px 200px;
  background-position:
    0 0,
    40px 60px,
    80px 20px,
    100px 100px,
    20px 40px,
    60px 80px,
    140px 60px,
    180px 140px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: twinkle 8s ease-in-out infinite;
}

@keyframes nebulaDrift {
  0%, 100% {
    opacity: 1;
    transform: translate(0, 0);
  }
  50% {
    opacity: 0.8;
    transform: translate(20px, -20px);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}


main {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.container {
  width: min(1200px, 90vw);
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(180%);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  user-select: none;
  line-height: 1;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  display: block;
}

.brand-name {
  user-select: none;
}

.brand-logo-svg {
  display: block;
  height: 28px;
  width: auto;
  overflow: visible;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--text);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  white-space: nowrap;
  justify-content: center;
  margin: 0;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.25rem;
  display: inline-block;
  line-height: 1;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.25rem;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.cta {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
  position: relative;
  isolation: isolate;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(160, 160, 160, 0.3));
  z-index: -1;
  opacity: 1;
  transition: opacity 200ms ease;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.95);
  z-index: -1;
  transition: background 200ms ease;
}

.cta:hover {
  border-color: transparent;
}

.cta:hover::before {
  opacity: 1;
}

.cta:hover::after {
  background: var(--surface);
}

.hero {
  padding: clamp(6rem, 12vw, 10rem) 0;
  display: flex;
  align-items: center;
  min-height: 80vh;
}

.hero .container {
  width: min(1200px, 90vw);
}

.hero .grid {
  align-items: stretch;
}

.hero-copy {
  grid-column: span 6;
  padding-right: 2rem;
  animation: fadeInUp 0.5s ease-out;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-panel {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeInUp 0.5s ease-out 0.1s both;
  height: auto;
  justify-content: flex-start;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.intro {
  color: var(--muted);
  max-width: 55ch;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.intro span {
  font-weight: 700;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.5rem 0 2rem;
}

.button {
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  transition: transform 200ms ease, border-color 200ms ease;
  position: relative;
  isolation: isolate;
}

.button::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7cc6ff, #5a9cff, #8b5cf6);
  z-index: -1;
  opacity: 0.85;
  transition: opacity 200ms ease;
}

.button.primary {
  background: linear-gradient(135deg, #6b8fb3, #7ca3c6);
  color: #ffffff;
  border-color: transparent;
  position: relative;
}

.button.primary span {
  position: relative;
  z-index: 3;
}

.button.primary::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5a7a9f, #6b8fb3);
  z-index: 2;
  opacity: 1;
  transition: opacity 1000ms ease;
}

.button.primary::before {
  background: linear-gradient(135deg, #7cc6ff, #5a9cff, #8b5cf6);
  opacity: 1;
  z-index: 1;
}

.button.ghost {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  color: #e5e8f0;
  border-color: transparent;
}

.button.ghost::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: -1;
}

.button.ghost::before {
  background: linear-gradient(135deg, rgba(124, 198, 255, 0.7), rgba(90, 156, 255, 0.6), rgba(139, 92, 246, 0.5));
  opacity: 0.9;
}

.button:hover,
.button:focus-visible {
  transform: none;
}

.button:hover::before,
.button:focus-visible::before {
  opacity: 1;
}

.button.primary:hover::after {
  opacity: 0;
}

.button.ghost:hover {
  background: rgba(10, 10, 10, 0.95);
}

.button.ghost:hover::after {
  background: rgba(10, 10, 10, 0.95);
}

.hero-meta {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.meta-label {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.meta-value {
  font-size: 1.75rem;
  font-weight: 600;
  display: block;
  color: var(--text);
}

.panel-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.panel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 198, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.panel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%,
      rgba(255, 255, 255, 0.04),
      transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.panel-card:hover::after {
  opacity: 1;
}

.panel-card>* {
  position: relative;
  z-index: 1;
}

.panel-card.highlight {
  background: var(--card-highlight);
  border-color: rgba(124, 198, 255, 0.35);
}

.hero-panel .panel-card:nth-child(1) {
  background: linear-gradient(140deg, rgba(11, 16, 22, 0.95), rgba(8, 11, 15, 0.8));
  border-color: rgba(100, 140, 180, 0.25);
  box-shadow: 0 8px 24px rgba(20, 40, 60, 0.1);
  transition: all 0.4s ease;
}

.hero-panel .panel-card:nth-child(1):hover {
  background: linear-gradient(140deg, rgba(11, 20, 30, 0.95), rgba(7, 12, 18, 0.8));
  border-color: rgba(130, 220, 255, 0.4);
  box-shadow: 0 8px 24px rgba(31, 154, 255, 0.15);
}

.hero-panel .panel-card:nth-child(1) .panel-tag {
  background: rgba(50, 90, 130, 0.08);
  border-color: rgba(100, 140, 180, 0.25);
  color: rgba(180, 200, 220, 0.9);
  transition: all 0.4s ease;
}

.hero-panel .panel-card:nth-child(1):hover .panel-tag {
  background: rgba(41, 133, 255, 0.08);
  border-color: rgba(124, 198, 255, 0.35);
  color: rgba(198, 226, 255, 0.9);
}

.hero-panel .panel-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(12, 18, 28, 0.95), rgba(10, 13, 20, 0.85));
  border-color: rgba(80, 120, 160, 0.3);
  box-shadow: 0 10px 28px rgba(30, 50, 80, 0.12);
  transition: all 0.4s ease;
}

.hero-panel .panel-card:nth-child(2):hover {
  background: linear-gradient(135deg, rgba(14, 32, 60, 0.95), rgba(10, 16, 38, 0.85));
  border-color: rgba(92, 157, 255, 0.45);
  box-shadow: 0 10px 28px rgba(78, 135, 255, 0.2);
}

.hero-panel .panel-card:nth-child(2) ul li {
  color: rgba(210, 220, 235, 0.95);
  transition: color 0.4s ease;
}

.hero-panel .panel-card:nth-child(2):hover ul li {
  color: rgba(230, 240, 255, 0.95);
}

.hero-panel .panel-card:nth-child(3) {
  background: linear-gradient(145deg, rgba(18, 14, 24, 0.95), rgba(12, 10, 16, 0.85));
  border-color: rgba(120, 90, 140, 0.25);
  box-shadow: 0 10px 26px rgba(50, 35, 60, 0.12);
  transition: all 0.4s ease;
}

.hero-panel .panel-card:nth-child(3):hover {
  background: linear-gradient(145deg, rgba(33, 16, 46, 0.95), rgba(14, 10, 26, 0.85));
  border-color: rgba(190, 128, 255, 0.35);
  box-shadow: 0 10px 26px rgba(147, 74, 255, 0.18);
}

.hero-panel .panel-card:nth-child(1) .panel-value,
.hero-panel .panel-card:nth-child(3) .panel-value {
  font-weight: 400;
  color: rgba(210, 218, 230, 0.95);
  transition: color 0.4s ease;
}

.hero-panel .panel-card:nth-child(1):hover .panel-value,
.hero-panel .panel-card:nth-child(3):hover .panel-value {
  color: rgba(228, 233, 245, 0.95);
}

.hero-panel .panel-card:nth-child(3) .chip-row span {
  background: rgba(130, 100, 150, 0.08);
  border-color: rgba(150, 120, 170, 0.25);
  transition: all 0.4s ease;
}

.hero-panel .panel-card:nth-child(3):hover .chip-row span {
  background: rgba(209, 173, 255, 0.08);
  border-color: rgba(209, 173, 255, 0.3);
}

.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.panel-value {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.panel-tag {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  width: fit-content;
  background: rgba(255, 255, 255, 0.02);
}

.panel-card ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text);
  line-height: 1.8;
  list-style-type: disc;
  flex: 1;
}

.panel-card ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.panel-card ul li:last-child {
  margin-bottom: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.chip-row span {
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chip-row span:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-heading p {
  color: var(--muted);
}

.about {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--grid-gap);
}

.about-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--surface);
  min-height: 200px;
  backdrop-filter: blur(10px);
}

.capabilities {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--grid-gap);
}

.card-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  min-height: 220px;
  backdrop-filter: blur(10px);
}

.projects {
  padding: clamp(2rem, 4vw, 8rem) 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--grid-gap);
}

.project-grid article {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(8, 8, 10, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 320px;
  backdrop-filter: blur(10px);
}

.project-grid article h3 {
  margin: 0;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--accent);
  font-size: 0.85rem;
  font-family: "Fira Code", "JetBrains Mono", "Consolas", monospace;
  text-transform: lowercase;
}

.text-link {
  color: var(--accent);
  font-weight: 500;
}

.experience {
  background: var(--surface-soft);
}

.timeline {
  display: grid;
  gap: 1.5rem;
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.timeline article {
  position: relative;
  padding-left: 1rem;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--page-bg);
}

.timeline-year {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, rgba(86, 133, 255, 0.25), transparent);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  position: relative;
  z-index: 1;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--accent);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding: clamp(4rem, 8vw, 6rem) 0;
  }

  .hero-copy {
    grid-column: auto;
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .hero-panel {
    grid-column: auto;
  }

  .brand {
    flex-shrink: 0;
  }

  .cta {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.75rem;
  }

  .panel-card {
    padding: 1.25rem;
  }

  .brand {
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
  }

  .cta {
    flex-shrink: 0;
    white-space: nowrap;
  }
}