/* 
 * Hero Section Styles - Bixing Technology
 * Modern, sleek AI-themed hero section
 *
 * This file contains all styles related to the hero section.
 * It is the single source of truth for hero section styling.
 * Any changes to hero section appearance should be made here.
 */

/* ===== Hero Section Container ===== */
.hero-section {
  position: relative;
  padding-top: 120px; /* Controls space between header and hero content */
  padding-bottom: 120px;
  background: var(--dark-bg);
  color: var(--white);
  overflow: hidden;
}

/* Background gradient overlay */
.hero-section::after {
  content: "";
  position: absolute;
  bottom: -2px; /* Overlap slightly to prevent any gap */
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--dark-bg));
  z-index: 1;
}

/* ===== Text Effects ===== */
/* Text gradient effect */
.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Enhanced title gradient */
.hero-title.text-gradient {
  background: linear-gradient(135deg, #FFD700, #FF8C00, #FFA500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(255, 184, 0, 0.2);
  display: inline-block;
}

/* ===== Hero Content Styles ===== */
.hero-content {
  position: relative;
  z-index: 2;
  padding-right: 1rem; /* Reduced padding to spread content out */
}

/* Title styling */
.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Override Bootstrap display-4 class */
.hero-title.display-4 {
  font-size: 2.8rem !important; /* Using !important only to override Bootstrap */
}

/* Subtitle styling */
.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

/* Button container */
.hero-buttons {
  margin-top: 2rem;
}

/* Button styling */
.hero-buttons .btn {
  padding: 0.6rem 1.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Ensure hero buttons don't interfere with header elements */
.hero-buttons[style*="z-index: 9999"] {
  z-index: 999 !important; /* Lower z-index to prevent conflict with header */
}

/* ===== Floating Cards ===== */
/* Floating cards container */
.hero-image-container {
  position: relative;
  z-index: 2;
  padding-left: 1rem; /* Reduced padding to spread content out */
  margin-left: 0; /* Removed negative margin */
}

/* Floating card styling */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: float 3s ease-in-out infinite;
  z-index: 3;
  max-width: 200px;
}

/* Floating card positions - spread out more */
.floating-card-1 {
  top: 15%;
  left: 5%; /* Moved left from 15% to 5% */
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 15%;
  right: 0%; /* Moved right from 5% to 0% */
  animation-delay: 1.5s;
}

.floating-card-3 {
  top: 10%;
  right: 10%; /* Moved right from 20% to 10% */
  animation-delay: 0.8s;
}

.floating-card-4 {
  top: 50%;
  left: 50%; /* Moved right from 40% to 50% */
  transform: translate(-50%, -50%);
  animation-name: float-centered;
  animation-delay: 2.2s;
}

.floating-card-4:hover {
  transform: translate(-50%, -50%) translateY(-5px);
}

.floating-card-5 {
  bottom: 0%;
  left: 25%; /* Moved right from 15% to 25% */
  animation-delay: 1.2s;
}

/* Floating card icon styling */
.floating-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.2rem;
  color: var(--white);
}

/* Floating card icon colors */
.floating-card-1 .floating-card-icon {
  background: var(--gradient-card-1);
}

.floating-card-2 .floating-card-icon {
  background: var(--gradient-card-2);
}

.floating-card-3 .floating-card-icon {
  background: var(--gradient-card-3);
}

.floating-card-4 .floating-card-icon {
  background: var(--gradient-card-4);
}

.floating-card-5 .floating-card-icon {
  background: var(--gradient-card-5);
}

/* Floating card text styling */
.floating-card-text {
  flex: 1;
}

.floating-card-text span {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 5px;
}

/* Floating card progress bar styling */
.floating-card-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  width: 100px;
}

.floating-card-1 .progress-bar {
  background: var(--gradient-card-1);
}

.floating-card-2 .progress-bar {
  background: var(--gradient-card-2);
}

.floating-card-3 .progress-bar {
  background: var(--gradient-card-3);
}

.floating-card-4 .progress-bar {
  background: var(--gradient-card-4);
}

.floating-card-5 .progress-bar {
  background: var(--gradient-card-5);
}

.floating-card-progress .progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
}

/* Hide original floating cards on mobile */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
}

