:root {
  --theme-bg: #F7F7F5;
  --theme-text-primary: #0D0D0D;
  --theme-text-secondary: #2D2D2A;
  --theme-text-muted: #7E7E79;
  --theme-selection-bg: rgba(0, 113, 227, 0.18);
  --theme-glass-bg: rgba(255, 255, 255, 0.76);
  --theme-glass-border: rgba(0, 0, 0, 0.08);
  --theme-glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  --theme-glass-blur: blur(24px) saturate(190%);
  --theme-nav-link-color: #5C5C56;
  --theme-nav-link-hover-color: #000000;
  --theme-nav-link-active-color: #000000;
  --theme-btn-glass-bg: rgba(255, 255, 255, 0.76);
  --theme-btn-glass-border: rgba(0, 0, 0, 0.08);
  --theme-btn-glass-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  --theme-btn-hover-bg: rgba(255, 255, 255, 0.95);
  --theme-btn-hover-border: rgba(0, 0, 0, 0.14);
  --theme-btn-icon-color: #0D0D0D;
  --theme-card-bg: rgba(255, 255, 255, 0.62);
  --theme-card-border: rgba(0, 0, 0, 0.07);
  --theme-card-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.05), 0 2px 8px -1px rgba(0, 0, 0, 0.02), inset 0 1px 1px rgba(255, 255, 255, 0.85);
  --theme-card-hover-border: rgba(0, 0, 0, 0.14);
  --theme-card-hover-shadow: 0 22px 44px -8px rgba(0, 0, 0, 0.09), 0 4px 14px -2px rgba(0, 0, 0, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  --theme-media-border: rgba(0, 0, 0, 0.06);
  --theme-media-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 240, 238, 0.45) 100%);
  --theme-media-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.95), 0 12px 26px -8px rgba(0, 0, 0, 0.07);
  --theme-footer-border: rgba(0, 0, 0, 0.08);
  --theme-footer-link-color: #5C5C56;
  --theme-footer-link-hover: #000000;
  --theme-resume-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --theme-resume-shadow-hover: 0 12px 32px -4px rgba(0, 0, 0, 0.10), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --resume-scale: 0.90;
}

.dark-mode {
  --theme-bg: #0D0D0D;
  --theme-text-primary: #F7F7F5;
  --theme-text-secondary: #BDBDB8;
  --theme-text-muted: #787873;
  --theme-selection-bg: rgba(255, 255, 255, 0.2);
  --theme-glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(20, 20, 22, 0.65);
  --theme-glass-border: rgba(255, 255, 255, 0.16);
  --theme-glass-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.75), 0 2px 8px -1px rgba(0, 0, 0, 0.45), inset 0 1px 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.5), inset 0 0 14px 0 rgba(255, 255, 255, 0.02);
  --theme-glass-blur: blur(30px) saturate(220%) brightness(112%);
  --theme-nav-link-color: #9E9E98;
  --theme-nav-link-hover-color: #FFFFFF;
  --theme-nav-link-active-color: #FFFFFF;
  --theme-btn-glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(22, 22, 24, 0.72);
  --theme-btn-glass-border: rgba(255, 255, 255, 0.16);
  --theme-btn-glass-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.65), inset 0 1px 1px 0 rgba(255, 255, 255, 0.32);
  --theme-btn-hover-bg: rgba(45, 45, 48, 0.95);
  --theme-btn-hover-border: rgba(255, 255, 255, 0.28);
  --theme-btn-icon-color: #FFFFFF;
  --theme-card-bg: rgba(23, 23, 23, 0.55);
  --theme-card-border: rgba(255, 255, 255, 0.09);
  --theme-card-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --theme-card-hover-border: rgba(255, 255, 255, 0.18);
  --theme-card-hover-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --theme-media-border: rgba(255, 255, 255, 0.12);
  --theme-media-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.25) 100%);
  --theme-media-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 14px 30px -8px rgba(0, 0, 0, 0.7);
  --theme-footer-border: rgba(255, 255, 255, 0.08);
  --theme-footer-link-color: #A8A8A3;
  --theme-footer-link-hover: #FFFFFF;
  --theme-resume-shadow: 0 8px 30px rgba(0, 0, 0, 0.75);
  --theme-resume-shadow-hover: 0 14px 36px -4px rgba(0, 0, 0, 0.82), 0 0 14px 1px rgba(255, 255, 255, 0.035);
}
  html,
