@import url('https://fonts.googleapis.com/css2?family=Anton&family=Epilogue:wght@400;500;600;700&display=swap');

:root {
  --accent: rgba(147, 169, 255, 1);
  --accent-dark: rgba(109, 131, 230, 1);
  --panel-blue: rgba(147, 169, 255, 1);
  --background: rgba(37, 36, 36, 1);
  --surface-dark: rgba(37, 36, 36, 1);
  --surface-medium: #45424d;
  --button-dark: #141414;
  --text-primary: #f6f6f8;
  --text-secondary: rgba(246, 246, 248, 0.78);
  --text-muted: rgba(246, 246, 248, 0.62);
  --footer-text: #111118;
  --font-heading: 'Anton', sans-serif;
  --font-body: 'Epilogue', sans-serif;
  --header-height: 106px;
}


* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  font-size: 18px;
  line-height: 1.7;
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--header-height);
}

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

.gear-mask-defs {
  position: absolute;
  height: 0;
  overflow: hidden;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  margin: 0;
  padding: 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: var(--surface-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  overflow: visible;
}

.header-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(32px, 3.6vw, 56px);
}
.logo {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  gap: 32px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: auto;
}

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

.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-direction: column;
  padding: 16px 0;
  box-shadow: 0 18px 24px rgba(0, 0, 0, 0.25);
  z-index: 1400;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 16px clamp(32px, 3.6vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
}


.hero {
  position: relative;
  padding: 120px 0 96px;
  min-height: 760px;
  background: var(--surface-dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 50px;
  left: 80px;
  width: 460px;
  background: var(--panel-blue);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  gap: 72px;
  align-items: flex-start;
  padding: 0 clamp(48px, 6vw, 96px);
}

.hero-photo {
  position: relative;
  flex: 0 0 460px;
  margin-left: -180px;
  margin-top: -38px;
  box-shadow: 0 42px 100px rgba(13, 14, 18, 0.55);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 715px;
  object-fit: cover;
  object-position: 0% 80%;
}

.hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: clamp(820px, 58vw, 980px);
  margin-right: -80px;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 64px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hero-copy .intro {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-copy .summary {
  font-size: 20px;
  max-width: 100%;
  color: var(--text-secondary);
  text-align: justify;
  text-align-last: left;
}

.hero-copy .summary-line {
  display: block;
}

.hero-copy .summary span {
  color: var(--accent);
  font-weight: 600;
}

.hero-copy p {
  max-width: 100%;
  font-size: 17px;
  margin: 0;
  text-align: justify;
  text-align-last: left;
}

.hero-copy p.intro {
  text-align: left;
  text-align-last: left;
  font-size: 20px;
}
.cta-group {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.button-primary {
  background: var(--button-dark);
  color: #f6f6f8;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  background: transparent;
}

.button-outline:hover,
.button-outline:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.section-divider {
  position: relative;
  margin: 0;
  height: 72px;
  background: var(--surface-dark);
  overflow: hidden;
}

.section-divider__wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.section-divider__wave path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.core {
  padding: 150px 0 130px;
  background: var(--surface-dark);
}

.core-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(36px, 4.4vw, 84px);
  display: flex;
  flex-direction: column;
  gap: 58px;
  text-align: center;
}

.core-tag {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.core-title {
  margin: 0;
  font-size: clamp(44px, 5.6vw, 70px);
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(108px, 12vw, 240px);
  align-self: stretch;
  justify-items: center;
}

.core-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 484px;
}

.core-card-art {
  width: clamp(374px, 31vw, 484px);
  height: clamp(374px, 31vw, 484px);
  position: relative;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 36px 60px rgba(10, 11, 14, 0.55));
}

.core-card-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(147, 169, 255, 1), rgba(109, 131, 230, 1));
  -webkit-mask-image: url('#gear-mask');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-image: url('#gear-mask');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100% 100%;
  -webkit-clip-path: url('#gear-clip');
  clip-path: url('#gear-clip');
  z-index: 0;
}

.core-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  -webkit-mask-image: url('#gear-mask');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-image: url('#gear-mask');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100% 100%;
  -webkit-clip-path: url('#gear-clip');
  clip-path: url('#gear-clip');
}

.core-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.core-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
  max-width: 392px;
}

.core-actions {
  margin-top: 12px;
}

.footer {
  padding: 64px clamp(32px, 4vw, 64px);
  background: var(--panel-blue);
  color: var(--footer-text);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.footer-brand {
  flex: 1;
}

.footer-title {
  margin: 0 0 12px 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-text);
}

.footer-location {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--footer-text);
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-cta-text {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--footer-text);
}


.contact {
  text-align: right;
}

.contact p {
  margin: 8px 0;
  color: rgba(17, 17, 24, 0.75);
}

