@charset "UTF-8";
@import url('../assets/fonts/fonts.css');

:root {
  --font-quicksand: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-special-elite: 'Special Elite', monospace;
  --color-bg: #f5f5f5;
  --color-text: #1c1c1c;
  --color-paper: #f4ebd0;
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-quicksand);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------
 * 1. Fixed Background Videos (Scroll-Synced)
 * ---------------------------------------------------- */
.video-background-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-color: var(--color-bg);
}

.video-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
}

.video-layer.active {
  opacity: 1;
  z-index: 10 !important;
}

.bg-video-desktop {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

/* Layer 3 (About section) specific positioning to preserve puppet character */
.video-layer[data-index="3"] .bg-video-desktop {
  object-position: left 20%;
}

.bg-video-mobile {
  display: block;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50vh;
  object-fit: cover;
  object-position: left top;
}

@media (min-width: 1024px) {
  .bg-video-desktop {
    display: block;
  }

  .bg-video-mobile {
    display: none;
  }
}

/* ----------------------------------------------------
 * 2. Header & Morphing Hamburger Icon
 * ---------------------------------------------------- */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  padding: 1.5rem;
  mix-blend-mode: difference;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: auto;
}

@media (min-width: 1024px) {
  header.site-header {
    padding: 3rem;
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Morphing SVG Icon */
.menu-icon-svg {
  width: 2rem;
  height: 2rem;
  transform-origin: 16px 16px;
  transition: transform 500ms ease-in-out;
}

.menu-path-loop {
  transition: all 500ms ease-in-out;
  stroke-dasharray: 12 63;
  stroke-dashoffset: 0;
}

.menu-path-mid {
  transition: all 500ms ease-in-out;
}

/* Morph to "X" when Menu is Open */
body.menu-open .menu-icon-svg {
  transform: rotate(-45deg);
}

body.menu-open .menu-path-loop {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42px;
}

/* ----------------------------------------------------
 * 3. Magnetic Curved Wipe Menu Overlay
 * ---------------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background-color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
  border-bottom-left-radius: 50%;
  border-bottom-right-radius: 50%;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1),
    border-radius 0.8s cubic-bezier(0.76, 0, 0.24, 1),
    opacity 0.6s ease;
}

body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0%);
  border-bottom-left-radius: 0%;
  border-bottom-right-radius: 0%;
}

.menu-list {
  list-style: none;
  display: flex;
  min-height: 100%;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

@media (min-width: 768px) {
  .menu-list {
    gap: 3rem;
  }
}

.menu-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-link {
  position: relative;
  display: block;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.8;
  letter-spacing: -0.03em;
  transition: color 300ms ease;
  overflow: hidden;
}

/* Staggered Rolling Letter Animation on Hover */
.rolling-word {
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 0.8;
}

.rolling-char-box {
  display: inline-block;
  position: relative;
  overflow: hidden;
  line-height: 0.85;
  vertical-align: top;
}

.char-primary,
.char-secondary {
  display: block;
  transition: transform 400ms cubic-bezier(0.76, 0, 0.24, 1);
}

.char-secondary {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  color: #888888;
}

.menu-link:hover .char-primary {
  transform: translateY(-100%);
}

.menu-link:hover .char-secondary {
  transform: translateY(-100%);
}

/* ----------------------------------------------------
 * 4. Snap Sections & Layout
 * ---------------------------------------------------- */
main.portfolio-main {
  position: relative;
  overflow-x: clip;
}

section.snap-section {
  position: relative;
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
}

/* SECTION 1: HOME */
#home .home-content-wrapper {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.5rem 0;
}

@media (min-width: 1024px) {
  #home .home-content-wrapper {
    position: relative;
    height: 100vh;
    padding: 0 6rem 0 3rem;
  }
}

.home-headline-box {
  width: 100%;
  margin: 0 auto;
  color: var(--color-text);
  text-align: center;
}

@media (min-width: 1024px) {
  .home-headline-box {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
    max-width: 56rem;
    transform: translateY(-10%);
  }
}

.home-greeting {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 500;
  opacity: 1;
  margin-bottom: 0.5rem;
}

.home-title-1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.home-title-2 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.85;
}

.home-title-2 span {
  display: block;
  margin-top: 0.75rem;
}

.home-author-info {
  display: none;
  position: absolute;
  bottom: 4rem;
  right: 6rem;
  flex-direction: column;
  align-items: flex-end;
  color: var(--color-text);
  z-index: 10;
  transform: translateX(-23%);
}

@media (min-width: 768px) {
  .home-author-info {
    display: flex;
  }
}

.author-name-link {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
  transition: opacity 200ms ease;
}

