/* ============================================================
   RATUWA – Modern Animations & Hover Effects
   ============================================================ */

/* ── Root tokens ─────────────────────────────────────────── */
:root {
  --brand:        #b634a1;
  --brand-dark:   #8a2079;
  --brand-light:  #f5d0f0;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Page load fade-in ───────────────────────────────────── */
body {
  animation: pageFadeIn 0.6s var(--ease-out-expo) both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll-reveal base ──────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}
[data-reveal="left"] {
  transform: translateX(-40px);
}
[data-reveal="right"] {
  transform: translateX(40px);
}
[data-reveal="scale"] {
  transform: scale(0.92);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out-expo),
              transform 0.55s var(--ease-out-expo);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.35s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.45s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.55s; }
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

/* ── Glassmorphism navbar on scroll ──────────────────────── */
.main-header-area {
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.main-header-area.scrolled {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

/* ── Nav link underline animation ────────────────────────── */
#navigation .nav-link,
#navigation a {
  position: relative;
  padding-bottom: 4px;
}
#navigation .nav-link::after,
#navigation a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--brand);
  transition: width 0.3s var(--ease-out-expo);
}
#navigation .nav-link:hover::after,
#navigation .nav-link.active::after,
#navigation a:hover::after {
  width: 100%;
}

/* ── Hero slider text animation ──────────────────────────── */
.slider_text h3 {
  animation: slideDown 0.9s var(--ease-out-expo) both;
}
.slider_text p {
  animation: slideDown 0.9s 0.15s var(--ease-out-expo) both;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Room / Offer cards ──────────────────────────────────── */
.single_offers {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.35s var(--ease-spring),
              box-shadow 0.35s ease;
}
.single_offers:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(182, 52, 161, 0.18);
}

/* Image zoom inside cards */
.single_offers .about_thumb {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.single_offers .about_thumb img {
  transition: transform 0.55s var(--ease-out-expo);
  width: 100%;
  object-fit: cover;
}
.single_offers:hover .about_thumb img {
  transform: scale(1.08);
}

/* Card text padding */
.single_offers h3,
.single_offers p {
  padding-left: 16px;
  padding-right: 16px;
}
.single_offers h3 {
  margin-top: 14px;
}
.single_offers .book_now {
  margin: 12px 16px 20px;
  display: inline-block;
}

/* ── Section title animated underline ────────────────────── */
.section_title {
  position: relative;
}
.section_title h3 {
  display: inline-block;
  position: relative;
}
.section_title h3::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -8px;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.5s var(--ease-out-expo);
}
.section_title.is-visible h3::after,
[data-reveal].is-visible .section_title h3::after,
.is-visible .section_title h3::after {
  width: 60%;
}

/* ── Buttons – ripple + lift ─────────────────────────────── */
.btn-ratuwa,
.popup-with-form,
.btn-submit,
.boxed-btn3,
.book_now {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring),
              box-shadow 0.25s ease,
              background-color 0.25s ease !important;
}
.btn-ratuwa:hover,
.popup-with-form:hover,
.btn-submit:hover,
.boxed-btn3:hover,
.book_now:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(182, 52, 161, 0.35) !important;
}
.btn-ratuwa:active,
.popup-with-form:active,
.btn-submit:active {
  transform: translateY(0);
}

/* Ripple element */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.5s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ── Instagram / gallery hover overlay ───────────────────── */
.single_instagram {
  overflow: hidden;
  border-radius: 6px;
}
.single_instagram img {
  transition: transform 0.55s var(--ease-out-expo);
}
.single_instagram:hover img {
  transform: scale(1.1);
}
.single_instagram .ovrelay {
  background: linear-gradient(
    to top,
    rgba(182, 52, 161, 0.75) 0%,
    rgba(182, 52, 161, 0.15) 60%,
    transparent 100%
  );
  transition: opacity 0.4s ease;
  opacity: 0;
}
.single_instagram:hover .ovrelay {
  opacity: 1;
}
.single_instagram .ovrelay a {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: transform 0.35s var(--ease-spring);
  display: inline-block;
}
.single_instagram:hover .ovrelay a {
  transform: translateY(-6px);
}

/* ── About area image parallax-feel ─────────────────────── */
.about_thumb img {
  transition: transform 0.6s var(--ease-out-expo);
}
.about_thumb:hover .img_1 img,
.about_thumb:hover img {
  transform: scale(1.04) translateY(-4px);
}

/* ── For-query section pulse ─────────────────────────────── */
.Query_border {
  transition: box-shadow 0.4s ease;
}
.Query_border:hover {
  box-shadow: 0 0 0 4px var(--brand-light), 0 8px 32px rgba(182, 52, 161, 0.12);
}

/* ── Footer link hover slide ─────────────────────────────── */
.footer_widget ul li a {
  position: relative;
  transition: color 0.25s ease, padding-left 0.25s ease;
  display: inline-block;
}
.footer_widget ul li a:hover {
  color: var(--brand) !important;
  padding-left: 8px;
}

/* ── Line-button hover ───────────────────────────────────── */
.line-button {
  position: relative;
  transition: color 0.25s ease;
}
.line-button::after {
  content: ' →';
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(-4px);
  display: inline-block;
}
.line-button:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ── Scroll-to-top button ────────────────────────────────── */
.scrollup {
  transition: transform 0.3s var(--ease-spring), opacity 0.3s ease !important;
}
.scrollup:hover {
  transform: translateY(-4px) scale(1.1) !important;
}
