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

a#logo {
  display: none !important;
}

/* ========== 性能优化：图片和视频加载 ========== */
.project-card-image,
.project-card-video,
.project-video,
.portfolio-video {
  will-change: transform, opacity;
  content-visibility: auto;
  contain-intrinsic-size: 400px 300px;
}

/* 视频容器优化 */
video {
  background: #000;
  object-fit: cover;
}

/* 图片渐显效果 */
.project-card-image {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  font-family: 'Inter', sans-serif;
  --font-display: 'Montserrat', sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  cursor: none !important; /* 强制隐藏默认光标 */
}

/* 标题字体应用 */
h1,
h2,
h3,
h4,
h5,
h6,
.main-title,
.portfolio-title,
.project-title,
.project-hero-title,
.about-name,
.loading-text,
.portfolio-number,
.nav-link,
.filter-btn,
.project-detail-label,
.info-label,
.contact-label,
.about-label {
  font-family: var(--font-display);
}

/* 全局隐藏所有元素的默认光标 */
*,
*::before,
*::after {
  cursor: none !important;
}

/* ========== 自定义光标设计 ========== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}

.cursor-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.1s ease-out, height 0.1s ease-out;
  will-change: transform;
}

.cursor-circle {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease,
    background 0.3s ease, backdrop-filter 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
  will-change: transform;
}

/* 高级查看状态光标 */
.cursor-view .cursor-circle {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: invert(1) grayscale(1) blur(2px);
  opacity: 1;
}

.cursor-view .cursor-dot {
  opacity: 0;
}

/* 光标悬停状态 */
.cursor-hover .cursor-circle {
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.95);
  opacity: 1;
}

.cursor-hover .cursor-dot {
  width: 6px;
  height: 6px;
}

/* 光标点击状态 */
.cursor-click .cursor-circle {
  width: 24px;
  height: 24px;
  border-color: #fff;
  opacity: 1;
}

.cursor-click .cursor-dot {
  width: 3px;
  height: 3px;
}

/* 光标文本悬停状态 */
.cursor-text .cursor-circle {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.75);
  border-style: dashed;
}

/* 在特定区域调整光标样式 */
.loading-screen.hidden ~ .custom-cursor {
  opacity: 1;
}

.loading-screen:not(.hidden) ~ .custom-cursor {
  opacity: 0;
}

/* Lightbox中的光标优化 */
.media-lightbox.active ~ .custom-cursor .cursor-circle {
  border-color: rgba(255, 255, 255, 0.9);
  mix-blend-mode: normal;
}

.media-lightbox.active ~ .custom-cursor .cursor-dot {
  background: rgba(255, 255, 255, 0.95);
  mix-blend-mode: normal;
}

/* 项目详情页面中的光标 */
.project-detail-page.active ~ .custom-cursor {
  mix-blend-mode: normal;
}

.project-detail-page.active ~ .custom-cursor .cursor-circle {
  border-color: rgba(255, 255, 255, 0.8);
}

.project-detail-page.active ~ .custom-cursor .cursor-dot {
  background: rgba(255, 255, 255, 0.9);
}

/* 视频播放时的光标状态 */
.cursor-video .cursor-circle {
  width: 60px;
  height: 60px;
  border-color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.cursor-video .cursor-circle::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

/* 移动设备上隐藏自定义光标 */
@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }

  .custom-cursor {
    display: none !important;
  }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
}

.loading-text {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 30px;
  opacity: 0.8;
}

.loading-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  overflow: hidden;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: #fff;
  transition: width 0.3s ease-out;
}

/* Project Detail Page */
.project-detail-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000;
  z-index: 2000;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* 确保滚动条统一 */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.project-detail-page.active {
  transform: translateX(0);
}

/* 当项目详情页面激活时，隐藏body的滚动条 */
body:has(.project-detail-page.active) {
  overflow: hidden;
}

/* 当portfolio页面激活时，隐藏body的滚动条 */
body:has(.portfolio-page[style*='block']) {
  overflow: hidden;
}

