:root {
  color-scheme: dark;
  --font-body: "Sora", system-ui, -apple-system, sans-serif;
  --font-display: "Newsreader", serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --bg: #0b0f19;
  --bg-strong: #0b0f19;
  --ink: #f9fafb;
  --muted: #9ca3af;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --card: #111827;
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.4);
  --glow: 0 0 30px rgba(59, 130, 246, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  animation: gridDrift 18s linear infinite;
  pointer-events: none;
  z-index: 0;
}

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

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

.container {
  width: min(1240px, 94vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 18px;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding-bottom: 6px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  padding: 110px 0 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.25), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.18), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.2), transparent 55%);
  animation: glowShift 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes glowShift {
  0% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
}

@keyframes gridDrift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-48px);
  }
}

.hero-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3.5vw + 1rem, 4rem);
  margin: 10px 0 8px;
  text-shadow: 0 0 22px rgba(59, 130, 246, 0.35);
}

.hero-role {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
}

.hero-actions {
  margin: 28px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


.btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.btn.primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.55);
}

.btn.ghost {
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(12px);
}

.btn.ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

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

.hero-cards {
  display: grid;
  gap: 18px;
}

.hero-visual {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: start;
  order: -1;
}

.portrait-wrap {
  position: relative;
  width: min(320px, 92%);
  margin-left: 0;
  align-self: center;
  margin-top: 10px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55), 0 0 20px rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.35);
  backdrop-filter: blur(10px);
}

.portrait-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
}


.section {
  padding: 96px 0;
}

.section.alt {
  background: rgba(17, 24, 39, 0.35);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

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

.about-grid {
  display: grid;
  gap: 16px;
  max-width: 100%;
}

.about-grid p {
  color: var(--muted);
  line-height: 1.8;
  text-align: left;
}

.about-grid a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.about-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.35), rgba(34, 211, 238, 0));
  margin: 8px 0;
}

.about-list {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.timeline-card {
  background: rgba(17, 24, 39, 0.6);
  border-radius: 16px;
  border: 1px solid var(--stroke);
  padding: 28px 28px 28px 36px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 28px auto auto 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.8), rgba(34, 211, 238, 0.6));
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.12);
}

.timeline-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 16px;
  width: 2px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.25), rgba(34, 211, 238, 0.2));
}

.timeline-card ul {
  margin-top: 0;
  padding-left: 18px;
  color: var(--muted);
}

.role {
  color: var(--muted);
  margin-top: 6px;
  font-weight: 600;
}

.role-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.role-line .role {
  margin: 0;
}

.date-badge {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  font-weight: 600;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-row span {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.meta-row--last {
  margin-top: 16px;
}

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

.project-card {
  background: rgba(17, 24, 39, 0.6);
  padding: 26px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.project-card p {
  font-weight: 400;
  color: var(--muted);
}

.project-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.25);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip-row span {
  background: rgba(59, 130, 246, 0.2);
  color: #dbeafe;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.skill-card {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

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

.skill-group {
  background: rgba(17, 24, 39, 0.6);
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-group:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.25);
}

.skill-group::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.7), rgba(34, 211, 238, 0));
}

.skill-group--wide {
  grid-column: 1 / -1;
}

.skill-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.skill-title h3 {
  margin: 0;
}


.skill-group p {
  color: var(--muted);
}

.cert-list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  padding-left: 0;
}

.cert-list li {
  position: relative;
  padding-left: 18px;
}

.cert-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  background: rgba(17, 24, 39, 0.6);
  color: #dbeafe;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: rgba(17, 24, 39, 0.6);
  border-radius: 16px;
  border: 1px solid var(--stroke);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  padding: 30px 0 50px;
  color: var(--muted);
  text-align: center;
}

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

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

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    order: 0;
  }

  .hero-meta {
    flex-direction: column;
    gap: 6px;
  }

  .section-head {
    margin-bottom: 24px;
  }
}

@media (max-width: 560px) {
  :root {
    --bg-strong: #070a12;
  }

  body::before {
    opacity: 0.25;
  }

  body::after {
    opacity: 0.16;
  }

  .container {
    width: min(1100px, 92vw);
  }

  .hero {
    min-height: auto;
    padding: 80px 0 60px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 7vw + 0.6rem, 3.2rem);
  }

  .hero-role {
    font-size: 1.05rem;
  }

  .lead {
    font-size: 0.98rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-meta {
    font-size: 0.9rem;
  }

  .portrait-wrap {
    width: min(280px, 90%);
  }

  .section {
    padding: 72px 0;
  }

  .section-head h2 {
    font-size: 1.8rem;
  }

  .timeline-card {
    padding: 22px 20px 22px 30px;
  }

  .project-card,
  .skill-group,
  .contact-card {
    padding: 20px;
  }

  .chip-row span,
  .skill-tags span,
  .meta-row span {
    font-size: 0.78rem;
  }

  .contact-card {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: clamp(2rem, 8vw + 0.3rem, 2.8rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .project-card,
  .skill-group,
  .contact-card,
  .timeline-card {
    border-radius: 14px;
  }
}
