/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}

p,
p[class] {
  font-size: 1.125rem;
}

ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {
  --page-bg: #0b1030; /* deep indigo */
  --page-surface: #11152f;
  --text-strong: #f5f5f7;
  --text-muted: #9a9fb3;
  --font-body:
    "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display:
    "Oswald", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --accent: #7b1e3c;
  --accent-soft: rgba(123, 30, 60, 0.18);
  --modal-bg: #0c0c12;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --amber: #f5b267;
}

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

html.page {
  font-size: 16px;
  scroll-behavior: smooth;
}

.page__body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background-color: var(--page-bg);
  color: var(--text-strong);
  position: relative;
}

.page-header {
  padding: 1.75rem 8vw 0.75rem;
  position: relative;
  z-index: 8; /* ensure header text sits above tech cloud */
}

.page-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.page-header__tagline {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.page-header__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.page-header__meta {
  text-align: right;
}

.page-header__role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 0.15rem;
}

.page-header__email,
.page-header__location {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.page-main {
  padding: 1.5rem 0 3rem;
  position: relative;
  z-index: 8; /* ensure main text sits above tech cloud */
}

.hero {
  margin: 2.5rem auto 3.5rem;
  padding-inline: 8vw;
  text-align: center;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  max-width: 18ch;
  margin-inline: auto;
}

.hero__subtitle {
  margin: 1.2rem auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 44rem;
}

.word-canvas {
  position: relative;
  margin: 0 auto;
  width: min(1120px, 92vw);
  height: min(620px, 80vh);
  max-height: 75vh;
}

.tech-cloud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6; /* highest layer, but placed in gaps and follows scroll */
}

.tech-cloud__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background-color: rgba(6, 7, 12, 0.96); /* near-black chip against indigo */
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition:
    transform 260ms ease-out,
    opacity 260ms ease-out;
}

.tech-cloud__icon {
  width: 2rem;
  height: 2rem;
}

.tech-cloud__badge--react {
  top: 6%;
  left: 32%;
}

.tech-cloud__badge--vue {
  top: 18%;
  right: 6%;
}

.tech-cloud__badge--tailwind {
  top: 46%;
  left: 4%;
}

.tech-cloud__badge--html {
  top: 58%;
  right: 8%;
}

.tech-cloud__badge--css {
  top: 76%;
  left: 10%;
}

.tech-cloud__badge--js {
  top: 30%;
  left: 42%;
}

.tech-cloud__badge--ts {
  top: 68%;
  right: 22%;
}

.tech-cloud__badge--sass {
  top: 52%;
  right: 18%;
}

.tech-cloud__badge--github {
  top: 8%;
  right: 26%;
}

.tech-cloud__badge--gitlab {
  bottom: 8%;
  right: 6%;
}

.tech-cloud__badge--jira {
  bottom: 14%;
  left: 22%;
}

.tech-cloud__badge--figma {
  top: 40%;
  right: 30%;
}

.word-canvas__photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, 60vw);
  height: calc(min(360px, 60vw) * 1.1);
  border-radius: 0;
  overflow: hidden;
  background-color: var(--page-surface);
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.65);
  z-index: 1;
}

.word-canvas__photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.word {
  position: absolute;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  transform-origin: center;
  transition:
    transform 180ms ease-out,
    text-shadow 180ms ease-out,
    letter-spacing 180ms ease-out,
    filter 180ms ease-out;
  z-index: 10; /* keep titles above tech icons */
  cursor: pointer;
  box-shadow: 10px 9px 2px 0px #4c1325;
}

.word__label {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  text-transform: uppercase;
  color: var(--text-strong);
  text-align: left;
  line-height: 1.05;
  max-width: 14ch;
  word-break: break-word;
  padding: 0.2rem 0.6rem;
  background-color: var(--accent);
  text-decoration: none;
  text-shadow: 0 0 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
}

.word:hover,
.word:focus-visible {
  transform: scale(1.05);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  outline: none;
}

.word:hover .word__label,
.word:focus-visible .word__label {
  text-shadow: 0.02em 0.04em 0 rgba(0, 0, 0, 0.18);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.7);
}

.word--work {
  /* Move closer to the centered photo in the hero canvas */
  top: 16%;
  left: 18%;
  transform: rotate(-7deg);
}

.word--skills {
  top: 41%;
  right: 16%;
  transform: rotate(6deg);
}

.word--education {
  bottom: 18%;
  left: 18%;
  transform: rotate(4deg);
}

.modal {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out;
  z-index: 20;
}

