/* ==========================================================================
   SOFIA COLOMBO — PREMIUM CINEMATIC ENHANCEMENTS
   Shangri-La Colombo Inspired Refined Elegance & Subtle Micro-interactions
   ========================================================================== */

/* ==========================================================================
   1. PRELOADER — "THE CURTAIN RISES"
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 2;
}

.preloader-logo {
  width: 220px;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  background: #ffffff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(232, 78, 125, 0.4);
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.7)) drop-shadow(0 4px 25px rgba(232, 78, 125, 0.45));
  animation: preloaderPulse 1.8s ease-in-out infinite;
}

.preloader-brand {
  display: none;
  text-align: center;
}

.preloader-brand .brand-name {
  display: block;
  font-family: var(--font-serif-heading);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-shadow: 0 2px 15px rgba(232, 78, 125, 0.4);
}

.preloader-brand .brand-tagline {
  display: block;
  font-family: var(--font-sans-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent-pink-light);
  margin-top: 0.45rem;
}

.preloader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.preloader-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent-pink), var(--color-gold-light));
  border-radius: 3px;
  animation: preloaderProgress 1.8s ease-in-out forwards;
}

/* Curtain panels */
.preloader-curtain-left,
.preloader-curtain-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--color-primary-dark);
  z-index: 1;
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader-curtain-left { left: 0; }
.preloader-curtain-right { right: 0; }

.preloader.done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.preloader.done .preloader-content {
  opacity: 0;
  transform: scale(0.92);
  transition: all 0.35s ease;
}

.preloader.done .preloader-curtain-left {
  transform: translateX(-100%);
}

.preloader.done .preloader-curtain-right {
  transform: translateX(100%);
}

