/* ============================================
   茜楠公馆 · ws0728.top
   Color Palette:
     --qian:    #C45C5C  (茜红 · 主色)
     --nan:     #D4A574  (楠木 · 暖色)
     --dark:    #2D3436  (深色文字)
     --cream:   #FDF6F0  (暖白背景)
   ============================================ */

:root {
  --qian: #C45C5C;
  --qian-light: #e8a0a0;
  --qian-dark: #9e3a3a;
  --nan: #D4A574;
  --nan-light: #e8cdb3;
  --nan-dark: #b07d48;
  --dark: #2D3436;
  --dark-light: #636e72;
  --cream: #FDF6F0;
  --cream-dark: #f5ebe0;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(45,52,54,0.06);
  --shadow-md: 0 8px 30px rgba(45,52,54,0.1);
  --shadow-lg: 0 20px 60px rgba(45,52,54,0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(253,246,240,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.logo-qian { color: var(--qian); }
.logo-nan { color: var(--nan-dark); }
.logo-suffix {
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--dark-light);
  margin-left: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--dark-light);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--qian);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--dark);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, var(--cream) 0%, var(--cream-dark) 50%, #f0ddd0 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(196,92,92,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212,165,116,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(196,92,92,0.03) 0%, transparent 70%);
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.02) translate(-10px, 10px); }
  66% { transform: scale(0.98) translate(10px, -10px); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(196,92,92,0.1);
  border: 1px solid rgba(196,92,92,0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--qian);
  letter-spacing: 3px;
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease-out 0.2s both;
}

.hero-title {
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.title-line-1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 12px;
  background: linear-gradient(135deg, var(--qian) 0%, var(--nan-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.title-line-2 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 8px;
  color: var(--dark-light);
  margin-top: 8px;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--dark-light);
  line-height: 2;
  margin-bottom: 40px;
  font-weight: 300;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 1s both;
}

.btn {
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--qian);
  color: var(--white);
  border-color: var(--qian);
}

.btn-primary:hover {
  background: var(--qian-dark);
  border-color: var(--qian-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196,92,92,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark-light);
}

.btn-outline:hover {
  border-color: var(--nan-dark);
  color: var(--nan-dark);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.8s ease-out 1.4s both;
}

.hero-scroll-hint span {
  font-size: 0.75rem;
  color: var(--dark-light);
  letter-spacing: 2px;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--dark-light);
  border-bottom: 2px solid var(--dark-light);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 0.5; }
}

/* ============================================
   Section Headers
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--qian);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 4px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--qian), var(--nan));
  border-radius: 3px;
  margin: 16px auto 0;
}

.section-desc {
  margin-top: 16px;
  color: var(--dark-light);
  font-size: 1rem;
}

/* ============================================
   About Section
   ============================================ */

.about {
  padding: 120px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.about-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196,92,92,0.1);
}

.about-card-center {
  background: linear-gradient(135deg, rgba(196,92,92,0.08), rgba(212,165,116,0.08));
  border: 1px solid rgba(196,92,92,0.15);
}

.about-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--qian);
}

.about-card-icon svg {
  width: 100%;
  height: 100%;
}

.heart-icon {
  animation: heartBeat 2s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  56% { transform: scale(1); }
}

.about-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.about-card p {
  color: var(--dark-light);
  font-size: 0.95rem;
  line-height: 1.9;
}

.about-card-tag {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 16px;
  background: rgba(196,92,92,0.1);
  color: var(--qian);
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.about-card-date {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--qian), var(--nan-dark));
  color: var(--white);
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 500;
}

/* ============================================
   Showcase Split Panel Section
   ============================================ */

.showcase {
  background: var(--cream);
}

.showcase .section-header {
  padding-bottom: 48px;
}

.split-panel {
  display: flex;
  width: 100%;
  min-height: 600px;
  overflow: hidden;
}

.split-side {
  position: relative;
  flex: 1;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-panel:hover .split-side {
  flex: 0.85;
}

.split-panel .split-side:hover {
  flex: 1.15;
}

.split-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 0.6s ease;
}

.split-bg-left {
  background: linear-gradient(135deg, #2d2d42 0%, #353550 50%, #2f2f48 100%);
}

.split-bg-right {
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 50%, #f5ede3 100%);
}

.split-content {
  position: relative;
  z-index: 1;
  padding: 60px 48px;
  max-width: 520px;
  width: 100%;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.split-side:hover .split-content {
  transform: scale(1.02);
}

.split-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.split-left .split-label {
  color: rgba(255,255,255,0.6);
}

.split-left .split-label svg {
  stroke: rgba(255,255,255,0.5);
}

.split-right .split-label {
  color: var(--dark-light);
}

.split-label span {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.split-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem;
  margin-bottom: 8px;
  letter-spacing: 3px;
}

.split-left .split-title {
  color: #fff;
}

.split-right .split-title {
  color: var(--dark);
}

.split-subtitle {
  font-size: 0.9rem;
  margin-bottom: 28px;
  opacity: 0.7;
  color: var(--dark-light);
}

/* Project cards inside left panel */
.split-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.split-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.15);
  transform: translateX(6px);
}

