/**
 * Custom Animations - Webflow Design System
 * 
 * Additional hover effects and animations to match Webflow design
 * Timing: 300ms ease-in-out (matching Webflow standard)
 */

/* Override Webflow IX2 visibility hidden for elements we animate ourselves */
/* Use high specificity to override html.w-mod-js:not(.w-mod-ix3) :is(...) rule */
html.w-mod-js .section-subtitle,
html.w-mod-js .section-title,
html.w-mod-js .feature-card-title-wrapper,
html.w-mod-js .primary-button,
html.w-mod-js .feature-card-title-wrapper-03,
html.w-mod-js .stats-bottom-title,
html.w-mod-js .feature-card-title-wrapper-02,
html.w-mod-js .feature-card-title-wrapper-04,
html.w-mod-js .pricing-title-wrapper,
html.w-mod-js .secondary-button,
html.w-mod-js .testimonial-content {
  visibility: visible !important;
}

/* Feature Cards Hover Effects */
.single-feature-card,
.single-feature-card-02,
.single-feature-card-03 {
  transition: all 0.3s ease-in-out !important;
}

.single-feature-card:hover,
.single-feature-card-02:hover,
.single-feature-card-03:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Pricing Cards Hover Effects */
.pricing-wrapper .pro-plan,
.pricing-wrapper .standard-plan,
.pricing-card,
.pro-plan,
.standard-plan {
  transition: all 0.3s ease-in-out !important;
}

.pricing-wrapper .pro-plan:hover,
.pricing-wrapper .standard-plan:hover,
.pricing-card:hover,
.pro-plan:hover,
.standard-plan:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Pricing Icon Box Hover (matching Webflow) */
.pricing-icon-box {
  transition: all 0.3s ease-in-out;
}

