/* ============================================
   Viradiya Associates - Custom Styles
   Premium financial services website
   ============================================ */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4f46e5, #7c3aed);
}

/* ---- ANIMATIONS ---- */

/* Fade up on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
}

/* Fade left */
.fade-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);
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade right */
.fade-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);
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.scale-up {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children animation delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ---- FLOATING GRADIENT BLOBS ---- */
.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  animation: float-blob 8s ease-in-out infinite;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  animation: float-blob 10s ease-in-out infinite reverse;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  animation: float-blob 12s ease-in-out infinite;
}

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 15px) scale(1.02); }
}

/* ---- GLASSMORPHISM CARDS ---- */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -4px rgba(99, 102, 241, 0.08), 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #06b6d4, #8b5cf6);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px -12px rgba(99, 102, 241, 0.2), 0 8px 24px -8px rgba(0,0,0,0.06);
  border-color: rgba(99, 102, 241, 0.25);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Dark glass card variant */
.glass-card-dark {
  background: rgba(30, 27, 75, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-dark:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px -12px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
}

/* ---- GRADIENT BORDER CARD ---- */
.gradient-border-card {
  position: relative;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gradient-border-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, #6366f1, #06b6d4, #8b5cf6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gradient-border-card:hover::before {
  opacity: 1;
}

.gradient-border-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px -12px rgba(99, 102, 241, 0.2);
}

/* ---- GLOW EFFECT ---- */
.glow-effect {
  position: relative;
}

.glow-effect::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #6366f1, #06b6d4, #8b5cf6, #6366f1);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(15px);
  transition: opacity 0.4s ease;
}

.glow-effect:hover::after {
  opacity: 0.6;
}

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- BUTTON STYLES ---- */
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -5px rgba(79, 70, 229, 0.5);
}

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

.btn-secondary {
  background: transparent;
  color: #4f46e5;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  border: 2px solid #4f46e5;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #4f46e5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -5px rgba(79, 70, 229, 0.3);
}

/* ---- SECTION STYLES ---- */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, #06b6d4, transparent);
  border: none;
  margin: 0;
}

/* Wave separator */
.wave-separator {
  position: relative;
  overflow: hidden;
}

.wave-separator::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,50 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

/* ---- COUNTER ANIMATION ---- */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ---- NAVBAR ---- */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-item {
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nav-item:hover .nav-dropdown,
.nav-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---- HERO SECTION ---- */
.hero-bg {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 30%, #f0f9ff 60%, #ede9fe 100%);
  position: relative;
  overflow: hidden;
}

/* Particles / dots background */
.dots-pattern {
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* ---- RANGE SLIDER CUSTOM ---- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  outline: none;
  transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
  border: 3px solid white;
  transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
  border: 3px solid white;
}

/* ---- LOADING ANIMATION ---- */
.page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #ede9fe 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  z-index: 2;
  animation: loader-pulse 1.5s ease-in-out infinite;
}

.loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
}

.loader-ring-1 {
  width: 80px;
  height: 80px;
  border-top-color: #4f46e5;
  border-right-color: #6366f1;
  animation: spin 1.2s linear infinite;
}

.loader-ring-2 {
  width: 100px;
  height: 100px;
  border-bottom-color: #8b5cf6;
  border-left-color: #06b6d4;
  animation: spin 1.8s linear infinite reverse;
}

.loader-text {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #4f46e5;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: loader-text-fade 1.5s ease-in-out infinite;
}

.loader-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 4px;
}

.loader-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4f46e5;
  animation: loader-dot-bounce 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes loader-text-fade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes loader-dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* ---- HERO CAROUSEL ---- */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
  .hero-carousel {
    height: 500px;
  }
}

.hero-carousel .carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-carousel .carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.hero-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel .carousel-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,70,229,0.15), rgba(139,92,246,0.1));
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: white;
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
}

.hero-carousel:hover .carousel-nav-btn {
  opacity: 1;
}

.carousel-nav-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev { left: 12px; }
.carousel-nav-btn.next { right: 12px; }

/* ---- SERVICE MODAL ---- */
.service-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 16px;
}

