:root{
  --pp-primary:#0d6efd;
  --pp-dark:#0b214a;
  --pp-overlay: rgba(11, 33, 74, 0.85);
}

.hero{
  position: relative;
  background: linear-gradient(135deg, var(--pp-dark), #0d6efd);
  color:#fff;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    #ff6b6b 0%, #ffd93d 20%, #6bcf7f 40%, 
    #4ecdc4 60%, #ff8cc8 80%, #c56cf0 100%);
  background-size: 400% 400%;
  animation: realEstateMove 15s ease infinite;
  z-index: 1;
}

/* Add property silhouettes */
.hero::before {
  background-image: 
    /* House silhouettes */
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.15) 1%, transparent 1%),
    radial-gradient(circle at 15% 25%, rgba(74, 220, 11, 0.1) 3%, transparent 3%),
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.15) 1%, transparent 1%),
    radial-gradient(circle at 25% 25%, rgba(19, 37, 229, 0.1) 3%, transparent 3%),
    
    radial-gradient(circle at 45% 15%, rgba(255,255,255,0.15) 1%, transparent 1%),
    radial-gradient(circle at 45% 15%, rgba(255,255,255,0.1) 3%, transparent 3%),
    radial-gradient(circle at 55% 15%, rgba(255,255,255,0.15) 1%, transparent 1%),
    radial-gradient(circle at 55% 15%, rgba(255,255,255,0.1) 3%, transparent 3%),
    
    radial-gradient(circle at 75% 35%, rgba(255,255,255,0.15) 1%, transparent 1%),
    radial-gradient(circle at 75% 35%, rgba(255,255,255,0.1) 3%, transparent 3%),
    radial-gradient(circle at 85% 35%, rgba(255,255,255,0.15) 1%, transparent 1%),
    radial-gradient(circle at 85% 35%, rgba(255,255,255,0.1) 3%, transparent 3%),
    
    radial-gradient(circle at 35% 65%, rgba(255,255,255,0.15) 1%, transparent 1%),
    radial-gradient(circle at 35% 65%, rgba(255,255,255,0.1) 3%, transparent 3%),
    radial-gradient(circle at 45% 65%, rgba(255,255,255,0.15) 1%, transparent 1%),
    radial-gradient(circle at 45% 65%, rgba(255,255,255,0.1) 3%, transparent 3%),
    
    radial-gradient(circle at 65% 75%, rgba(255,255,255,0.15) 1%, transparent 1%),
    radial-gradient(circle at 65% 75%, rgba(255,255,255,0.1) 3%, transparent 3%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.15) 1%, transparent 1%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 3%, transparent 3%),
    
    /* Moving gradient background */
    linear-gradient(45deg, 
      #ff6b6b 0%, #ffd93d 20%, #6bcf7f 40%, 
      #4ecdc4 60%, #ff8cc8 80%, #c56cf0 100%);
  background-size: 400% 400%, 100% 100%;
  animation: realEstateMove 15s ease infinite, propertyFloat 12s ease-in-out infinite;
}

@keyframes realEstateMove {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

@keyframes propertyFloat {
  0%, 100% { 
    background-position: 0% 0%, 0% 0%;
    opacity: 0.9;
  }
  20% { 
    background-position: 5% 3%, 3% 2%;
    opacity: 0.95;
  }
  40% { 
    background-position: -3% 6%, 6% -2%;
    opacity: 0.85;
  }
  60% { 
    background-position: 8% -4%, -4% 8%;
    opacity: 0.92;
  }
  80% { 
    background-position: -6% 8%, 8% -6%;
    opacity: 0.88;
  }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 33, 74, 0.4), rgba(13, 110, 253, 0.3));
  z-index: 2;
}


.hero .container {
  position: relative;
  z-index: 3;
}

.hero-card{
  border:0;
  box-shadow: 0 15px 35px rgba(0,0,0,.25);
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
}

.hero-card .card-body {
  padding: 2rem;
}

