:root {
  --bg: #020305;
  --bg-elevated: #05070b;
  --bg-soft: #070a11;
  --accent: #00c853;
  --accent-soft: rgba(0, 200, 83, 0.12);
  --accent-strong: rgba(0, 200, 83, 0.7);
  --text: #f5f7fb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.75);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --nav-height: 72px;
}

body.light {
  --bg: #f9fafb;
  --bg-elevated: #ffffff;
  --bg-soft: #eef2ff;
  --accent: #059669;
  --accent-soft: rgba(5, 150, 105, 0.12);
  --accent-strong: rgba(5, 150, 105, 0.9);
  --text: #020617;
  --text-muted: #6b7280;
  --border-subtle: rgba(148, 163, 184, 0.6);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

html,
body {
  scroll-behavior: auto;
}

.smooth-scroll {
  min-height: 100vh;
}

.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  z-index: -1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
      to bottom,
      rgba(2, 6, 23, 0.95),
      rgba(2, 6, 23, 0.75),
      transparent
    );
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-image {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 16px;
  border: 1px solid var(--accent-soft);
  background: radial-gradient(circle at top left, var(--accent-strong), #020617);
  color: #020617;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6),
    0 12px 30px rgba(16, 185, 129, 0.45);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
}

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

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 0.2s ease-out;
}

.nav a:hover {
  color: var(--accent);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.ghost-button {
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease-out;
}

.ghost-button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(15, 23, 42, 0.7);
}

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

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

.hero-content h1 {
  font-size: clamp(2.7rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin: 0.45rem 0 0.8rem;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  margin: 0 0 1.6rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.accent {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.9rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.6rem;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 16px 35px rgba(16, 185, 129, 0.4);
}

.primary-button:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 22px 55px rgba(16, 185, 129, 0.55);
}

.secondary-button {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(15, 23, 42, 0.7);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.82rem;
}

.meta-label {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.meta-value {
  font-weight: 500;
}

.hero-panel {
  background: radial-gradient(circle at top left, #0b1725, var(--bg-elevated));
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -120px;
  background-image: radial-gradient(
      circle at 10% 0,
      rgba(59, 249, 127, 0.16),
      transparent 45%
    ),
    radial-gradient(circle at 110% 100%, rgba(34, 197, 94, 0.16), transparent 46%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.status-pill {
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 197, 94, 0.6);
  background: rgba(6, 78, 59, 0.6);
  color: #bbf7d0;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.32);
}

.stack-card {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 1.4rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.stack-card h2 {
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
  color: var(--text-muted);
}

.stack-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.stack-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.stack-card li span:first-child {
  color: var(--text-muted);
}

.stack-card li span:last-child {
  font-weight: 500;
}

.code-snippet {
  background: radial-gradient(circle at 0 0, #1e293b, #020617);
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.dot.red {
  background: #f97373;
}

.dot.yellow {
  background: #facc15;
}

.dot.green {
  background: #22c55e;
}

.code-title {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.code-snippet pre {
  margin: 0;
  padding: 0.8rem 1rem 1rem;
  font-size: 0.78rem;
  color: #e5e7eb;
  overflow-x: auto;
}

.code-snippet code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: 3rem;
  align-items: flex-start;
}

.section-header h2 {
  margin: 0.3rem 0 0.7rem;
  font-size: 1.8rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 26rem;
}

.section-body p {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
}

.about-body {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.about-photo-wrapper {
  flex: 0 0 auto;
}

.about-photo {
  width: 180px;
  max-width: 40vw;
  border-radius: 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.9);
  object-fit: cover;
  background: #020617;
}

.about-copy {
  flex: 1 1 auto;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .about-body {
    flex-direction: column;
  }

  .about-photo {
    width: 100%;
  }
}

.skills-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.skill-card {
  background: radial-gradient(circle at top, #020617, var(--bg-soft));
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.skill-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.skill-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.project-card {
  background: radial-gradient(circle at top, #020617, var(--bg-soft));
  border-radius: 1.4rem;
  padding: 1.3rem 1.25rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 45% -40% -50%;
  background: radial-gradient(
    ellipse at top,
    rgba(34, 197, 94, 0.2),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

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

.project-pill {
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

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

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.1rem 0 0.2rem;
  padding: 0;
}

.project-meta li {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
}

.project-links {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.1rem;
}

.text-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.text-link::after {
  content: "↗";
  font-size: 0.75rem;
}

.timeline {
  margin-top: 2.2rem;
  border-left: 1px solid rgba(148, 163, 184, 0.4);
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.timeline-item {
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -1.7rem;
  top: 0.1rem;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(59, 249, 127, 0.18);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.timeline-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.contact-meta {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  font-size: 0.85rem;
}

.contact-meta a {
  color: var(--accent);
  text-decoration: none;
}

.contact-form {
  background: radial-gradient(circle at top, #020617, var(--bg-soft));
  border-radius: 1.6rem;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

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

.form-field {
  margin-bottom: 0.9rem;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out,
    background 0.16s ease-out;
}

body.light .form-field input,
body.light .form-field textarea {
  background: rgba(255, 255, 255, 0.85);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59, 249, 127, 0.6),
    0 16px 40px rgba(16, 185, 129, 0.4);
}

.full-width {
  width: 100%;
}

.form-success {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: #bbf7d0;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.4rem 0 1.6rem;
  background: radial-gradient(circle at bottom, #020617, #000000);
}

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

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

  .hero-panel {
    order: -1;
  }

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

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

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

  .timeline {
    padding-left: 1rem;
  }
}

@media (max-width: 720px) {
  .header-inner {
    gap: 0.75rem;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 2.4rem;
  }

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

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

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

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

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

