/* ==========================================================
   KAYAN PARK - Final Master Stylesheet
   Version: 2.0 (Complete - Dark/Light Mode + Smooth Transitions)
   ========================================================== */

/* ==========================================================
   1. RESET & VARIABLES
   ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
*:hover{
  transition: 0.4s !important;
}

:root {
  /* Dark Mode (پیش‌فرض) */
  --bg-dark: #05141c;
  --bg-darker: #020b11;
  --bg-panel: #0a1f2b;
  --gold: #d4a941;
  --gold-light: #f0d78c;
  --gold-deep: #a67c1f;
  --teal: #2dd4bf;
  --teal-deep: #0d9488;
  --text: #e8eef2;
  --text-muted: #8fa3b0;
  --border: rgba(212, 169, 65, 0.15);
  --border-light: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(212, 169, 65, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1280px;
}

/* Light Mode Overrides */
html.light-mode {
  --bg-dark: #eef2f7;
  --bg-darker: #e2e8f0;
  --bg-panel: #ffffff;
  --gold: #b8860b;
  --gold-light: #8b6914;
  --gold-deep: #6b5010;
  --text: #0a1a24;
  --text-muted: #4a5966;
  --border: rgba(184, 134, 11, 0.28);
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(184, 134, 11, 0.2);
}

/* ==========================================================
   2. GLOBAL SMOOTH TRANSITIONS (Performance-Optimized)
   ========================================================== */
a, button, .btn, .stat-card, .feature, .news-card, .contact-card,
.faq__item, .gallery__item, .flip-card__inner, .header__phone,
.header__lang, .header__burger span, .footer__social a,
.back-to-top, .play-btn, .hero__dots button, .orb,
.flip-card__front, .flip-card__back, .flip-card__front img,
.flip-card__front-overlay, .flip-card__num, .flip-card__hint {
  transition-property: transform, opacity, box-shadow, background-color, background, border-color, color;
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

/* Small links - faster transition */
.header__nav a,
.footer__col ul a,
.news-card__link,
.faq__q,
.contact-card a,
.footer__bottom a {
  transition-property: color, transform, opacity;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Flip card - slower for 3D effect */
.flip-card__inner {
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Theme change smoothness */
html, body, .header, .footer, section, .section, .cta, .preloader {
  transition-property: background-color, background, color, border-color;
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================
   3. BASE STYLES
   ========================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.06), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(212, 169, 65, 0.05), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

html.light-mode body::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.05), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(184, 134, 11, 0.06), transparent 40%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--gold); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold), var(--gold-deep));
  border-radius: 10px;
}

/* ==========================================================
   4. UTILITIES
   ========================================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 40%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html.light-mode .section .gradient-text,
html.light-mode .cta h2 {
  background: linear-gradient(135deg, #6b5010 0%, #b8860b 45%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section {
  padding: 110px 0;
  position: relative;
  z-index: 2;
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
}

.section__kicker {
  display: inline-block;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  padding: 0 40px;
}

html.light-mode .section__kicker { color: var(--gold-deep); }

.section__kicker::before,
.section__kicker::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

html.light-mode .section__kicker::before,
html.light-mode .section__kicker::after {
  background: linear-gradient(90deg, transparent, var(--gold-deep));
}

.section__kicker::before { right: 0; transform: rotate(180deg); }
.section__kicker::after { left: 0; }

.section__title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section__sub {
  color: var(--text-muted);
  font-size: 16px;
}

/* ==========================================================
   5. PRELOADER
   ========================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-darker);
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
}

.preloader__inner { text-align: center; }

.preloader__drop {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  color: var(--gold);
  animation: dropBounce 1.4s infinite ease-in-out;
}

.preloader__drop svg { width: 100%; height: 100%; }

@keyframes dropBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.08); }
}

.preloader__text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

html.light-mode .preloader__text {
  background: linear-gradient(135deg, #8b6914, #6b5010);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.preloader__bar {
  width: 200px;
  height: 3px;
  background: rgba(128, 128, 128, 0.15);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================
   6. SCROLL PROGRESS
   ========================================================== */
.scroll-progress {
  position: fixed;
  top: 0; right: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  z-index: 9998;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--gold);
}