body {
  overflow-x: hidden;
  max-width: 100%;
}
  html {
  scroll-behavior: smooth;
  background-color: var(--theme-bg);
}
  body.preload,
body.preload * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
  -webkit-animation: none !important;
  -moz-animation: none !important;
  animation: none !important;
}
  body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--theme-text-primary);
  background-color: var(--theme-bg);
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  line-height: 1.55;
}
  h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  color: var(--theme-text-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
  ::selection {
  background-color: var(--theme-selection-bg);
}
  a {
  text-decoration: none;
  color: inherit;
}
  .modern-nav {
  background-color: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
  padding: 1.35rem 0;
  pointer-events: none;
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
  .modern-nav .container,
.modern-nav .custom-nav-link,
.modern-nav .custom-toggler,
.modern-nav .mobile-nav-inner {
  pointer-events: auto;
}
  .modern-nav.nav-scrolled {
  padding: 1rem 0;
}
  .nav-glass-container {
  background: var(--theme-glass-bg);
  backdrop-filter: var(--theme-glass-blur);
  -webkit-backdrop-filter: var(--theme-glass-blur);
  isolation: isolate;
  transform: translateZ(0);
  padding: 3px 4px;
  border-radius: 9999px;
  border: 1px solid var(--theme-glass-border);
  box-shadow: var(--theme-glass-shadow);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  position: relative;
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
  border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
  box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
  transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
  .nav-pill-indicator {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 9999px;
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 3px 10px -1px rgba(0, 0, 0, 0.06), inset 0 1px 0.5px rgba(255, 255, 255, 1);
  z-index: 1;
  opacity: 0;
  will-change: transform, width, height;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), 
  width 0.35s cubic-bezier(0.25, 1, 0.5, 1), 
  height 0.35s cubic-bezier(0.25, 1, 0.5, 1), 
  opacity 0.2s ease,
  background-color 0.3s ease,
  border-color 0.3s ease,
  box-shadow 0.3s ease;
}
  .dark-mode .nav-pill-indicator {
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.55), inset 0 1px 0.5px rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
  .nav-glass-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  border-radius: 9999px;
  z-index: 3;
}


.modern-nav.nav-scrolled .nav-glass-container {
  transform: translateY(-2px) scale(0.985);
}
  .custom-nav-link {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--theme-nav-link-color) !important;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0.38rem 0.95rem !important;
  border-radius: 9999px;
  border: none !important;
  box-shadow: none !important;
  letter-spacing: -0.015em;
  position: relative;
  z-index: 2;
  transition: color 220ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
  @media (hover: hover) and (pointer: fine) {
  .custom-nav-link:hover {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--theme-nav-link-hover-color) !important;
  transform: none;
  box-shadow: none !important;
  }
  }
  .custom-nav-link.active,
.dark-mode .custom-nav-link.active {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--theme-nav-link-active-color) !important;
  box-shadow: none !important;
}
  .custom-nav-link:active {
  transform: scale(0.95);
  transition: transform 60ms cubic-bezier(0.32, 0.72, 0, 1);
}
.custom-toggler {
  width: 40px;
  height: 40px;
  position: relative;
  background-color: var(--theme-btn-glass-bg);
  backdrop-filter: var(--theme-glass-blur);
  -webkit-backdrop-filter: var(--theme-glass-blur);
  isolation: isolate;
  border: 1px solid var(--theme-btn-glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--theme-btn-glass-shadow);
  color: var(--theme-btn-icon-color);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), 
    background-color 0.2s ease, 
    border-color 0.2s ease, 
    box-shadow 0.2s ease, 
    color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .custom-toggler:hover {
    background-color: var(--theme-btn-hover-bg);
    border-color: var(--theme-btn-hover-border);
    transform: scale(1.06);
  }
}

