/* =====================================================
   LA INTERIOR — Animations CSS
   ===================================================== */

/* ─────────────────────────────────────────
   PAGE LOADER
───────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: #0D0D0D;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  animation: loaderFade 1.5s ease forwards;
}

.loader-logo img {
  height: 80px;
  filter: brightness(0) invert(1);
}

.loader-progress {
  width: 120px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-top: 40px;
  overflow: hidden;
}

.loader-progress-bar {
  height: 100%;
  background: var(--accent, #C9A96E);
  animation: loadProgress 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderFade {
  0% { opacity: 0; transform: scale(0.95); }
  30% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0.8; }
}

@keyframes loadProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ─────────────────────────────────────────
   CURSOR GLOW (desktop only)
───────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.1s ease, top 0.1s ease;
}

/* ─────────────────────────────────────────
   HERO SLIDE TRANSITION
───────────────────────────────────────── */
.hero-slide {
  will-change: opacity;
}

/* Progress bar for slide change */
.slide-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent, #C9A96E);
  width: 0%;
  transition: width linear;
  z-index: 5;
}

/* ─────────────────────────────────────────
   SPLIT SECTION PARALLAX
───────────────────────────────────────── */
.split-image {
  overflow: hidden;
}

.split-image img {
  will-change: transform;
}

/* ─────────────────────────────────────────
   CARD HOVER SHIMMER
───────────────────────────────────────── */
.prop-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -60%;
  width: 50%;
  height: 300%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,0.08) 50%,
    transparent 100%
  );
  transform: skewX(-15deg);
  transition: none;
  pointer-events: none;
}

.prop-card:hover::before {
  animation: shimmer 0.6s ease forwards;
}

@keyframes shimmer {
  0% { left: -60%; }
  100% { left: 120%; }
}

/* ─────────────────────────────────────────
   NAV LOGO ANIMATION on scroll
───────────────────────────────────────── */
#navbar .nav-logo {
  transition: all 0.4s ease;
}

/* ─────────────────────────────────────────
   SIDE MENU ITEMS STAGGER
───────────────────────────────────────── */
.side-menu-nav a {
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.side-menu-nav a:hover {
  padding-left: 8px;
}

#side-menu.open .side-menu-nav a:nth-child(1) { animation: menuItemIn 0.4s ease 0.1s both; }
#side-menu.open .side-menu-nav a:nth-child(2) { animation: menuItemIn 0.4s ease 0.18s both; }
#side-menu.open .side-menu-nav a:nth-child(3) { animation: menuItemIn 0.4s ease 0.26s both; }
#side-menu.open .side-menu-nav a:nth-child(4) { animation: menuItemIn 0.4s ease 0.34s both; }
#side-menu.open .side-menu-nav a:nth-child(5) { animation: menuItemIn 0.4s ease 0.42s both; }

@keyframes menuItemIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ─────────────────────────────────────────
   MODAL OPEN/CLOSE
───────────────────────────────────────── */
.modal-box {
  will-change: transform, opacity;
}

/* ─────────────────────────────────────────
   FLOATING PARTICLES (hero decoration)
───────────────────────────────────────── */
.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  pointer-events: none;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ─────────────────────────────────────────
   SECTION LINE DECORATIONS
───────────────────────────────────────── */
.deco-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-bottom: 24px;
}

.deco-line-h {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 20px;
}

/* ─────────────────────────────────────────
   SCROLL PROGRESS BAR (top of page)
───────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent, #C9A96E);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ─────────────────────────────────────────
   NUMBER COUNTER ANIMATION
───────────────────────────────────────── */
.counter-value {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--accent);
}

/* ─────────────────────────────────────────
   STATS ROW
───────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 60px;
}

.stat-item {
  background: var(--bg-primary);
  padding: 40px;
  text-align: center;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ─────────────────────────────────────────
   PULSE DOT (online indicator)
───────────────────────────────────────── */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  animation: pulseDot 2s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — animations.css
───────────────────────────────────────── */
@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  .stat-item { padding: 28px 20px; }

  /* Отключаем cursor-glow на touch-экранах */
  .cursor-glow { display: none; }
}

@media (max-width: 480px) {
  .loader-logo img { height: 60px; }
  .loader-progress { width: 90px; }
  .counter-value { font-size: 36px; }
}
