/* ============================================================
   MOOD HOUSE — Animations & Scroll Effects
   ============================================================ */

/* ── AOS (Animate On Scroll) base classes ── */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-aos].aos-animate { opacity: 1; transform: none !important; }

[data-aos="fade-up"]    { transform: translateY(40px); }
[data-aos="fade-down"]  { transform: translateY(-30px); }
[data-aos="fade-left"]  { transform: translateX(40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="zoom-in"]    { transform: scale(0.9); }
[data-aos="zoom-out"]   { transform: scale(1.1); }

/* Delay helpers */
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }
[data-aos-delay="600"] { transition-delay: 0.6s; }

/* ── Parallax layers ── */
.parallax-layer { will-change: transform; }

/* ── Hero entrance ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
  animation: heroFadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }

/* ── Floating shapes (hero background) ── */
.float-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}
@keyframes floatX {
  0%, 100% { transform: translateX(0) translateY(0); }
  50%       { transform: translateX(10px) translateY(-12px); }
}
.float-shape-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.12) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: floatY 8s ease-in-out infinite;
}
.float-shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200,160,154,0.08) 0%, transparent 70%);
  top: 80px;
  left: -80px;
  animation: floatX 10s ease-in-out infinite;
}
.float-shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139,158,138,0.1) 0%, transparent 70%);
  top: 40%;
  right: 20%;
  animation: floatY 6s ease-in-out infinite 1s;
}

/* ── Ticker / marquee ── */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track {
  display: flex;
  align-items: center;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.ticker-wrap {
  overflow: hidden;
}
.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

/* ── Scroll indicator ── */
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%       { opacity: 0.3; transform: translateY(8px); }
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 3;
}
.scroll-indicator .scroll-dot {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201,169,110,0.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Page transition ── */
.page-transition {
  animation: heroFadeUp 0.5s ease both;
}

/* ── Count-up numbers ── */
.count-up { display: inline-block; }

/* ── Hover image zoom (gallery) ── */
.img-zoom-wrap {
  overflow: hidden;
  border-radius: var(--radius-md);
}
.img-zoom-wrap img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom-wrap:hover img { transform: scale(1.06); }

/* ── Glass shimmer on hover ── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer-hover:hover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 0.6s ease forwards;
  border-radius: inherit;
  pointer-events: none;
}

/* ── Grain texture overlay ── */
.grain-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
  opacity: 0.35;
}

/* ── Respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  [data-aos]              { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ticker-track           { animation: none; }
  .float-shape            { animation: none; }
  .hero-content > *       { animation: none; }
  .scroll-indicator .scroll-dot { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