/* ==========================================================
   7. CURSOR GLOW
   ========================================================== */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 169, 65, 0.10), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.5s;
  mix-blend-mode: screen;
}

html.light-mode .cursor-glow {
  background: radial-gradient(circle, rgba(184, 134, 11, 0.15), transparent 65%);
  mix-blend-mode: multiply;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .cursor-glow { display: none; }
}

/* ==========================================================
   8. HEADER
   ========================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: transparent;
  transition: background 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.header.scrolled {
  background: rgba(5, 20, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

html.light-mode .header.scrolled {
  background: rgba(238, 242, 247, 0.94);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.header__logo img {
  height: 52px;
  transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.header.scrolled .header__logo img { height: 42px; }

.header__nav ul {
  display: flex;
  gap: 6px;
}

.header__nav a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 10px;
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 16px;
  left: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 4px;
}

.header__nav a:hover,
.header__nav a.active { color: var(--text); }

.header__nav a:hover::after,
.header__nav a.active::after { transform: scaleX(1); }

/* Header on Hero (transparent state) */
html.light-mode .header:not(.scrolled) .header__nav a {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

html.light-mode .header:not(.scrolled) .header__nav a:hover,
html.light-mode .header:not(.scrolled) .header__nav a.active {
  color: #ffffff;
}

html.light-mode .header:not(.scrolled) .header__phone {
  background: rgba(240, 215, 140, 0.18);
  border-color: rgba(240, 215, 140, 0.4);
  color: #f0d78c;
}

html.light-mode .header:not(.scrolled) .header__lang {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

html.light-mode .header:not(.scrolled) .header__burger {
  background: rgba(255, 255, 255, 0.12);
}

html.light-mode .header:not(.scrolled) .header__burger span {
  background: #ffffff;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(212, 169, 65, 0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
}

.header__phone:hover {
  background: rgba(212, 169, 65, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 169, 65, 0.2);
}

html.light-mode .header__phone {
  color: var(--gold-deep);
}

.header__phone svg { width: 16px; height: 16px; }

.header__lang {
  padding: 9px 14px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.header__lang:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.header__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(128, 128, 128, 0.08);
  position: relative;
}

.header__burger span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.header__burger span:nth-child(1) { top: 13px; }
.header__burger span:nth-child(2) { top: 20px; }
.header__burger span:nth-child(3) { top: 27px; }

.header__burger.active span:nth-child(1) {
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}

.header__burger.active span:nth-child(2) { opacity: 0; }

.header__burger.active span:nth-child(3) {
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 1024px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-panel);
    padding: 100px 30px 40px;
    transition: right 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 1px solid var(--border-light);
    z-index: 999;
  }

  .header__nav.open { right: 0; }

  .header__nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .header__nav a {
    padding: 14px 18px;
    font-size: 16px;
    color: var(--text);
    text-shadow: none;
  }

  .header__nav a::after { display: none; }

  .header__burger { display: block; }
  .header__phone span { display: none; }
}

@media (max-width: 480px) {
  .header__logo img { height: 40px; }
  .header__actions { gap: 6px; }
}