.footer-note {
  grid-column: 1 / -1;
  margin-top: 20px;
  text-align: center;
  color: rgba(17, 17, 24, 0.75);
  font-size: 14px;
}

@media (max-width: 1500px) {
  .hero-photo {
    margin-left: clamp(-180px, 785px - 64.3vw, 0px);
  }

  .hero-inner {
    padding: 0 clamp(56px, 6vw, 96px);
  }

  .hero-copy {
    margin-right: clamp(0px, 2vw, 32px);
    max-width: clamp(620px, 56vw, 980px);
  }

  .hero-copy h1 {
    white-space: normal;
  }
}

@media (max-width: 1220px) and (min-width: 961px) {
  .hero-photo {
    margin-left: 0 !important;
  }
}

@media (max-width: 1200px) and (min-width: 961px) {
  .hero {
    padding: 100px 0 80px;
    min-height: unset;
  }

  .hero::before {
    left: clamp(48px, 6vw, 64px);
    width: clamp(380px, 34vw, 420px);
  }

  .hero-inner {
    gap: clamp(44px, 5vw, 68px);
    padding: 0 clamp(48px, 6vw, 64px);
  }

  .hero-photo {
    flex: 0 0 clamp(380px, 34vw, 420px);
    margin-left: 0;
    margin-top: 0;
  }

  .hero-photo img {
    height: clamp(560px, 52vh, 660px);
  }

  .hero-copy {
    margin-right: clamp(0px, 1vw, 16px);
    max-width: 100%;
    flex: 1;
    min-width: 0;
  }

  .cta-group {
    flex-wrap: wrap;
  }
}

@media (max-width: 960px) {
  header {
    position: relative;
  }

  .primary-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

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

  .hero::before {
    left: 0;
    width: 100%;
    bottom: 0;
  }

  .hero-inner {
    flex-direction: column;
    gap: 48px;
    padding: 0 clamp(24px, 5vw, 48px);
  }

  .hero-photo {
    flex: 0 0 auto;
    margin-left: 0;
    margin-top: 0;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-photo img {
    width: 100%;
    height: auto;
    max-height: 500px;
  }

  .hero-copy {
    margin-right: 0;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .hero-copy .summary {
    max-width: none;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .cta-group .button {
    width: 100%;
  }

  .contact {
    text-align: center;
  }

  .social {
    justify-content: center;
  }

  .core {
    padding: 60px 0;
  }

  .core-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .core-card-art {
    width: clamp(280px, 80vw, 400px);
    height: clamp(280px, 80vw, 400px);
  }
}

/* Contact Page Styles */
.contact-hero {
  padding: 120px 0 80px;
  background: var(--surface-dark);
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.contact-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(32px, 4vw, 64px);
}

.contact-hero h1 {
  margin: 0 0 24px 0;
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 72px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-hero p {
  margin: 0 0 32px 0;
  font-size: 18px;
  color: var(--text-secondary);
}

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

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-primary);
  color: var(--surface-dark);
  border-radius: 4px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.contact-form-section {
  padding: 80px 0 120px;
  background: var(--surface-dark);
}

.contact-form-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 clamp(32px, 4vw, 64px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.required {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 14px;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(246, 246, 248, 0.3);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  align-self: center;
  padding: 16px 48px;
  background: var(--text-primary);
  color: var(--surface-dark);
  border: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  margin-top: 16px;
}

.submit-button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.footer-social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 4px;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer-social-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.footer-social-icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

/* Resume Page Styles */
.resume-hero {
  background: var(--surface-dark);
  padding: clamp(32px, 5vh, 48px) 0 clamp(20px, 3vh, 32px);
  text-align: center;
}

.resume-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 3vw, 48px);
}

.resume-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resume-content {
  background: var(--surface-dark);
  padding: 0 0 clamp(32px, 5vh, 48px);
}

.resume-content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 3vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: start;
}

.resume-column h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 clamp(16px, 2vh, 20px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}

.resume-column h2:not(:first-child) {
  margin-top: clamp(32px, 4vh, 40px);
}

.resume-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resume-list li {
  position: relative;
  padding-left: clamp(18px, 2.2vw, 24px);
  margin-bottom: clamp(20px, 2.5vh, 28px);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.5;
}

.resume-list li:last-child {
  margin-bottom: 0;
}

.resume-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.4em;
  color: var(--accent);
  font-weight: bold;
}

