/* ==========================================================================
   Hero Section Styles - Modern Cohesive Design
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(to bottom, var(--color-bg-light) 0%, var(--color-bg-light) 60%, #ffffff 100%);
  overflow: hidden;
  min-height: 65vh;
  display: flex;
  align-items: center;
}

/* Professional fixed gradient mesh background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 22% 28%, rgba(225, 40, 172, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 78% 18%, rgba(253, 98, 48, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(146, 19, 241, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 18% 82%, rgba(225, 40, 172, 0.04) 0%, transparent 30%),
    linear-gradient(135deg, rgba(225, 40, 172, 0.02) 0%, transparent 50%, rgba(146, 19, 241, 0.015) 100%),
    /* Enhanced smooth transition to white at bottom with blur effect */
    linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(255, 255, 255, 0.4) 75%, rgba(255, 255, 255, 0.7) 85%, rgba(255, 255, 255, 0.9) 95%, #ffffff 100%);
  z-index: 1;
  filter: blur(0.5px);
}

/* Subtle fixed geometric pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(30deg, transparent 49%, rgba(225, 40, 172, 0.008) 50%, transparent 51%),
    linear-gradient(150deg, transparent 49%, rgba(253, 98, 48, 0.006) 50%, transparent 51%),
    /* Enhanced smooth white transition overlay with stronger blur effect */
    linear-gradient(to bottom, transparent 0%, transparent 65%, rgba(255, 255, 255, 0.6) 80%, rgba(255, 255, 255, 0.85) 92%, #ffffff 100%);
  background-size: 100px 100px, 140px 140px, 100% 100%;
  z-index: 1;
  opacity: 0.8;
  filter: blur(1px);
}

/* Dedicated bottom blur transition overlay for seamless merging */
.hero .hero__bottom-transition {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 20%, 
    rgba(255, 255, 255, 0.5) 40%, 
    rgba(255, 255, 255, 0.8) 70%, 
    rgba(255, 255, 255, 0.95) 90%, 
    #ffffff 100%
  );
  z-index: 3;
  filter: blur(2px);
  pointer-events: none;
}

/* Professional background accent elements */
.hero__bg-accent {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.hero__bg-accent--grid {
  top: 0;
  right: 0;
  width: 35%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(225, 40, 172, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 40, 172, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask: linear-gradient(270deg, transparent 0%, black 25%, black 75%, transparent 100%);
  -webkit-mask: linear-gradient(270deg, transparent 0%, black 25%, black 75%, transparent 100%);
  opacity: 0.7;
}

.hero__bg-accent--orb-1 {
  top: 12%;
  right: 6%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(253, 98, 48, 0.06) 0%, rgba(253, 98, 48, 0.015) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(25px);
}

.hero__bg-accent--orb-2 {
  bottom: 18%;
  left: 10%;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(146, 19, 241, 0.05) 0%, rgba(146, 19, 241, 0.01) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
}

.hero__bg-accent--lines {
  top: 35%;
  left: -3%;
  width: 250px;
  height: 180px;
  background: 
    linear-gradient(45deg, transparent 49%, rgba(225, 40, 172, 0.025) 50%, transparent 51%),
    linear-gradient(135deg, transparent 49%, rgba(253, 98, 48, 0.02) 50%, transparent 51%);
  background-size: 80px 80px, 100px 100px;
  mask: radial-gradient(ellipse 70% 50%, black 20%, transparent 60%);
  -webkit-mask: radial-gradient(ellipse 70% 50%, black 20%, transparent 60%);
  opacity: 0.8;
}

.hero__container {
  max-width: 1400px; 
  margin: 0 auto; /* Center the container on larger screens */
  padding: 0 30px; /* Reduced padding from var(--container-padding) to 30px for tighter screen margins */
  display: grid;
  grid-template-columns: 1.8fr 1.4fr; /* Increased gap between content and image */
  gap: 14rem; 
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: calc(80vh - 100px); /* Reduced to match new hero height and account for navbar */
  width: 100%; 
}

.hero__content {
  text-align: left;
  padding: var(--space-lg) 0; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none; 
  padding-left: 50px; 
  padding-right: 30px; 
}

/* Hero Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(225, 40, 172, 0.1) 0%, rgba(146, 19, 241, 0.1) 100%);
  border: 1px solid rgba(225, 40, 172, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-pink);
  margin-bottom: var(--space-sm); /* Reduced margin for tighter spacing */
  animation: badgePulse 3s ease-in-out infinite;
  white-space: nowrap;
}

.hero__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-sm); /* Reduced margin for tighter spacing */
  color: var(--color-text-dark);
  letter-spacing: -0.02em;
  padding-top: var(--space-md);
}

/* Geomanist Style Override - Using proper Geomanist font */
.hero__title.hero__title--geomanist {
  font-family: var(--font-family-headings, 'geomanist-book', ui-sans-serif, system-ui, sans-serif);
  font-weight: 700;
  font-size: 44px;
  font-style: normal;
  letter-spacing: -0.01em;
}
/* End Geomanist Override */

