.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f8fe 0%, #f7f8fe 100%);
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23a)"/><circle cx="800" cy="300" r="200" fill="url(%23a)"/><circle cx="400" cy="700" r="180" fill="url(%23a)"/></svg>') no-repeat center center/cover;
  animation: float 20s ease-in-out infinite;
}

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

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  animation: slideInUp 0.8s ease-out;
}

.hero-badge i {
  margin-right: 8px;
  color: #4ADE80;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #5438FC, #5438FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #5438FC, #22c55e);
  border-radius: 2px;
  animation: scaleX 1s ease-out 1.2s both;
  transform-origin: left;
}

@keyframes scaleX {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-description {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 500px;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  color: #4ade80;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease-out 0.8s both;
}

.btn {
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #5438FC, #22c55e);
  color: white;
  box-shadow: 0 10px 25px rgba(74, 222, 128, 0.3);
}

.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;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-visual {
  position: relative;
  animation: slideInRight 1s ease-out 0.4s both;
}

/* Animated Real Estate Visualization */
.real-estate-scene {
  position: relative;
  width: 100%;
  height: 500px;
  perspective: 1000px;
}

.city-skyline {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, rgba(255,255,255,0.1), transparent);
  backdrop-filter: blur(10px);
  border-radius: 20px 20px 0 0;
}

.building {
  position: absolute;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: buildingGrow 2s ease-out both;
}

.building::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  animation: shine 3s ease-in-out infinite;
}

.building-1 {
  left: 10%;
  width: 60px;
  height: 120px;
  animation-delay: 0.2s;
}

.building-2 {
  left: 25%;
  width: 80px;
  height: 160px;
  animation-delay: 0.4s;
}

.building-3 {
  left: 45%;
  width: 70px;
  height: 140px;
  animation-delay: 0.6s;
}

.building-4 {
  left: 65%;
  width: 90px;
  height: 180px;
  animation-delay: 0.8s;
}

.building-5 {
  right: 10%;
  width: 65px;
  height: 130px;
  animation-delay: 1s;
}

@keyframes buildingGrow {
  from {
      transform: scaleY(0);
      opacity: 0;
  }
  to {
      transform: scaleY(1);
      opacity: 1;
  }
}

@keyframes shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(200%); }
}

/* Floating Property Cards */
.floating-properties {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.property-card-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: floatCard 4s ease-in-out infinite;
  width: 220px;
}

.property-card-float:nth-child(1) {
  top: 10%;
  right: 0;
  animation-delay: 0s;
}

.property-card-float:nth-child(2) {
  top: 50%;
  left: -20px;
  animation-delay: -2s;
}

.property-card-float:nth-child(3) {
  top: 30%;
  right: -30px;
  animation-delay: -1s;
}

@keyframes floatCard {
  0%, 100% { 
      transform: translateY(0px) rotateY(0deg);
  }
  50% { 
      transform: translateY(-15px) rotateY(5deg);
  }
}

.card-image-placeholder {
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, #5438FC, #5438FC);
  border-radius: 8px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.card-image-placeholder::before {
  content: '🏢';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0.7;
}

.card-image-placeholder.residential::before {
  content: '🏠';
}

.card-image-placeholder.commercial::before {
  content: '🏢';
}

.card-image-placeholder.luxury::before {
  content: '🏨';
}

.property-info-float {
  color: #1f2937;
}

.property-info-float h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.property-info-float p {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.return-indicator {
  background: linear-gradient(135deg, #00CFF2, #00CFF2);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-block;
}

/* Investment Flow Animation */
.investment-flow {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
}

.money-flow {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #FFB521;
  border-radius: 50%;
  opacity: 0;
  animation: moneyFlow 3s ease-in-out infinite;
}

.money-flow:nth-child(1) { animation-delay: 0s; }
.money-flow:nth-child(2) { animation-delay: 0.5s; }
.money-flow:nth-child(3) { animation-delay: 1s; }
.money-flow:nth-child(4) { animation-delay: 1.5s; }
.money-flow:nth-child(5) { animation-delay: 2s; }

@keyframes moneyFlow {
  0% {
      transform: translateX(0) translateY(0) scale(0);
      opacity: 0;
  }
  20% {
      transform: translateX(100px) translateY(-50px) scale(1);
      opacity: 1;
  }
  40% {
      transform: translateX(200px) translateY(-20px) scale(0.8);
      opacity: 0.8;
  }
  60% {
      transform: translateX(300px) translateY(20px) scale(0.6);
      opacity: 0.6;
  }
  80% {
      transform: translateX(400px) translateY(0px) scale(0.4);
      opacity: 0.4;
  }
  100% {
      transform: translateX(500px) translateY(-10px) scale(0);
      opacity: 0;
  }
}

/* Growth Chart Animation */
.growth-chart {
  position: absolute;
  bottom: 250px;
  right: 50px;
  width: 150px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: chartFloat 3s ease-in-out infinite;
}

@keyframes chartFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.chart-line {
  width: 100%;
  height: 40px;
  position: relative;
  overflow: hidden;
}

.chart-path {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #5438FC, #22c55e);
  transform-origin: left;
  animation: chartGrow 2s ease-out 2s both;
}

.chart-path::after {
  content: '';
  position: absolute;
  right: 0;
  top: -15px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 30px solid #5438FC;
  transform: rotate(-30deg);
}

@keyframes chartGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.chart-label {
  font-size: 0.7rem;
  color: #1f2937;
  text-align: center;
  margin-top: 5px;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
      grid-template-columns: 1fr;
      gap: 40px;
      text-align: center;
  }

  .hero-stats {
      justify-content: center;
  }

  .real-estate-scene {
      height: 300px;
  }

  .building {
      width: 40px !important;
      height: 80px !important;
  }

  .property-card-float {
      width: 180px;
      padding: 15px;
  }

  .property-card-float:nth-child(2),
  .property-card-float:nth-child(3) {
      left: 10px;
      right: auto;
  }

  .hero-buttons {
      justify-content: center;
  }

  .investment-flow {
      display: none;
  }
}

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

@keyframes slideInRight {
  from {
      opacity: 0;
      transform: translateX(50px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}
