:root {
  --bg: #0d1117;
  --panel: #141b23;
  --panel-soft: #10161d;
  --text: #e5e7eb;
  --muted: #a3abb6;
  --cyan: #40d7e6;
  --orange: #d98b3f;
  --border: #253041;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 0%, rgba(64, 215, 230, 0.08), transparent 30%),
    radial-gradient(circle at 10% 15%, rgba(217, 139, 63, 0.08), transparent 25%),
    var(--bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(64, 215, 230, 0.14);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.2rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

.home-header {
  background: rgba(5, 7, 10, 0.92);
  border-bottom: 0;
}

.home-nav-wrap {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.home-header .site-nav {
  display: none;
}

.home-quick-nav,
.home-socials {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.home-quick-nav {
  justify-self: start;
  grid-column: 1;
}

.home-quick-nav a {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.84rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.home-quick-nav a:hover,
.home-quick-nav a:focus-visible {
  color: var(--cyan);
}

.home-socials {
  justify-self: end;
  grid-column: 3;
}

.home-socials a {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  border-radius: 999px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-socials a:hover,
.home-socials a:focus-visible {
  color: var(--orange);
  transform: translateY(-1px);
}

.home-socials svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.section-divider {
  border-top: 1px solid rgba(217, 139, 63, 0.08);
}

.hero {
  padding: 7rem 0 5rem;
}

.home-hero {
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  padding: clamp(3.25rem, 9vh, 6rem) 0 clamp(3rem, 7vh, 5rem);
  background:
    radial-gradient(circle at 50% 32%, rgba(64, 215, 230, 0.1), transparent 28%),
    radial-gradient(circle at 44% 60%, rgba(217, 139, 63, 0.09), transparent 22%),
    #030509;
}

.home-hero-content {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.65rem;
}

.home-title-block {
  display: grid;
  justify-items: center;
}

.home-title-block h1 {
  max-width: none;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5.5vw, 3.25rem);
  font-weight: 800;
}

.home-kicker,
.home-role,
.home-location {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

.home-kicker {
  color: var(--orange);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.home-role {
  color: var(--cyan);
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
}

.home-location {
  color: #eef3f5;
  font-size: clamp(1.45rem, 3.6vw, 2.25rem);
}

.home-portrait-link {
  width: clamp(14.25rem, 30vw, 20.25rem);
  aspect-ratio: 1;
  display: block;
  border: 4px solid var(--cyan);
  border-radius: 999px;
  padding: 0.35rem;
  background: #05080d;
  box-shadow:
    0 0 0 2px rgba(3, 5, 9, 0.95),
    0 0 36px rgba(64, 215, 230, 0.22),
    0 0 48px rgba(217, 139, 63, 0.14);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-portrait-link:hover,
.home-portrait-link:focus-visible {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px rgba(3, 5, 9, 0.95),
    0 0 42px rgba(217, 139, 63, 0.26);
}

.home-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.home-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: Manrope, Inter, sans-serif;
  line-height: 1.2;
  margin: 0;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 5.6vw, 3.7rem);
}

h2 {
  max-width: 24ch;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.hero-copy {
  color: var(--muted);
  max-width: 60ch;
  margin: 1.2rem 0 2rem;
}

.hero-actions,
.footer-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
  font-weight: 600;
}

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

.btn-primary {
  background: linear-gradient(135deg, rgba(64, 215, 230, 0.24), rgba(64, 215, 230, 0.13));
  border-color: rgba(64, 215, 230, 0.55);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(217, 139, 63, 0.18), rgba(217, 139, 63, 0.1));
  border-color: rgba(217, 139, 63, 0.55);
}

section {
  padding: 4.8rem 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 2rem;
}

.profile-card,
.portfolio-card,
.contact-card,
.contact-form {
  background: linear-gradient(180deg, rgba(20, 27, 35, 0.95), rgba(16, 22, 29, 0.95));
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 0.9rem;
}

.profile-card img {
  border-radius: 0.6rem;
}

.profile-card figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.8rem;
}

.about-content p {
  color: var(--muted);
}

.skills-block {
  margin-top: 1.4rem;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skills-list li,
.category-tag {
  font-size: 0.86rem;
  color: #dbe8eb;
  border: 1px solid rgba(64, 215, 230, 0.4);
  background: rgba(64, 215, 230, 0.1);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.filter-bar {
  margin: 1.2rem 0 1.4rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: var(--text);
  border-color: rgba(217, 139, 63, 0.65);
  background: rgba(217, 139, 63, 0.12);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.portfolio-grid.is-all {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.portfolio-card {
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.portfolio-card:hover {
  border-color: rgba(64, 215, 230, 0.55);
  transform: translateY(-3px);
}

.portfolio-grid.is-all .portfolio-card.is-expandable {
  cursor: pointer;
}

.card-content {
  padding: 1rem;
}


.card-media {
  width: 100%;
  display: block;
}

.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1016;
}

.media-frame iframe,
.media-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.media-preview video,
.media-preview iframe {
  pointer-events: none;
}

.media-preview-note {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  color: #e9f9fb;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(7, 12, 18, 0.8);
  border: 1px solid rgba(64, 215, 230, 0.38);
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
}


.card-top {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.card-content p {
  color: var(--muted);
  margin: 0.5rem 0;
}

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

.card-link {
  color: var(--cyan);
  font-weight: 600;
}

.card-link:hover {
  color: var(--orange);
}

.muted {
  color: #8f98a5;
  font-size: 0.95rem;
}

body.modal-open {
  overflow: hidden;
}

.portfolio-modal[hidden] {
  display: none;
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.portfolio-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 16, 0.8);
  backdrop-filter: blur(2px);
}

.portfolio-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 96vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid rgba(64, 215, 230, 0.35);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(20, 27, 35, 0.99), rgba(16, 22, 29, 0.99));
}

.portfolio-modal__media .media-frame {
  border-bottom: 1px solid var(--border);
}

.portfolio-modal__content {
  padding: 1rem 1rem 1.3rem;
}

.portfolio-modal__content h2 {
  margin: 0.5rem 0 0.2rem;
}

.portfolio-modal__content p {
  color: var(--muted);
  margin: 0.6rem 0;
}

.portfolio-modal__close {
  position: sticky;
  top: 0.5rem;
  float: right;
  margin: 0.5rem 0.5rem 0 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(64, 215, 230, 0.4);
  background: rgba(12, 18, 24, 0.92);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-cards {
  display: grid;
  gap: 0.8rem;
}

.contact-card {
  padding: 1rem;
}

.contact-card:hover {
  border-color: rgba(64, 215, 230, 0.45);
}

.contact-card p,
.contact-form p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.contact-form {
  padding: 1rem;
}

label {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  background: #0c1218;
  border: 1px solid #283446;
  color: var(--text);
  border-radius: 0.5rem;
  padding: 0.6rem 0.7rem;
  margin-top: 0.3rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(64, 215, 230, 0.45);
  border-color: transparent;
}

.form-feedback {
  color: var(--cyan);
  margin-top: 0.8rem;
  min-height: 1.2rem;
}

.site-footer {
  border-top: 1px solid rgba(64, 215, 230, 0.2);
  padding: 1.3rem 0;
  margin-top: 2rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-wrap p,
.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--orange);
}

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

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

@media (max-width: 860px) {
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    position: absolute;
    top: 72px;
    right: 0;
    width: min(240px, 72vw);
    background: rgba(16, 22, 29, 0.98);
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .home-nav-wrap {
    display: flex;
  }

  .home-quick-nav,
  .home-socials {
    display: none;
  }

  .home-header .site-nav {
    display: flex;
  }

  .home-hero {
    min-height: calc(100vh - 72px);
    padding-top: 4rem;
  }
}

.site-nav a.is-current {
  color: var(--text);
  border-bottom: 2px solid rgba(64, 215, 230, 0.7);
  padding-bottom: 0.2rem;
}

.page-hero {
  padding-top: 5.6rem;
}

.compact-hero {
  padding-bottom: 2.4rem;
}

.resume-layout-wrap {
  padding-top: 2.8rem;
}

.resume-page {
  padding: 0;
}

.resume-container {
  background: linear-gradient(180deg, rgba(20, 27, 35, 0.96), rgba(16, 22, 29, 0.96));
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 2.8vw, 2.2rem);
}

.resume-header {
  border-bottom: 1px solid rgba(64, 215, 230, 0.28);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}

.resume-header h1 {
  max-width: none;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.resume-contact {
  margin: 0.7rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.resume-contact a {
  color: var(--text);
}

.resume-contact a:hover,
.resume-contact a:focus-visible {
  color: var(--cyan);
}

.resume-section {
  padding: 0;
  margin-top: 1.25rem;
}

.resume-section + .resume-section {
  border-top: 1px solid rgba(217, 139, 63, 0.2);
  padding-top: 1.2rem;
}

.resume-section h2 {
  max-width: none;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin-bottom: 0.7rem;
}

.resume-subheading {
  margin-top: 1.2rem;
}

.resume-section p,
.resume-section li {
  color: #d2d9e3;
}

.resume-item {
  padding: 0.9rem 0;
}

.resume-item + .resume-item {
  border-top: 1px solid rgba(64, 215, 230, 0.14);
}

.resume-item h3 {
  font-size: 1.03rem;
  color: var(--text);
}

.resume-meta {
  margin: 0.2rem 0 0.45rem;
  color: var(--orange);
  font-size: 0.92rem;
}

.resume-item ul,
.resume-list {
  margin: 0;
  padding-left: 1.1rem;
}

.resume-item li + li,
.resume-list li + li {
  margin-top: 0.24rem;
}

.resume-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.resume-list ul {
  margin-top: 0.45rem;
}

@media (max-width: 860px) {
  .resume-two-col {
    grid-template-columns: 1fr;
  }

  .resume-contact {
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .portfolio-grid.is-all {
    grid-template-columns: 1fr;
  }
}