.author-name-link:hover {
  opacity: 0.8;
}

.author-subtext {
  display: flex;
  gap: 4rem;
  font-size: 1.125rem;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* SECTION 2: WORKS */
#works .works-content-wrapper {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.5rem 0;
}

@media (min-width: 1024px) {
  #works .works-content-wrapper {
    position: relative;
    height: 100vh;
    padding: 0 3rem;
  }
}

.works-grid-box {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .works-grid-box {
    justify-content: flex-end;
  }
}

.works-tree-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .works-tree-container {
    max-width: 50%;
    transform: translateX(10rem);
    gap: 1.5rem;
  }
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-align: left;
  line-height: 1.1;
}

.works-tree {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .works-tree {
    gap: 0.75rem;
  }
}

.tree-node-item {
  width: 100%;
}

.node-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
  cursor: pointer;
  color: var(--color-text);
  transition: opacity 200ms ease;
  user-select: none;
  width: 100%;
}

@media (min-width: 768px) {
  .node-row {
    gap: 1rem;
    padding: 0.4rem 0;
  }
}

.node-row:hover {
  opacity: 0.85;
}

.node-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.node-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.5;
}

@media (min-width: 768px) {
  .node-icon svg {
    width: 2rem;
    height: 2rem;
  }
}

.node-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  gap: 0.15rem;
}

.node-title {
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  line-height: 1.2;
}

/* Works Item Sub-Marquee */
.node-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  margin: 0;
  opacity: 0.75;
  mask-image: linear-gradient(90deg, black 0%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 85%, transparent 100%);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .node-marquee-wrapper {
    max-width: calc(100% - 4rem);
    margin-right: 4rem;
  }
}

.node-marquee-track {
  display: inline-flex;
  gap: 1.5rem;
  animation: nodeMarqueeScroll 26s linear infinite;
  will-change: transform;
}

.tree-node-item:hover .node-marquee-wrapper {
  opacity: 1;
}

.node-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
  font-family: var(--font-quicksand), sans-serif;
}

@media (min-width: 768px) {
  .node-marquee-item {
    font-size: 0.875rem;
  }
}

.node-marquee-item .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-text);
  opacity: 0.5;
  flex-shrink: 0;
}

@keyframes nodeMarqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.node-children {
  display: flex;
  max-height: 0;
  opacity: 0;
  margin-left: 2rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
  transition: max-height 300ms ease-in-out, opacity 250ms ease;
  pointer-events: none;
}

.node-children.expanded {
  max-height: 140px;
  opacity: 1;
  pointer-events: auto;
}

.node-child-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0;
  cursor: pointer;
  color: var(--color-text);
  transition: opacity 200ms ease;
  text-decoration: none;
}

.node-child-row:hover {
  opacity: 0.7;
}

.node-child-title {
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

/* SECTION 3: TIMELINE */
#timeline .timeline-content-wrapper {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 0;
}

@media (min-width: 1024px) {
  #timeline .timeline-content-wrapper {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0 3rem;
  }
}

.timeline-inner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .timeline-inner-container {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .timeline-inner-container {
    max-width: 50%;
    gap: 2rem;
  }
}

.timeline-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  .timeline-block {
    gap: 1rem;
  }
}

.timeline-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-align: center;
  line-height: 1.1;
}

.timeline-img-box {
  width: 65%;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .timeline-img-box {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .timeline-img-box {
    width: 70%;
  }
}

.timeline-img-box img {
  width: 100%;
  max-width: 560px;
  height: auto;
  max-height: 42vh;
  object-fit: contain;
}

.colabs-title {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-align: center;
}

.colabs-img-box {
  width: 55%;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .colabs-img-box {
    width: 48%;
  }
}

@media (min-width: 1024px) {
  .colabs-img-box {
    width: 90%;
  }
}

.colabs-img-box img {
  width: 100%;
  max-width: 560px;
  height: auto;
  max-height: 20vh;
  object-fit: contain;
}

.timeline-inner-container img {
  object-fit: contain;
}

/* SECTION 4: ABOUT ME */
#about .about-content-wrapper {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.5rem 0;
}

@media (min-width: 1024px) {
  #about .about-content-wrapper {
    position: relative;
    height: 100vh;
    padding: 0 3rem;
  }
}

.about-inner-container {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
}

@media (min-width: 1024px) {
  .about-inner-container {
    margin-left: auto;
    margin-right: 0;
    gap: 2rem;
    padding-top: 0;
  }
}

.about-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.1;
  text-align: center;
}

@media (min-width: 1024px) {
  .about-title {
    white-space: nowrap;
    transform: translateX(-5%);
  }
}