/* Mobile-specific floating cards with minimal styling */
@media (max-width: 768px) {
  .floating-card-mobile {
    display: inline-flex;
    align-items: center;
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 12px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: float-mobile 3s ease-in-out infinite;
    z-index: 3;
  }
  
  /* Icon styling */
  .floating-card-mobile i {
    font-size: 12px;
    margin-right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Positioning for each card - moved closer to center */
  .floating-card-mobile-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
  }
  
  .floating-card-mobile-2 {
    top: 20%;
    right: 20%;
    animation-delay: 0.5s;
  }
  
  .floating-card-mobile-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 0.8s;
  }
  
  .floating-card-mobile-4 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1.5s;
    animation-name: float-mobile-center;
  }
  
  .floating-card-mobile-5 {
    bottom: 25%;
    right: 25%;
    animation-delay: 1.2s;
  }
}

/* Mobile-specific float animation with smaller movement */
@keyframes float-mobile {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Special animation for centered card */
@keyframes float-mobile-center {
  0% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, -55%);
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
  .hero-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .hero-content {
    padding-right: 0; /* Remove padding on smaller screens */
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .hero-image-container {
    padding-left: 0; /* Remove padding on smaller screens */
  }
  
  /* Center the floating cards on mobile */
  .floating-card-1,
  .floating-card-2,
  .floating-card-3,
  .floating-card-5 {
    position: relative;
    display: inline-flex;
    margin: 10px;
    position: static;
    animation: none;
  }
  
  .floating-card-4 {
    position: relative;
    display: inline-flex;
    margin: 10px;
    position: static;
    transform: none;
    animation: none;
  }
  
  .hero-image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 80px; /* Increased from 40px to prevent header overlap */
    padding-bottom: 60px; /* Reduced from 100px for more compact layout */
    text-align: center;
  }
  
  /* Reorder columns on mobile - image first, text second */
  .hero-row {
    display: flex;
    flex-direction: column;
  }
  
  .hero-image-col {
    order: 1; /* Show first */
    margin-bottom: 1rem; /* Reduced from 2rem */
  }
  
  .hero-text-col {
    order: 2; /* Show second */
  }
  
  .hero-content {
    margin-bottom: 0; /* Remove bottom margin since it's now at the bottom */
    margin-top: 0; /* Reduced from 1rem */
  }
  
  .hero-title {
    margin-bottom: 0.5rem; /* Add compact spacing */
  }
  
  .hero-subtitle {
    margin-bottom: 1rem; /* Add compact spacing */
  }
  
  .hero-image-container {
    margin-top: 1rem;
    position: relative;
  }
  
  /* Hide original floating cards on mobile */
  .floating-card {
    display: none;
  }
  
  /* Mobile-specific floating cards with minimal styling */
  .floating-card-mobile {
    display: inline-flex;
    align-items: center;
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 12px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: float-mobile 3s ease-in-out infinite;
    z-index: 3;
  }
  
  /* Icon styling */
  .floating-card-mobile i {
    font-size: 12px;
    margin-right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Positioning for each card - moved closer to center */
  .floating-card-mobile-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
  }
  
  .floating-card-mobile-2 {
    top: 20%;
    right: 20%;
    animation-delay: 0.5s;
  }
  
  .floating-card-mobile-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 0.8s;
  }
  
  .floating-card-mobile-4 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1.5s;
    animation-name: float-mobile-center;
  }
  
  .floating-card-mobile-5 {
    bottom: 25%;
    right: 25%;
    animation-delay: 1.2s;
  }
  
  /* Mobile-specific float animation with smaller movement */
  @keyframes float-mobile {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
    100% {
      transform: translateY(0);
    }
  }
  
  /* Special animation for centered card */
  @keyframes float-mobile-center {
    0% {
      transform: translate(-50%, -50%);
    }
    50% {
      transform: translate(-50%, -55%);
    }
    100% {
      transform: translate(-50%, -50%);
    }
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-title.display-4 {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem; /* Reduced from 1rem for more compact layout */
    margin-top: 1rem; /* Reduced from 1.5rem */
  }
  
  .hero-buttons .btn {
    margin: 0;
    width: 80%;
  }
}

/* Hide mobile cards on desktop and larger screens */
@media (min-width: 769px) {
  .floating-card-mobile {
    display: none !important; /* Force hide with !important */
  }
}

/* ===== Client Logos ===== */
.trusted-by {
  margin-top: 3rem;
}

.client-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.client-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity var(--transition-normal), color var(--transition-normal);
}

.client-logo:hover {
  opacity: 1;
  color: var(--gold-light);
}

/* ===== Hero Particles ===== */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ===== Hero Wave Shape ===== */
.hero-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
  transform: translateY(10px);
}

/* ===== Animations ===== */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes float-centered {
  0% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, -60%);
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

/* Hide mobile-specific floating cards on desktop */
@media (min-width: 769px) {
  .floating-card-mobile {
    display: none !important;
  }
}