/* Gradient text for key words */
.hero__title-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg); /* Reduced from var(--space-xl) for tighter spacing */
  color: var(--color-text-light);
  max-width: 600px; /* Increased from 550px for more content spread */
  font-weight: 400;
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg); /* Reduced from var(--space-xl) for tighter spacing */
}

.hero__cta .btn--primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(225, 40, 172, 0.3);
  position: relative;
  overflow: hidden;
}

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

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

.hero__cta .btn--primary:hover,
.hero__cta .btn--primary:focus {
  background: var(--gradient-secondary);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(225, 40, 172, 0.4);
}

.hero__cta .btn--secondary {
  background: transparent;
  color: var(--color-primary-pink);
  border: 2px solid var(--color-primary-pink);
  font-weight: 600;
}

.hero__cta .btn--secondary:hover,
.hero__cta .btn--secondary:focus {
  background: var(--color-primary-pink);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(225, 40, 172, 0.25);
}

/* Trust indicators */
.hero__trust {
  padding: var(--space-lg) var(--space-md);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(225, 40, 172, 0.1);
}
/* 
.hero__trust-text {
  font-size: 0.9rem;
  color: var(--color-text-dark);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: block;
  text-align: center;
} */

.hero__trust-stats {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
  min-width: 100px;
}

.hero__stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary-pink);
  margin-bottom: 0.2rem;
  line-height: 1.1;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

/* Hero Credentials */
.hero__credentials {
  display: flex;
  gap: var(--space-sm);
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(225, 40, 172, 0.1);
}

.hero__credential {
  display: inline-block;
}

.hero__credential-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(225, 40, 172, 0.08) 0%, rgba(146, 19, 241, 0.08) 100%);
  color: var(--color-text-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(225, 40, 172, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  margin-top:20px;
}

.hero__credential-badge:hover {
  background: linear-gradient(135deg, rgba(225, 40, 172, 0.12) 0%, rgba(146, 19, 241, 0.12) 100%);
  border-color: rgba(225, 40, 172, 0.25);
}

.hero__visual {
  display: flex;
  justify-content: flex-end; /* Right-align the visual section */
  align-items: center;
  position: relative;
  padding-left: 50px; /* Equal left padding */
  padding-right: 30px; /* Equal right padding to match content padding */
}

.hero__image-container {
  position: relative;
  width: 100%;
  max-width: 800px; /* Increased from 700px for larger visual presence */
  margin-right: 0px; /* Remove extra margin to align with container padding */
  padding: 60px 80px 60px 120px; /* top, right, bottom, left */
}

.hero__image {
  width: 140%; /* Increased from 100% to make the image larger */
  height: auto;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
  transform: translateX(-140px); /* Increased from -30px to shift the main image further left */
}

.hero__image:hover {
  transform: translateX(-140px) scale(1.2); /* Maintain increased left shift on hover with scale */
}/* Floating elements around image */
.hero__floating-element {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
  animation: float 6s ease-in-out infinite;
  z-index: 1; /* Ensure floating elements are behind the main image */
  width: 200px; /* Set consistent width for all floating elements */
  box-sizing: border-box; /* Include padding and border in width calculation */
}

.hero__floating-element--1 {
  top: 15%; 
  left: -120px; /* Shifted further left - moved 20px more left from previous -100px */
  animation-delay: 0s;
}

.hero__floating-element--2 {
  bottom: 25%; 
  right: 20px; /* Shifted towards right - reduced right margin by 20px from previous 40px */
  animation-delay: 2s;
}

.hero__floating-element--3 {
  top: 65%; 
  left: -105px; /* Shifted further left - moved 20px more left from previous -85px */
  animation-delay: 4s;
}

.hero__floating-element--4 {
  top: 0%; 
  right: 45px; 
  animation-delay: 1s;
}

.hero__floating-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.hero__floating-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.25rem;
}

.hero__floating-subtext {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* Decorative elements - removed for cleaner design */

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 40, 172, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(225, 40, 172, 0); }
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Large screens - ensure proper centering and spacing */
@media (min-width: 1200px) {
  .hero__container {
    max-width: 1400px;
    margin: 0 auto; /* Center container on large screens */
    padding: 0 30px; /* Consistent reduced padding */
  }
  
  .hero__content {
    text-align: left; /* Keep content left-aligned within the centered container */
    justify-self: start; /* Align content to the start of its grid area */
    padding-left: 50px; /* Match updated container padding */
    padding-right: 30px; /* Equal right padding */
  }
  
  .hero__visual {
    justify-self: end; /* Align visual content to the end of its grid area */
    justify-content: flex-end; /* Ensure right alignment within the visual area */
    padding-left: 50px; /* Equal left padding */
    padding-right: 30px; /* Equal right padding */
  }
  
  .hero__image-container {
    margin-right: 0px; /* Remove extra margin */
    /* Adjust padding for large screens */
    padding: 80px 100px 80px 140px; /* Increased padding for larger screens */
    max-width: 850px; /* Increased max-width for large screens */
  }
  
  /* Adjust floating elements for large screens to maintain positioning */
  .hero__floating-element--1 {
    left: -115px; /* Shifted further left - adjusted for increased padding */
  }
  
  .hero__floating-element--2 {
    right: 25px; /* Shifted towards right - adjusted for increased padding */
  }
  
  .hero__floating-element--3 {
    left: -60px; /* Shifted left - adjusted for increased padding */
  }
  
  .hero__floating-element--4 {
    right: 50px; /* Shifted towards left - adjusted for increased padding */
  }
}

