/* =========================================
   ULTRA-ELITE UI/UX GLOBAL SETTINGS (Purple Theme)
   ========================================= */
:root {
  --primary: #7e22ce;      /* Vibrant Purple */
  --primary-dark: #581c87; /* Deep Dark Purple */
  --accent: #fbbf24;       /* High-contrast Bright Gold/Amber */
  --accent-hover: #f59e0b;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  
  /* Strict High-Contrast Text Colors */
  --text-main: #0f172a;    /* Near-Black for light backgrounds */
  --text-muted: #334155;   /* Dark Slate for muted text to retain legibility */
  --text-light: #ffffff;   /* Pure White for dark/purple backgrounds */
  
  --bg-light: #faf5ff;     /* Extremely subtle purple-tinted white for backgrounds */
  --glass-bg: rgba(88, 28, 135, 0.96); /* Deep Purple Glass for Navbar */
  --glass-border: rgba(255, 255, 255, 0.15);
  
  --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
  --shadow-hover: 0 25px 50px -12px rgba(126, 34, 206, 0.3);
  --shadow-glow: 0 0 20px rgba(37, 211, 102, 0.5);
  --transition-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.03em;
}

/* =========================================
   HIGH-TECH GLOBAL ANIMATIONS
   ========================================= */
@keyframes shineSweep {
  0% { left: -100%; opacity: 0; }
  20% { left: 100%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes textGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatElement {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* =========================================
   GLASSMORPHISM NAVBAR (Deep Purple & White Text)
   ========================================= */
.navbar {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}
.navbar-brand { color: var(--text-light) !important; font-weight: 800; font-size: 1.6rem; transition: transform 0.3s; }
.navbar-brand span { color: var(--accent) !important; } /* Make the 'NearMe' pop in gold */
.navbar-brand:hover { transform: scale(1.02); }

.nav-link { color: rgba(255, 255, 255, 0.9) !important; font-weight: 600; padding: 0.5rem 1rem; position: relative; transition: 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }

.nav-link::after {
  content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 50%;
  background: linear-gradient(90deg, var(--accent), #fef08a);
  transition: all 0.4s var(--transition-spring); transform: translateX(-50%); border-radius: 50px;
}
.nav-link:hover::after, .nav-link.active::after { width: 80%; }

/* Mobile Navbar Toggler (Ensure it's visible on purple) */
.navbar-toggler i { color: var(--text-light) !important; }

/* =========================================
   ULTRA-ELITE GLOWING CTA BUTTONS
   ========================================= */
/* WhatsApp Glow */
.btn-glow-whatsapp {
  background: var(--whatsapp); color: var(--text-light) !important; border: none; position: relative; overflow: hidden;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); animation: pulse-wa 2s infinite; transition: all 0.4s var(--transition-spring); z-index: 1;
}
.btn-glow-whatsapp::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg); animation: shineSweep 4s cubic-bezier(0.25, 1, 0.5, 1) infinite; z-index: 2;
}
.btn-glow-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-5px) scale(1.03); color: var(--text-light) !important; box-shadow: var(--shadow-glow); animation: none; }
@keyframes pulse-wa {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Primary Glow (Vibrant Purple) */
.btn-glow-primary {
  background: linear-gradient(45deg, var(--primary), var(--primary-dark)); color: var(--text-light) !important; border: none; position: relative; overflow: hidden;
  box-shadow: 0 0 0 0 rgba(126, 34, 206, 0.7); animation: pulse-primary 2s infinite; transition: all 0.4s var(--transition-spring); z-index: 1;
}
.btn-glow-primary::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg); animation: shineSweep 3.5s cubic-bezier(0.25, 1, 0.5, 1) infinite; z-index: 2;
}
.btn-glow-primary:hover { transform: translateY(-3px) scale(1.03); color: var(--text-light) !important; box-shadow: 0 10px 25px rgba(126, 34, 206, 0.5); animation: none; }
@keyframes pulse-primary {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(126, 34, 206, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(126, 34, 206, 0); }
  100% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(126, 34, 206, 0); }
}