.service-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.service-modal {
  background: white;
  border-radius: 24px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

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

.service-modal-header {
  position: sticky;
  top: 0;
  background: white;
  padding: 24px 28px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  border-radius: 24px 24px 0 0;
}

.service-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.service-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.service-modal-body {
  padding: 24px 28px 28px;
}

/* ---- BOOK CONSULTANT BUTTON ---- */
.book-consult-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.45);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  animation: consult-glow 2s ease-in-out infinite;
}

.book-consult-float.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.book-consult-float:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.55);
}

.book-consult-float svg {
  width: 26px;
  height: 26px;
  stroke: white;
  fill: none;
}

@keyframes consult-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(79, 70, 229, 0.45); }
  50% { box-shadow: 0 4px 30px rgba(79, 70, 229, 0.7), 0 0 0 8px rgba(79, 70, 229, 0.1); }
}

.book-consult-float .consult-tooltip {
  position: absolute;
  left: 68px;
  background: white;
  color: #1e293b;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.book-consult-float:hover .consult-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ---- WHATSAPP BUTTON ---- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.whatsapp-float .whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: white;
  color: #1e293b;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ---- COUNTRY CODE SELECT ---- */
.phone-input-group {
  display: flex;
  gap: 0;
  font-weight: 600;
}

.country-code-select {
  width: 90px;
  padding: 14px 8px 14px 12px;
  border: 2px solid #e2e8f0;
  border-right: none;
  border-radius: 12px 0 0 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: #334155;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  cursor: pointer;
}

.country-code-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.phone-input-group .form-input {
  border-radius: 0 12px 12px 0;
}

/* ---- PARTNER ENQUIRY MODAL ---- */
.partner-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 16px;
}

.partner-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ---- TESTIMONIAL SLIDER ---- */
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- PARTNER LOGO MARQUEE ---- */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 25s linear infinite;
}

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

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-submenu.active {
  max-height: 500px;
}

.mobile-nav-item {
  position: relative;
  overflow: hidden;
}

.mobile-nav-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.mobile-nav-item:hover::after {
  opacity: 1;
}

/* ---- FORM STYLES ---- */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.form-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

/* ---- PIE CHART (Loan Calculator) ---- */
.pie-chart {
  position: relative;
  width: 200px;
  height: 200px;
}

.pie-chart svg {
  transform: rotate(-90deg);
}

/* ---- MEDIA QUERIES ---- */
@media (max-width: 768px) {
  .gradient-blob {
    filter: blur(60px);
    opacity: 0.2;
  }
  
  .blob-1, .blob-2, .blob-3 {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .btn-primary, .btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* ---- MOBILE HERO ENHANCEMENTS ---- */
@media (max-width: 1023px) {
  .hero-bg {
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-bg .gradient-blob {
    opacity: 0.25;
  }
}

@media (max-width: 767px) {
  .hero-carousel {
    height: 220px;
    border-radius: 20px;
  }

  .book-consult-float,
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
  }

  .book-consult-float { left: 16px; }
  .whatsapp-float { right: 16px; }

  .book-consult-float svg { width: 22px; height: 22px; }
  .whatsapp-float svg { width: 24px; height: 24px; }

  .book-consult-float .consult-tooltip,
  .whatsapp-float .whatsapp-tooltip {
    display: none;
  }
}

/* Mobile hero animated badge */
.mobile-hero-badge {
  display: none;
}

@media (max-width: 1023px) {
  .mobile-hero-badge {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .mobile-hero-badge .badge-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    animation: badge-float 3s ease-in-out infinite;
  }

  .mobile-hero-badge .badge-item:nth-child(2) { animation-delay: 0.3s; }
  .mobile-hero-badge .badge-item:nth-child(3) { animation-delay: 0.6s; }

  @keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }
}

/* Mobile hero typing text */
.hero-typed-text {
  display: inline;
}

@media (max-width: 1023px) {
  .hero-typed-text::after {
    content: '|';
    animation: blink-cursor 0.8s step-end infinite;
    color: #4f46e5;
    font-weight: 300;
  }

  @keyframes blink-cursor {
    50% { opacity: 0; }
  }
}

/* Map container */
.map-container iframe {
  border-radius: 16px;
  width: 100%;
  height: 400px;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
