:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-2: #0f1620;
  --glass: rgba(13, 19, 28, 0.72);
  --stroke: rgba(143, 255, 243, 0.18);
  --text: #e6f1f4;
  --muted: #9db0b8;
  --accent: #35f3ff;
  --accent-2: #7cff6b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #14202b, #0b0f14 55%);
  color: var(--text);
  line-height: 1.6;
}

.bg-motion {
  position: fixed;
  inset: -20%;
  background: radial-gradient(circle at 20% 30%, rgba(53, 243, 255, 0.09), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(124, 255, 107, 0.1), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(53, 243, 255, 0.07), transparent 50%);
  opacity: 0.9;
  z-index: -4;
  pointer-events: none;
  animation: bgDrift 26s ease-in-out infinite;
  will-change: transform;
}

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

.inline-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(53, 243, 255, 0.6);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.inline-link:hover {
  color: var(--accent-2);
  border-bottom-color: rgba(124, 255, 107, 0.7);
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 999;
  box-shadow: 0 0 12px rgba(53, 243, 255, 0.6);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(53, 243, 255, 0.05)),
    linear-gradient(90deg, transparent 95%, rgba(53, 243, 255, 0.05));
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
  transform: translateZ(0);
  z-index: -2;
  animation: gridMove 30s linear infinite;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(53, 243, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(124, 255, 107, 0.2), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(53, 243, 255, 0.12), transparent 50%);
  background-size: 120% 120%;
  pointer-events: none;
  z-index: -3;
  animation: driftGlow 18s ease-in-out infinite;
}

.bg-glow::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 30%, rgba(53, 243, 255, 0.08), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(124, 255, 107, 0.08), transparent 65%);
  animation: driftGlowAlt 24s ease-in-out infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(9, 13, 18, 0.88), rgba(9, 13, 18, 0.62));
  border-bottom: 1px solid rgba(143, 255, 243, 0.18);
  box-shadow: 0 10px 30px rgba(2, 6, 10, 0.45);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 243, 255, 0.7), transparent);
  opacity: 0.6;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.nav-toggle-checkbox {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(143, 255, 243, 0.2);
  background: rgba(6, 10, 14, 0.6);
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #041014;
  box-shadow: 0 10px 30px rgba(53, 243, 255, 0.25);
}

.btn.ghost {
  background: rgba(6, 10, 14, 0.5);
  border-color: rgba(143, 255, 243, 0.2);
  color: var(--text);
}

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

@keyframes driftGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0 0;
  }
  50% {
    transform: translate3d(0, -12px, 0) scale(1.03);
    background-position: 30px -20px;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0 0;
  }
}

@keyframes driftGlowAlt {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 14px, 0) scale(1.02);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes gridMove {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 80px, 80px 0;
  }
}

@keyframes bgDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -24px, 0) scale(1.03);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
  padding-top: 120px;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 12px 0 16px;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  animation: letterFade 0.6s ease forwards;
}

@keyframes letterFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  color: var(--accent);
}

.hero-subtitle {
  color: var(--muted);
  max-width: 560px;
}


.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.meta-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(53, 243, 255, 0.08);
  border: 1px solid rgba(53, 243, 255, 0.2);
  font-size: 0.85rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.badge {
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(124, 255, 107, 0.4);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--accent-2);
  background: rgba(124, 255, 107, 0.08);
}

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