.preloader.hidden {
  pointer-events: none;
  visibility: hidden;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes preloaderProgress {
  0% { width: 0%; }
  40% { width: 45%; }
  70% { width: 75%; }
  100% { width: 100%; }
}

/* ==========================================================================
   2. SCROLL PROGRESS BAR
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10001;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-pink), var(--color-gold-light));
  transform-origin: left;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(232, 78, 125, 0.6);
}

/* ==========================================================================
   3. CINEMATIC HERO TEXT REVEAL
   ========================================================================== */

.hero-content .hero-badge {
  opacity: 0;
  transform: translateY(-12px);
  animation: heroBadgeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: heroWordIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content .hero-subtitle {
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-content .hero-buttons {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes heroBadgeIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroWordIn {
  to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero parallax enhancement */
.hero-section {
  perspective: 1000px;
}

.hero-bg-carousel {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ==========================================================================
   4. ENHANCED REVEAL SYSTEM
   ========================================================================== */

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  filter: blur(4px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0px);
}

/* Enhanced section header reveal — gold line expands */
.section-header.reveal.active .section-subtitle::before,
.section-header.reveal.active .section-subtitle::after {
  animation: goldLineExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes goldLineExpand {
  from { width: 0; }
  to { width: 32px; }
}

/* ==========================================================================
   5. MAGNETIC BUTTON & RIPPLE
   ========================================================================== */

.btn-magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-gold {
  position: relative;
  overflow: hidden;
}

/* Ripple on click */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: btnRipple 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes btnRipple {
  to { transform: scale(4); opacity: 0; }
}

/* Glow pulse on hover */
.btn-gold:hover {
  box-shadow: 
    0 10px 30px rgba(184, 138, 68, 0.35),
    0 0 20px rgba(184, 138, 68, 0.2);
}

/* ==========================================================================
   6. IMAGE PARALLAX & CURTAIN REVEAL
   ========================================================================== */

.parallax-wrap {
  overflow: hidden;
  position: relative;
}

.parallax-wrap img {
  will-change: transform;
  transition: transform 0.05s linear;
}

.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 2;
}

.img-reveal.revealed::after {
  transform: scaleX(0);
  transform-origin: left;
}

.welcome-main-img,
.dining-featured-media {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.welcome-main-img img,
.dining-featured-media img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-main-img:hover img,
.dining-featured-media:hover img {
  transform: scale(1.03) rotateY(2deg);
}

/* ==========================================================================
   7. LUXURY MARQUEE STRIP (SHANGRI-LA STYLE)
   ========================================================================== */

.marquee-strip {
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(184, 138, 68, 0.25);
  border-bottom: 1px solid rgba(184, 138, 68, 0.25);
  overflow: hidden;
  padding: 1.15rem 0;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  padding-right: 0;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 2.5rem;
  font-family: var(--font-sans-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  white-space: nowrap;
}

.marquee-dot {
  width: 5px;
  height: 5px;
  background: var(--color-gold);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(184, 138, 68, 0.4);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-strip::before,
.marquee-strip::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-primary-dark), transparent);
}

.marquee-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-primary-dark), transparent);
}

/* ==========================================================================
   8. SECTION TRANSITIONS & DECORATIVE SEPARATORS
   ========================================================================== */

.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.section-separator::before,
.section-separator::after {
  content: '';
  height: 1px;
  width: 70px;
  background: linear-gradient(90deg, transparent, var(--color-gold));
}

.section-separator::after {
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.section-separator .diamond {
  width: 7px;
  height: 7px;
  background: var(--color-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ==========================================================================
   9 & 10. MOUSE EFFECTS DISABLED (CLEAN NATIVE BROWSER POINTER & SMOOTH HOVERS)
   ========================================================================== */

.custom-cursor-dot,
.custom-cursor-ring,
.tilt-glare {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body,
body.has-custom-cursor,
body.has-custom-cursor * {
  cursor: auto !important;
}

a, button, [role="button"], .btn, select, summary, .filter-btn, .nav-link {
  cursor: pointer !important;
}

.tilt-card {
  transform: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* ==========================================================================
   11. FOOTER & SOCIAL ENHANCEMENTS
   ========================================================================== */

.footer-links a {
  display: inline-block;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover {
  transform: translateX(6px);
  color: var(--color-gold-light);
}

.partner-badge-text {
  transition: all 0.3s ease;
}

.partner-badge-text:hover {
  color: var(--color-gold-light);
  transform: scale(1.04);
}

/* ==========================================================================
   12. SMOOTH SCROLL (LENIS) OVERRIDES
   ========================================================================== */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ==========================================================================
   13. ADDITIONAL MICRO-ANIMATIONS & POLISH
   ========================================================================== */

.booking-bar {
  animation: bookingBarGlow 5s ease-in-out infinite;
}

@keyframes bookingBarGlow {
  0%, 100% { box-shadow: 0 16px 40px rgba(18, 22, 25, 0.1), 0 0 0 1px var(--color-border-subtle); }
  50% { box-shadow: 0 16px 40px rgba(18, 22, 25, 0.14), 0 0 0 1px rgba(184, 138, 68, 0.4), 0 0 20px rgba(184, 138, 68, 0.08); }
}

.hero-dot {
  position: relative;
}

.hero-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}

.hero-dot:hover::after {
  border-color: rgba(184, 138, 68, 0.5);
}

.nav-link {
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.stat-number {
  text-shadow: 0 0 20px rgba(184, 138, 68, 0.3);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid transparent;
  border-radius: inherit;
  transition: border-color 0.4s ease;
  z-index: 4;
  pointer-events: none;
}

.gallery-item:hover::before {
  border-color: var(--color-gold);
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-serif-heading);
  font-size: 3.5rem;
  color: rgba(184, 138, 68, 0.12);
  line-height: 1;
  pointer-events: none;
}

.cert-item {
  transition: transform 0.3s ease;
}

.cert-item:hover {
  transform: translateY(-2px);
}

.cert-icon {
  transition: all 0.3s ease;
}

.cert-item:hover .cert-icon {
  box-shadow: 0 0 12px rgba(184, 138, 68, 0.4);
  transform: scale(1.06);
}

.bleisure-card:hover .bleisure-card-icon {
  background: var(--color-primary-dark);
  color: var(--color-gold-light);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.room-amenity {
  transition: all 0.2s ease;
}

.room-amenity:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.newsletter-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(184, 138, 68, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.btn-whatsapp {
  animation: whatsappPulse 2.5s ease-in-out infinite;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 8px 35px rgba(37, 211, 102, 0.55), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

body {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.loaded {
  opacity: 1;
}

@media (max-width: 768px) {
  .marquee-item {
    font-size: 0.7rem;
    padding: 0 1.5rem;
  }
  
  .scroll-progress {
    height: 2px;
  }
  
  .preloader-logo {
    width: 140px;
    height: auto;
    max-height: 140px;
  }
  
  .preloader-brand .brand-name {
    font-size: 1.7rem;
  }
}
