/* 
  Kriyasaathwick Spa - Ultra-Engaging Luxury Design System
  Pure CSS3: 3D Tilts, Floating Shimmer, Glassmorphism, Micro-Animations
*/

:root {
  --bg-main: #FAF6F2;
  --bg-card: #FFFFFF;
  --bg-peach: #FFFDF9;
  --bg-peach-alt: #FFF7F0;
  
  --brand-navy-dark: #001226;
  --brand-navy: #001D3D;
  --brand-blue: #003366;
  --brand-ocean: #0055A5;
  --brand-sky: #0284C7;

  --gold-accent: #D4AF37;
  --peach-100: #FFF2E6;
  --peach-200: #FFE2CC;
  --peach-300: #FFC8A3;

  --spa-pink: #E0115F;
  --spa-pink-light: #F472B6;

  --text-dark: #0F172A;
  --text-muted: #475569;
  --text-light: #F8FAFC;

  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --transition-fast: 0.25s ease;
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styling */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Shimmer & Glow Effects for Light & Dark Backdrops */
.shimmer-text {
  background: linear-gradient(90deg, #001D3D 0%, #0055A5 25%, #E0115F 50%, #0055A5 75%, #001D3D 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

.shimmer-text-light {
  background: linear-gradient(90deg, #FFFFFF 0%, #FFE2CC 25%, #F472B6 50%, #FFE2CC 75%, #FFFFFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #003366 0%, #D4AF37 50%, #E0115F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

/* Floating Particle Accent */
.floating-petal {
  position: absolute;
  pointer-events: none;
  opacity: 0.3;
  animation: floatPetal 12s ease-in-out infinite alternate;
}

@keyframes floatPetal {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(15deg); }
  100% { transform: translateY(0) rotate(-10deg); }
}

/* High Contrast Navbar */
.navbar-contrast {
  background-color: rgba(0, 29, 61, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 200, 163, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all var(--transition-smooth);
}

.navbar-contrast.scrolled {
  background-color: rgba(0, 18, 38, 0.98);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4);
}

.nav-link {
  color: #F1F5F9;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.25rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-sky), var(--spa-pink));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link:hover::after {
  width: 100%;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FFFFFF;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.logo-badge:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.25);
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Glassmorphism Cards & 3D Tilt Effect */
.glass-card {
  background: #FFFFFF;
  border: none;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 25px 45px -10px rgba(0, 51, 102, 0.12);
}

/* Buttons with Shimmer Ripple */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-ocean) 50%, var(--spa-pink) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(0, 51, 102, 0.35);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.7s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 35px -5px rgba(0, 51, 102, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-smooth);
}

.btn-secondary:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  border-color: #CBD5E1;
}

/* Four Seasons Style Carousel */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 0.5rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  padding: 0 0.75rem;
}

@media (min-width: 640px) {
  .carousel-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 33.333333%;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 20;
  transition: all var(--transition-fast);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
  background: var(--brand-blue);
  transform: translateY(-50%) scale(1.15);
  border-color: var(--spa-pink-light);
}

.carousel-btn.prev {
  left: 0.5rem;
}

.carousel-btn.next {
  right: 0.5rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  height: 8px;
  border-radius: 9999px;
  background: #CBD5E1;
  border: none;
  cursor: pointer;
  transition: all 0.5s ease;
  width: 8px;
}

.carousel-dot.active {
  width: 36px;
  background: linear-gradient(90deg, var(--brand-blue), var(--spa-pink));
  box-shadow: 0 0 10px rgba(0, 51, 102, 0.3);
}

/* Staggered Scroll Ease-In Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-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);
}

.scroll-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);
}

.scroll-reveal.active, .scroll-reveal-left.active, .scroll-reveal-right.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Animated Interactive Revenue Progress Bar */
.revenue-bar-bg {
  height: 12px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.revenue-bar-fill-hotel {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky));
  border-radius: 9999px;
  transition: width 0.6s ease;
}

.revenue-bar-fill-spa {
  height: 100%;
  background: linear-gradient(90deg, var(--spa-pink-light), var(--spa-pink));
  border-radius: 9999px;
  transition: width 0.6s ease;
}

/* Range Input Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: #E2E8F0;
  border-radius: 5px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-blue);
  cursor: pointer;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 14px rgba(0, 51, 102, 0.5);
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 1.5rem;
  padding: 2.5rem;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Filter Pills */
.filter-pill {
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 300;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-pill:hover {
  background: #F8FAFC;
  color: var(--brand-blue);
  transform: translateY(-2px);
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--spa-pink) 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(0, 51, 102, 0.25);
}