.custom-toggler:active {
  transform: scale(0.92);
  transition: transform 0.06s cubic-bezier(0.32, 0.72, 0, 1);
}

.custom-toggler:focus,
.custom-toggler:focus-visible {
  outline: none !important;
  box-shadow: var(--theme-btn-glass-shadow) !important;
}

.hamburger-icon {
  width: 18px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
  .hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--theme-btn-icon-color);
  border-radius: 2px;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  will-change: transform, opacity;
  transform-origin: center;
}
  .custom-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
  .custom-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
  .custom-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

  @media (max-width: 767.98px) {
  body.mobile-nav-open {
  overflow: auto !important;
  }
  .modern-nav {
  padding: 0.85rem 0;
  }
  .modern-nav .custom-toggler {
  position: relative;
  z-index: 1100;
  }
  .navbar-collapse {
  position: absolute;
  top: calc(100% + 10px);
  right: 1.25rem;
  left: auto;
  width: 200px;
  height: auto !important;
  max-height: none;
  z-index: 1050;
  background: var(--theme-glass-bg);
  backdrop-filter: var(--theme-glass-blur);
  -webkit-backdrop-filter: var(--theme-glass-blur);
  border: 1px solid var(--theme-glass-border);
  border-radius: 18px;
  box-shadow: var(--theme-glass-shadow), 0 16px 36px -4px rgba(0, 0, 0, 0.22);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  will-change: transform, opacity, visibility;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), 
    visibility 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex !important;
  flex-direction: column;
  }
  .navbar-collapse.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  }
  .navbar-collapse.collapsing {
  height: auto !important;
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateY(-6px) scale(0.97);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease !important;
  }
  .mobile-nav-inner {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0;
  margin: 0;
  }
  .mobile-nav-inner > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  }
  .nav-glass-container {
  width: 100%;
  max-width: 100%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 0;
  opacity: 1;
  transform: none;
  }
  .nav-glass-container::before {
  display: none !important;
  }
  .nav-pill-indicator {
  display: none !important;
  }
  .custom-nav-link,
  .dark-mode .custom-nav-link {
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem !important;
  border-radius: 0 !important;
  color: var(--theme-nav-link-color) !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  letter-spacing: -0.01em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: none;
  -webkit-tap-highlight-color: transparent !important;
  transition: color 0.15s ease, transform 0.1s ease;
  }
  .custom-nav-link:hover,
  .custom-nav-link:focus,
  .custom-nav-link:focus-visible,
  .dark-mode .custom-nav-link:hover,
  .dark-mode .custom-nav-link:focus,
  .dark-mode .custom-nav-link:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--theme-nav-link-hover-color) !important;
  }
  .custom-nav-link:active,
  .dark-mode .custom-nav-link:active {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--theme-nav-link-hover-color) !important;
  transform: scale(0.98) !important;
  }
  .custom-nav-link.active,
  .dark-mode .custom-nav-link.active {
  color: var(--theme-nav-link-active-color) !important;
  font-weight: 650;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  }

}


.hero-section {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  position: relative;
  background-color: var(--theme-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 85px 0 45px 0;
  box-sizing: border-box;
}


.hero-fluid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  image-rendering: pixelated;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}



