/* =========================================
   ULTRA-ELITE UI/UX GLOBAL SETTINGS
   ========================================= */
:root {
  --primary: #0f766e;
  --primary-dark: #0a5c4b;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
  --shadow-hover: 0 25px 50px -12px rgba(15, 118, 110, 0.25);
  --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
   ========================================= */
.navbar {
  background: rgba(255, 255, 255, 0.95) !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.05);
  transition: all 0.4s ease;
}
.navbar-brand { color: var(--primary-dark) !important; font-weight: 800; font-size: 1.6rem; transition: transform 0.3s; }
.navbar-brand:hover { transform: scale(1.02); }

.nav-link { color: var(--text-main) !important; font-weight: 600; padding: 0.5rem 1rem; position: relative; transition: 0.3s; }
.nav-link:hover { color: var(--primary) !important; }

.nav-link::after {
  content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 50%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: all 0.4s var(--transition-spring); transform: translateX(-50%); border-radius: 50px;
}
.nav-link:hover::after, .nav-link.active::after { width: 80%; }

/* =========================================
   ULTRA-ELITE GLOWING CTA BUTTONS
   ========================================= */

/* 1. WhatsApp Green Glow */
.btn-glow-whatsapp {
  background: var(--whatsapp); color: white; 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: white;
  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); }
}

/* 2. Primary Blue/Green Glow (Book Now) */
.btn-glow-primary {
  background: linear-gradient(45deg, var(--primary), var(--primary-dark)); color: white; border: none; position: relative; overflow: hidden;
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 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: white; box-shadow: 0 10px 25px rgba(15, 118, 110, 0.5); animation: none;
}
@keyframes pulse-primary {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(15, 118, 110, 0); }
  100% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
}

/* 3. Outline Glow (Call Buttons) */
.btn-glow-outline {
  background: transparent; color: var(--primary); border: 2px solid var(--primary); position: relative; overflow: hidden;
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.4); animation: pulse-outline 2.5s infinite; 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(--primary); color: white; transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 20px rgba(15, 118, 110, 0.3); animation: none;
}
@keyframes pulse-outline {
  0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(15, 118, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  padding: 200px 0 140px;
  background: linear-gradient(135deg, #022c22 0%, var(--primary) 100%);
  color: white;
  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;
}
@keyframes gridMove { 0% { transform: translateY(0); } 100% { transform: translateY(30px); } }

.hero-title { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; line-height: 1.05; }
.hero-title span {
  background: linear-gradient(to right, #fde047, #f59e0b, #fde047);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradientShift 4s linear infinite;
}

/* =========================================
   GRID CARDS & REVEALS
   ========================================= */
.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(15, 118, 110, 0.2); }
.img-wrapper { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--transition-smooth); }
.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.8) 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; }

.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
   ========================================= */