/* Outline Glow (Purple outline, dark text -> White text on hover) */
.btn-glow-outline {
  background: transparent; color: var(--text-light) !important; border: 2px solid var(--text-light); position: relative; overflow: hidden;
  transition: all 0.4s var(--transition-spring); z-index: 1;
}
.btn-glow-outline::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg); animation: shineSweep 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite; z-index: 2;
}
.btn-glow-outline:hover { background: var(--text-light); color: var(--primary-dark) !important; transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); animation: none; }


/* =========================================
   HERO SECTION (Deep Purple to Indigo)
   ========================================= */
.hero {
  position: relative; padding: 200px 0 140px;
  background: linear-gradient(135deg, #1e1b4b 0%, var(--primary-dark) 100%); color: var(--text-light); overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px; animation: gridMove 20s linear infinite; opacity: 0.5;
}

.hero-title { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; line-height: 1.05; color: var(--text-light); }
.hero-title span {
  background: linear-gradient(to right, #fef08a, var(--accent), #fef08a); background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: textGradientShift 4s linear infinite;
}

/* =========================================
   GRID CARDS & REVEALS
   ========================================= */
.feature-card { background: #ffffff; border-radius: 20px; padding: 2.5rem 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.04); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.feature-card i { font-size: 3rem; color: var(--primary); margin-bottom: 1.2rem; }

.service-card {
  background: white; border-radius: 24px; border: 1px solid rgba(0,0,0,0.03); overflow: hidden; transition: all 0.5s var(--transition-spring); box-shadow: var(--shadow-soft); height: 100%; display: flex; flex-direction: column; position: relative; z-index: 1;
}
.service-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-hover); border-color: rgba(126, 34, 206, 0.2); }
.img-wrapper { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: #e2e8f0; display:flex; align-items:center; justify-content:center; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--transition-smooth); }
.img-wrapper i.placeholder-icon { font-size: 4rem; color: #cbd5e1; }
.service-card:hover .img-wrapper img { transform: scale(1.1); }
.img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%); display: flex; align-items: flex-end; padding: 1.5rem; opacity: 0; transition: opacity 0.4s; }
.service-card:hover .img-overlay { opacity: 1; }
.service-content { padding: 1.8rem; flex-grow: 1; display: flex; flex-direction: column; background: white; }
.service-content h3 a, .service-content h4 { color: var(--text-main) !important; }
.service-content p { color: var(--text-muted) !important; }

.reveal { opacity: 0; transform: translateY(40px) scale(0.98); transition: all 0.8s var(--transition-smooth); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }

/* =========================================
   MODAL & FORMS (High Contrast Inputs)
   ========================================= */
.modal-content { border-radius: 28px; border: none; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.3); background: #ffffff; }
.modal-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--text-light); border: none; padding: 1.5rem 2rem; }
.modal-title { color: var(--text-light) !important; }
.form-control, .form-select { border-radius: 12px; padding: 14px 18px; border: 2px solid #cbd5e1; background: #f8fafc; color: var(--text-main); font-size: 1rem; font-weight: 500; transition: all 0.3s; }
.form-control:focus, .form-select:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(126, 34, 206, 0.1); transform: translateY(-2px); color: var(--text-main); }
.form-label { color: var(--text-main) !important; }

.btn-detect { transition: all 0.3s ease; position: relative; overflow: hidden; border-color: var(--text-main); color: var(--text-main); }
.btn-detect:hover { background-color: var(--text-main); color: var(--text-light) !important; border-color: var(--text-main); transform: scale(1.05); }

/* =========================================
   AGENCY SIGNATURE & FOOTER
   ========================================= */
