
:root {
  --color-primary: #6B1D2F;      /* Deep burgundy */
  --color-primary-dark: #4E1421; /* Dark burgundy */
  --color-secondary: #D4AF37;   /* Muted gold */
  --color-bg-cream: #FDFBF7;    /* Beige cream */
  --color-text-dark: #1E293B;   /* Slate 800 */
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background-color: var(--color-bg-cream);
  color: var(--color-text-dark);
  overflow-x: hidden;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

.text-burgundy {
  color: var(--color-primary);
}

.bg-burgundy {
  background-color: var(--color-primary);
}

.bg-cream {
  background-color: var(--color-bg-cream);
}

/* Hero Content Floating Down and Up Animations */
@keyframes floatDown {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carousel Zoom In / Zoom Out (Ken Burns Effect) */
@keyframes zoomInOut {
  0%   { transform: scale(1.00); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1.00); }
}

.carousel-zoom-img {
  animation: zoomInOut 8s ease-in-out infinite !important;
  transform-origin: center center !important;
  will-change: transform;
}

/* When slide is not active (opacity-0), pause the zoom to keep it clean */
.hero-slide.opacity-0 img {
  animation-play-state: paused;
}

.animate-float-down {
  animation: floatDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float-up {
  animation: floatUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F1F1;
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* --- Infinite Scroll Marquee --- */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
  position: relative;
  padding: 1rem 0;
}

.marquee-track-ltr {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll-ltr 30s linear infinite;
}

.marquee-track-rtl {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll-rtl 30s linear infinite;
}

.marquee-container:hover .marquee-track-ltr,
.marquee-container:hover .marquee-track-rtl {
  animation-play-state: paused;
}

@keyframes scroll-ltr {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

@keyframes scroll-rtl {
  0% {
    transform: translateX(calc(-50% - 0.75rem));
  }
  100% {
    transform: translateX(0);
  }
}

/* --- 3D Flip Card Animation --- */
.flip-card {
  perspective: 1200px;
  cursor: pointer;
  box-sizing: border-box;
}

.flip-card:hover {
  animation-play-state: paused !important;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  transform-style: preserve-3d;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 !important;
  padding: 0;
  box-sizing: border-box;
}

.flip-card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.flip-card-back {
  z-index: 1;
  transform: rotateY(180deg);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

/* Reveal Variations */
.reveal-fade {
  transform: translateY(0);
}

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

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

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

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

.reveal-scale {
  transform: scale(0.95);
}

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

/* Delays for children stagger loading */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }
.delay-700 { transition-delay: 700ms; }
.delay-800 { transition-delay: 800ms; }

/* Custom slide-out scroll animation for Why Trust Coimbatore section */
.why-trust-item {
  transition: max-height 0.6s ease, opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.6s ease;
  overflow: hidden;
  will-change: max-height, opacity, transform;
}

.why-trust-item.collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-30px) scale(0.95);
  margin-top: 0;
  pointer-events: none;
}

.why-trust-item.expanded {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0) scale(1);
  margin-top: 1.5rem;
  pointer-events: auto;
}

/* Glassmorphism details */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-white-box {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25);
}