#projects {
  min-height: 100vh;
  padding: 100px 0 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--theme-text-primary);
  margin: 0 auto 2.75rem auto;
  position: relative;
  display: flex;
  width: fit-content;
  align-items: center;
  line-height: 1.1;
  letter-spacing: -0.03em;
  transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
  .projects-content-wrapper {
  max-width: 1100px;
  width: 100%;
}
  .project-card {
  background: var(--theme-card-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--theme-card-border);
  border-radius: 22px;
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--theme-card-shadow);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
  box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
  border-color 0.3s ease, 
  background-color 0.35s ease;
}
  @media (hover: hover) and (pointer: fine) {
  .project-card:hover {
  transform: translateY(-5px) scale(1.008);
  box-shadow: var(--theme-card-hover-shadow);
  border-color: var(--theme-card-hover-border);
  }
  }
  .project-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--theme-text-primary);
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
  .project-card-media {
  position: relative;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--theme-media-border);
  background: var(--theme-media-bg);
  box-shadow: var(--theme-media-shadow);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
  .project-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
  .project-card-img.img-panoramic {
  aspect-ratio: 2.18 / 1;
}
.project-card-desc {
  font-size: 0.9rem;
  color: var(--theme-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  transition: color 0.3s ease;
}
  .project-card-tech {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--theme-text-muted);
  margin-top: auto;
  letter-spacing: 0.015em;
  transition: color 0.3s ease;
}

  .project-badge-link {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--theme-nav-link-color) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2px 4px;
  border-radius: 4px;
  height: auto;
  box-sizing: border-box;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

  .project-badge-link svg {
  display: block;
  flex-shrink: 0;
  position: relative;
  top: -0.5px;
}

  .project-badge-link span {
  display: inline-block;
  line-height: 1;
}

  @media (hover: hover) and (pointer: fine) {
  .project-badge-link:hover {
  color: var(--theme-nav-link-hover-color) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: translateY(-1px);
  }
  }
  .project-badge-link:active {
  transform: scale(0.95);
  transition: transform 60ms cubic-bezier(0.32, 0.72, 0, 1);
}
  @media (max-width: 767.98px) {
  #projects {
  padding: 85px 0 60px 0;
  }
  .section-title {
  margin-bottom: 2rem;
  }
  .project-card {
  padding: 1.35rem;
  }
  }

#resume {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 0 0 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

#resume .section-title {
  position: relative;
  z-index: 5;
  margin-bottom: 2.5rem;
}

.resume-container {
  max-width: 100%;
  width: 100%;
  height: 500px;
  position: relative;
  z-index: 2;
  margin-bottom: 2.5rem;
  overflow: visible;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.resume-container,
.resume-container * {
  -webkit-user-drag: none;
}

.resume-container.is-hologram-active,
.resume-container.is-hologram-active .resume,
.resume-container.is-hologram-active .resume-wrap {
  cursor: grabbing;
  touch-action: none;
}

.resume-container > a {
  display: contents;
}

.resume-wrap {
  width: 340px;
  height: 510px;
  position: relative;
  transform-style: preserve-3d;
  transform: scale(var(--resume-scale));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  display: flex;
  justify-content: center;
  align-items: center;
}

.resume {
  width: 340px;
  height: 510px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  will-change: transform;
  cursor: grab;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.resume > div {
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center center;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
}

.front {
  background-image: url('../images/cover.webp');
  background-color: #FFFFFF;
  width: 340px;
  height: 510px;
  border-radius: 2px;
  box-shadow: var(--theme-resume-shadow);
  transform: translateZ(0.5px);
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.back {
  background-image: url('../images/back.webp');
  background-color: #FFFFFF;
  width: 340px;
  height: 510px;
  border-radius: 2px;
  box-shadow: var(--theme-resume-shadow);
  transform: rotateY(180deg) translateZ(0.5px);
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .resume-wrap.is-hovered {
    transform: scale(calc(var(--resume-scale) * 1.02));
  }
  .resume-wrap.is-hovered .front,
  .resume-wrap.is-hovered .back {
    box-shadow: var(--theme-resume-shadow-hover);
  }
}

@media (min-height: 960px) and (min-width: 769px) {
  :root {
    --resume-scale: 1;
  }
  .resume-container {
    height: 530px;
    margin-bottom: 3rem;
  }
}

@media (max-height: 860px) and (min-width: 769px) {
  :root {
    --resume-scale: 0.82;
  }
  .resume-container {
    height: 440px;
    margin-bottom: 2rem;
  }
  #resume .section-title {
    margin-bottom: 1.75rem;
  }
}

@media (max-height: 740px) and (min-width: 769px) {
  :root {
    --resume-scale: 0.74;
  }
  .resume-container {
    height: 390px;
    margin-bottom: 1.5rem;
  }
  #resume {
    padding: 50px 0 0 0;
  }
  #resume .section-title {
    margin-bottom: 1.25rem;
  }
}