.pricing-icon-box:hover {
  background-color: var(--_colors---neutral-01, #fbf9f9);
  box-shadow: 0 2px 0.1px -1px #efebeb;
}

/* Image Hover Effects (for feature card images) */
.feature-card-image-wrapper-01 img,
.feature-card-image-wrapper-02 img,
.feature-card-image-wrapper-03 img,
.feature-card-image {
  transition: all 0.3s ease-in-out;
}

.feature-card-image-wrapper-01:hover img,
.feature-card-image-wrapper-02:hover img,
.feature-card-image-wrapper-03:hover img,
.feature-card-image:hover {
  transform: scale(1.05);
}

/* Feature Card Icon Box Hover */
.feature-card-icon-box {
  transition: all 0.3s ease-in-out;
}

.feature-card-icon-box:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button Icon Box Hover */
.button-icon-box {
  transition: all 0.3s ease-in-out;
}

.button-icon-box:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Link Button Hover (Webflow link-button pattern) */
.link-button {
  color: var(--_colors---neutral-04, #41175e);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.link-button:hover {
  color: var(--_colors---color-02, #f77373);
}

/* Link Button Variants (style-02, style-03, style-04) */
/* Note: Full implementation requires specific SVG images from Webflow */
.link-button.style-02,
.link-button.style-03,
.link-button.style-04 {
  transition: all 0.3s ease-in-out;
}

.link-button.style-02:hover,
.link-button.style-03:hover,
.link-button.style-04:hover {
  color: var(--_colors---color-02, #f77373);
  /* Background image and padding changes require specific SVG assets */
}

/* Testimonial Arrow Hover (if present) */
.testimonial-arrow {
  transition: all 0.3s ease-in-out;
}

.testimonial-arrow:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Footer Link Hover Effects */
.footer-link,
.quick-link,
.breadcumb-link {
  transition: all 0.3s ease-in-out;
}

.footer-link:hover,
.quick-link:hover,
.breadcumb-link:hover {
  color: var(--_colors---color-02, #f77373);
}

/* Navigation Link Hover */
.single-nav {
  transition: all 0.3s ease-in-out;
}

.single-nav:hover {
  color: var(--_colors---color-02, #f77373);
}

/* Chip Component Styles */
.chip {
  transition: all 0.3s ease-in-out !important;
}

.chip:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.chip[role="button"]:focus {
  outline: 2px solid var(--primary-main, #6366f1);
  outline-offset: 2px;
}

.chip button {
  transition: background-color 0.2s ease-in-out;
}

.chip button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.chip button:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Divider Component Styles */
.divider {
  border: none;
  background-color: var(--divider, #e5e7eb);
}

.divider-horizontal {
  width: 100%;
  height: 1px;
}

.divider-vertical {
  width: 1px;
  height: 100%;
}

/* Skeleton Component Styles */
@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.skeleton {
  background-color: var(--skeleton-bg, #e5e7eb);
  background-image: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-text {
  border-radius: 4px;
}

.skeleton-rectangular {
  border-radius: 8px;
}

.skeleton-circular {
  border-radius: 50%;
}

/* Badge Component Styles */
.badge-container {
  position: relative;
  display: inline-flex;
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-primary {
  background-color: var(--primary-main, #6366f1);
  color: var(--primary-contrast-text, #ffffff);
}

.badge-error {
  background-color: var(--error-main, #ef4444);
  color: var(--error-contrast-text, #ffffff);
}

.badge-default {
  background-color: var(--text-secondary, #6b7280);
  color: var(--background-paper, #ffffff);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .single-feature-card,
  .single-feature-card-02,
  .single-feature-card-03,
  .pricing-wrapper .pro-plan,
  .pricing-wrapper .standard-plan,
  .pricing-card,
  .pricing-icon-box,
  .feature-card-icon-box,
  .button-icon-box,
  .feature-card-image-wrapper-01 img,
  .feature-card-image-wrapper-02 img,
  .feature-card-image-wrapper-03 img,
  .feature-card-image,
  .link-button,
  .link-button.style-02,
  .link-button.style-03,
  .link-button.style-04,
  .testimonial-arrow,
  .footer-link,
  .quick-link,
  .breadcumb-link,
  .single-nav,
  .chip,
  .skeleton {
    transition: none;
  }
  
  .single-feature-card:hover,
  .single-feature-card-02:hover,
  .single-feature-card-03:hover,
  .pricing-wrapper .pro-plan:hover,
  .pricing-wrapper .standard-plan:hover,
  .pricing-card:hover,
  .feature-card-icon-box:hover,
  .button-icon-box:hover,
  .testimonial-arrow:hover,
  .chip:hover {
    transform: none;
  }

  .skeleton {
    animation: none;
  }
}

/* Hero Section Staggered Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section .hero-title,
.hero-section .hero-subtitle,
.hero-section .hero-button-wrapper,
.hero-section .icon-list-wrapper,
.hero-image {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.hero-section .hero-title {
  animation-delay: 0.1s;
}

.hero-section .hero-subtitle {
  animation-delay: 0.25s;
}

.hero-section .hero-button-wrapper {
  animation-delay: 0.4s;
}

.hero-section .icon-list-wrapper {
  animation-delay: 0.55s;
}

.hero-image {
  animation-delay: 0.7s;
}

/* Feature Section Staggered Animations */
@keyframes slowRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.feature-section .feature-card-wrapper .single-feature-card {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.feature-section .feature-card-wrapper .single-feature-card:nth-child(1) {
  animation-delay: 0s;
}

.feature-section .feature-card-wrapper .single-feature-card:nth-child(2) {
  animation-delay: 0.1s;
}

.feature-section .feature-card-wrapper .single-feature-card:nth-child(3) {
  animation-delay: 0.2s;
}

/* Feature card images - continuous slow rotation for wheel */
.feature-section .feature-card-image._01 {
  animation: slowRotate 30s linear infinite;
}

.feature-section .feature-card-image-wrapper-02 .feature-card-image,
.feature-section .feature-card-image-wrapper-03 .feature-card-image {
  opacity: 0;
  animation: fadeInScale 0.5s ease-out forwards;
  animation-delay: 0.3s;
}

/* ========================================
   Additional Webflow Hover Effects
   ======================================== */

/* Testimonial Arrow Background Hover */
.testimonial-arrow {
  background-color: transparent;
  transition: all 0.3s ease-in-out;
}

.testimonial-arrow:hover {
  background-color: var(--_colors---neutral-01, #fbf9f9);
}

/* Newsletter Form Field Hover */
.newsletter-form-field {
  transition: all 0.3s ease-in-out;
}

.newsletter-form-field:hover {
  border-color: var(--_colors---neutral-04, #41175e);
}

/* Newsletter Submit Button Hover */
.newsletter-submit-button {
  transition: all 0.3s ease-in-out;
}

.newsletter-submit-button:hover {
  background-color: var(--_colors---neutral-04, #41175e);
}

/* Blog Thumbnail Image Hover */
.blog-thumbnail {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.blog-thumbnail:hover {
  transform: scale(1.1);
}

/* Product Image Hover */
.product-image {
  transition: all 0.3s ease-in-out;
}

.product-image:hover {
  transform: scale(1.1);
}

/* Product Title Hover */
.product-title {
  transition: all 0.3s ease-in-out;
}

.product-title:hover {
  color: var(--_colors---color-02, #f77373);
}

/* Dropdown Toggle Hover */
.dropdown-toggle {
  transition: all 0.3s ease-in-out;
}

.dropdown-toggle:hover {
  color: var(--_colors---color-02, #f77373);
}

/* Solutions Dropdown Layout */
.dropdown-list {
  background-color: #ffffff;
  padding: 12px 28px 12px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 360px;
}

.dropdown-list.w--open {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  column-gap: 20px;
  row-gap: 8px;
  align-items: start;
  justify-items: start;
}

.dropdown-list .w-dropdown-link {
  width: 100%;
  white-space: nowrap;
}

/* Team Member Social Icon Reveal on Hover */
.member-social-icon.hover {
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.member-social-icon.hover:hover,
.team-member-card:hover .member-social-icon.hover {
  opacity: 1;
}

/* Blog Pagination Arrows Hover */
.blog-pagination-previews-arrow,
.blog-pagination-next-arrow {
  transition: all 0.3s ease-in-out;
}

.blog-pagination-previews-arrow:hover,
.blog-pagination-next-arrow:hover {
  background-color: var(--_colors---neutral-04, #41175e);
}

/* Contact Card Link Hover */
.contact-card-link {
  transition: all 0.3s ease-in-out;
}

.contact-card-link:hover {
  color: var(--_colors---color-02, #f77373);
}

/* Page Name Hover with Gradient */
.page-name {
  transition: all 0.3s ease-in-out;
}

.page-name:hover {
  background-image: linear-gradient(320deg, #f77373, #c762f6 50%, #814bee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Breadcrumb Link Hover with Gradient */
.breadcumb-link:hover {
  background-image: linear-gradient(320deg, #f77373, #c762f6 50%, #814bee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Quantity Input Hover */
.quantity {
  transition: all 0.3s;
}

.quantity:hover {
  color: var(--_colors---neutral-04, #41175e);
}

/* Integration Card Hover */
.integration-card,
.integration-wrapper {
  transition: all 0.3s ease-in-out;
}

.integration-card:hover,
.integration-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Team Card Hover Effects */
.team-card,
.team-member-wrapper {
  transition: all 0.3s ease-in-out;
}

.team-card:hover,
.team-member-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Dropdown Icon Animation (Webflow IX2 equivalent)
   ======================================== */

/* Dropdown toggle icon rotation */
.w-dropdown .dropdown-icon,
.w-icon-dropdown-toggle {
  transition: transform 0.3s ease-in-out;
}

.w-dropdown.w--open .dropdown-icon,
.w-dropdown.w--open .w-icon-dropdown-toggle {
  transform: rotate(180deg);
}

/* Dropdown list slide animation */
.w-dropdown-list {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  pointer-events: none;
}

.w-dropdown.w--open .w-dropdown-list,
.w-dropdown-list.w--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobile hamburger menu animation */
.nav-trigger {
  transition: all 0.3s ease-in-out;
}

.nav-trigger:hover {
  opacity: 0.8;
}

.trigger-icon {
  width: 24px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.trigger-icon::before,
.trigger-icon::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--_colors---neutral-04, #41175e);
  transition: all 0.3s ease-in-out;
}

.trigger-icon::before {
  transform-origin: left center;
}

.trigger-icon::after {
  transform-origin: left center;
}

/* ========================================
   Webflow Visual Effects
   ======================================== */

/* Gradient Text Effect */
.gradient-text,
.label-text {
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(130deg, #f77373, #c762f6 50%, #814bee);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Highlight Title with Noise */
.highlight-title {
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(130deg, #f77373, #c762f6 50%, #814bee);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Gradient Border with Glow Effect */
.gradient-border,
.hero-label-wrapper {
  border-radius: var(--_sizes---radius--radius-003, 16px);
  background-image: linear-gradient(130deg, #f77373, #c762f6 50%, #814bee);
  padding: 1px;
  overflow: hidden;
  box-shadow: 0 0 6px #c762f680;
}

.gradient-border-inner {
  background-color: var(--_colors---white, #ffffff);
  border-radius: calc(var(--_sizes---radius--radius-003, 16px) - 1px);
  padding: 10px 16px;
}

/* Backdrop Blur Effects */
.backdrop-blur,
.backdrop-blur-sm {
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.backdrop-blur-lg {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Grayscale Team Member Images */
.member-image,
.team-avatar-grayscale {
  filter: grayscale(100%);
  box-shadow: inset 0 0 64px -10px #50321780;
  transition: filter 0.3s ease-in-out;
}

.member-image:hover,
.team-avatar-grayscale:hover,
.team-card:hover .member-image,
.team-card:hover .team-avatar-grayscale {
  filter: grayscale(0%);
}

/* Inset Shadow for Stats */
.stats-inset-shadow,
.stats-number-box {
  box-shadow: inset 0 0 7.78px #ffffffbf;
}

/* Primary Button Gradient with Noise */
.primary-button-gradient {
  background-image: linear-gradient(120deg, #390d91, #33075f 50%, #440660), url('/webflow/images/Noise-4.svg');
  background-position: 0 0, 50%;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
}

/* CTA Area Gradient with Noise */
.cta-gradient {
  background-image: linear-gradient(120deg, #390d91, #33075f 50%, #440660), url('/webflow/images/Noise-4.svg');
  background-position: 0 0, 50%;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
}

/* Ticker/Marquee Shadow Edges */
.ticker-shadow-left {
  background-image: linear-gradient(90deg, var(--_colors---white, #ffffff) 15%, transparent);
  width: 30%;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.ticker-shadow-right {
  background-image: linear-gradient(270deg, var(--_colors---white, #ffffff) 15%, transparent);
  width: 30%;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

/* ========================================
   Opacity Refinements (Webflow Values)
   ======================================== */

/* Footer Links */
.footer-link {
  opacity: 0.68;
}

.footer-link:hover {
  opacity: 1;
}

/* Testimonial Author Designation */
.testimonial-author-designation {
  opacity: 0.3;
}

.testimonial-author-designation.style-02 {
  opacity: 0.68;
}

/* Member Designation */
.member-designation {
  opacity: 0.68;
  color: var(--_colors---color-02, #f77373);
}

/* Member Company */
.member-company {
  opacity: 0.68;
  color: var(--_colors---neutral-04, #41175e);
}

/* Compare Pricing */
.compare-pricing {
  opacity: 0.4;
  color: var(--_colors---neutral-04, #41175e);
}

/* Yearly Text */
.yearly-text {
  opacity: 0.68;
  color: var(--_colors---neutral-04, #41175e);
}

/* Quick Link */
.quick-link {
  opacity: 0.78;
}

.quick-link:hover {
  opacity: 1;
}

/* Divider Line First Element */
.divider-line._01,
.divider-line:first-child {
  opacity: 0;
}

/* Overview Subtitle White */
.overview-subtitle.white {
  opacity: 0.68;
  color: var(--_colors---white, #ffffff);
}

/* Compare Line Dashed */
.compare-line-dashed {
  border-left: 2px dashed var(--_colors---neutral-04, #41175e);
  opacity: 0.7;
}

