/* ===================================
   Hero Section - Complete Redesign
   =================================== */

.hero-section-modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #2E2BE2;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #2E2BE2 0%, #4F4CE6 50%, #6B68E8 100%);
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px;
  animation: patternMove 20s linear infinite;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 6s ease-in-out infinite;
}

.hero-shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 5%;
  animation-delay: 2s;
}

.hero-shape-3 {
  width: 100px;
  height: 100px;
  top: 60%;
  right: 20%;
  animation-delay: 4s;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  color: #FFFFFF;
  max-width: 600px;
}

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

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

.hero-highlight {
  background: linear-gradient(135deg, #FFFFFF 0%, #E0E7FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.btn-hero-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  color: #2E2BE2;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  color: #2E2BE2;
}

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

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

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.hero-trust-indicators {
  display: flex;
  gap: 40px;
  animation: slideInUp 0.8s ease-out 0.8s both;
}

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

.trust-number {
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.trust-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

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

.hero-image-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.hero-main-image {
  position: relative;
  z-index: 0;
}

.hero-main-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 200px;
  animation: float 4s ease-in-out infinite;
}

.floating-card-1 {
  top: 15%;
  right: -10%;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 90%;
  left: -20%;
  animation-delay: 1s;
}

.floating-card-3 {
  top: 50%;
  right: -5%;
  animation-delay: 2s;
}

.floating-card-4 {
    bottom: 30%;
    left: -15%;
    animation-delay: 1s;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #2E2BE2, #4F4CE6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 20px;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

.card-title {
  font-weight: 600;
  color: #2E2BE2;
  font-size: 14px;
  margin-bottom: 2px;
}

.card-subtitle {
  font-size: 12px;
  color: #6C757D;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  animation: slideInUp 1s ease-out 1s both;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scroll-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  width: 100%;
}

.scroll-arrow {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  animation: bounce 2s infinite;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Animations */
@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);
  }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes patternMove {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 50px 50px, 30px 30px;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-trust-indicators {
    gap: 20px;
  }

  .floating-card {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-section-modern {
    min-height: 90vh;
    padding-top: 80px; /* Add padding to push content below navbar */
  }

  .hero-container {
    padding-top: 40px; /* Additional padding for hero content */
  }

  .hero-main-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-trust-indicators {
    justify-content: space-between;
    gap: 10px;
  }

  .trust-number {
    font-size: 1.5rem;
  }

  .trust-label {
    font-size: 12px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 16px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 14px 24px;
    font-size: 14px;
  }

  .hero-visual {
    margin-top: 40px; /* Add space before hero image */
  }
}

/* Additional mobile breakpoints for better spacing */
@media (max-width: 576px) {
  .hero-section-modern {
    padding-top: 40px;
  }

  .hero-container {
    padding-top: 50px; /* Additional padding for very small screens */
  }

  .hero-main-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .hero-visual {
    margin-top: 50px; /* More space before hero image on small screens */
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .hero-section-modern {
    padding-top: 70px; /* Tablet padding */
  }

  .hero-container {
    padding-top: 30px;
  }

  .hero-visual {
    margin-top: 30px;
  }
}

/* Performance optimizations */
.hero-section-modern * {
  will-change: transform;
}

.floating-card {
  will-change: transform;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-pattern,
  .floating-card,
  .hero-shape,
  .scroll-arrow {
    animation: none !important;
  }

  .hero-badge,
  .hero-main-title,
  .hero-description,
  .hero-actions,
  .hero-trust-indicators,
  .hero-visual,
  .hero-scroll-indicator {
    animation: none !important;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .hero-section-modern {
    background: #000080 !important;
  }

  .hero-gradient {
    background: #000080 !important;
  }

  .btn-hero-primary {
    background: #FFFFFF !important;
    color: #000080 !important;
    border: 2px solid #FFFFFF !important;
  }

  .floating-card {
    background: #FFFFFF !important;
    border: 2px solid #000000 !important;
  }
}