.card-deck-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .card-deck-wrapper {
    justify-content: flex-end;
    padding-right: 1.5rem;
    margin-top: 3.5rem;
    margin-bottom: 0;
  }
}

.card-deck-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 260px;
  max-width: 290px;
  min-height: 320px;
}

@media (min-width: 640px) {
  .card-deck-stage {
    min-width: 290px;
    max-width: 310px;
  }
}

@media (min-width: 1024px) {
  .card-deck-stage {
    min-width: 310px;
    max-width: 330px;
    min-height: 440px;
  }
}

/* Individual Stack Card */
.deck-card {
  position: absolute;
  width: 100%;
  aspect-ratio: 5 / 7;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 500ms ease;
  transform-origin: bottom center;
}

@media (min-width: 640px) {
  .deck-card {
    width: 280px;
  }
}

@media (min-width: 1024px) {
  .deck-card {
    width: 300px;
  }
}

.deck-card:active {
  cursor: grabbing;
}

.deck-card video,
.deck-card img.team-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

/* Team Member Arrow Callout Badge - positioned directly attached to the right of card */
.team-member-callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0.75rem;
  position: relative;
  transition: opacity 300ms ease, transform 300ms ease;
  user-select: none;
  z-index: 60;
}

@media (min-width: 1024px) {
  .team-member-callout {
    margin-left: 0.5rem;
    transform: translateY(20px);
  }
}

.team-arrow-icon {
  width: 38px;
  height: auto;
  margin-bottom: 0.25rem;
  margin-left: 0.5rem;
  display: block;
}

.team-member-text {
  display: flex;
  flex-direction: column;
}

.team-member-name {
  font-family: var(--font-family-body, 'Quicksand', sans-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text, #111111);
  letter-spacing: -0.02em;
  margin: 0;
}

.team-member-role {
  font-family: var(--font-family-body, 'Quicksand', sans-serif);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 500;
  color: var(--color-text, #111111);
  opacity: 0.85;
  margin: 0.15rem 0 0 0;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .card-deck-wrapper {
    flex-direction: column;
    gap: 1.25rem;
  }

  .team-member-callout {
    margin-left: 0;
    align-items: center;
    text-align: center;
  }

  .team-arrow-icon {
    margin-left: 0;
  }
}

/* SECTION 5: CONTACT */
#contact .contact-content-wrapper {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 3.5rem 1.25rem 0;
}

@media (min-width: 1025px) {
  #contact .contact-content-wrapper {
    position: relative;
    height: 100vh;
    justify-content: center;
    padding: 0 3rem;
  }
}

.contact-inner-container {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 5.5rem;
}

@media (min-width: 1025px) {
  .contact-inner-container {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    gap: 2.25rem;
    padding-bottom: 6rem;
  }
}

.contact-title-group h2 {
  font-size: clamp(1.6rem, 4vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.contact-title-group p {
  font-size: clamp(0.95rem, 2vw, 1.875rem);
  font-weight: 500;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .contact-details {
    gap: 2rem;
  }
}

.contact-field-label {
  font-size: 1.125rem;
  font-weight: 500;
  opacity: 0.4;
  margin-bottom: 0.25rem;
}

.contact-field-val {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
}

.contact-email-link {
  font-size: clamp(1.2rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  transition: opacity 200ms ease;
  word-break: break-all;
}

.contact-email-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.contact-emails-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-email-separator {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.5;
  margin: 0.1rem 0;
}

@media (min-width: 1025px) {
  .contact-emails-group {
    align-items: flex-end;
  }
}

/* Social Dock */
.social-dock-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

@media (min-width: 1025px) {
  .social-dock-wrapper {
    justify-content: flex-end;
    margin-right: -1rem;
    margin-top: 0;
  }
}

.social-dock {
  display: flex;
  height: 5rem;
  align-items: flex-end;
  gap: 1rem;
  border-radius: 1rem;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0 1rem 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.social-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background-color: #000;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: transform 200ms ease;
  text-decoration: none;
}

.social-icon-btn:hover {
  transform: scale(1.05);
}

.social-icon-btn svg {
  width: 24px;
  height: 24px;
}

/* ----------------------------------------------------
 * 5. Download Resume & View Certificate Floating Buttons
 * ---------------------------------------------------- */
.resume-btn-container {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  width: max-content;
  max-width: 95vw;
}

@media (min-width: 1025px) {
  .resume-btn-container {
    bottom: 2rem;
    left: auto;
    right: 3rem;
    transform: none;
    flex-wrap: nowrap;
  }
}

/* View Certificate Button */
.certificate-view-btn {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  cursor: pointer;
  height: 56px;
  padding-right: 1.25rem;
  outline: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.certificate-view-btn:hover {
  border-color: rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15);
}

.cert-icon-circle {
  height: 56px;
  width: 56px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.12);
  z-index: 10;
  flex-shrink: 0;
  color: #f8fafc;
  transition: transform 300ms ease;
}

.certificate-view-btn:hover .cert-icon-circle {
  transform: scale(1.05);
}

.cert-btn-text {
  margin-left: 0.85rem;
  color: #000000;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  user-select: none;
  letter-spacing: -0.02em;
}

.resume-download-btn {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  transition: width 400ms ease-in-out, border-color 200ms ease;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  cursor: pointer;
  height: 56px;
  width: 220px;
  outline: none;
}

.resume-download-btn:hover {
  border-color: rgba(0, 0, 0, 0.3);
}

.resume-download-btn.downloading {
  width: 56px;
  cursor: wait;
  border-color: #000;
}

.resume-icon-circle {
  height: 56px;
  width: 56px;
  border-radius: 9999px;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 10;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 400ms ease;
}

.resume-download-btn.downloading .resume-icon-circle {
  transform: rotate(180deg) scale(0.95);
}

/* Fill animation on circle */
.resume-fill-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #262626;
  border-radius: 9999px;
  z-index: 1;
  transition: height 3s ease-in-out;
}

.resume-download-btn.downloading .resume-fill-layer {
  height: 100%;
}

.resume-icon-circle svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
  z-index: 20;
  transition: opacity 200ms ease;
}