/* ==========================================================
   9. HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 60px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.06);
}

.hero__slide.active {
  opacity: 1;
  animation: kenBurns 9s ease-out forwards;
}

@keyframes kenBurns {
  0% { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1%, -1%); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 20, 28, 0.55) 0%, rgba(5, 20, 28, 0.75) 60%, var(--bg-dark) 100%),
    linear-gradient(90deg, rgba(5, 20, 28, 0.65) 0%, transparent 50%);
  z-index: 1;
}

html.light-mode .hero__overlay {
  background:
    linear-gradient(180deg, rgba(5, 20, 28, 0.5) 0%, rgba(5, 20, 28, 0.7) 55%, var(--bg-dark) 100%),
    linear-gradient(90deg, rgba(5, 20, 28, 0.6) 0%, transparent 50%);
}

.hero__orbs {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: floatOrb 14s infinite ease-in-out;
}

.orb--1 {
  width: 320px; height: 320px;
  background: var(--gold);
  top: 15%; right: 10%;
}

.orb--2 {
  width: 240px; height: 240px;
  background: var(--teal);
  bottom: 20%; left: 8%;
  animation-delay: -5s;
}

.orb--3 {
  width: 180px; height: 180px;
  background: var(--gold-light);
  top: 50%; left: 45%;
  animation-delay: -9s;
  opacity: 0.2;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--gold-light);
  margin-bottom: 24px;
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

html.light-mode .hero__tagline {
  color: #f0d78c;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero__tagline-line {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

html.light-mode .hero__tagline-line {
  background: linear-gradient(90deg, transparent, #f0d78c);
}

.hero__title {
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 28px;
}

.hero__title-line {
  display: block;
  opacity: 0;
  animation: fadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__title-line:nth-child(1) { animation-delay: 0.6s; }
.hero__title-line:nth-child(2) { animation-delay: 0.8s; }

html.light-mode .hero__title-line:not(.hero__title-line--gold) {
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero__title-line--gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 40px rgba(212, 169, 65, 0.25);
}

html.light-mode .hero__title-line--gold {
  background: linear-gradient(135deg, #fff4d6 0%, #f0d78c 45%, #d4a941 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
  text-shadow: none;
}

.hero__desc {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

html.light-mode .hero__desc {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.5s ease,
              border-color 0.5s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--bg-dark);
  box-shadow: 0 12px 30px rgba(212, 169, 65, 0.3);
}

html.light-mode .btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #c9952a, #8b6914);
  box-shadow: 0 12px 30px rgba(184, 134, 11, 0.35);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html.light-mode .btn--primary::before {
  background: linear-gradient(135deg, #d4a941, #b8860b);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(212, 169, 65, 0.45);
}

.btn--primary:hover::before { opacity: 1; }
.btn--primary span,
.btn--primary svg { position: relative; z-index: 1; }

.btn--primary:hover svg { transform: translateX(-4px); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  backdrop-filter: blur(10px);
}

html.light-mode .btn--ghost {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--text);
}

html.light-mode .hero .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-3px);
}

html.light-mode .btn--ghost:hover {
  background: rgba(184, 134, 11, 0.12);
  border-color: var(--gold);
  color: var(--gold-deep);
}

html.light-mode .hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #f0d78c;
  color: #f0d78c;
}

.hero__stats {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
}

.hero__stat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}

html.light-mode .hero__stat strong {
  color: #f0d78c;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__stat span {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

html.light-mode .hero__stat span {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero__dots {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.hero__dots button {
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__dots button.active {
  width: 70px;
  background: rgba(212, 169, 65, 0.3);
}

.hero__dots button.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: right;
  animation: dotProgress 5s linear;
}

@keyframes dotProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero__scroll {
  position: absolute;
  bottom: 50px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  writing-mode: vertical-rl;
  z-index: 5;
}

.hero__scroll:hover { color: var(--gold); }

html.light-mode .hero__scroll { color: rgba(255, 255, 255, 0.7); }
html.light-mode .hero__scroll:hover { color: #f0d78c; }

.hero__scroll svg {
  width: 20px; height: 20px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero__scroll { display: none; }
  .hero__stats { gap: 30px; }
  .hero__stat strong { font-size: 22px; }
  .hero__dots { bottom: 30px; }
}

/* ==========================================================
   10. ABOUT
   ========================================================== */
.about {
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
}

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about__text p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 18px;
  text-align: justify;
}

html.light-mode .about__text p { color: #4a5966; }

.about__text strong {
  color: var(--gold-light);
  font-weight: 600;
}

html.light-mode .about__text strong {
  color: var(--gold-deep);
  font-weight: 700;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 14px;
}

.about__feature:hover {
  background: rgba(212, 169, 65, 0.08);
  border-color: var(--border);
  transform: translateX(-6px);
}

html.light-mode .about__feature:hover {
  background: rgba(184, 134, 11, 0.08);
}

.about__feature svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

html.light-mode .about__feature svg { color: var(--gold-deep); }

.about__img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 20, 28, 0.85));
  z-index: 1;
}

.about__img-wrap img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about__img-wrap:hover img { transform: scale(1.05); }

.about__badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  padding: 20px 26px;
  background: rgba(5, 20, 28, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
  z-index: 2;
}