.modal-content { border-radius: 28px; border: none; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.3); }
.modal-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border: none; padding: 1.5rem 2rem; }
.form-control, .form-select { border-radius: 12px; padding: 14px 18px; border: 2px solid #e2e8f0; background: #f8fafc; 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(15, 118, 110, 0.1); transform: translateY(-2px); }

.btn-detect { transition: all 0.3s ease; position: relative; overflow: hidden; }
.btn-detect:hover { background-color: var(--text-main); color: white; 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.03); 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.08), transparent); transition: all 0.6s;
}
.agency-signature:hover::before { left: 100%; }
.agency-signature:hover {
  background: rgba(15, 118, 110, 0.15); border-color: rgba(45, 212, 191, 0.4);
  transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(45, 212, 191, 0.1);
}
.agency-signature .agency-text { color: #94a3b8; font-size: 0.85rem; letter-spacing: 0.5px; }
.agency-signature .agency-brand {
  font-weight: 800; background: linear-gradient(to right, #2dd4bf, #3b82f6);
  background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 0.5px;
  animation: textGradientShift 4s linear infinite;
}
.agency-signature .fa-atom { color: #2dd4bf; font-size: 1.2rem; animation: spin-slow 4s linear infinite; }
@keyframes spin-slow { 100% { transform: rotate(360deg); } }

/* =========================================
   FLOATING ACTION BUTTONS (Desktop CTA)
   ========================================= */
.floating-container { 
  position: fixed; bottom: 30px; right: 30px; z-index: 1050; 
  display: flex; flex-direction: column; gap: 15px; 
}
.fab-btn {
  width: 65px; height: 65px; border-radius: 50%; 
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: white; box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: all 0.4s var(--transition-spring); text-decoration: none; position: relative;
  overflow: hidden;
}

/* Float + Pulse Combined for FABs */
.fab-wa { 
  background: var(--whatsapp); 
  animation: floatElement 4s ease-in-out infinite, pulse-wa 2s infinite !important; 
}
.fab-call { 
  background: var(--primary); 
  /* Delay the pulse slightly so they don't beat at the exact same millisecond */
  animation: floatElement 4s ease-in-out infinite, pulse-primary 2s infinite !important; 
  animation-delay: 0s, 0.5s !important; 
}

.fab-btn:hover { 
  transform: scale(1.15) rotate(-5deg) !important; 
  color: white; 
  animation: none !important; /* Stop pulse on hover */
}
.fab-btn::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;
}

/* =========================================
   MOBILE OVERRIDES
   ========================================= */
@media (max-width: 768px) {
  .hero { padding: 160px 0 80px; }
  .mobile-sticky-cta { position: fixed; bottom: 0; left: 0; width: 100%; background: white; padding: 12px; display: flex; gap: 10px; box-shadow: 0 -5px 25px rgba(0,0,0,0.15); z-index: 1040; }
  .mobile-sticky-cta .btn { flex: 1; font-weight: 800; border-radius: 14px; padding: 12px 0; }
  .agency-signature { width: 100%; justify-content: center; }
  .hero-image-wrapper img { width: 100%; max-height: 350px; object-fit: cover; margin-top: 30px; }
  body { padding-bottom: 75px; }
}
.max-w-600 { max-width: 600px; margin: 0 auto; }

/* =========================================
   SERVICES & DETAILS PAGE SPECIFIC CSS
   ========================================= */
.page-header { padding: 140px 0 80px; background: linear-gradient(135deg, #022c22 0%, var(--primary) 100%); color: white; 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; }

.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; }
.search-bar:focus-within { box-shadow: 0 20px 40px rgba(15, 118, 110, 0.2); transform: translateY(-2px); }
.search-bar input { border: none; outline: none; padding: 10px 20px; font-size: 1.1rem; width: 100%; border-radius: 50px; }
.search-bar .icon { color: var(--primary); font-size: 1.2rem; padding: 0 10px; }

.service-hero { padding: 160px 0 80px; background: linear-gradient(rgba(10, 92, 75, 0.85), rgba(10, 92, 75, 0.95)), url('https://images.unsplash.com/photo-1527515637462-cff94eecc1ac?auto=format&fit=crop&w=1920&q=80') center/cover; color: white; position: relative; overflow: hidden; }
.service-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; opacity: 0.3; }

.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); }

.bhk-card { background: #ffffff; border: 2px solid #e2e8f0; 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(15, 118, 110, 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 .price-tag { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-top: auto; padding-top: 1.5rem; }
.bhk-card .btn-book { margin-top: 1.5rem; border-radius: 50px; font-weight: 700; width: 100%; transition: 0.3s; padding: 10px 0; }
.bhk-card:hover .btn-book { background-color: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 5px 15px rgba(15, 118, 110, 0.2); }

.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; }
.check-list li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px; }
.check-list i { color: var(--primary); font-size: 1.2rem; margin-top: 3px; }
.cross-list i { color: #ef4444; }

@media (max-width: 768px) { .content-box { padding: 25px; } .bhk-card { padding: 1.5rem 1rem; } }

/* =========================================
   CARD ARROW BUTTON ANIMATION
   ========================================= */
.btn-arrow-animate {
  transition: all 0.4s var(--transition-spring);
  color: var(--text-main);
  background: #ffffff;
}
.btn-arrow-animate:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: translateX(5px) scale(1.15) rotate(-15deg);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.4);
  border-color: var(--primary) !important;
}
.btn-arrow-animate i {
  transition: transform 0.3s ease;
}
.btn-arrow-animate:hover i {
  transform: translateX(2px) rotate(15deg);
}