@media (max-height: 640px) {
  :root {
    --resume-scale: 0.64;
  }
  .resume-container {
    height: 340px;
    margin-bottom: 1rem;
  }
  #resume {
    padding: 45px 0 0 0;
  }
  #resume .section-title {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --resume-scale: 0.76;
  }
  #resume {
    padding: 60px 0 0 0;
  }
  #resume .section-title {
    margin-bottom: 1.75rem;
  }
  .resume-container {
    height: 410px;
    margin-bottom: 1.75rem;
  }
}

@media (max-width: 390px) {
  :root {
    --resume-scale: 0.68;
  }
  #resume .section-title {
    margin-bottom: 1.25rem;
  }
  .resume-container {
    height: 360px;
    margin-bottom: 1.25rem;
  }
}

.site-footer {
  width: 100%;
  padding: 22px 0 26px 0;
  border-top: 1px solid var(--theme-footer-border);
  background: transparent;
  position: relative;
  z-index: 10;
  margin-top: auto;
  transition: border-color 0.35s ease;
}
  .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: transparent;
  border: none;
  color: var(--theme-footer-link-color);
  cursor: pointer;
  transition: transform 120ms cubic-bezier(0.16, 1, 0.3, 1), color 160ms cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
  @media (hover: hover) and (pointer: fine) {
  .footer-social-link:hover {
  transform: scale(1.1);
  color: var(--theme-footer-link-hover);
  }
  }
  .footer-social-link:active {
  transform: scale(0.92);
  transition: transform 60ms cubic-bezier(0.32, 0.72, 0, 1);
}
  .back-home-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--theme-nav-link-color) !important;
  text-decoration: none;
  background: transparent !important;
  border: none;
  box-shadow: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  transition: color 160ms cubic-bezier(0.16, 1, 0.3, 1), transform 120ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
  @media (hover: hover) and (pointer: fine) {
  .back-home-link:hover {
  color: var(--theme-text-primary) !important;
  background: transparent !important;
  transform: translateY(-1px);
  }
  }
  .back-home-link:active {
  transform: scale(0.97);
  transition: transform 60ms cubic-bezier(0.32, 0.72, 0, 1);
}

.hero-key-hint {
  position: absolute;
  pointer-events: none;
  z-index: 12;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-100% + 4px)) scale(0.96);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--theme-bg);
  border: 1px solid var(--theme-text-primary);
  border-radius: 0px;
  box-shadow: 3px 3px 0px var(--theme-text-primary);
  color: var(--theme-text-primary);
  font-family: 'Fira Code', 'SF Mono', Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  max-width: min(90vw, 360px);
  user-select: none;
}

.hero-key-hint.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -100%) scale(1);
}

.hero-key-hint::after {
  content: "▼";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  line-height: 1;
  color: var(--theme-text-primary);
}

@media (prefers-reduced-motion: reduce) {
  * {
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  }
  .resume,
  .resume:hover,
  .resume:active,
  .resume-wrap,
  .resume-wrap:hover,
  .resume-wrap:active,
  .project-card,
  .project-card:hover {
  transform: none !important;
  scale: 1 !important;
  }
  }
