/* Premium Feature Blocks Styling */

/* Enhanced Card Styling with Glassmorphism */
.feature-card {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    #ff4d00 0%, 
    #ff783d 50%, 
    #ff4d00 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(255, 77, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(255, 77, 0, 0.2);
}

/* Gradient Overlay for Cards */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 77, 0, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::after {
  opacity: 1;
}

/* Enhanced Eyebrow Styling */
.feature-card .eyebrow {
  position: relative;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ff4d00;
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, 
    rgba(255, 77, 0, 0.1) 0%, 
    rgba(255, 120, 61, 0.1) 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 77, 0, 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover .eyebrow {
  background: linear-gradient(135deg, 
    rgba(255, 77, 0, 0.15) 0%, 
    rgba(255, 120, 61, 0.15) 100%);
  border-color: rgba(255, 77, 0, 0.3);
  transform: translateX(4px);
}

/* Enhanced Heading Styling */
.feature-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
  color: #000;
  margin-bottom: 1rem;
  text-wrap: balance;
  transition: color 0.3s ease;
}

.feature-card:hover h2 {
  color: #1a1a1a;
}

/* Enhanced Paragraph Styling */
.feature-card .paragraph_large {
  font-size: 1rem;
  line-height: 1.7;
  color: #2c2c2c;
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
  border-radius: 0;
  transition: color 0.3s ease;
}

.feature-card:hover .paragraph_large {
  color: #1a1a1a;
}

/* Enhanced Button Styling */
.feature-card .button {
  position: relative;
  padding: 0.9rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card .button.is-secondary {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.06) 0%, 
    rgba(0, 0, 0, 0.08) 100%);
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-card .button.is-secondary::before {
  content: '';
  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;
}

.feature-card .button.is-secondary:hover::before {
  left: 100%;
}

.feature-card .button.is-secondary:hover {
  background: linear-gradient(135deg, 
    #ff4d00 0%, 
    #ff783d 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 77, 0, 0.3);
}

/* Staggered Animation for Cards */
.feature-card:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.feature-card:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.feature-card:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.feature-card:nth-child(4) {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Grid Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    gap: 2.5rem;
  }
}

/* Enhanced Sticky Positioning */
.position_sticky.is-top-section-padding {
  position: sticky;
  top: calc(var(--_sizes---section--section-padding-vertical) / 2);
  transition: top 0.3s ease;
}

/* Margin Variations for Staggered Effect */
.margin-top_xsmall {
  margin-top: 1.5rem;
}

.margin-top_small {
  margin-top: 3rem;
}

.margin-top_medium {
  margin-top: 4.5rem;
}

/* Backdrop Filter Enhancement for Stacked Cards */
.backdrop-filter_blur {
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .feature-card {
    padding: 2rem;
    border-radius: 20px;
  }
  
  .position_sticky.is-top-section-padding {
    position: relative;
    top: 0;
  }
  
  .margin-top_xsmall,
  .margin-top_small,
  .margin-top_medium {
    margin-top: 0;
  }
  
  .features-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 479px) {
  .feature-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .feature-card h2 {
    font-size: 1.4rem;
  }
  
  .feature-card .paragraph_large {
    font-size: 0.95rem;
  }
  
  .feature-card .button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Icon Animation (if icons are added) */
.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    rgba(255, 77, 0, 0.1) 0%, 
    rgba(255, 120, 61, 0.1) 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, 
    rgba(255, 77, 0, 0.2) 0%, 
    rgba(255, 120, 61, 0.2) 100%);
}

/* Loading State Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.feature-card.loading {
  animation: pulse 2s ease-in-out infinite;
}

/* Accessibility Enhancements */
.feature-card:focus-within {
  outline: 2px solid #ff4d00;
  outline-offset: 4px;
}

/* Print Styles */
@media print {
  .feature-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