@media (min-width: 1600px) {
  .hero__container {
    max-width: 1600px;
    padding: 0 30px; /* Maintain consistent reduced padding */
  }
  
  .hero__content {
    max-width: 650px; /* Limit content width for better readability */
  }
  
  .hero__image-container {
    /* Adjust padding for extra large screens */
    padding: 100px 120px 100px 160px; /* Further increased padding for extra large screens */
    max-width: 900px; /* Increased max-width for extra large screens */
  }
  
  /* Maintain floating element positioning on extra large screens */
  .hero__floating-element--1 {
    left: -110px; /* Shifted further left - adjusted for extra large screens */
  }
  
  .hero__floating-element--2 {
    right: 30px; /* Shifted towards right - adjusted for extra large screens */
  }
  
  .hero__floating-element--3 {
    left: -55px; /* Shifted left - adjusted for extra large screens */
  }
  
  .hero__floating-element--4 {
    right: 55px; /* Shifted towards left - adjusted for extra large screens */
  }
}

@media (max-width: 1024px) {
  .hero__container {
    max-width: 1200px;
    gap: 2.5rem; /* Reduced gap for tablet */
  }
  
  .hero__title {
    font-size: 2.6rem;
  }
  
  .hero__subtitle {
    font-size: 1.25rem;
  }

  .hero__floating-element {
    display: none; /* Hide floating elements on tablet */
  }
  
  .hero__bg-accent--grid {
    width: 25%; /* Further reduce grid width on tablet */
    opacity: 0.5;
  }
  
  .hero__bg-accent--orb-1,
  .hero__bg-accent--orb-2 {
    opacity: 0.5; /* Further reduce orb opacity on tablet */
  }
  
  .hero__bg-accent--lines {
    opacity: 0.4; /* Reduce line opacity on tablet */
  }
  
  .hero__content {
    padding: var(--space-md) 0; /* Reduced padding for tablet */
    padding-left: 50px; /* Match updated container padding on tablet */
    padding-right: 30px; /* Equal right padding on tablet */
  }
  
  .hero__visual {
    padding-left: 50px; /* Equal left padding on tablet */
    padding-right: 30px; /* Equal right padding on tablet */
    justify-content: flex-end; /* Keep right alignment on tablet */
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh; /* Reduced mobile height to match desktop */
    padding-top: 70px; /* Account for mobile navbar */
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
    min-height: calc(80vh - 70px); /* Adjusted for mobile with reduced height */
    justify-content: center;
    max-width: 100%;
    padding: 0 20px; /* Reduced mobile padding for tighter screen margins */
  }

  .hero__content {
    text-align: center;
    order: 2;
    padding: var(--space-md) 0; /* Reduced mobile padding */
    padding-left: 0; /* Remove left padding on mobile */
    padding-right: 0; /* Remove right padding on mobile */
  }

  .hero__credentials {
    justify-content: center;
  }

  .hero__visual {
    order: 1;
    padding-right: 0; /* Reset right padding on mobile */
    justify-content: center; /* Center on mobile */
  }

  .hero__image-container {
    margin-right: 0; /* Reset right margin on mobile for centered layout */
    padding: 20px; /* Reset padding on mobile for clean centered layout */
    max-width: 500px; /* Increased from 450px for larger mobile image */
  }

  .hero__badge {
    justify-content: center;
  }

  .hero__title {
    font-size: 2.1rem;
    margin-bottom: var(--space-md);
  }

  .hero__subtitle {
    font-size: 1.125rem;
    margin: 0 auto var(--space-lg);
    max-width: 400px;
  }

  .hero__cta {
    flex-direction: column;
    gap: var(--space-md);
    align-items: stretch;
    margin-bottom: var(--space-lg);
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__trust {
    margin-top: var(--space-md);
    padding: var(--space-md);
    text-align: center;
  }

  .hero__trust-stats {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
  }

  .hero__stat {
    min-width: 120px;
  }

  .hero__credentials {
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
  }
  
  .hero__bg-accent {
    display: none; /* Hide accent elements on mobile for clean look */
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 60px; /* Reduced but consistent with overall theme */
  }

  .hero__container {
    min-height: calc(70vh - 60px); /* Further reduced for small screens */
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .hero__trust-stats {
    gap: var(--space-md);
  }

  .hero__stat-number {
    font-size: 1.25rem;
  }

  .hero__image-container {
    max-width: 400px; /* Increased from 350px for larger small mobile image */
    padding: 15px; /* Reset padding on small mobile for clean centered layout */
  }
}

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */

.hero__image {
  will-change: transform;
}

.hero__floating-element {
  will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .hero__floating-element,
  .hero__badge {
    animation: none;
  }
  
  .hero__image:hover {
    transform: none;
  }
}