.glass-dark {
  background: rgba(107, 29, 47, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Float Animation */
@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.service-card-float {
  animation: cardFloat 6s ease-in-out infinite;
}

.service-card-float:nth-child(even) {
  animation-delay: 1.5s;
}

/* --- Sticky Card Stacking Animation --- */
.sticky-card {
  position: sticky;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.sticky-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* --- SVG Roadmap Path Animation --- */
@keyframes dashDraw {
  from {
    stroke-dashoffset: 200;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.roadmap-path-animate {
  stroke-dasharray: 10 8;
  animation: dashDraw 20s linear infinite;
}

@keyframes serpentineFlow {
  0% {
    stroke-dashoffset: 800;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.serpentine-path-animate {
  stroke-dasharray: 30 20;
  animation: serpentineFlow 2.5s linear infinite;
}

/* --- Progressive Serpentine Path Draw Animation --- */
@keyframes drawSerpentinePath {
  0% {
    stroke-dashoffset: 2150;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.serpentine-draw-line {
  stroke-linecap: round;
}

.process-step-node {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-step-node.step-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.process-step-node.step-visible .node-pulse-ring {
  animation: stepPulse 1.5s ease-out infinite;
}

@keyframes stepPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.7);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(197, 168, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(197, 168, 128, 0);
  }
}

/* --- Compact Service Card Height & Remove Blank Gap --- */
.service-card-float {
  height: auto !important;
  min-height: 295px;
}

.service-card-float .relative.h-\[160px\] {
  height: 135px !important;
}

.service-card-float .p-5 {
  padding: 1rem !important;
}

.service-card-float .mt-auto {
  margin-top: 0.75rem !important;
  padding-top: 0.75rem !important;
}

/* --- Navbar Active & Hover Touch Color rgb(197, 168, 128) --- */
.nav-link:hover,
.nav-link.active,
.nav-link:focus,
.nav-link:active {
  color: rgb(197, 168, 128) !important;
  border-color: rgb(197, 168, 128) !important;
}

/* --- Leaflet Live Map Custom Marker & Popup Styles --- */
.custom-leaflet-pin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-leaflet-pin .pin-inner {
  background-color: #612124;
  border: 2px solid #c5a880;
  color: #c5a880;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(97, 33, 36, 0.4);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.custom-leaflet-pin:hover .pin-inner,
.custom-leaflet-pin.active-pin .pin-inner {
  background-color: #c5a880;
  color: #612124;
  border-color: #612124;
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(197, 168, 128, 0.8);
}

.leaflet-popup-content-wrapper {
  background: rgba(97, 33, 36, 0.95) !important;
  backdrop-filter: blur(10px);
  color: #ffffff !important;
  border: 1px solid #c5a880 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
  padding: 4px !important;
}

.leaflet-popup-tip {
  background: #612124 !important;
  border: 1px solid #c5a880 !important;
}

/* Carousel transitions with Day Effect Zoom */
.carousel-slide {
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), z-index 1.2s step-end;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: scale(1.04);
}

.carousel-slide.active {
  opacity: 1;
  z-index: 10;
  transform: scale(1);
  transition: opacity 1.2s ease-in-out, transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), z-index 1.2s step-start;
}

.carousel-slide img,
.carousel-slide video {
  filter: brightness(1.04) contrast(1.02) saturate(1.05);
}

/* Sticky Card Stacking Animation for Light Background */
.sticky-card {
  position: sticky;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.sticky-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 25px 45px -12px rgba(97, 33, 36, 0.18);
}

/* --- End-to-End Real Estate Process Animations --- */
.process-step-card {
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, box-shadow, border-color;
}

.process-step-card.active-step {
  border-color: #c5a880 !important;
  box-shadow: 0 20px 40px -10px rgba(97, 33, 36, 0.25), 0 0 0 2px rgba(197, 168, 128, 0.4) !important;
  transform: translateY(-6px) scale(1.02);
  background-color: #ffffff;
}

.process-step-card.active-step .step-badge {
  background-color: #612124 !important;
  color: #c5a880 !important;
  box-shadow: 0 0 15px rgba(197, 168, 128, 0.6) !important;
  animation: pulseBadge 2s infinite alternate ease-in-out;
}

@keyframes pulseBadge {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.7);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(197, 168, 128, 0);
  }
}

.process-step-card:hover .fa-solid {
  animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.15); }
}

#process-preview-img {
  transition: opacity 0.4s ease-in-out, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

#process-preview-img.fade-out {
  opacity: 0.2;
  transform: scale(0.98);
}

/* ==========================================
   END-TO-END PROCESS ROADMAP PATH ANIMATION
   ========================================== */
.roadmap-path-animate {
  stroke-dasharray: 10 10;
  animation: flowRoadmapPath 25s linear infinite;
}

@keyframes flowRoadmapPath {
  from {
    stroke-dashoffset: 200;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* --- Hide Scrollbar Utility --- */
.no-scrollbar::-webkit-scrollbar,
#why-choose-scroll-track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.no-scrollbar,
#why-choose-scroll-track {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* ==========================================
   TRANSPARENT NAVBAR OVER VIDEO -> WHITE ON HOVER OR SCROLL
/* Constant Solid Luxury Brown Header Styling (#381e23) */
#main-header {
  background-color: #381e23 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Footer Logo Styling (Crisp white PNG on dark #121212 background) */
.footer-logo-img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: filter 0.35s ease, transform 0.3s ease;
}

.footer-logo-img:hover {
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.6));
  transform: scale(1.03);
}

/* ==========================================
   SERVICES CONTINUOUS INFINITE MOVING & FLOATING MARQUEE
   ========================================== */
@keyframes infiniteHorizontalMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.infinite-marquee-track {
  display: flex;
  width: max-content;
  animation: infiniteHorizontalMarquee 40s linear infinite;
  will-change: transform;
}

.infinite-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes autoFloatBob {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-16px);
  }
}

.floating-bob-card {
  animation: autoFloatBob 3.6s ease-in-out infinite;
}

.service-float-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.service-float-card:hover {
  transform: translateY(-18px) scale(1.03) !important;
  box-shadow: 0 24px 36px -10px rgba(97, 33, 36, 0.18) !important;
}

/* ==========================================
   INTERACTIVE SCROLL REVEAL & GLASSMORPHISM ANIMATIONS
   ========================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Ambient Radial Glow Pulse */
@keyframes ambientGlowPulse {
  0%, 100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.1);
  }
}

.animate-glow-pulse {
  animation: ambientGlowPulse 6s ease-in-out infinite;
}

/* Glowing Border Hover Card Effect */
.hover-gold-glow {
  transition: all 0.4s ease;
}

.hover-gold-glow:hover {
  border-color: #c5a880 !important;
  box-shadow: 0 12px 30px -8px rgba(197, 168, 128, 0.3) !important;
}




