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

:root {
  --accent: #e36a25;
  --accent-light: #f4a261;
  --text: #1E1F24;
  --text-secondary: #555;
  --bg: #ffffff;
  --bg-alt: #f9f9fb;
  --border: #eaeaea;
  --shadow: rgba(0,0,0,0.08);
  --radius: 12px;
  --max-width: 960px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }
a.link-dark { color: var(--text); font-weight: 600; }
a.link-dark:hover { color: var(--accent); }

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

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px var(--shadow); }
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-left {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.nav-brand {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.nav-motto {
  font-family: 'Kalam', cursive;
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0.8;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* ── PHOTOGRAPHY CAROUSEL ── */
.photo-carousel {
  position: relative;
  width: 100%;
  margin-top: 56px;
  background: #0a0a0a;
  overflow: hidden;
  padding: 20px 0 20px;
  perspective: 1200px;
}
.carousel-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
  position: relative;
  transform-style: preserve-3d;
}
.carousel-slide {
  position: absolute;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.carousel-slide img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
  background: #0a0a0a;
}
.carousel-slide.center {
  width: 40%;
  height: 100%;
  z-index: 5;
  transform: translateX(-50%) translateZ(0) rotateY(0deg);
  left: 50%;
  box-shadow: 0 15px 50px rgba(0,0,0,0.7), 0 0 60px rgba(255,255,255,0.03);
}
.carousel-slide.left {
  width: 28%;
  height: 75%;
  z-index: 3;
  left: 5%;
  transform: translateZ(-80px) rotateY(25deg);
  opacity: 0.7;
}
.carousel-slide.right {
  width: 28%;
  height: 75%;
  z-index: 3;
  right: 5%;
  left: auto;
  transform: translateZ(-80px) rotateY(-25deg);
  opacity: 0.7;
}
.carousel-slide.far-left {
  width: 20%;
  height: 55%;
  z-index: 1;
  left: -5%;
  transform: translateZ(-160px) rotateY(35deg);
  opacity: 0.3;
}
.carousel-slide.far-right {
  width: 20%;
  height: 55%;
  z-index: 1;
  right: -5%;
  left: auto;
  transform: translateZ(-160px) rotateY(-35deg);
  opacity: 0.3;
}
.carousel-slide.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateZ(-300px) scale(0.5);
}
.carousel-slide .slide-caption {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: rgba(0,0,0,0.5);
  border-radius: 4px;
  color: #fff;
  font-family: 'Kalam', cursive;
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s;
}
.carousel-slide.center .slide-caption {
  opacity: 1;
}
.slide-caption .cn { opacity: 0.95; }
.slide-caption .en { opacity: 0.7; font-size: 0.85rem; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.carousel-btn:hover { background: rgba(255,255,255,0.3); }
.carousel-btn-prev { left: 16px; }
.carousel-btn-next { right: 16px; }

/* ── HERO ── */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 50px;
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-text { flex: 1; }
.hero-name {
  font-family: 'Sora', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero-name-cn {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 8px;
}
.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}
.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.hero-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(227,106,37,0.05);
}
.hero-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.hero-photo {
  flex-shrink: 0;
}
.hero-photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-alt);
  box-shadow: 0 8px 30px var(--shadow);
}

/* ── SECTIONS ── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 24px;
}
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.section-alt {
  background: var(--bg-alt);
}
.section-alt .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 24px;
}

/* ── ABOUT ── */
.about p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.about a { font-weight: 500; }

/* ── NEWS ── */
.news-list { list-style: none; }
.news-item {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.news-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.project-card {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.project-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 4px 16px var(--shadow);
}
.project-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.project-card-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
}
.proj {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.proj a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.proj a:hover { color: var(--accent); }
.proj iframe { vertical-align: middle; }
.project-card-desc {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── AWARDS ── */
.awards-list { list-style: none; }
.awards-item {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.awards-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap;
}
.awards-badge.silver {
  background: #6c757d;
}

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding: 30px 24px;
  font-size: 0.85rem;
  color: #999;
  border-top: 1px solid var(--border);
}

/* ── FADE IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
    padding: 40px 20px 40px;
  }
  .hero-name { font-size: 2.2rem; }
  .hero-links { justify-content: center; }
  .hero-photo img { width: 150px; height: 150px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.8rem; }
  .nav-motto { display: none; }
  .section-title { font-size: 1.3rem; }
  .carousel-stage { height: 280px; }
  .carousel-slide.center { width: 55%; }
  .carousel-slide.left, .carousel-slide.right { width: 30%; }
  .carousel-slide.far-left, .carousel-slide.far-right { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .photo-slide-caption { font-size: 1rem; padding: 30px 16px 14px; }
}
