@tailwind base;
@tailwind components;
@tailwind utilities;

/* ===== CSS Variables ===== */
:root {
  --brand: #BB2649;
  --brand-light: #F8E8ED;
  --brand-dark: #3D0A1A;
  --warm-white: #FFFBFA;
  --warm-cream: #F5F0ED;
  --text-main: #1A1A1A;
  --text-sub: #6B6B6B;
  --text-light: #A8A8A8;
  --font-sans: -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
  --font-mono: 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', monospace;
}

/* ===== Base ===== */
@layer base {
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  h1, h2, h3, h4 { word-break: keep-all; }
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 6rem 0; }
.section-cream { background-color: var(--warm-cream); }

@media (min-width: 1024px) {
  .section { padding: 8rem 0; }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 50;
  transition: all 0.4s;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255, 251, 250, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo-img { height: 2rem; width: auto; object-fit: contain; }
.nav-links { display: none; gap: 2rem; }
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--brand); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--brand);
  transition: width 0.3s cubic-bezier(0.25,1,0.5,1);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  display: none;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background: var(--brand);
  text-decoration: none;
  transition: all 0.3s;
}
.nav-cta:hover {
  background: #9e1f3d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(187,38,73,0.3);
}
.nav-toggle {
  display: block;
  background: none; border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--warm-white);
  padding-top: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}
.mobile-nav.open { display: flex; opacity: 1; visibility: visible; }
.mobile-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
}
.mobile-link.active { color: var(--brand); }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--warm-white);
  padding-top: 72px;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand);
  background: var(--brand-light);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-nums {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}
.hero-num { text-align: center; }
.hero-num strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
}
.hero-num span {
  font-size: 0.75rem;
  color: var(--text-sub);
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-right { display: flex; justify-content: center; }
.hero-img {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 3/4;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

@media (min-width: 1024px) {
  .hero-container { grid-template-columns: 45% 55%; }
  .hero-right { justify-content: flex-end; }
}

/* ===== Buttons ===== */
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-weight: 500;
  color: white;
  background: var(--brand);
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn-brand:hover {
  background: #9e1f3d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(187,38,73,0.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-weight: 500;
  color: var(--brand);
  background: transparent;
  border: 2px solid var(--brand);
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-2px);
}

/* ===== Section Header ===== */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.7;
}
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.max-w-md { max-width: 28rem; margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }

/* ===== Cards ===== */
.cards-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .cards-row { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.25,1,0.5,1);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 60px rgba(187,38,73,0.12);
}
.card.text-center { text-align: center; }
.card.p-6 { padding: 1.5rem; }
.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-light);
  margin-bottom: 1.5rem;
}
.text-center .card-icon { margin-left: auto; margin-right: auto; }
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}
.card-desc {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  transition: gap 0.3s;
}
.card-link:hover { gap: 0.5rem; }
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.card-list li {
  font-size: 0.875rem;
  color: var(--text-sub);
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ===== Talent Grid ===== */
.talent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.talent-item { cursor: pointer; }
.talent-item h4 { font-weight: 700; font-size: 1rem; margin-top: 0.75rem; }
.talent-item p { font-size: 0.75rem; color: var(--text-sub); margin-top: 0.25rem; }
.talent-img {
  border-radius: 16px;
  overflow: hidden;
}
.talent-img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.5s;
}
.talent-item:hover .talent-img img { transform: scale(1.05); }
.talent-tag {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--brand);
  background: var(--brand-light);
}

@media (min-width: 768px) {
  .talent-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .talent-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
}

/* ===== Stats Bar ===== */
.stats-bar {
  padding: 5rem 0;
  background: var(--brand);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}
.stat span { color: rgba(255,255,255,0.7); font-size: 0.875rem; }

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Partners ===== */
.partner-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.partner {
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-sub);
  background: white;
  border: 1px solid transparent;
  transition: all 0.3s;
  cursor: default;
}
.partner:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(187,38,73,0.1);
}

/* ===== Page Hero ===== */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 45vh;
  max-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(61,10,26,0.7) 0%, rgba(61,10,26,0.5) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
}
.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.page-hero-content p {
  margin-top: 1rem;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

/* ===== About Intro ===== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.about-intro-text .section-title { margin-bottom: 1.5rem; }
.about-intro-body { space-y: 1rem; }
.about-intro-body p {
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-intro-img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

@media (min-width: 1024px) {
  .about-intro { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 768px;
  margin: 0 auto;
}
.timeline-line {
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand-light);
}
.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.625rem;
  top: 0.375rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--warm-white);
}
.t-year {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand);
}
.timeline-item h4 { font-weight: 700; font-size: 1.125rem; margin: 0.25rem 0; }
.timeline-item p { font-size: 0.875rem; color: var(--text-sub); }

@media (min-width: 768px) {
  .timeline-line { left: 50%; transform: translateX(-50%); }
  .timeline-item { padding-left: 0; width: 45%; }
  .timeline-item:nth-child(odd) { margin-left: 0; text-align: right; padding-right: 2rem; }
  .timeline-item:nth-child(even) { margin-left: 55%; padding-left: 2rem; }
  .timeline-item:nth-child(odd)::before { left: auto; right: -0.625rem; }
  .timeline-item:nth-child(even)::before { left: -0.375rem; }
}

/* ===== Process Row ===== */
.process-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.process-step { text-align: center; }
.process-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 700;
  color: white;
  background: var(--brand);
}
.process-step h4 { font-weight: 700; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.875rem; color: var(--text-sub); }

@media (min-width: 768px) {
  .process-row { grid-template-columns: repeat(5, 1fr); }
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.gallery-item {
  border-radius: 20px;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.03); }

@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
.contact-info h2 { margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-light);
  flex-shrink: 0;
}
.contact-item strong { font-size: 0.875rem; color: var(--text-main); }
.contact-item p { font-size: 0.875rem; color: var(--text-sub); margin-top: 0.125rem; }
.contact-form-wrapper {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-size: 0.875rem; font-weight: 500; color: var(--text-main); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: var(--text-main);
  background: white;
  outline: none;
  transition: all 0.3s;
  font-family: var(--font-sans);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(187,38,73,0.1);
}
.form-field textarea { resize: none; }

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .contact-form-wrapper { padding: 2.5rem; }
}

/* ===== Footer ===== */
.footer {
  background: var(--brand-dark);
  color: white;
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.footer-logo {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  filter: brightness(2);
  margin-bottom: 1rem;
}
.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.footer h4 {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: white;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  padding: 0.375rem 0;
}
.footer ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s;
}
.footer ul li a:hover { color: white; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-socials span {
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s;
}
.footer-socials span:hover {
  border-color: var(--brand);
  color: var(--brand-light);
}
.footer-bottom {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom p a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-bottom p a:hover {
  color: var(--brand-light);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ===== Scroll Animation ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25,1,0.5,1);
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Utility ===== */
.hidden { display: none !important; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }
.object-cover { object-fit: cover; }

/* Smooth transitions for all interactive elements */
a, button { transition: all 0.3s ease; }