.agency-signature {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 50px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s var(--transition-spring); text-decoration: none; position: relative; overflow: hidden;
}
.agency-signature::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transition: all 0.6s;
}
.agency-signature:hover::before { left: 100%; }
.agency-signature:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--accent); transform: translateY(-3px); }
.agency-signature .agency-text { color: #cbd5e1; font-size: 0.85rem; letter-spacing: 0.5px; }
.agency-signature .agency-brand { font-weight: 800; color: var(--text-light) !important; letter-spacing: 0.5px; }
.agency-signature .fa-atom { color: var(--accent); font-size: 1.2rem; animation: spin-slow 4s linear infinite; }
@keyframes spin-slow { 100% { transform: rotate(360deg); } }

/* =========================================
   FLOATING ACTION BUTTONS
   ========================================= */
.floating-container { 
    position: fixed !important; 
    bottom: 30px !important; 
    right: 30px !important; 
    z-index: 1050 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 15px !important; 
}
.fab-btn {
    width: 65px !important; 
    height: 65px !important; 
    border-radius: 50% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    font-size: 30px !important; 
    color: var(--text-light) !important; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.25) !important;
    transition: all 0.4s var(--transition-spring) !important; 
    text-decoration: none !important;
}
.fab-wa { background: var(--whatsapp) !important; }
.fab-call { background: var(--primary) !important; }
.fab-btn:hover { transform: scale(1.15) rotate(-5deg) !important; color: var(--text-light) !important; }


/* =========================================
   MOBILE OVERRIDES & MISC
   ========================================= */
