/* ============================================================
   MODERN PRODUCTS SECTION ENHANCEMENTS
   Premium, classy design for "Products and platforms we build"
   ============================================================ */

/* Enhanced Products Section Container - seamless integration */
.products-section-modern {
  position: relative;
  background: transparent;
  overflow: hidden;
  padding: 60px 0 40px;
  margin-top: 0;
}

/* Subtle background elements */
.products-section-modern::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 70, 67, 0.02) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.products-section-modern::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 137, 123, 0.015) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(35px);
  pointer-events: none;
  z-index: 0;
}

/* Modern heading container - seamless design */
.products-heading-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 32px;
  z-index: 1;
}

/* Remove backdrop card effect */
.products-heading-backdrop {
  display: none;
}

/* Enhanced section badge - subtle and elegant */
.products-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 70, 67, 0.06);
  padding: 8px 20px;
  border-radius: 24px;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #004643;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.1s forwards;
}

.products-section-badge::before {
  content: '★';
  color: #00897b;
  font-size: 12px;
  animation: sparkle 2s ease-in-out infinite;
}

/* Modern heading with sophisticated typography */
.products-section-heading-modern {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* Gradient text effect */
.products-section-heading-modern .gradient-text {
  background: linear-gradient(135deg, #1a202c 0%, #004643 40%, #00897b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Subtle underline effect */
.products-section-heading-modern .gradient-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00897b;
  border-radius: 1px;
  transform: translateX(-50%);
  animation: expandLine 1.2s ease 0.8s forwards;
}

/* Enhanced description with clean styling */
.products-description-modern {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: #6b7280;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.8s ease 0.4s forwards;
  position: relative;
}

/* Minimal text highlight effect */
.products-description-modern .highlight {
  font-weight: 500;
  color: #004643;
}

/* Remove floating elements and overlays for clean design */
.products-floating-elements {
  display: none;
}

.floating-shape {
  display: none;
}

.products-grid-overlay {
  display: none;
}

/* Enhanced responsiveness */
@media screen and (max-width: 768px) {
  .products-section-modern {
    padding: 60px 0 80px;
  }
  
  .products-heading-container {
    padding: 0 24px;
  }
  
  .products-heading-backdrop {
    inset: -20px;
    border-radius: 20px;
  }
  
  .products-section-badge {
    font-size: 11px;
    padding: 10px 20px;
    margin-bottom: 24px;
  }
  
  .products-description-modern {
    font-size: 18px;
    line-height: 1.7;
  }
}

@media screen and (max-width: 480px) {
  .products-section-modern {
    padding: 50px 0 60px;
    margin-top: 40px;
  }
  
  .products-heading-container {
    padding: 0 20px;
  }
  
  .products-heading-backdrop {
    inset: -16px;
    border-radius: 16px;
  }
  
  .products-section-badge {
    font-size: 10px;
    padding: 8px 16px;
    gap: 6px;
  }
  
  .products-description-modern {
    font-size: 16px;
    line-height: 1.65;
  }
  
  .floating-shape {
    display: none;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes expandLine {
  from {
    width: 0;
  }
  to {
    width: 120px;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(5deg);
  }
  66% {
    transform: translateY(10px) rotate(-3deg);
  }
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 1;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced focus states for accessibility */
.products-section-heading-modern:focus-visible,
.products-description-modern:focus-visible {
  outline: 2px solid #00897b;
  outline-offset: 4px;
  border-radius: 4px;
}