html.light-mode .about__badge {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.about__badge span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

html.light-mode .about__badge span { color: #4a5966; }

.about__badge strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 4px;
}

html.light-mode .about__badge strong {
  background: linear-gradient(135deg, #8b6914, #6b5010);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about__badge small {
  font-size: 11px;
  color: var(--text-muted);
}

html.light-mode .about__badge small { color: #4a5966; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__img-wrap img { height: 400px; }
  .about__features { grid-template-columns: 1fr; }
}

/* ==========================================================
   11. STATS
   ========================================================== */
.stats {
  padding: 80px 0;
  background: var(--bg-darker);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(128, 128, 128, 0.05), transparent);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--border);
  background: linear-gradient(180deg, rgba(212, 169, 65, 0.06), transparent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

html.light-mode .stat-card:hover {
  background: linear-gradient(180deg, rgba(184, 134, 11, 0.08), transparent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.stat-card:hover::before { opacity: 1; }

.stat-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border-radius: 16px;
  background: rgba(212, 169, 65, 0.08);
  border: 1px solid var(--border);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

html.light-mode .stat-card__icon {
  background: rgba(184, 134, 11, 0.12);
  color: var(--gold-deep);
}

.stat-card:hover .stat-card__icon {
  transform: scale(1.1) rotate(-5deg);
}

.stat-card__icon svg { width: 30px; height: 30px; }

.stat-card__num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
  direction: ltr;
}

.stat-card__label {
  font-size: 13px;
  color: var(--text-muted);
}

html.light-mode .stat-card__label { color: #4a5966; }

@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   12. FEATURES
   ========================================================== */
.features { background: var(--bg-dark); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 40px 30px;
  background: linear-gradient(180deg, rgba(128, 128, 128, 0.05), transparent);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}

.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(212, 169, 65, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature:hover {
  transform: translateY(-8px);
  border-color: var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

html.light-mode .feature:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.feature:hover::after { opacity: 1; }

.feature__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(212, 169, 65, 0.15), rgba(45, 212, 191, 0.08));
  color: var(--gold);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

html.light-mode .feature__icon {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.18), rgba(13, 148, 136, 0.1));
  color: var(--gold-deep);
}

.feature:hover .feature__icon {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 0 30px rgba(212, 169, 65, 0.3);
}

.feature__icon svg { width: 32px; height: 32px; }

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.feature p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

html.light-mode .feature p { color: #4a5966; }

@media (max-width: 900px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   13. VIDEO SECTION
   ========================================================== */
.video-section {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 100px 0;
}

.video-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .video-section__bg { background-attachment: scroll; }
}

.video-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 20, 28, 0.85), rgba(5, 20, 28, 0.95));
}

html.light-mode .video-section__overlay {
  background: linear-gradient(180deg, rgba(5, 20, 28, 0.82), rgba(5, 20, 28, 0.92));
}

.video-section__content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.video-section h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

html.light-mode .video-section h2 .gradient-text {
  background: linear-gradient(135deg, #fff4d6 0%, #f0d78c 45%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

.video-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.play-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: grid;
  place-items: center;
  color: var(--bg-dark);
  position: relative;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(212, 169, 65, 0.4);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.play-btn svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 25px 60px rgba(212, 169, 65, 0.55);
}

.play-btn__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: pulseRing 2.4s infinite;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================
   14. VIDEO MODAL
   ========================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-modal.open { opacity: 1; visibility: visible; }

.video-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(2, 11, 17, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.video-modal video {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  transform: scale(0.92);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-modal.open video { transform: scale(1); }

.video-modal__close {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  font-size: 32px;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  z-index: 2;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.5s ease,
              color 0.5s ease;
}

.video-modal__close:hover {
  background: var(--gold);
  color: var(--bg-dark);
  transform: rotate(90deg);
}

/* ==========================================================
   15. BLOCKS - IMAGE FLIP CARDS
   ========================================================== */
/* ==========================================================
   15. BLOCKS - IMAGE FLIP CARDS
   ========================================================== */
.blocks {
  background: linear-gradient(180deg, var(--bg-darker), var(--bg-dark));
}

.blocks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.flip-card {
  perspective: 1400px;
  height: 340px;
  cursor: pointer;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  /* این خط مهم است - فقط روی inner می‌تواند باشد */
  will-change: transform;
}

.flip-card:hover .flip-card__inner,
.flip-card.touched .flip-card__inner {
  transform: rotateY(180deg);
}

/* ---------- Front & Back Common ---------- */
.flip-card__front,
.flip-card__back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* transform لازم است تا در بعضی مرورگرها backface درست کار کند */
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
}

/* ---------- FRONT (تصویر) ---------- */
.flip-card__front {
  border: 1px solid var(--border-light);
  /* جلوتر از back در ترتیب رندر */
  z-index: 2;
}

.flip-card__front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-card:hover .flip-card__front img {
  transform: scale(1.08);
}

.flip-card__front-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 20, 28, 0.15) 0%,
    rgba(5, 20, 28, 0.55) 55%,
    rgba(5, 20, 28, 0.92) 100%
  );
  z-index: 1;
  transition: background 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-card:hover .flip-card__front-overlay {
  background: linear-gradient(
    180deg,
    rgba(5, 20, 28, 0.25) 0%,
    rgba(5, 20, 28, 0.7) 55%,
    rgba(5, 20, 28, 0.95) 100%
  );
}

html.light-mode .flip-card__front-overlay {
  background: linear-gradient(
    180deg,
    rgba(5, 20, 28, 0.2) 0%,
    rgba(5, 20, 28, 0.6) 55%,
    rgba(5, 20, 28, 0.95) 100%
  );
}

.flip-card__front-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 28px 24px;
  color: #ffffff;
}