.resume-date {
  font-size: clamp(15px, 1.9vw, 17px);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.resume-title {
  font-size: clamp(17px, 2.1vw, 19px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.resume-company {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 4px;
}

.resume-location {
  font-size: clamp(15px, 1.9vw, 17px);
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

.resume-text {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* My Work Page Styles */
.work-banner {
  background: url('../images/banner.png') center center/100% auto no-repeat;
  background-color: #d4eef9;
  padding: clamp(60px, 15vh, 120px) 0;
  text-align: center;
  position: relative;
  width: 100%;
  min-height: 250px;
}

.work-banner-inner {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  padding: 0 clamp(24px, 3vw, 48px);
  width: fit-content;
  background-color: #d4eef9;
}

.work-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin: 0;
  text-transform: uppercase;
}

.projects-section {
  background: var(--surface-dark);
  padding: clamp(48px, 10vh, 96px) 0;
  position: relative;
}

.projects-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.posters-section {
  background: #1a1a1a;
  padding: clamp(48px, 10vh, 96px) 0;
  position: relative;
}

.posters-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.gallery-section {
  background: #222222;
  padding: clamp(48px, 10vh, 96px) 0;
  position: relative;
}

.gallery-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.projects-inner,
.posters-inner,
.gallery-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 3vw, 48px);
}

.projects-section h2,
.posters-section h2,
.gallery-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 clamp(40px, 8vh, 72px);
  text-transform: uppercase;
  position: relative;
}

.projects-section h2::after,
.posters-section h2::after,
.gallery-section h2::after {
  content: '';
  display: block;
  width: clamp(200px, 40%, 400px);
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  margin: clamp(12px, 2vh, 20px) auto 0;
}

/* Projects Grid */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 8vh, 80px);
}

.project-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vh, 32px);
  align-items: start;
}

.video-wrapper {
  position: relative;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.iframe-wrapper {
  position: relative;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pdf-viewer {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  background: #111;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.pdf-viewer__status {
  padding: clamp(20px, 4vh, 32px);
  text-align: center;
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdf-viewer__scroller {
  display: flex;
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: clamp(16px, 3vw, 24px);
  padding: 0 clamp(16px, 4vw, 32px) clamp(12px, 3vh, 24px);
}

.pdf-viewer__page {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: clamp(16px, 3vw, 24px) 0;
}

.pdf-viewer__canvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.pdf-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: clamp(40px, 5vw, 56px);
  height: clamp(40px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  color: #111;
}

.pdf-viewer__nav svg {
  width: 50%;
  height: 50%;
}

.pdf-viewer__nav--left {
  left: clamp(12px, 2vw, 24px);
}

.pdf-viewer__nav--right {
  right: clamp(12px, 2vw, 24px);
}

.pdf-viewer__nav:hover:not([style*="pointer-events: none"]) {
  background: rgba(147, 169, 255, 1);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(147, 169, 255, 0.4);
}

.pdf-viewer__nav:active {
  transform: translateY(-50%) scale(0.95);
}

.pdf-viewer--error .pdf-viewer__status {
  color: #f5b5b5;
}

.pdf-viewer__scroller::-webkit-scrollbar {
  height: 8px;
}

.pdf-viewer__scroller::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.pdf-viewer__scroller::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.pdf-viewer:focus,
.pdf-viewer__scroller:focus {
  outline: none;
}

.pdf-viewer:focus-visible {
  outline: 2px solid rgba(147, 169, 255, 0.5);
  outline-offset: 4px;
}

.project-video,
.project-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: none;
}

.project-video {
  background: #000;
}

.project-iframe {
  background: #000;
}

.project-info {
  padding: clamp(8px, 2vh, 16px) 0;
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 clamp(8px, 1.5vh, 16px);
}

.project-info p {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.project-link-highlight {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  color: var(--accent);
}

.project-link-highlight:hover,
.project-link-highlight:focus-visible {
  color: #ffffff;
}

/* Posters Grid - Dynamic Masonry Layout */
.posters-grid {
  position: relative;
  width: 100%;
}

.poster-item {
  position: absolute;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  background: #0d0d0d;
  will-change: transform, box-shadow;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  box-sizing: border-box;
}

.poster-item.masonry-loaded {
  opacity: 1;
}

.poster-item:hover {
  transform: translateY(-8px) translateZ(0);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.poster-item img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Gallery Grid - Dynamic Masonry Layout */
.gallery-grid {
  position: relative;
  width: 100%;
}

.gallery-item {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  background: #0d0d0d;
  will-change: transform, box-shadow;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  box-sizing: border-box;
}

.gallery-item.masonry-loaded {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (max-width: 768px) {
  .name-fields {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-cta {
    align-items: flex-start;
  }

  .resume-content-inner {
    grid-template-columns: 1fr;
    gap: clamp(40px, 8vh, 56px);
  }
  
  .resume-column h2 {
    font-size: clamp(24px, 5vw, 28px);
  }
  
  .resume-list li {
    margin-bottom: clamp(24px, 3vh, 32px);
  }

  .project-item {
    gap: clamp(16px, 2vh, 24px);
  }
}

@media (min-width: 769px) {
  .project-item {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: clamp(16px, 3vw, 32px);
    align-items: start;
  }
}

.project-note {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
  font-style: italic;
}
