/* Custom styles to complement Tailwind CSS */

/* ROI Calculator Slider Styling */
#mailbox-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  background: transparent;
  outline: none;
  margin: 0;
  cursor: pointer;
}

#mailbox-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0099CC;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-top: -8px;
}

#mailbox-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0099CC;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: none;
}

.slider-track {
  width: 100%;
  position: relative;
}

#mailbox-labels span {
  color: #666;
  transition: all 0.2s ease;
  user-select: none;
}

#mailbox-labels span.active {
  color: #0099CC;
  font-weight: 700;
  transform: scale(1.1);
}

.text-danger-color {
  color: #dc3545;
}

.text-ok-color {
  color: #28a745;
}

/* Smooth scrolling for page navigation */
html {
  scroll-behavior: smooth;
}

/* Animation for elements */
.animate-fade-in {
  animation: fadeIn 0.8s ease-in-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-in-out forwards;
}

.animate-slide-right {
  animation: slideRight 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideRight {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Micro animations for images on hover */
.img-hover-animation {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.img-hover-animation:hover {
  transform: scale(1.03) translateY(-3px);
  filter: brightness(1.05);
}

/* Micro animations for Videos on hover */
.video-hover-animation {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.video-hover-animation:hover {
  transform: scale(1.03) translateY(-3px);
  filter: brightness(1.05);
}

/* Floating animation for hero */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Custom button styles */
.btn-hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hover-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom card hover effect */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Benefit card animation */
.benefit-card {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(90deg, #0099CC 0%, #006699 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Custom emphasis styles */
.highlight-text {
  position: relative;
  display: inline-block;
}

.highlight-text:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #0099CC 0%, #FF9900 100%);
  border-radius: 3px;
}

/* Checkmark list style */
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.check-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230099CC'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Custom form styles */
.custom-input {
  border: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-input:focus {
  border-color: #0099CC;
  box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.2);
}

/* Active tab styles */
.active-tab {
  color: #0099CC;
  font-weight: 600;
  border-bottom: 2px solid #0099CC;
}

/* Aspect ratio for video embeds */
.aspect-w-16 {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.aspect-w-16 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Accordion styles */
.accordion-header[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.accordion-header svg {
  transition: transform 0.3s ease;
}

/* Testimonial carousel styles */
.testimonial-container {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 33.333333%;
  }
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  position: relative;
  top: auto;
  transform: none;
}

.testimonial-arrow:hover {
  background-color: #f3f4f6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.testimonial-arrow-left {
  left: auto;
}

.testimonial-arrow-right {
  right: auto;
}

/* Animation for elements on scroll */
[data-animate] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-in"].in-view {
  opacity: 1;
}

[data-animate="slide-up"].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="slide-up"]:not(.in-view) {
  transform: translateY(30px);
}

[data-animate="slide-right"].in-view {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="slide-right"]:not(.in-view) {
  transform: translateX(-30px);
}

/* Custom Styles */
.testimonial-container {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  flex: 0 0 100%;
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  position: relative;
  top: auto;
  transform: none;
}

.testimonial-arrow:hover {
  background-color: #f3f4f6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.testimonial-arrow-left {
  left: auto;
}

.testimonial-arrow-right {
  right: auto;
}

/* Feature Tabs Mobile Styling */
@media (max-width: 640px) {
  [data-tabs="features"] button {
      border-left: 3px solid transparent;
      transition: all 0.3s ease;
      margin-bottom: 8px;
  }
  
  [data-tabs="features"] button.active-tab {
      border-left: 3px solid #0099CC;
      font-weight: 500;
  }
}

/* Feature Carousel Styling */
.feature-carousel-container {
  position: relative;
  width: 100%;
}

.feature-carousel-track {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scroll-behavior: smooth;
  padding: 8px 0;
  flex: 1;
}

.feature-carousel-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.feature-carousel-track > div {
  display: inline-flex;
  padding: 0 4px;
}

.feature-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 5;
  color: #333;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.feature-arrow:hover {
  background-color: #f3f4f6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-arrow-left {
  margin-right: 8px;
}

.feature-arrow-right {
  margin-left: 8px;
}

@media (max-width: 768px) {
  .testimonial-arrow {
      width: 30px;
      height: 30px;
  }
}

/* Base styles */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Animation classes */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate="fade-in"] {
    transform: translateY(0);
}

[data-animate="slide-up"] {
    transform: translateY(20px);
}

[data-animate="slide-right"] {
    transform: translateX(-20px);
}

[data-animate="slide-left"] {
    transform: translateX(20px);
}

[data-animate].in-view {
    opacity: 1;
    transform: translate(0, 0);
}

/* Button hover effect */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hover-effect:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
    z-index: -1;
}

.btn-hover-effect:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Card hover effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Floating animation for the hero image */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translatey(0px);
    }
    50% {
        transform: translatey(-10px);
    }
    100% {
        transform: translatey(0px);
    }
}

/* Check list styles */
.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
}

.check-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.375rem;
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230099CC'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Feature tabs styling */
[data-tab].active-tab {
    position: relative;
}

[data-tab].active-tab:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0099CC;
    border-radius: 1.5px;
}

/* Image hover animation */
.img-hover-animation {
    transition: transform 0.3s ease;
}

.img-hover-animation:hover {
    transform: scale(1.05);
}

/* Video hover animation */
.video-hover-animation {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-hover-animation:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Testimonial carousel styling */
.testimonial-container {
    position: relative;
}

.testimonial-track {
    transition: transform 0.5s ease;
}

.testimonial-slide {
    flex: 0 0 100%;
}

.testimonial-navigation {
    margin-top: 1rem;
    z-index: 10;
}

.testimonial-arrow {
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-arrow:hover {
    transform: scale(1.1);
    background-color: #f3f4f6;
}

/* Mail Tester Panel */
#mailTesterPanel {
    transition: all 0.3s ease;
}

#mailTesterPanel:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#mailTesterDetails {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}

#mailTesterDetails.hidden {
    max-height: 0;
    opacity: 0;
}

#mailTesterDetails:not(.hidden) {
    max-height: 200px;
    opacity: 1;
}

/* Benefit card hover effects */
.benefit-card {
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

/* Responsive fixes */
@media (max-width: 640px) {
    .testimonial-container {
        overflow: hidden;
    }
    
    .testimonial-slide {
        padding: 0.5rem;
    }
}

@media (min-width: 768px) {
    .testimonial-slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        flex: 0 0 33.333%;
    }
}