.project-detail-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2001;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-back-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-back-btn:hover {
  opacity: 1;
  transform: translateX(-2px);
}

.project-detail-nav {
  display: flex;
  gap: 40px;
}

.project-nav-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-display);
  cursor: pointer;
  padding: 8px 0;
  opacity: 0.6;
  position: relative;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.project-nav-btn:hover,
.project-nav-btn.active {
  opacity: 1;
}

.project-nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.project-nav-btn:hover::after,
.project-nav-btn.active::after {
  width: 100%;
}

/* 桌面端 */
.project-detail-content {
  padding: 32px 60px 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.project-hero-title {
  margin-bottom: 12px;
}

.project-hero {
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease 0.3s forwards;
}

.project-hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, #ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 8px;
}

.project-hero-meta {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: start;
}

.project-hero-info {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.5s forwards;
}

.project-hero-category {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.project-hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 50px;
  opacity: 0.8;
  max-width: 600px;
}

.project-hero-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
}

.project-detail-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.project-detail-item:nth-child(1) {
  animation-delay: 0.7s;
}
.project-detail-item:nth-child(2) {
  animation-delay: 0.8s;
}
.project-detail-item:nth-child(3) {
  animation-delay: 0.9s;
}

.project-detail-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 8px;
}

.project-detail-value {
  font-size: 14px;
  font-weight: 500;
}

.project-hero-year {
  font-size: 120px;
  font-weight: 700;
  opacity: 0.1;
  line-height: 1;
  text-align: right;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.6s forwards;
}

.project-content-section {
  max-width: 1400px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.project-content-section:nth-child(2) {
  animation-delay: 1s;
}
.project-content-section:nth-child(3) {
  animation-delay: 1.2s;
}
.project-content-section:nth-child(4) {
  animation-delay: 1.4s;
}

.project-section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 60px;
  letter-spacing: -1px;
  opacity: 0.9;
}

.project-image-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 50px;
  width: 100%;
}

.project-image-item {
  width: 100%;
  margin-bottom: 0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  background: transparent;
}

.project-image-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4) !important;
}

/* 优雅的 VIEW 提示框 */
.project-image-item::after {
  content: 'VIEW';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: #fff;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 24px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.05);
}

.project-image-item:hover::after {
  opacity: 1;
  letter-spacing: 0.4em;
}

/* 隐藏包含iframe（YouTube外链视频）的项目图片的VIEW提示 */
.project-image-item:has(iframe)::after {
  display: none !important;
}

.project-image-item:hover .project-image-large,
.project-image-item:hover .project-image-medium {
  color: inherit;
  background: inherit;
}

.project-image-large {
  width: 100%;
  height: 600px;
  border-radius: 12px;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
}

.project-image-medium {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
}

.project-detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  background: #000;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-image-item:hover .project-detail-image {
  transform: scale(1.005) !important;
  filter: brightness(1.1) !important;
}

/* 为medium尺寸图片优化显示 */
.project-image-medium .project-detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  background: #000;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-detail-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  background: #000;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-image-item:hover .project-detail-video {
  transform: scale(1.005) !important;
  filter: brightness(1.1) !important;
}

.project-text-content {
  max-width: 800px;
  margin: 0 auto;
}

.project-text-content p {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: 30px;
}

.project-text-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 60px 0 30px;
  opacity: 0.9;
  letter-spacing: -0.5px;
}

.project-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 100px;
}

/* 当只有下一个项目按钮时，将其对齐到右边 */
.project-navigation:has(#prev-project[style*='display: none']) {
  justify-content: flex-end;
}

/* 当只有上一个项目按钮时，将其对齐到左边 */
.project-navigation:has(#next-project[style*='display: none']) {
  justify-content: flex-start;
}

.project-nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.7;
  transition: all 0.4s ease;
  padding: 15px 0;
}

.project-nav-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.project-nav-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.project-nav-link:hover .project-nav-arrow {
  transform: translateX(3px);
}