@media (max-width: 768px) {
  .hero { padding: 160px 0 80px; }
  .mobile-sticky-cta { position: fixed; bottom: 0; left: 0; width: 100%; background: #ffffff; padding: 12px; display: flex; gap: 10px; box-shadow: 0 -5px 25px rgba(0,0,0,0.15); z-index: 1040; border-top: 1px solid #e2e8f0; }
  .mobile-sticky-cta .btn { flex: 1; font-weight: 800; border-radius: 14px; padding: 12px 0; }
  .mobile-sticky-cta .btn-glow-outline { color: var(--primary) !important; border-color: var(--primary); }
  .mobile-sticky-cta .btn-glow-outline:hover { background: var(--primary); color: var(--text-light) !important; }
  .agency-signature { width: 100%; justify-content: center; }
  body { padding-bottom: 75px; }
}
.max-w-600 { max-width: 600px; margin: 0 auto; }

/* Page Specific Overrides */
.page-header { padding: 140px 0 80px; background: linear-gradient(135deg, #1e1b4b 0%, var(--primary-dark) 100%); color: var(--text-light); position: relative; overflow: hidden; text-align: center; }
.page-header::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 30px 30px; opacity: 0.3; }
.page-header h1 { color: var(--text-light) !important; }

.search-bar { background: white; border-radius: 50px; padding: 8px 15px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); max-width: 600px; margin: -30px auto 40px; position: relative; z-index: 10; display: flex; align-items: center; transition: box-shadow 0.3s ease; border: 2px solid var(--primary); }
.search-bar:focus-within { box-shadow: 0 20px 40px rgba(126, 34, 206, 0.25); transform: translateY(-2px); }
.search-bar input { border: none; outline: none; padding: 10px 20px; font-size: 1.1rem; width: 100%; border-radius: 50px; color: var(--text-main); }
.search-bar .icon { color: var(--primary); font-size: 1.2rem; padding: 0 10px; }

.content-box { background: white; border-radius: 24px; padding: 40px; box-shadow: var(--shadow-soft); margin-bottom: 30px; border: 1px solid rgba(0,0,0,0.03); transition: transform 0.3s ease; }
.content-box:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.content-box h3 { color: var(--text-main) !important; }
.content-box p, .content-box ul { color: var(--text-muted) !important; }

.bhk-card { background: #ffffff; border: 2px solid #cbd5e1; border-radius: 20px; padding: 1.8rem 1.5rem; text-align: center; transition: all 0.4s var(--transition-spring); cursor: pointer; position: relative; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.bhk-card:hover { border-color: var(--primary); transform: translateY(-8px); box-shadow: 0 15px 30px rgba(126, 34, 206, 0.15); }
.bhk-card i { font-size: 2.5rem; color: var(--text-muted); transition: 0.3s; margin-bottom: 1rem; }
.bhk-card:hover i { color: var(--primary); transform: scale(1.1); }
.bhk-card h4 { color: var(--text-main) !important; }
.bhk-card .price-tag { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-top: auto; padding-top: 1.5rem; }

.sticky-widget { position: sticky; top: 120px; background: white; border-radius: 24px; padding: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); border: 2px solid var(--primary); z-index: 10; }
.sticky-widget h4, .sticky-widget span.fw-bold { color: var(--text-main) !important; }
.sticky-widget p { color: var(--text-muted) !important; }

.btn-arrow-animate { transition: all 0.4s var(--transition-spring); color: var(--text-light) !important; background: var(--primary); border: none !important; }
.btn-arrow-animate:hover { background: var(--accent) !important; color: var(--text-main) !important; transform: translateX(5px) scale(1.15) rotate(-15deg); box-shadow: 0 10px 20px rgba(251, 191, 36, 0.4); }
.btn-arrow-animate:hover i { transform: translateX(2px) rotate(15deg); }

/* Utility colors */
.text-primary { color: var(--primary) !important; }
.text-danger { color: #dc2626 !important; }
.text-success { color: #16a34a !important; }
.text-warning { color: var(--accent) !important; }
.bg-primary { background-color: var(--primary) !important; color: var(--text-light) !important; }
.bg-danger { background-color: #dc2626 !important; color: var(--text-light) !important; }

/* Force specific colors in sections */
section.bg-white h2, section.bg-light h2 { color: var(--text-main) !important; }

/* =========================================
   SCROLL TO TOP BUTTON (FIXED & ANIMATED)
   ========================================= */
.scroll-top-btn {
  position: fixed !important;
  bottom: 185px !important; /* Sits perfectly above the FABs */
  right: 38px !important;
  width: 50px !important;
  height: 50px !important;
  background: var(--primary) !important;
  color: var(--text-light) !important;
  border: 2px solid var(--accent) !important;
  border-radius: 50% !important;
  font-size: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4) !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--transition-spring) !important;
  z-index: 1045 !important;
}
.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { 
  background: var(--accent) !important; 
  color: var(--text-main) !important; 
  transform: translateY(-5px) scale(1.1) !important; 
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.5) !important; 
  border-color: var(--primary) !important; 
}
@media (max-width: 768px) { 
  .scroll-top-btn { bottom: 85px !important; right: 20px !important; width: 45px !important; height: 45px !important; font-size: 18px !important; } 
}

/* =========================================
   COOKIE CONSENT BANNER
   ========================================= */
.cookie-consent {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
  border-top: 2px solid var(--primary);
  color: var(--text-light); padding: 15px 20px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 9999; transform: translateY(100%); transition: transform 0.5s var(--transition-spring);
}
.cookie-consent.show { transform: translateY(0); }
.cookie-consent p { margin: 0; font-size: 0.9rem; color: #cbd5e1; }
.cookie-consent a { color: var(--accent); text-decoration: underline; font-weight: 600; }
@media (max-width: 768px) { 
  .cookie-consent { flex-direction: column; text-align: center; gap: 15px; padding-bottom: 85px; } 
}

/* =========================================
   E-A-T & PROCESS SECTIONS (PURPLE/GOLD FX)
   ========================================= */
.process-step {
  background: #ffffff; border-radius: 20px; padding: 2rem;
  border: 2px solid transparent; position: relative; z-index: 1;
  transition: all 0.4s var(--transition-spring);
  box-shadow: var(--shadow-soft); height: 100%;
}
.process-step:hover {
  border-color: var(--primary); transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(126, 34, 206, 0.15);
}
.process-icon-wrap {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 1.5rem; position: relative;
  box-shadow: 0 10px 20px rgba(126, 34, 206, 0.3);
}
.process-step:hover .process-icon-wrap {
  background: linear-gradient(135deg, var(--accent), #fef08a);
  color: var(--text-main); box-shadow: 0 10px 20px rgba(251, 191, 36, 0.4);
  animation: pulse-primary 2s infinite;
}
.trust-badge {
  display: flex; align-items: center; gap: 15px; padding: 1.5rem;
  background: rgba(126, 34, 206, 0.03); border: 1px solid rgba(126, 34, 206, 0.1);
  border-radius: 16px; transition: all 0.3s ease;
}
.trust-badge:hover {
  background: var(--primary); color: var(--text-light);
  transform: translateX(10px); box-shadow: 0 10px 25px rgba(126, 34, 206, 0.2);
}
.trust-badge:hover h5, .trust-badge:hover p, .trust-badge:hover i { color: var(--text-light) !important; }