.split-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.go-theme-mini {
  background: linear-gradient(135deg, #3a3a5e, #2a2a4e);
  border: 1px solid rgba(255,255,255,0.1);
}

.go-stone-mini {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: absolute;
}

.go-stone-mini.black {
  background: radial-gradient(circle at 35% 35%, #555, #111);
  top: 10px;
  left: 10px;
}

.go-stone-mini.white {
  background: radial-gradient(circle at 35% 35%, #fff, #ccc);
  bottom: 10px;
  right: 10px;
}

.star-theme-mini {
  background: linear-gradient(135deg, #2c1c4e, #3a2060);
  border: 1px solid rgba(255,255,255,0.1);
}

.star-mini {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, #ffd700, #ff8c00);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,215,0,0.5);
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 12px rgba(255,215,0,0.5); }
  50% { box-shadow: 0 0 24px rgba(255,215,0,0.7), 0 0 40px rgba(255,140,0,0.3); }
}

.split-card-info h4 {
  color: #fff;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.dev-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 400;
  padding: 2px 8px;
  margin-left: 8px;
  background: rgba(196,92,92,0.3);
  color: #f0a0a0;
  border-radius: 50px;
  vertical-align: middle;
  letter-spacing: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.split-card-info p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  line-height: 1.6;
}

.split-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.split-left .split-link {
  color: rgba(255,255,255,0.6);
}

.split-left .split-link:hover {
  color: #fff;
  letter-spacing: 1px;
}

.split-right .split-link {
  color: var(--qian);
}

.split-right .split-link:hover {
  color: var(--qian-dark);
  letter-spacing: 1px;
}

.split-social {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--dark-light);
  line-height: 1.6;
}

.split-social a {
  color: var(--qian);
  font-weight: 500;
}

.split-social a:hover {
  color: var(--qian-dark);
  text-decoration: underline;
}

.split-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-mihuashi-sm {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
  background: linear-gradient(135deg, var(--qian), var(--nan-dark));
  border-radius: 50px;
  letter-spacing: 1px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-mihuashi-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 92, 92, 0.35);
  color: var(--white);
}

.zhixing-icon-wrap {
  background: linear-gradient(135deg, #2c1c4e, #3a2060);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
}

.zhixing-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.sealand-witch-wrap {
  background: linear-gradient(135deg, #3a4a5e, #2d3a4a);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
}

.witch-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

/* 甘丸的作品：横向缓慢滚动的矩形框 */
.gallery-scroll-wrap {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  background: linear-gradient(135deg, #e8ddd0, #f0e8de);
  margin-bottom: 8px;
}

.gallery-scroll-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  animation: galleryScroll 60s linear infinite;
  will-change: transform;
}

.gallery-scroll-track:hover {
  animation-play-state: paused;
}

@keyframes galleryScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-scroll-item {
  flex-shrink: 0;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-scroll-item:hover {
  transform: scale(1.03);
}

.gallery-scroll-item img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.5);
  display: block;
}

/* 保留原画廊相关占位样式（若其他地方引用） */
.split-gallery .gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8ddd0, #f0e8de);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px dashed rgba(196,92,92,0.2);
  border-radius: 10px;
}

.split-gallery .gallery-placeholder svg {
  width: 28px;
  height: 28px;
  color: var(--qian-light);
}

.split-gallery .gallery-placeholder span {
  font-size: 0.75rem;
  color: var(--dark-light);
  font-weight: 500;
}

/* Vertical divider between panels */
.split-left::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent);
  z-index: 2;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .split-panel {
    flex-direction: column;
    min-height: auto;
  }

  .split-side {
    flex: none !important;
    min-height: 420px;
  }

  .split-content {
    padding: 40px 24px;
  }

  .split-left::after {
    display: none;
  }

  .split-title {
    font-size: 1.5rem;
  }

  .gallery-scroll-wrap {
    height: 220px;
  }
}

/* ============================================
   Timeline Section
   ============================================ */

.timeline {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.timeline-track {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--qian-light), var(--nan), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  position: relative;
  margin-bottom: 48px;
}

.timeline-item-right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 16px;
  height: 16px;
  background: var(--qian);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 3px rgba(196,92,92,0.2);
  z-index: 2;
}

.timeline-dot-future {
  background: var(--nan);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(212,165,116,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(212,165,116,0.1); }
}

.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition);
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-card-future {
  background: linear-gradient(135deg, rgba(212,165,116,0.08), rgba(196,92,92,0.05));
  border: 1px dashed rgba(212,165,116,0.3);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--qian);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.timeline-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.timeline-card p {
  color: var(--dark-light);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.4rem;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-qq {
  margin-top: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-heart {
  display: flex;
  align-items: center;
  gap: 4px;
}

.heart-beat {
  color: var(--qian);
  animation: heartBeat 2s ease-in-out infinite;
  display: inline-block;
}

/* ============================================
   Lightbox
   ============================================ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: rgba(253,246,240,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 40px;
    gap: 24px;
    transition: right 0.4s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item,
  .timeline-item-right {
    padding-left: 56px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .about,
  .showcase,
  .timeline {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }
}