.project-nav-link:first-child:hover .project-nav-arrow {
  transform: translateX(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imageLoad {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }

  .main-content {
    padding: 60px 40px 80px;
  }

  .project-content-section {
    padding: 0 20px;
  }

  .project-image-large {
    height: 500px;
  }

  .project-image-medium {
    height: 400px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 项目详情页面的滚动条样式 */
.project-detail-page::-webkit-scrollbar {
  width: 6px;
}

.project-detail-page::-webkit-scrollbar-track {
  background: #111;
}

.project-detail-page::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.project-detail-page::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* About Section - 全新现代设计 */
.about-section {
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: none;
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 100vh;
}

/* About Hero Section */
.about-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 60px;
  position: relative;
  background: #000;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.015) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 1;
}

.about-hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-hero-text {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease 0.3s forwards;
}

.about-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  position: relative;
}

.about-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
}

.about-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 18px;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #e0e0e0 30%,
    #c0c0c0 60%,
    #a0a0a0 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow: visible;
  text-overflow: clip;
  word-break: keep-all;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}

.about-tagline {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.about-description {
  max-width: 480px;
}

.about-description p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  margin: 0;
}

/* About Photo Section */
.about-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease 0.5s forwards;
}

.about-photo-container {
  position: relative;
  width: 260px;
  height: 325px;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: none;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-photo-container:hover {
  transform: translateY(-3px) scale(1.005);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.02);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-photo-container:hover .about-photo {
  transform: scale(1.01);
  filter: brightness(1.1) contrast(1.05);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.1) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  opacity: 0.8;
  transition: opacity 0.8s ease;
}

.about-photo-container:hover .photo-overlay {
  opacity: 0.3;
}

/* Stats Section */
.about-stats {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 65px;
  flex: 1;
  max-width: 85px;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.stat-number {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
}

/* Biography Section */
.about-biography {
  padding: 70px 60px;
  background: #000;
  position: relative;
}

.about-biography::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.bio-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-heading {
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 600;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(135deg, #ffffff 0%, #d0d0d0 50%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.2s forwards;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 50px;
  align-items: start;
}

.bio-main {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.4s forwards;
}

.bio-text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  font-weight: 400;
}

.bio-text:last-child {
  margin-bottom: 0;
}

.bio-highlight {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.6s forwards;
}

.highlight-card {
  padding: 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: none;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.highlight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.highlight-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.highlight-card p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  font-weight: 300;
}

.highlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Expertise Section */
.about-expertise {
  padding: 70px 60px;
  background: #000;
}

.expertise-container {
  max-width: 1400px;
  margin: 0 auto;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.expertise-category {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: none;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.expertise-category:nth-child(1) {
  animation: fadeInUp 1s ease 0.8s forwards;
}

.expertise-category:nth-child(2) {
  animation: fadeInUp 1s ease 1s forwards;
}

.expertise-category:nth-child(3) {
  animation: fadeInUp 1s ease 1.2s forwards;
}

.expertise-category::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.expertise-category:hover::before {
  opacity: 1;
}

.expertise-category:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s ease;
}

.category-icon::before {
  content: '';
  position: absolute;
  transition: all 0.3s ease;
}

/* Category Icons */
.category-icon.digital::before {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 55%
  );
}

.category-icon.physical::before {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  box-shadow: -8px -8px 0 -6px rgba(255, 255, 255, 0.5),
    8px 8px 0 -6px rgba(255, 255, 255, 0.5);
}

.category-icon.strategy::before {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 -12px 0 -8px rgba(255, 255, 255, 0.7),
    -10px 8px 0 -8px rgba(255, 255, 255, 0.7),
    10px 8px 0 -8px rgba(255, 255, 255, 0.7);
}

.expertise-category:hover .category-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.01);
}

.category-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0;
}

