@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-navy: #0B1F3A;
  --color-navy-dark: #061224;
  --color-navy-light: #15335B;
  --color-gold: #C9A227;
  --color-gold-light: #E6C200;
  --color-gold-hover: #D4AF37;
  --color-accent: #F59E0B;
  --color-text: #111827;
  --color-bg-soft: #F8FAFC;
  --radius-custom: 16px;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--color-text);
  background-color: #FFFFFF;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif-heading {
  font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0B1F3A;
}

::-webkit-scrollbar-thumb {
  background: #C9A227;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #E6C200;
}

/* Custom Gold Buttons */
.btn-gold {
  background: linear-gradient(135deg, #C9A227 0%, #D4AF37 50%, #B88E18 100%);
  color: #FFFFFF;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gold::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: all 0.6s ease;
  z-index: -1;
}

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

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.5);
  background: linear-gradient(135deg, #D4AF37 0%, #E6C200 50%, #C9A227 100%);
}

.btn-outline-gold {
  border: 1.5px solid #C9A227;
  color: #C9A227;
  background: transparent;
  transition: all 0.35s ease;
}

.btn-outline-gold:hover {
  background: rgba(201, 162, 39, 0.15);
  color: #FFFFFF;
  border-color: #E6C200;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.2);
}

.btn-navy {
  background-color: #0B1F3A;
  color: #FFFFFF;
  transition: all 0.35s ease;
}

.btn-navy:hover {
  background-color: #15335B;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 31, 58, 0.3);
}

/* Text Gradients */
.text-gold-gradient {
  background: linear-gradient(135deg, #E6C200 0%, #D4AF37 50%, #C9A227 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-navy-gradient {
  background: linear-gradient(135deg, #0B1F3A 0%, #15335B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px rgba(11, 31, 58, 0.08);
}

.glass-card-dark {
  background: rgba(11, 31, 58, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

/* Floating Search Bar Glassmorphism */
.glass-search-bar {
  background: rgba(11, 31, 58, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Sticky Header Transition */
#main-header {
  transition: all 0.4s ease;
}

#main-header.scrolled {
  background: #08347A !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding-top: 0;
  padding-bottom: 0;
}

/* Shrink the circular logo on scroll */
#main-header.scrolled #header-logo-wrap>div {
  width: 70px;
  height: 70px;
  margin-bottom: -5px;
}

#main-header.scrolled #header-logo-wrap>div img {
  width: 55px;
  height: 55px;
}

/* Active nav link style */
.nav-link.active {
  color: #C9A227 !important;
  font-weight: 600;
}

/* Property Card Effects */
.property-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-custom);
  overflow: hidden;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 45px -10px rgba(11, 31, 58, 0.15), 0 0 20px rgba(201, 162, 39, 0.2);
  border-color: rgba(201, 162, 39, 0.4);
}

.property-card .img-container img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .img-container img {
  transform: scale(1.08);
}

/* Badges */
.badge-gold {
  background: rgba(201, 162, 39, 0.15);
  color: #C9A227;
  border: 1px solid rgba(201, 162, 39, 0.4);
}

.badge-navy {
  background: rgba(11, 31, 58, 0.9);
  color: #FFFFFF;
}

/* Animation Reveal Classes */
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.fade-up {
  transform: translateY(40px);
}

.reveal.fade-down {
  transform: translateY(-40px);
}

.reveal.slide-left {
  transform: translateX(-50px);
}

.reveal.slide-right {
  transform: translateX(50px);
}

.reveal.zoom-in {
  transform: scale(0.92);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #0B1F3A;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden-loader {
  opacity: 0;
  visibility: hidden;
}

.spinner-gold {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(201, 162, 39, 0.15);
  border-radius: 50%;
  border-top-color: #C9A227;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Gold Pulse Ring */
.gold-pulse {
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(201, 162, 39, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0);
  }
}

/* Modal styling */
.modal-backdrop {
  background: rgba(6, 18, 36, 0.8);
  backdrop-filter: blur(8px);
}

/* Range input styling for EMI calculator & search */
input[type=range] {
  accent-color: #C9A227;
}

/* Tab active style */
.tab-btn.active {
  background: linear-gradient(135deg, #C9A227 0%, #D4AF37 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

/* PRIMA BOOKING 3D HERO ANIMATION STYLES */
.perspective-stage {
  perspective: 1200px;
}

.preserve-3d {
  transform-style: preserve-3d;
}

.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatSlow 7s ease-in-out 1.5s infinite;
}

.animate-float-reverse {
  animation: floatReverse 8s ease-in-out 0.8s infinite;
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) translateZ(20px);
  }
  50% {
    transform: translateY(-12px) rotate(1.5deg) translateZ(35px);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) translateZ(10px);
  }
  50% {
    transform: translateY(12px) rotate(-1.5deg) translateZ(25px);
  }
}

/* TOP-LEVEL PREMIUM SCROLL & TEXT ENTRANCE ANIMATIONS */
.gold-shimmer-text {
  background: linear-gradient(120deg, #C9A227 0%, #FFF5D1 25%, #D4AF37 50%, #B88E18 75%, #C9A227 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineGold 4s linear infinite;
}

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

.reveal-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.6s; }

.reveal-3d {
  opacity: 0;
  transform: perspective(1000px) rotateX(25deg) translateY(50px) scale(0.95);
  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: transform, opacity;
}

.reveal-3d.active {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

.animate-aura {
  animation: auraGlow 8s ease-in-out infinite alternate;
}

@keyframes auraGlow {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.15) translate(20px, -20px);
    opacity: 0.5;
  }
  100% {
    transform: scale(0.9) translate(-15px, 15px);
    opacity: 0.3;
  }
}