.flip-card__num {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  background: rgba(212, 169, 65, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-card:hover .flip-card__num {
  transform: scale(1.1) rotate(-6deg);
  background: rgba(212, 169, 65, 1);
}

.flip-card__front h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.3px;
  color: #ffffff;
}

.flip-card__hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-card:hover .flip-card__hint {
  background: rgba(212, 169, 65, 0.2);
  border-color: rgba(212, 169, 65, 0.5);
  color: #f0d78c;
}

/* ---------- BACK (متن توضیحات) ---------- */
.flip-card__back {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #05141c;
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

html.light-mode .flip-card__back {
  background: linear-gradient(135deg, #8b6914, #b8860b);
  color: #ffffff;
}

.flip-card__back h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(5, 20, 28, 0.25);
  color: #05141c;
}

html.light-mode .flip-card__back h3 {
  border-bottom-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.flip-card__back h3 small {
  font-weight: 500;
  font-size: 12px;
  opacity: 0.8;
}

html.light-mode .flip-card__back h3 small {
  color: rgba(255, 255, 255, 0.9);
}

.flip-card__back ul {
  color: #05141c;
}

.flip-card__back ul li {
  font-size: 13px;
  padding: 5px 0;
  position: relative;
  padding-right: 18px;
  line-height: 1.55;
  font-weight: 500;
}

html.light-mode .flip-card__back ul li {
  color: rgba(255, 255, 255, 0.98);
}

html.light-mode .flip-card__back ul li strong {
  color: #fff4d6;
}

.flip-card__back ul li strong {
  font-weight: 800;
}

.flip-card__back ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #05141c;
  opacity: 0.7;
}

html.light-mode .flip-card__back ul li::before {
  background: #ffffff;
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .blocks__grid { grid-template-columns: repeat(2, 1fr); }
  .flip-card { height: 320px; }
}

@media (max-width: 600px) {
  .blocks__grid { grid-template-columns: 1fr; }
  .flip-card { height: 320px; }
  .flip-card__num {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .flip-card__front h3 { font-size: 17px; }
  .flip-card__back { padding: 28px 22px; }
  .flip-card__back h3 { font-size: 16px; }
  .flip-card__back ul li { font-size: 12.5px; }
}

/* ==========================================================
   16. GALLERY
   ========================================================== */
.gallery { background: var(--bg-dark); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
}

.gallery__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

html.light-mode .gallery__item {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

html.light-mode .gallery__item:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(6) { grid-column: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery__item:hover img { transform: scale(1.12); }

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 20, 28, 0.9));
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery__item:hover .gallery__overlay { opacity: 1; }

.gallery__overlay svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
  transform: scale(0.5);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery__item:hover .gallery__overlay svg { transform: scale(1); }

@media (max-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery__item:nth-child(6) { grid-column: span 2; }
}

/* ==========================================================
   17. LIGHTBOX
   ========================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 11, 17, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.open img { transform: scale(1); }

.lightbox__close {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  font-size: 32px;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  line-height: 1;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.5s ease,
              color 0.5s ease;
}

.lightbox__close:hover {
  background: var(--gold);
  color: var(--bg-dark);
  transform: rotate(90deg);
}

/* ==========================================================
   18. FAQ
   ========================================================== */
.faq {
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
}

.faq__list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq__item {
  background: linear-gradient(180deg, rgba(128, 128, 128, 0.05), transparent);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
}

.faq__item.open {
  border-color: var(--border);
  background: linear-gradient(180deg, rgba(212, 169, 65, 0.06), transparent);
}

html.light-mode .faq__item.open {
  background: linear-gradient(180deg, rgba(184, 134, 11, 0.08), transparent);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  color: var(--text);
}

.faq__q:hover { color: var(--gold-light); }

html.light-mode .faq__q:hover { color: var(--gold-deep); }

.faq__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(212, 169, 65, 0.12);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

html.light-mode .faq__icon {
  background: rgba(184, 134, 11, 0.15);
}

.faq__icon svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.5s ease;
}

html.light-mode .faq__icon svg { color: var(--gold-deep); }

.faq__item.open .faq__icon {
  background: var(--gold);
  transform: rotate(180deg);
}

.faq__item.open .faq__icon svg { color: #ffffff; }

html.light-mode .faq__item.open .faq__icon svg { color: #ffffff; }

.faq__a {
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  transition: max-height 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__item.open .faq__a {
  max-height: 400px;
  padding: 0 26px 24px;
}

.faq__a p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.9;
  text-align: justify;
}

html.light-mode .faq__a p { color: #4a5966; }

.faq__a strong { color: var(--gold-light); }

html.light-mode .faq__a strong {
  color: var(--gold-deep);
  font-weight: 700;
}

/* ==========================================================
   19. NEWS
   ========================================================== */
.news { background: var(--bg-dark); }

.news__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.news-card {
  background: linear-gradient(180deg, rgba(128, 128, 128, 0.05), transparent);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  border-color: var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

html.light-mode .news-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.news-card__img {
  height: 180px;
  overflow: hidden;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card:hover .news-card__img img { transform: scale(1.1); }

.news-card__body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__date {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

html.light-mode .news-card__date { color: var(--gold-deep); }

.news-card__body h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
  transition: color 0.6s ease;
}

.news-card:hover h3 { color: var(--gold-light); }

html.light-mode .news-card:hover h3 { color: var(--gold-deep); }

.news-card__link {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.news-card__link:hover { color: var(--gold-light); }

html.light-mode .news-card__link { color: var(--gold-deep); }
html.light-mode .news-card__link:hover { color: var(--gold); }

@media (max-width: 1024px) {
  .news__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .news__grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   20. CONTACT
   ========================================================== */
.contact {
  background: linear-gradient(180deg, var(--bg-darker), var(--bg-dark));
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  padding: 36px 26px;
  background: linear-gradient(180deg, rgba(128, 128, 128, 0.05), transparent);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-8px);
  border-color: var(--border);
  background: linear-gradient(180deg, rgba(212, 169, 65, 0.08), transparent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

html.light-mode .contact-card:hover {
  background: linear-gradient(180deg, rgba(184, 134, 11, 0.08), transparent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.contact-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(212, 169, 65, 0.08);
  color: var(--gold);
  border: 1px solid var(--border);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

html.light-mode .contact-card__icon {
  background: rgba(184, 134, 11, 0.12);
  color: var(--gold-deep);
}

.contact-card:hover .contact-card__icon {
  transform: scale(1.1) rotate(-8deg);
}

.contact-card__icon svg { width: 26px; height: 26px; }

.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gold-light);
}

html.light-mode .contact-card h3 { color: var(--gold-deep); }

.contact-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
}

html.light-mode .contact-card p { color: #4a5966; }

.contact-card a { color: var(--text-muted); }
.contact-card a:hover { color: var(--gold); }

html.light-mode .contact-card a { color: #4a5966; }
html.light-mode .contact-card a:hover { color: var(--gold-deep); }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   21. CTA
   ========================================================== */
.cta {
  padding: 80px 0;
  background:
    linear-gradient(135deg, rgba(212, 169, 65, 0.1), rgba(45, 212, 191, 0.05)),
    var(--bg-darker);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

html.light-mode .cta {
  background:
    linear-gradient(135deg, rgba(184, 134, 11, 0.1), rgba(13, 148, 136, 0.05)),
    var(--bg-darker);
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta p {
  color: var(--text-muted);
  font-size: 15px;
}

html.light-mode .cta p { color: #4a5966; }

/* ==========================================================
   22. FOOTER
   ========================================================== */
.footer {
  background: var(--bg-darker);
  padding: 80px 0 0;
  position: relative;
  z-index: 2;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
}

.footer__logo {
  height: 56px;
  margin-bottom: 20px;
}

.footer__about {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 24px;
}

html.light-mode .footer__about { color: #4a5966; }

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid var(--border-light);
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.footer__social a:hover {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(212, 169, 65, 0.3);
}

html.light-mode .footer__social a:hover {
  color: #ffffff;
}

.footer__social svg { width: 20px; height: 20px; }

.footer__col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

html.light-mode .footer__col h4 { color: var(--gold-deep); }

.footer__col h4::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.footer__col ul li { margin-bottom: 10px; }

.footer__col ul a {
  font-size: 13.5px;
  color: var(--text-muted);
  display: inline-block;
}

.footer__col ul a:hover {
  color: var(--gold-light);
  transform: translateX(-6px);
}

html.light-mode .footer__col ul a { color: #556575; }
html.light-mode .footer__col ul a:hover { color: var(--gold-deep); }

.footer__bottom {
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.footer__bottom a {
  color: var(--gold);
  font-weight: 600;
}

.footer__bottom a:hover { color: var(--gold-light); }

html.light-mode .footer__bottom a {
  color: var(--gold-deep);
  font-weight: 700;
}

html.light-mode .footer__bottom a:hover { color: var(--gold); }

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom .container {
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================
   23. BACK TO TOP
   ========================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--bg-dark);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(212, 169, 65, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 100;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

html.light-mode .back-to-top {
  color: #ffffff;
  background: linear-gradient(135deg, #c9952a, #8b6914);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(212, 169, 65, 0.55);
}

.back-to-top svg { width: 22px; height: 22px; }

/* ==========================================================
   24. THEME TOGGLE (Dark/Light Mode Button)
   ========================================================== */
.theme-toggle {
  position: fixed;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 999;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--bg-dark);
  box-shadow: 0 10px 30px rgba(212, 169, 65, 0.35),
              0 0 0 1px rgba(212, 169, 65, 0.2);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-toggle:hover {
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 15px 40px rgba(212, 169, 65, 0.55),
              0 0 0 1px rgba(212, 169, 65, 0.35);
}

.theme-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.theme-toggle__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a3a5c, #0a1f2b);
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 50%;
}

html.light-mode .theme-toggle__bg { opacity: 1; }

.theme-toggle__icon {
  position: absolute;
  width: 22px;
  height: 22px;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-toggle__icon--sun {
  transform: translateY(0) rotate(0deg) scale(1);
  opacity: 1;
}

.theme-toggle__icon--moon {
  transform: translateY(40px) rotate(-90deg) scale(0.6);
  opacity: 0;
}

html.light-mode .theme-toggle__icon--sun {
  transform: translateY(-40px) rotate(90deg) scale(0.6);
  opacity: 0;
}

html.light-mode .theme-toggle__icon--moon {
  transform: translateY(0) rotate(0deg) scale(1);
  opacity: 1;
}

@media (max-width: 768px) {
  .theme-toggle {
    width: 46px;
    height: 46px;
    left: 16px;
  }
  .theme-toggle__icon {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================
   25. REVEAL ANIMATIONS
   ========================================================== */
.reveal, .reveal-right, .reveal-left {
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal { transform: translateY(50px); }
.reveal-right { transform: translateX(60px); }
.reveal-left { transform: translateX(-60px); }

.reveal.visible,
.reveal-right.visible,
.reveal-left.visible {
  opacity: 1;
  transform: translate(0, 0);
  will-change: auto;
}

/* ==========================================================
   26. REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal, .reveal-right, .reveal-left {
    opacity: 1;
    transform: none;
  }

  .hero__slide.active {
    animation: none;
    transform: scale(1.06);
  }
}

/* ==========================================================
   END OF FILE
   ========================================================== */