.glass {
  background: var(--glass);
  border: 1px solid rgba(143, 255, 243, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-title {
  font-weight: 600;
}

.panel-status {
  font-size: 0.75rem;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(53, 243, 255, 0.16);
  border: 1px solid rgba(53, 243, 255, 0.3);
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.panel-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  border-bottom: 1px dashed rgba(143, 255, 243, 0.12);
  padding-bottom: 8px;
}

.panel-label {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.panel-value {
  color: var(--text);
}

.panel-footer {
  margin-top: 16px;
  color: var(--accent-2);
}

.mono {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 0.85rem;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--muted);
  max-width: 720px;
}

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


.card {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(53, 243, 255, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

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

.card h3 {
  margin-top: 0;
}

.scenario {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(300px, 1.3fr);
  gap: 24px;
  padding: 24px;
}

.scenario-steps,
.scenario-actions {
  display: grid;
  gap: 12px;
}

.scenario-steps button,
.scenario-actions button {
  background: rgba(6, 10, 14, 0.5);
  border: 1px solid rgba(143, 255, 243, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.scenario-steps button.active,
.scenario-actions button.active {
  border-color: var(--accent);
  transform: translateY(-1px);
}


.scenario-progress {
  margin-top: 16px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(53, 243, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}

.scenario-outcome {
  margin-top: 16px;
  color: var(--accent-2);
  font-weight: 500;
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline-item {
  padding: 20px;
  border-left: 2px solid rgba(53, 243, 255, 0.3);
  position: relative;
}

.timeline-item.has-links {
  padding-right: 200px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(53, 243, 255, 0.6);
}

.timeline-skill {
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--accent-2);
  border: 1px solid rgba(124, 255, 107, 0.35);
  background: rgba(124, 255, 107, 0.08);
}

.timeline-links {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-links .btn {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-bar button {
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(143, 255, 243, 0.2);
  background: rgba(6, 10, 14, 0.5);
  color: var(--text);
  cursor: pointer;
}

.filter-bar button.active {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}


.skill-card {
  padding: 18px;
}

.skill-chip {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(143, 255, 243, 0.2);
  color: var(--muted);
}

.skill-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.skill-item strong {
  flex: 1;
  min-width: 0;
}

.skill-item .skill-chip {
  margin-top: 0;
  white-space: nowrap;
}

.badge-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 800px) {
  .badge-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .badge-wall {
    grid-template-columns: 1fr;
  }
}

.flex-center-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.skills-grid.flex-center-grid > .skill-card {
  flex: 1 1 320px;
  max-width: 360px;
}

.card-grid.flex-center-grid > .card {
  flex: 1 1 240px;
  max-width: 300px;
}

.badge-wall.flex-center-grid > .badge-card {
  flex: 1 1 220px;
  max-width: 260px;
}


@media (max-width: 800px) {
  .timeline-item.has-links {
    padding-right: 20px;
  }

  .timeline-links {
    position: static;
    margin-top: 12px;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.badge-card {
  padding: 18px;
}

.cert-link {
  display: grid;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.cert-preview {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(143, 255, 243, 0.18);
  box-shadow: 0 12px 30px rgba(5, 10, 14, 0.5);
  position: relative;
}

.cert-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(6, 10, 14, 0.85));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform 0.3s ease;
}

.cert-preview.placeholder {
  height: 160px;
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", "Courier New", monospace;
  color: var(--accent-2);
  background: linear-gradient(135deg, rgba(53, 243, 255, 0.08), rgba(6, 10, 14, 0.9));
  border: 1px dashed rgba(124, 255, 107, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.badge-card:hover .cert-preview img {
  transform: scale(1.03);
}

.badge-card:hover .cert-preview::after {
  opacity: 0.6;
}

.badge-card .btn {
  width: fit-content;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.about-card {
  padding: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.8fr);
  gap: 24px;
}

.contact-form {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(143, 255, 243, 0.2);
  background: rgba(6, 10, 14, 0.6);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
}

.contact-form label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-top: 6px;
  width: fit-content;
}

.checkbox span {
  display: inline;
  margin: 0;
  white-space: nowrap;
}

.checkbox input {
  margin: 0;
}

.contact-card {
  padding: 24px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.fineprint {
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(143, 255, 243, 0.1);
  color: var(--muted);
}

.logo.small {
  font-size: 0.9rem;
}

.logo.small img {
  height: 22px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 24px;
    right: 24px;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--glass);
    border: 1px solid rgba(143, 255, 243, 0.2);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .nav-links a {
    padding: 6px 8px;
  }

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

  .nav-toggle-checkbox:checked + .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle-checkbox:checked + .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-checkbox:checked + .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-toggle-checkbox:checked ~ .nav-links {
    display: flex;
  }

  .scenario,
  .contact-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {
  .section {
    padding: 72px 20px;
  }

  .hero {
    padding-top: 96px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .reveal,
  .progress-fill {
    transition: none;
    animation: none;
  }
}