.skills-list {
  position: relative;
  z-index: 2;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.skill-item:last-child {
  border-bottom: none;
}

.skill-item:hover {
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-name {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  transition: color 0.3s ease;
}

.skill-tools {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.skill-item:hover .skill-name {
  color: #fff;
}

.skill-item:hover .skill-tools {
  color: rgba(255, 255, 255, 0.8);
}

/* Contact CTA Section */
.about-contact-cta {
  padding: 70px 60px;
  background: #000;
  position: relative;
}

.about-contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 20%,
    rgba(255, 255, 255, 0.02) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.4s forwards;
}

.cta-content h2 {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 60%, #c0c0c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
  max-width: 480px;
}

.cta-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cta-button.primary:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.12) 100%
  );
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.cta-button.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.cta-info {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.6s forwards;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.info-item {
  padding: 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.info-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.info-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.info-value {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}

/* About Contact Section 重新设计 */
.about-contact {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 80px;
  position: relative;
}

.about-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
}

.about-contact h3 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 60px;
  text-align: center;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease 1.6s forwards;
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.about-contact-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  backdrop-filter: none;
}

.about-contact-card:nth-child(1) {
  animation: fadeInUp 1s ease 1.8s forwards;
}
.about-contact-card:nth-child(2) {
  animation: fadeInUp 1s ease 2s forwards;
}
.about-contact-card:nth-child(3) {
  animation: fadeInUp 1s ease 2.2s forwards;
}

/* 移除emoji，使用CSS图标 */
.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: none;
}

/* CSS图标设计 */
.contact-icon::before {
  content: '';
  position: absolute;
  transition: all 0.3s ease;
}

/* Email图标 */
.contact-icon.email::before {
  width: 20px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  background: transparent;
}

.contact-icon.email::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg) translate(-1px, -1px);
}

/* LinkedIn图标 */
.contact-icon.linkedin::before {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 3px;
}

.contact-icon.linkedin::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  top: 18px;
  left: 22px;
}

/* Status图标 */
.contact-icon.status::before {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  background: transparent;
}

.contact-icon.status::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  top: 22px;
  border-radius: 1px;
}

/* 卡片悬停效果优化 */
.about-contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-contact-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.about-contact-card:hover::before {
  transform: translateX(100%);
}

.about-contact-card:hover::after {
  opacity: 1;
}

.about-contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.about-contact-card:hover .contact-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.01) translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.about-contact-card:hover .contact-icon::before,
.about-contact-card:hover .contact-icon::after {
  opacity: 0.9;
}

.about-contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.5;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.about-contact-card:hover .about-contact-label {
  opacity: 0.7;
  transform: translateY(-0.5px);
}

.about-contact-value {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

.about-contact-value:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* 链接特殊效果 */
a.about-contact-value {
  position: relative;
}

a.about-contact-value::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

a.about-contact-value:hover::after {
  width: 100%;
}

/* 优化技能部分的动画稳定性 */
.skill-category {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.skill-category::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.skill-category:hover::before {
  opacity: 1;
}

.skill-category:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 优化intro highlight部分 */
.about-intro .intro-highlight {
  position: relative;
  padding: 40px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.6s forwards;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-intro .intro-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  border-radius: 24px 24px 0 0;
}

.about-intro .intro-highlight:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 优化背景动画的稳定性 */
@keyframes floatBackground {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-15px) rotate(0.5deg);
    opacity: 0.8;
  }
}

.about-section::before {
  animation: floatBackground 25s ease-in-out infinite;
}

/* 确保所有动画的流畅性 */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 移除不必要的 will-change，避免过度使用导致性能下降 */
.about-section *,
.portfolio-page *,
.project-card * {
  backface-visibility: hidden;
}

/* 优化关键性能节点 - 使用 GPU 加速 */
.project-card {
  contain: layout style paint;
  transform: translateZ(0);
}

.project-image {
  contain: layout style paint;
  transform: translateZ(0);
}

/* 确保视频播放的性能优化 */
.project-video,
.project-card-video,
.project-card-iframe,
.project-detail-video {
  transform: translateZ(0);
}

