/* ===== ISCFA 2026 - CINEMATIC STORYTELLING - LIGHT THEME ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #C9A456;
  --gold-light: #E0C88A;
  --gold-dark: #8B6B3D;
  --gold-glow: rgba(201, 164, 86, 0.4);
  --olive: #6B6E3D;
  --olive-dark: #4A4D2A;
  --white: #FFFFFF;
  --cream: #FFFBF5;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-600: #6C757D;
  --gray-800: #343A40;
  --dark: #0f1419;
  --dark-soft: #1a1f26;
  --gradient-gold: linear-gradient(135deg, #C9A456 0%, #8B6B3D 100%);
  --gradient-light: linear-gradient(180deg, #FFFBF5 0%, #F8F9FA 100%);
  --font-display: 'Playfair Display', serif;
  --font-thai: 'Prompt', sans-serif;
  --transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-thai);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Preloader - Light Theme */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
  transition: opacity 0.8s, visibility 0.8s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-dark);
  letter-spacing: 8px;
  animation: pulse 2s infinite;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(201, 164, 86, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 0%;
  height: 100%;
  background: var(--gradient-gold);
  animation: loading 2s forwards;
}

@keyframes loading {
  to {
    width: 100%;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* ===== HERO SECTION - LIGHT THEME ===== */
.cinematic-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-light);
}

/* Decorative background pattern */
.cinematic-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 164, 86, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(107, 110, 61, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 80% 70%, rgba(201, 164, 86, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-vanta {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Cinematic Bars - Light Version */
.cinematic-bars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.bar-top,
.bar-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-dark) 100%);
}

.bar-top {
  top: 0;
}

.bar-bottom {
  bottom: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1000px;
  padding: 100px 24px;
}

/* Edition Tag - Minimal & Elegant */
.edition-tag {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  animation: fadeUp 1s 0.3s both;
  position: relative;
}

.edition-line {
  /* เอาเส้นนอนออก เปลี่ยนเป็นตกแต่งเล็กน้อย */
  display: none;
}

.edition-number {
  font-family: var(--font-display);
  font-size: 3rem;
  /* ใหญ่ขึ้น */
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(201, 164, 86, 0.1);
}

.edition-number sup {
  font-size: 1rem;
  font-weight: 500;
  margin-left: 4px;
  color: var(--gold);
  top: -0.5em;
}

.edition-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  /* ใหญ่ขึ้นให้สมดุล */
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 2px;
  padding: 0 0 0 15px;
  border: none;
  border-left: 2px solid var(--gold);
  /* เส้นแบ่งแนวตั้ง */
  border-radius: 0;
  height: 40px;
  display: flex;
  align-items: center;
}

/* Hero Title - Light Theme */
.hero-title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeUp 1s 0.5s both;
}

.title-highlight {
  display: block;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Subtitle - Light Theme */
.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  color: var(--gray-600);
  max-width: 800px;
  margin: 0 auto 44px;
  line-height: 1.9;
  font-weight: 400;
  animation: fadeUp 1s 0.7s both;
}

/* Countdown - Light Theme */
.countdown-cinematic {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  animation: fadeUp 1s 0.9s both;
}

.countdown-block {
  padding: 24px 18px;
  min-width: 95px;
  background: var(--white);
  border: 2px solid rgba(201, 164, 86, 0.3);
  border-radius: 14px;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.countdown-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 0 0 3px 3px;
}

.countdown-block:hover {
  background: rgba(201, 164, 86, 0.08);
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(201, 164, 86, 0.25);
  border-color: var(--gold);
}

.countdown-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}

.countdown-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
  font-weight: 500;
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  animation: fadeUp 1s 1.1s both;
}

.btn-cinematic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--white);
  border: none;
  box-shadow: 0 8px 30px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(201, 164, 86, 0.5);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--gold-dark);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-4px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HERO RESPONSIVE ===== */

/* Tablet */
@media (max-width: 992px) {
  .cinematic-hero {
    min-height: 90vh;
  }

  .bar-top,
  .bar-bottom {
    height: 40px;
  }

  .hero-content {
    padding: 80px 20px;
  }

  .edition-tag {
    gap: 15px;
    margin-bottom: 30px;
  }

  .edition-line {
    width: 40px;
  }

  .edition-number {
    font-size: 2rem;
  }

  .edition-year {
    font-size: 1rem;
    padding: 6px 16px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    margin-bottom: 32px;
    padding: 0 10px;
  }

  .countdown-cinematic {
    gap: 12px;
    margin-bottom: 40px;
  }

  .countdown-block {
    padding: 18px 14px;
    min-width: 75px;
  }

  .countdown-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .countdown-label {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }

  .btn-cinematic {
    padding: 14px 28px;
    font-size: 0.85rem;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .cinematic-hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .bar-top,
  .bar-bottom {
    height: 30px;
  }

  .hero-content {
    padding: 60px 16px;
  }

  .edition-tag {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }

  .edition-line {
    width: 50px;
    display: none;
  }

  .edition-number {
    font-size: 2.2rem;
  }

  .edition-year {
    font-size: 0.9rem;
    padding: 6px 14px;
    letter-spacing: 3px;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 14px;
  }

  .title-highlight {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 28px;
    line-height: 1.7;
  }

  .countdown-cinematic {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
  }

  .countdown-block {
    padding: 14px 12px;
    min-width: 68px;
    flex: 1;
    max-width: 80px;
  }

  .countdown-number {
    font-size: 1.6rem;
  }

  .countdown-label {
    font-size: 0.6rem;
    letter-spacing: 1px;
    margin-top: 6px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-cinematic {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.85rem;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.4rem;
  }

  .title-highlight {
    font-size: 1.5rem;
  }

  .countdown-block {
    min-width: 60px;
    padding: 12px 8px;
  }

  .countdown-number {
    font-size: 1.4rem;
  }
}