.modal:target {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal__clickout {
  position: absolute;
  inset: 0;
  display: block;
}

.modal__dialog {
  position: relative;
  max-width: 640px;
  margin: 4vh auto;
  background: var(--modal-bg);
  border-radius: 0;
  border: none;
  border-top: 3px solid var(--amber);
  padding: 2.25rem 2rem 2rem;
  box-shadow:
    10px 9px 2px 0px #4c1325,
    0 24px 48px rgba(0, 0, 0, 0.5);
  transform: translateY(18px) rotate(-1deg);
  opacity: 0;
  max-height: calc(100vh - 8vh);
  overflow-y: auto;
  overflow-x: hidden;
  transition:
    transform 340ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 280ms ease-out;
}

.modal:target .modal__dialog {
  transform: translateY(0) rotate(0deg);
  opacity: 1;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(245, 178, 103, 0.35);
  padding-bottom: 1rem;
}

.modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.1;
}

.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: none;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  transition:
    color 160ms ease-out,
    transform 140ms ease-out;
}

.modal__close:hover,
.modal__close:focus-visible {
  color: var(--amber);
  transform: scale(1.15);
  outline: none;
}

.modal__body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.resume-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.25rem;
  padding: 0.52rem 1rem;
  border: 1px solid rgba(245, 178, 103, 0.7);
  background-color: rgba(245, 178, 103, 0.12);
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  transition:
    background-color 160ms ease-out,
    transform 160ms ease-out,
    color 160ms ease-out;
}

.resume-download:hover,
.resume-download:focus-visible {
  background-color: var(--amber);
  color: #141414;
  transform: translateY(-1px);
  outline: none;
}

.modal__dialog--work .modal__title,
.modal__dialog--skills .modal__title,
.modal__dialog--education .modal__title {
  color: var(--text-strong);
}

.experience + .experience,
.education + .education {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(123, 30, 60, 0.2);
}

.experience__role,
.education__degree {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-strong);
}

.experience__meta,
.education__meta {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.experience__bullets,
.education__bullets {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.experience__bullets li,
.education__bullets li {
  margin: 0.35rem 0;
}

.pill-list {
  margin-bottom: 1rem;
}

.pill-list__title {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.pill-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill-list__item {
  padding: 0.35rem 0.75rem;
  border-radius: 0;
  border: 1px solid rgba(123, 30, 60, 0.4);
  background-color: var(--accent-soft);
  font-size: 0.78rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-strong);
}

.experience-intro,
.experience-highlight,
.contact {
  max-width: 54rem;
  padding-inline: 8vw;
  text-align: center;
}

.experience-highlight {
  margin: 3.5rem auto 0;
}

.experience-highlight__eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.experience-highlight__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--amber);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.experience-highlight__dates {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.experience-highlight__role {
  margin: 1rem auto 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.experience-highlight__role strong {
  color: var(--text-strong);
}

.experience-highlight__story {
  margin-top: 1.5rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border-subtle);
  text-align: left;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.experience-highlight__story-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.experience-highlight__story-text + .experience-highlight__story-text {
  margin-top: 0.9rem;
}

.contact {
  margin: 4rem auto 0;
}

.contact__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact__tagline {
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.contact__item {
  margin: 0;
}

.contact__link,
.contact__text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
  text-decoration: none;
}

.contact__link:hover,
.contact__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.experience-intro {
  margin: 4rem auto 0;
}

.experience-intro__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.experience-intro__tagline {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Prevent background scrolling when a modal is open */
.no-scroll,
html.no-scroll,
body.no-scroll {
  overflow: hidden;
  height: 100%;
}

@media (max-width: 768px) {
  .page-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header__meta {
    text-align: left;
  }

  .word-canvas {
    height: 460px;
  }

  .word__label {
    font-size: clamp(1.4rem, 7vw, 2.2rem);
  }

  .word--work {
    top: 14%;
    left: 10%;
  }

  .word--skills {
    top: 43%;
    right: 10%;
  }

  .word--education {
    bottom: 16%;
    left: 10%;
  }

  .modal__dialog {
    margin: 4vh 0.75rem;
    padding: 1.6rem 1.25rem 1.4rem;
    box-shadow:
      6px 6px 2px 0px #4c1325,
      0 16px 32px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 480px) {
  .page-header {
    padding-inline: 6vw;
  }

  .word-canvas {
    width: 100%;
    height: 400px;
  }

  .word__label {
    font-size: 1.4rem;
    letter-spacing: 0.12em;
  }
}
