/* ==========================================================================
   MODERN AI-INSPIRED HERO SECTION
   Glassmorphism, gradients, animations, capsule search
   ========================================================================== */

/* New CSS Variables for Modern Hero */
:root {
  --hero-gradient-start: #0a1628;
  --hero-gradient-mid: #1a3a5c;
  --hero-gradient-end: #0d2137;
  --accent-glow: rgba(0, 161, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --capsule-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Modern Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-mid) 50%, var(--hero-gradient-end) 100%);
  overflow: hidden;
}

/* Animated Background Elements */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 161, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(64, 97, 159, 0.2) 0%, transparent 50%);
  z-index: 1;
}

/* Floating Particles Animation */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 2%),
    radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 2%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 2%);
  animation: floatParticles 20s ease-in-out infinite;
  z-index: 1;
}

@keyframes floatParticles {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-20px) translateX(10px); }
  66% { transform: translateY(10px) translateX(-10px); }
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Hero Content - Modern Typography */
.hero-content {
  color: var(--white);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Animated Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--blue-light);
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern Hero Title */
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #9FC3E7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Subtitle */
.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* CAPSULE SEARCH BAR - Modern Glassmorphism */
.hero-search {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 
    var(--capsule-shadow),
    0 0 60px rgba(0, 161, 255, 0.1);
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  transition: all 0.3s ease;
}

.hero-search:hover {
  box-shadow: 
    var(--capsule-shadow),
    0 0 80px rgba(0, 161, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Search Input */
.hero-search__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 24px;
  font-size: 1rem;
  color: var(--white);
  background: transparent;
  min-width: 0;
}

.hero-search__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Property Type Select - Styled as Button */
.hero-search__select {
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 14px 40px 14px 20px;
  font-size: 0.95rem;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' fill-opacity='0.7' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.hero-search__select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-search__select option {
  background: #1a3a5c;
  color: var(--text);
}

/* Divider */
.hero-search__divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Search Button - Gradient Glow */
.hero-search__btn {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0066cc 100%);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 81, 161, 0.4);
}

.hero-search__btn::before {
  content: '';
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.hero-search__btn:hover {
  background: linear-gradient(135deg, #0066cc 0%, var(--blue-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 81, 161, 0.5);
}

/* Hero Stats - Modern Cards */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stat {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 16px;
  transition: all 0.3s ease;
}

.hero-stat:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-stat__number {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
}

.hero-stat__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }
  
  .hero-search {
    flex-direction: column;
    border-radius: 24px;
    padding: 16px;
    gap: 12px;
  }
  
  .hero-search__input,
  .hero-search__select,
  .hero-search__btn {
    width: 100%;
  }
  
  .hero-search__divider {
    width: 100%;
    height: 1px;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .hero-stat__number {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}