.resume-download-btn.downloading .resume-icon-circle svg {
  opacity: 0;
}

.resume-center-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background-color: #ffffff;
  position: absolute;
  z-index: 20;
  opacity: 0;
  transition: opacity 200ms ease;
}

.resume-download-btn.downloading .resume-center-dot {
  opacity: 1;
}

.resume-orbit-dot {
  position: absolute;
  left: 0;
  right: 0;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #ffffff;
  border-radius: 9999px;
  margin: auto;
  z-index: 25;
  opacity: 0;
}

.resume-download-btn.downloading .resume-orbit-dot {
  opacity: 1;
  animation: resumeOrbit 3s ease-in-out infinite;
}

@keyframes resumeOrbit {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }

  25% {
    transform: rotate(90deg) translate(20px, -20px);
  }

  50% {
    transform: rotate(180deg) translate(0, 0);
  }

  75% {
    transform: rotate(270deg) translate(-20px, 20px);
  }

  100% {
    transform: rotate(360deg) translate(0, 0);
  }
}

.resume-btn-text {
  margin-left: 1rem;
  color: #000000;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  user-select: none;
  letter-spacing: -0.02em;
  transition: opacity 200ms ease;
}

.resume-download-btn.downloading .resume-btn-text {
  opacity: 0;
  pointer-events: none;
}

/* ----------------------------------------------------
 * 6. Vintage Brief Letter Modal
 * ---------------------------------------------------- */
.brief-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.brief-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.brief-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.brief-paper-card {
  position: relative;
  width: 100%;
  max-width: 42rem;
  min-height: 65vh;
  transform: translateY(20px) scale(0.96);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  background-color: var(--color-paper);
  filter: url(#chipped-edges);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .brief-paper-card {
    min-height: 500px;
  }
}

.brief-modal-overlay.open .brief-paper-card {
  transform: translateY(0) scale(1);
}

.brief-paper-texture {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url('../assets/images/cream-paper.png');
}

.brief-inner-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .brief-inner-content {
    padding: 3rem;
  }
}

.brief-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #3a3a3a;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: opacity 200ms ease;
}

.brief-close-btn:hover {
  opacity: 0.6;
}

.brief-typewriter-text {
  font-family: var(--font-special-elite);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: #1a1a1a;
  white-space: pre-wrap;
  width: 100%;
}

.brief-cursor {
  display: inline-block;
  animation: blink 0.8s infinite;
  font-weight: 700;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ----------------------------------------------------
 * 7. Certificate Lightbox Modal
 * ---------------------------------------------------- */
.cert-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.cert-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 15, 29, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.cert-modal-card {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(20px) scale(0.96);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  z-index: 10;
}

.cert-modal-overlay.open .cert-modal-card {
  transform: translateY(0) scale(1);
}

.cert-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #f8fafc;
}

.cert-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
  background-color: #ccfbf1;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}

.cert-modal-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.cert-modal-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: #0f172a;
}

.cert-modal-body {
  padding: 1.25rem;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f1f5f9;
}

.cert-modal-img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cert-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
  gap: 1rem;
  flex-wrap: wrap;
}

.cert-modal-caption {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.cert-modal-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: #0f172a;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.cert-modal-download-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}