/* Custom Styles for html2email Landing Page */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom gradient backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animated gradient text */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animated-gradient {
  background: linear-gradient(270deg, #667eea, #764ba2, #f093fb);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth transitions */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #667eea, #764ba2);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #5568d3, #653a8b);
}

/* FAQ Accordion animations */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.active {
  max-height: 500px;
  transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}

.faq-question svg {
  transition: transform 0.3s ease;
}

.faq-question.active svg {
  transform: rotate(180deg);
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Loading animation for lazy images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Mobile menu styles */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

#mobile-menu:not(.hidden) {
  max-height: 400px;
  opacity: 1;
  transition: max-height 0.4s ease-in, opacity 0.4s ease-in;
}

@media (max-width: 768px) {
  .mobile-menu {
    display: none;
  }

  .mobile-menu.active {
    display: block;
  }
}

/* Print styles */
@media print {

  nav,
  footer,
  .cta-section {
    display: none;
  }
}

/* Accessibility improvements */
/* a:focus,
button:focus {
  outline: 2px solid #eef1fb;
  outline-offset: 2px;
} */

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-gradient-to-r {
    background: #0066cc !important;
  }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
  /* Will be implemented when adding dark mode support */
}

.image-stack-container:hover .image-stack-back {
  transform: translate(0, 0) rotate(1deg) !important;
  z-index: 15 !important;
}

.image-stack-container:hover .image-stack-front {
  transform: translate(20px, 20px) rotate(-2deg) !important;
  z-index: 5 !important;
}