/* ============================================================
   HOTEL KANTIPUR PLAZA — Animations
   ============================================================ */

/* ── Keyframes ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-8px); }
  30%       { transform: translateX(8px); }
  45%       { transform: translateX(-6px); }
  60%       { transform: translateX(6px); }
  75%       { transform: translateX(-4px); }
  90%       { transform: translateX(4px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes roomFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  40%       { transform: scale(1.12); }
  60%       { transform: scale(0.96); }
}

@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.4; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes navbarSlide {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ── Scroll Reveal ── */
.fade-in-section {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.55s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Room Grid Animation ── */
.room-cell {
  animation: roomFadeIn 0.4s ease both;
}

.room-cell:nth-child(1)  { animation-delay: 0.02s; }
.room-cell:nth-child(2)  { animation-delay: 0.04s; }
.room-cell:nth-child(3)  { animation-delay: 0.06s; }
.room-cell:nth-child(4)  { animation-delay: 0.08s; }
.room-cell:nth-child(5)  { animation-delay: 0.10s; }
.room-cell:nth-child(6)  { animation-delay: 0.12s; }
.room-cell:nth-child(7)  { animation-delay: 0.14s; }
.room-cell:nth-child(8)  { animation-delay: 0.16s; }
.room-cell:nth-child(9)  { animation-delay: 0.18s; }
.room-cell:nth-child(10) { animation-delay: 0.20s; }
.room-cell:nth-child(11) { animation-delay: 0.22s; }
.room-cell:nth-child(12) { animation-delay: 0.24s; }
.room-cell:nth-child(13) { animation-delay: 0.26s; }
.room-cell:nth-child(14) { animation-delay: 0.28s; }
.room-cell:nth-child(15) { animation-delay: 0.30s; }
.room-cell:nth-child(16) { animation-delay: 0.32s; }
.room-cell:nth-child(17) { animation-delay: 0.34s; }
.room-cell:nth-child(18) { animation-delay: 0.36s; }
.room-cell:nth-child(19) { animation-delay: 0.38s; }
.room-cell:nth-child(20) { animation-delay: 0.40s; }
.room-cell:nth-child(n+21) { animation-delay: 0.42s; }

/* ── Shake on form error ── */
.shake { animation: shake 0.55s ease; }

/* ── Button ripple ── */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  width: 10px;
  height: 10px;
  margin-top: -5px;
  margin-left: -5px;
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* ── Navbar entrance ── */
.navbar { animation: navbarSlide 0.6s ease; }

/* ── Gold shimmer text ── */
.shimmer-text {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ── Hover glow for available rooms ── */
.room-cell.available:hover {
  animation: bounce 0.4s ease;
}

/* ── Page transition ── */
.page-transition {
  animation: fadeIn 0.5s ease;
}

/* ── Stat counter ── */
.stat-number {
  transition: all 0.3s;
}

/* ── Contact icon pulse ── */
.contact-item:hover .contact-icon {
  animation: pulse 0.6s ease;
}

/* ── Smooth image load ── */
img {
  transition: opacity 0.4s ease;
}

img.loading { opacity: 0; }
img.loaded  { opacity: 1; }