.hero-card .fw-semibold {
  color: var(--pp-dark);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-card .form-label {
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-card .form-control,
.hero-card .form-select {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e8e8e8;
  color: #333;
  font-weight: 500;
}

.hero-card .form-control:focus,
.hero-card .form-select:focus {
  background: rgba(255, 255, 255, 1);
  border-color: var(--pp-primary);
  color: #333;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.hero-card .form-control::placeholder {
  color: #666;
}

.hero-card .btn-primary {
  background: linear-gradient(135deg, var(--pp-primary), #0b5ed7);
  border: none;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.875rem 1.5rem;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.hero-card .btn-primary:hover {
  background: linear-gradient(135deg, #0b5ed7, #0a58ca);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.property-card{
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}

.property-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.badge-soft{
  background: rgba(13,110,253,.1);
  color: var(--pp-primary);
}

/* Mobile Responsive Hero */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 3rem 0;
  }
  
  .hero::before {
    background-attachment: scroll;
  }
  
  .hero h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  .hero .lead {
    font-size: 1rem !important;
  }
  
  .hero-card {
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.5rem !important;
  }
  
  .hero .lead {
    font-size: 0.9rem !important;
  }
  
  .hero .btn {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
  }
}

.hero h1 {
  font-weight: 800;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero .lead {
  font-size: 1.25rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.98);
}

.hero .btn {
  border-radius: 50px;
  padding: 0.875rem 2.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-shadow: none;
}

.hero .btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--pp-dark);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero .btn-light:hover {
  background: rgba(255, 255, 255, 1);
  color: var(--pp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.8);
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 1);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Form enhancements */
.hero-card .form-control,
.hero-card .form-select {
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.hero-card .form-control:focus,
.hero-card .form-select:focus {
  border-color: var(--pp-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.hero-card .btn-primary {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-card .btn-primary:hover {
  background: #0b5ed7;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Attractive Navbar Styling */
.navbar {
  background: linear-gradient(135deg, rgba(11, 33, 74, 0.95), rgba(13, 110, 253, 0.9)) !important;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.4rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: #ffd93d !important;
  transform: translateY(-1px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1rem !important;
  border-radius: 25px;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
  left: 100%;
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link.active {
  color: #ffd93d !important;
  background: rgba(255, 217, 61, 0.2);
  border: 1px solid rgba(255, 217, 61, 0.3);
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* WhatsApp Button Styling */
.whatsapp-btn {
  color: #25d366 !important;
  background: rgba(37, 211, 102, 0.1) !important;
  border: 1px solid rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 211, 102, 0.2), transparent);
  transition: left 0.5s ease;
}

.whatsapp-btn:hover::before {
  left: 100%;
}

.whatsapp-btn:hover {
  color: #128c7e !important;
  background: rgba(37, 211, 102, 0.2) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
  border-color: rgba(37, 211, 102, 0.5);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: whatsappPulse 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp i {
  color: white;
  font-size: 28px;
}

@keyframes whatsappPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Mobile WhatsApp Button */
@media (max-width: 768px) {
  .floating-whatsapp {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .floating-whatsapp i {
    font-size: 24px;
  }
}
@media (max-width: 991px) {
  .navbar-nav {
    background: rgba(11, 33, 74, 0.95);
    border-radius: 15px;
    padding: 1rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
    border-radius: 10px;
  }
}
@media (max-width: 768px) {
  /* Container adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Navigation adjustments */
  .navbar-brand {
    font-size: 1.2rem !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.8rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Card adjustments */
  .card {
    margin-bottom: 1rem;
  }
  
  /* Property cards grid */
  .col-md-6.col-lg-4.col-xl-3 {
    margin-bottom: 1.5rem;
  }
  
  /* Form adjustments */
  .form-control, .form-select {
    font-size: 0.9rem;
  }
  
  /* Button adjustments */
  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  /* Gallery adjustments */
  .gallery-item {
    width: 300px;
    height: 225px;
  }
  
  .gallery-nav {
    width: 35px;
    height: 35px;
  }
  
  .gallery-prev {
    left: 5px;
  }
  
  .gallery-next {
    right: 5px;
  }
}

@media (max-width: 576px) {
  /* Small mobile adjustments */
  h1 {
    font-size: 1.5rem !important;
  }
  
  h2 {
    font-size: 1.3rem !important;
  }
  
  h3 {
    font-size: 1.1rem !important;
  }
  
  /* Property cards on small screens */
  .property-card {
    margin-bottom: 1rem;
  }
  
  .property-image {
    height: 150px !important;
  }
  
  /* Form stacking */
  .row.g-3 > .col-md-6 {
    margin-bottom: 1rem;
  }
  
  /* Button full width on mobile */
  .d-flex.gap-3 {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .d-flex.gap-3 .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet responsiveness */
@media (min-width: 577px) and (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem !important;
  }
  
  .property-card {
    margin-bottom: 1.2rem;
  }
}

/* Large desktop optimizations */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  .property-card:hover,
  .btn:hover,
  .gallery-image:hover {
    transform: none;
  }
  
  .property-card:active,
  .btn:active {
    transform: scale(0.98);
  }
}