/* 优化过渡和动画性能 - 只对 transform 和 opacity 使用 GPU 加速 */
.project-card,
.project-image-item,
.lightbox-nav,
.lightbox-close {
  will-change: transform, opacity;
}

/* Contact Section (Overlay) */
.contact-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.95) 20%,
    #000 100%
  );
  backdrop-filter: blur(20px);
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1500;
  padding: 60px 0 40px;
}

.contact-section.active {
  transform: translateY(0);
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-left h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 30px;
  background: linear-gradient(45deg, #fff, #ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-description {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.7;
  margin-bottom: 40px;
  max-width: 400px;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  font-weight: 500;
}

.contact-value {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-value:hover {
  opacity: 0.7;
}

.contact-close {
  position: absolute;
  top: 30px;
  right: 60px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.contact-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

/* Page Transitions */
.page-transition {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.page-transition.active {
  opacity: 1;
  transform: translateY(0);
}

/* 只有在需要显示占位符时才添加背景 */
.project-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1px;
  border-radius: 12px;
}

.project-image-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
  width: 100%;
}

.project-image-item:hover .project-image-large,
.project-image-item:hover .project-image-medium {
  color: inherit;
  background: inherit;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .project-image-large {
    height: 500px;
  }

  .project-image-gallery {
    gap: 30px;
  }
}

.project-card-video,
.project-card-iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  background: #000;
  /* 优化iframe渲染性能 */
  will-change: transform, filter;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.project-image-item:hover .project-card-video,
.project-image-item:hover .project-card-iframe {
  filter: brightness(1.1);
}

.project-detail-iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
  background: #000;
  display: block;
  overflow: hidden;
  /* 概览中的 YouTube 外链视频保持静态，不做缩放动画 */
  transition: none;
  will-change: auto;
  backface-visibility: hidden;
  transform: none;
}

.project-image-item:hover .project-detail-iframe {
  /* 覆盖默认 hover 动画：嵌入的 YouTube 视频不放大、不变亮 */
  transform: none;
  filter: none;
}

/* 为长图片（如tidebound-process-1）特殊处理容器高度 */
[data-section='process']
  .project-image-item:has(.project-detail-image[src*='tidebound-process-1'])
  .project-image-medium {
  height: 1200px;
}

/* 确保所有项目图片都使用统一的显示方式 */
.project-detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  background: #000;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 确保REALITYEATER图片保持原有尺寸 */
[data-section='process'] .project-detail-image[src*='realityeater'],
[data-section='results'] .project-detail-image[src*='realityeater'] {
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  object-fit: contain !important;
}

/* 使用更具体的选择器强制Dice Birdhouse图片尺寸 */
[data-section='results'] .project-detail-image[src*='bird-final-1'],
[data-section='results'] .project-detail-image[src*='bird-final-2'],
[data-section='results'] .project-detail-image[src*='bird-final-3'],
[data-section='results'] .project-detail-image[src*='bird-final-4'],
[data-section='results'] .project-detail-image[src*='bird-final-5'] {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

/* 确保Dice Birdhouse的Final图片容器高度与其他项目一致 */
[data-section='results'] .project-image-item .project-image-large {
  /* height: 600px !important; */
  overflow: hidden !important;
}

/* 确保FateRISD的Final图片与REALITYEATER保持一致的尺寸 */
[data-section='results'] .project-detail-image[src*='fate-final-1'],
[data-section='results'] .project-detail-image[src*='fate-final-2'],
[data-section='results'] .project-detail-image[src*='fate-final-3'],
[data-section='results'] .project-detail-image[src*='fate-final-4'] {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

/* Project Detail Spline Text Effect - 作品集页面版本 */
.project-spline-text {
  position: fixed !important; /* 改为fixed，确保不受其他元素影响 */
  top: 15px !important; /* 移到header顶部区域，与导航栏同一高度 */
  left: 50% !important; /* 水平居中 */
  transform: translateX(-50%) !important; /* 只水平居中，不垂直偏移 */
  width: 450px !important; /* 从650px改为450px */
  height: 200px !important; /* 从300px改为200px */
  z-index: 9999 !important; /* 降低z-index，确保在header之下，不遮挡按钮 */
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.6s ease !important;
  pointer-events: none !important; /* 设置为none，让点击穿透，不影响按钮交互 */
  background: transparent !important;
  border-radius: 12px !important;
}

/* 当Spline特效可见时，保持交互 */
.project-spline-text.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Spline viewer内部元素保持交互 */
.project-spline-text spline-viewer {
  pointer-events: auto !important;
}

.project-spline-text spline-viewer {
  width: 100% !important;
  height: 100% !important;
  border-radius: 10px !important;
  transform-origin: center center !important;
  transform: scale(1.2) !important; /* 放大1.2倍以保持字体大小 */
  display: block !important;
}

/* 确保作品集页面的内容有足够的上边距，但不移动FINN TANG */
.portfolio-page.active .portfolio-grid {
  margin-top: 50px !important;
}

.spline-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 最后手段：用覆盖层遮挡右下角的任何残留水印 */
/* .spline-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 60px;
  background: #000;
  z-index: 99999;
  pointer-events: none;
} */

/* 添加滚动触发动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 确保平滑滚动 */
html {
  scroll-behavior: smooth;
}

.project-hero {
  overflow: visible;
}

/* About页面 - 平板和中等屏幕响应式 */
@media (max-width: 1024px) and (min-width: 769px) {
  .about-hero {
    padding: 0 40px;
    min-height: 95vh;
  }

  .about-hero-content {
    gap: 60px;
  }

  .about-title {
    font-size: clamp(32px, 5.5vw, 56px);
    line-height: 1.2;
    letter-spacing: -1px;
    text-align: center;
  }

  .about-photo-container {
    width: 240px;
    height: 300px;
  }

  .about-stats {
    gap: 16px;
  }

  .stat-item {
    padding: 12px 16px;
    min-width: 60px;
    max-width: 80px;
  }

  .about-biography {
    padding: 60px 40px;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .bio-text {
    font-size: 14px;
    text-align: center;
    max-width: 520px;
    margin: 0 auto 18px;
    line-height: 1.6;
  }

  .highlight-card {
    max-width: 440px;
    margin: 0 auto;
    padding: 26px;
  }

  .about-expertise {
    padding: 60px 40px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 520px;
    margin: 0 auto;
  }

  .expertise-category {
    padding: 26px;
  }

  .about-contact-cta {
    padding: 60px 40px;
  }

  .cta-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .cta-content {
    max-width: 520px;
    margin: 0 auto;
  }

  .info-grid {
    max-width: 440px;
    margin: 0 auto;
    gap: 22px;
  }

  .info-item {
    padding: 18px;
  }
}

/* Media Lightbox - 高级简约设计 */
.media-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(0px);
  -webkit-font-smoothing: antialiased;
}

.media-lightbox.active {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(20px);
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px 40px;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.lightbox-media-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: calc(100% - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-image,
.lightbox-video,
.lightbox-iframe {
  display: none;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.lightbox-image.active,
.lightbox-video.active,
.lightbox-iframe.active {
  display: block;
}

.lightbox-video {
  width: 100%;
  height: 100%;
}

.lightbox-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 关闭按钮 */
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10001;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.lightbox-close:hover svg {
  transform: rotate(90deg);
}

/* 导航按钮 */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10001;
  backdrop-filter: blur(10px);
  opacity: 0.8;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-nav svg {
  transition: transform 0.2s ease;
}

.lightbox-nav:hover svg {
  transform: translateX(2px);
}

.lightbox-prev:hover svg {
  transform: translateX(-2px);
}

/* 隐藏导航按钮当只有一个媒体时 */
.lightbox-nav.hidden {
  display: none;
}

/* 信息区域 */
.lightbox-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
  gap: 20px;
}

.lightbox-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.lightbox-separator {
  opacity: 0.5;
}

.lightbox-title {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 1.4;
  opacity: 0.9;
  font-family: var(--font-display);
  flex: 1;
  margin: 0 20px;
}

/* 键盘导航提示 */
.lightbox-container::before {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.media-lightbox.active .lightbox-container::before {
  opacity: 1;
  animation: fadeInKeyboardHint 2s ease 1s forwards;
}

@keyframes fadeInKeyboardHint {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  20% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

/* 加载状态 */
.lightbox-media-container.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: lightboxSpin 1s linear infinite;
}

@keyframes lightboxSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .lightbox-container {
    padding: 40px 20px 20px;
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .lightbox-nav {
    width: 48px;
    height: 48px;
  }

  .lightbox-prev {
    left: 20px;
  }

  .lightbox-next {
    right: 20px;
  }

  .lightbox-info {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .lightbox-title {
    margin: 0;
    font-size: 14px;
  }

  .lightbox-counter {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .lightbox-container {
    padding: 30px 15px 15px;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

  .lightbox-close svg {
    width: 18px;
    height: 18px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-nav svg {
    width: 24px;
    height: 24px;
  }

  .lightbox-prev {
    left: 15px;
  }

  .lightbox-next {
    right: 15px;
  }

  .lightbox-content {
    gap: 16px;
  }

  .lightbox-media-container {
    max-height: calc(100% - 60px);
  }

  .lightbox-title {
    font-size: 13px;
  }

  .lightbox-counter {
    font-size: 12px;
  }
}

/* 触摸设备优化 */
@media (max-width: 768px) and (pointer: coarse) {
  .lightbox-nav {
    width: 52px;
    height: 52px;
  }

  .lightbox-close {
    width: 44px;
    height: 44px;
  }
}

/* 大屏幕优化 - 27寸及以上显示器 (2K/4K) */
@media (min-width: 2560px) {
  .lightbox-content {
    max-width: 1900px !important;
    max-height: 1150px !important;
  }

  .lightbox-media-container {
    max-height: calc(100% - 100px);
  }

  .lightbox-image,
  .lightbox-video {
    max-width: 1900px;
    max-height: 1150px;
  }
}

/* 防止body滚动 */
body.lightbox-open {
  overflow: hidden;
}

/* Video Placeholder样式 */
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.video-placeholder span {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.video-placeholder a {
  color: #fff !important;
  text-decoration: underline !important;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.video-placeholder a:hover {
  opacity: 1;
}

/* Portfolio Grid - Featured Projects */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 10px 0 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Portfolio Card - Premium Design */
.portfolio-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0; /* 直角设计更适合线条动画 */
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  height: 360px; /* 更紧凑的高度 */
  /* 初始动画状态 */
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}

.portfolio-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* 边框线条动画 - Cinematic Reveal Style */
.portfolio-card::before,
.portfolio-card::after {
  content: '';
  position: absolute;
  background-color: rgba(255, 255, 255, 0.75);
  pointer-events: none;
  z-index: 10;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* 上下边框 - 从中心水平展开 */
.portfolio-card::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  /* 使用伪元素的border不可行，因为需要两个独立的transform轴 */
  /* 改为：before负责上下，after负责左右 */
}

/* 修正：使用内部元素或重构伪元素逻辑 */
/* 重新定义：before为上下边框，after为左右边框 */
/* 我们需要使用 clip-path 或者 渐变来实现中心扩散 */

/* 方案B：使用 scale 变换 */
.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none; /* 边框本身不能加shadow，否则scale时shadow也会变形 */
}

.portfolio-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.7);
  transform: scaleY(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

/* 悬停触发线条动画 */
.portfolio-card:hover::before {
  transform: scaleX(1);
}

.portfolio-card:hover::after {
  transform: scaleY(1);
}

/* 为了增加发光效果，我们可以利用 filter: drop-shadow 在伪元素上 */
.portfolio-card:hover::before,
.portfolio-card:hover::after {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}

.portfolio-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.portfolio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85; /* 提高默认透明度 */
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.95) contrast(1.05); /* 提高默认亮度 */
  transform: scale(1);
}

.portfolio-card:hover .portfolio-video {
  opacity: 1;
  transform: scale(1.008);
  filter: brightness(1.1) contrast(1.08); /* 悬停时更加明亮 */
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    transparent 45%,
    rgba(0, 0, 0, 0.8) 100%
  );
  opacity: 0.7;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 0.9;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.portfolio-number {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 60px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-card:hover .portfolio-number {
  color: rgba(255, 255, 255, 0.22);
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  z-index: 5;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  color: #fff;
  transform: translateY(3px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-card:hover .portfolio-title {
  transform: translateY(0);
}

.portfolio-card:hover .portfolio-meta {
  opacity: 0.85;
  transform: translateY(0);
}

.portfolio-category {
  color: rgba(255, 255, 255, 0.9);
}

.portfolio-year {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.7;
}

/* PDF Fullscreen Button */
.pdf-fullscreen-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.pdf-page-wrapper:hover .pdf-fullscreen-btn {
  opacity: 1;
}

.pdf-fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.pdf-page-notice {
  text-align: center;
  margin-bottom: 20px;
}

.pdf-placeholder {
  grid-column: 1 / -1;
  padding: 80px 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
}

.pdf-placeholder p {
  font-size: 16px;
  opacity: 0.8;
  margin: 0;
}

/* Portfolio Placeholder Cards */
.portfolio-placeholder {
  pointer-events: none;
  opacity: 0.3;
  cursor: default;
  border-color: rgba(255, 255, 255, 0.03);
}

.portfolio-placeholder.visible {
  opacity: 0.35;
}

.portfolio-placeholder:hover {
  transform: translateY(0) !important;
  border-color: rgba(255, 255, 255, 0.03) !important;
  box-shadow: none !important;
}

.portfolio-placeholder::before,
.portfolio-placeholder::after {
  display: none;
}

.placeholder-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.placeholder-content::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(255, 255, 255, 0.005) 30px,
    rgba(255, 255, 255, 0.005) 60px
  );
}

.placeholder-text {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.18);
  z-index: 1;
  position: relative;
  animation: placeholderPulse 4s ease-in-out infinite;
}

@keyframes placeholderPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.2;
  }
}

/* Empty State样式 */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 60px 20px;
}

.empty-state h2 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.empty-state p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  opacity: 0.7;
  margin: 8px 0;
  max-width: 600px;
}

.empty-state p:first-of-type {
  font-weight: 400;
  opacity: 0.85;
}

/* Portfolio Responsive Design */
@media (max-width: 1200px) {
  .portfolio-grid {
    gap: 40px 30px;
  }

  .portfolio-image {
    height: 400px;
  }

  .portfolio-number {
    font-size: 60px;
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px 0;
  }

  .portfolio-image {
    height: 350px;
  }

  .portfolio-info {
    padding: 25px 30px;
  }

  .portfolio-title {
    font-size: 24px;
  }

  .portfolio-number {
    font-size: 50px;
    top: 15px;
    right: 15px;
  }

  .pdf-viewer {
    min-height: 800px;
  }

  .empty-state {
    min-height: 50vh;
    padding: 40px 20px;
  }

  .empty-state h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .empty-state p {
    font-size: 16px;
  }
}

/* Project External Links - Enhanced Style */
.project-external-link-container {
  margin-top: 40px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-link-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
  font-weight: 500;
  padding-left: 4px;
}

.project-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px; /* Fully rounded/pill shape */
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 260px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.project-cta-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.project-cta-link:hover {
  border-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-cta-link:hover::before {
  transform: translateX(0);
}

.project-cta-text {
  position: relative;
  z-index: 1;
}

.project-cta-icon {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  transition: transform 0.4s ease;
  fill: currentColor;
}

.project-cta-link:hover .project-cta-icon {
  transform: translateX(4px);
}
