/* Frontend styles for Innovatives blocks */


/* Hero Section Styles */
.innovatives-features-title-section,
.innovatives-hero-section {
    position: relative;
    overflow: hidden;
}

.innovatives-hero-achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.innovatives-hero-achievement {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  will-change: transform;
}

.innovatives-hero-achievement:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  opacity: 0.95;
}


.hero-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 80px;
    left: 40px;
    width: 128px;
    height: 128px;
}

.element-2 {
    top: 160px;
    right: 80px;
    width: 96px;
    height: 96px;
    animation-delay: 2s;
}

.element-3 {
    bottom: 80px;
    left: 25%;
    width: 160px;
    height: 160px;
    animation-delay: 4s;
}

.element-4 {
    bottom: 160px;
    right: 40px;
    width: 112px;
    height: 112px;
    animation-delay: 1s;
}

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

.hero-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Testimonials Styles */
.innovatives-testimonials-section .testimonial-fade {
  transition: opacity 1.0s cubic-bezier(.7,0,.3,1);
  opacity: 1;
}
.innovatives-testimonials-section .testimonial-fade.is-fading {
  opacity: 0;
  pointer-events: none;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1);
}

.testimonial-indicator:hover {
    transform: scale(1.2);
}

/* Additional tip: ensure testimonials fit well and avoid flickering */
.innovatives-testimonials-section {
  /* Ensure no overflow issues */
  overflow: visible;
}

/* Featured Solutions Styles */
.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.solution-card .primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.solution-card .secondary-button:hover {
    background-color: var(--wp--preset--color--secondary);
    border-color: var(--ast-global-color-5);
}

/* Why Innovatives Styles */
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Insights Section Styles */
.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.inno-business-showcase .inno-feature {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 16px;
}

.inno-business-showcase .inno-feature:hover {
    opacity: 0.6 !important;
    transform: translateY(-3px) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
    }
    
    .hero-buttons a {
        text-align: center !important;
        display: inline-block !important;
        width: 100%;
    }
    
    .floating-element {
        display: none;
    }
    
    .solution-card,
    .feature-card,
    .insight-card {
        margin-bottom: 24px;
    }
    .testimonial-text {
        font-size: 1.0rem !important;
    }
    .testimonial-logo img {
        width: 32px;
        height: 32px;
    }
    .inno-business-showcase .inno-grid {
        grid-template-columns: 1fr !important; /* switch to single column */
        gap: 24px;
    }
    .features-title-grid {
        grid-template-columns: 1fr !important;  /* switch to single column */
        gap: 24px;
    }
    .solution-split {
        grid-template-columns: 1fr !important;
    }
    .inno-featured-solution-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .innovatives-features-title-section,
    .innovatives-hero-section,
    .innovatives-testimonials-section,
    .innovatives-featured-solutions-section,
    .innovatives-why-section,
    .innovatives-insights-section {
        padding: 48px 16px !important;
    }
    
    .testimonial-container {
        min-height: 200px;
        padding: 24px !important;
    }
    
    .solution-card,
    .feature-card,
    .insight-card {
        padding: 24px !important;
    }
}

/* Animation delays for staggered effects */
.feature-card:nth-child(1) { animation-delay: 0ms; }
.feature-card:nth-child(2) { animation-delay: 100ms; }
.feature-card:nth-child(3) { animation-delay: 200ms; }
.feature-card:nth-child(4) { animation-delay: 300ms; }
.feature-card:nth-child(5) { animation-delay: 400ms; }
.feature-card:nth-child(6) { animation-delay: 500ms; }

.solution-card:nth-child(1) { animation-delay: 0ms; }
.solution-card:nth-child(2) { animation-delay: 200ms; }
.solution-card:nth-child(3) { animation-delay: 400ms; }

.insight-card:nth-child(1) { animation-delay: 0ms; }
.insight-card:nth-child(2) { animation-delay: 100ms; }
.insight-card:nth-child(3) { animation-delay: 200ms; }
.insight-card:nth-child(4) { animation-delay: 300ms; }