:root {
  --bg: #191a21;
  --bg-deep: #111218;
  --panel: #282a36;
  --panel-raised: #2f3240;
  --line: #44475a;
  --ink: #f8f8f2;
  --muted: #c9c9d6;
  --subtle: #9aa0b5;
  --purple: #bd93f9;
  --pink: #ff79c6;
  --cyan: #8be9fd;
  --font: "CaskaydiaCove Nerd Font", "CaskaydiaMono Nerd Font", "JetBrainsMono Nerd Font", "Hack Nerd Font", "FiraCode Nerd Font", "MesloLGS NF", "Noto Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 18px;
  --content-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  position: relative;
  color: var(--ink);
  background: var(--bg-deep);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../images/background.jpg") center / cover no-repeat fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 0%, rgba(189, 147, 249, 0.22), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(139, 233, 253, 0.18), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(255, 121, 198, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(15, 16, 22, 0.86) 0%, rgba(20, 21, 28, 0.82) 52%, rgba(13, 14, 19, 0.92) 100%);
  background-repeat: no-repeat;
  background-size: 140% 140%, 140% 140%, 140% 140%, 100% 100%;
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0 0;
  }
  to {
    background-position: 8% 6%, 92% 8%, 46% 92%, 0 0;
  }
}

::selection {
  color: #fff;
  background: rgba(255, 121, 198, 0.32);
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: #d7f8ff;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 8px 12px;
  border-radius: 8px;
  color: #111218;
  background: var(--cyan);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 18px 18px 32px;
}

.resume-card {
  position: relative;
  display: block;
  padding: 30px 32px 24px;
  overflow: hidden;
  border: 1px solid rgba(189, 147, 249, 0.24);
  border-radius: 22px;
  background: var(--panel);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(189, 147, 249, 0.16),
    0 0 48px rgba(139, 233, 253, 0.08);
  opacity: 0;
  transform: translateY(10px);
  animation: main-in 0.7s ease forwards;
}

@keyframes main-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-banner {
  height: 130px;
  margin: -30px -32px 0;
  border-radius: 22px 22px 0 0;
  background-image:
    linear-gradient(180deg, rgba(25, 26, 33, 0.30), rgba(17, 18, 24, 0.82)),
    url("../images/banner.jpg");
  background-position: center 42%;
  background-size: cover;
}

.resume-download {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid rgba(255, 121, 198, 0.34);
  border-radius: 999px;
  color: #ffe5f4;
  background: rgba(40, 42, 54, 0.55);
  box-shadow: 0 0 18px rgba(255, 121, 198, 0.14);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.resume-download:hover {
  color: #fff;
  text-decoration: none;
  border-color: rgba(255, 121, 198, 0.54);
  background: rgba(255, 121, 198, 0.15);
  box-shadow: 0 0 26px rgba(255, 121, 198, 0.30);
  transform: translateY(-1px);
}

.site-header {
  padding: 14px 0 17px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(139, 233, 253, 0.20);
}

.header-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.profile-photo {
  width: 96px;
  height: 96px;
  margin-top: -58px;
  flex: 0 0 auto;
  border: 3px solid var(--panel);
  border-radius: 50%;
  object-fit: cover;
  background: #303342;
  box-shadow: 0 0 0 1px rgba(139, 233, 253, 0.28), 0 8px 22px rgba(0, 0, 0, 0.40);
}

.identity {
  min-width: 0;
}

h1 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(189, 147, 249, 0.42);
}


.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.separator {
  color: var(--line);
}

.content-section {
  margin: 0 0 17px;
}

h2 {
  margin: 0 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(139, 233, 253, 0.16);
  color: #f2fbff;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

h3 {
  margin: 3px 0 8px;
  color: #f3eaff;
  font-size: 13.5px;
  font-weight: 850;
}

p {
  margin: 0 0 10px;
  color: rgba(248, 248, 242, 0.94);
}

.summary-copy,
.role-summary {
  font-size: 13.6px;
}

.skills-card,
.role-card,
.simple-card {
  padding: 14px;
  border-radius: 15px;
  background: var(--panel-raised);
}

.skills-card,
.simple-card {
  border: 1px solid rgba(139, 233, 253, 0.12);
  box-shadow: 0 0 22px rgba(139, 233, 253, 0.06);
}

.skills-card {
  display: grid;
  gap: 8px;
}

.skill-line {
  margin: 0;
  color: rgba(248, 248, 242, 0.92);
  font-size: 13px;
}

.skill-line strong {
  color: #ffe5f4;
  font-weight: 900;
}

.role-card {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.16);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.role-card:hover {
  border-color: rgba(189, 147, 249, 0.30);
  box-shadow: 0 0 24px rgba(189, 147, 249, 0.12);
  transform: translateY(-2px);
}

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

.company {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.location {
  margin-left: 6px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
}

.location::before {
  content: "· ";
}

.dates {
  color: #ded8ef;
  font-size: 13px;
  font-style: italic;
  white-space: nowrap;
}

.bullets {
  margin: 0 0 0 18px;
  padding: 0;
}

.bullets li {
  margin: 5px 0;
  color: rgba(248, 248, 242, 0.92);
  font-size: 13px;
  line-height: 1.38;
}

.simple-card {
  color: rgba(248, 248, 242, 0.92);
  font-size: 13px;
}

.simple-card p {
  margin-bottom: 6px;
  font-size: 13px;
}

.simple-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px solid rgba(139, 233, 253, 0.12);
  color: var(--subtle);
  font-size: 12px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .resume-card {
    padding: 22px 16px 16px;
  }

  .profile-banner {
    margin: -22px -16px 0;
  }

  h1 {
    font-size: 29px;
  }

  .role-heading {
    flex-direction: column;
    gap: 1px;
  }

  .dates {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 8px;
  }

  .resume-card {
    border-radius: 16px;
  }

  .profile-banner {
    height: 112px;
    border-radius: 16px 16px 0 0;
  }

  .profile-photo {
    width: 74px;
    height: 74px;
    margin-top: -42px;
  }

  .header-row {
    gap: 12px;
  }

  .resume-download {
    top: 10px;
    right: 10px;
  }

  .contact {
    gap: 6px;
  }
}

@page {
  size: letter;
  margin: 0.45in;
}

@media print {
  body {
    color: #111827 !important;
    background: #fff !important;
  }

  body::before,
  body::after,
  .resume-download,
  .profile-banner,
  .profile-photo,
  .type-cursor,
  .skip-link,
  .site-footer {
    display: none !important;
  }

  .page-shell {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .resume-card,
  .role-card,
  .skills-card,
  .simple-card {
    color: #111827 !important;
    background: #fff !important;
    border-color: rgba(17, 24, 39, 0.12) !important;
    box-shadow: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  h1,
  h2,
  h3,
  p,
  li,
  .headline,
  .company,
  .location,
  .dates,
  .contact,
  .skill-line,
  .simple-card {
    color: #111827 !important;
    text-shadow: none !important;
  }

  .skill-line strong {
    color: #111827 !important;
  }

  a {
    color: #111827 !important;
    text-decoration: none !important;
  }

  .role-card,
  .skills-card,
  .simple-card {
    break-inside: avoid;
  }
}
