/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Gradient Backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #fdc830 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #fdc830 100%);
  background-clip: text;
}

/* Animated Highlight Word */
.highlight-word {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #fdc830 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.highlight-word::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 50%, #fdc830 100%);
  animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
  max-height: 500px;
}
/* Product Tabs */
.product-tab {
  cursor: pointer;
  user-select: none;
}

.product-content {
  animation: fadeInContent 0.5s ease-in-out;
}
.logo-img {
  width: 150px;
}
@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Tailwind Override for Hero Section */
@media (min-width: 1024px) {
  .lg\:py-32 {
    padding-top: 10rem !important;
    padding-bottom: 8rem !important;
  }
}

/* Legal Pages Padding */
.pt-legal-mobile {
  padding-top: 120px !important;
}

@media (min-width: 640px) {
  .pt-legal-mobile {
    padding-top: 8rem !important;
  }
}

/* Mobile Optimizations for Small Screens (349px and up) */
@media (max-width: 640px) {
  /* Base container padding */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Heading adjustments for mobile */
  h1 {
    font-size: 1.75rem !important; /* 28px */
    line-height: 2rem !important;
  }

  h2 {
    font-size: 1.5rem !important; /* 24px */
    line-height: 1.75rem !important;
  }

  h3 {
    font-size: 1.25rem !important; /* 20px */
    line-height: 1.5rem !important;
  }

  h4 {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.5rem !important;
  }

  /* Paragraph text */
  p {
    font-size: 0.875rem !important; /* 14px */
    line-height: 1.5rem !important;
  }
  .pt-sm-30 {
    padding-top: 9rem !important; /* 120px */
  }

  /* Button adjustments */
  a.gradient-bg,
  button.gradient-bg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
  }

  /* Logo size */
  header img {
    height: 3rem !important; /* 64px instead of 96px */
  }

  /* Icon sizes */
  svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }

  /* Card padding */
  .card-hover {
    padding: 1.25rem !important;
  }

  /* Grid adjustments */
  .grid {
    grid-template-columns: 1fr !important;
  }

  /* Stats and social proof items */
  .text-4xl {
    font-size: 2rem !important;
  }

  .text-5xl {
    font-size: 2.5rem !important;
  }
}

/* Extra small screens (349px to 400px) */
@media (max-width: 400px) {
  /* Logo size for very small screens */
  header img {
    height: 2.5rem !important;
  }
  /* Logo Styles */
  .logo-img {
    width: 120px;
  }

  /* Further reduce heading sizes */
  h1 {
    font-size: 1.5rem !important; /* 24px */
    line-height: 1.75rem !important;
  }

  h2 {
    font-size: 1.375rem !important; /* 22px */
    line-height: 1.625rem !important;
  }

  h3 {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.5rem !important;
  }

  /* Smaller padding */
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* Button adjustments */
  a.gradient-bg,
  button.gradient-bg {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.8125rem !important;
  }

  /* Card padding */
  .card-hover {
    padding: 1rem !important;
  }

  /* Stats text */
  .text-4xl {
    font-size: 1.75rem !important;
  }

  .text-5xl {
    font-size: 2rem !important;
  }

  /* Avatar/Icon circles */
  .w-12.h-12 {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .w-14.h-14 {
    width: 3rem !important;
    height: 3rem !important;
  }

  .w-16.h-16 {
    width: 3.5rem !important;
    height: 3.5rem !important;
  }

  /* Gap adjustments */
  .gap-8 {
    gap: 1rem !important;
  }

  .gap-6 {
    gap: 0.75rem !important;
  }

  /* Responsive images */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Reduce section padding on mobile */
  section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Form inputs */
  input,
  textarea,
  select {
    font-size: 14px !important;
  }

  /* Pricing cards */
  .text-5xl {
    font-size: 2rem !important;
  }

  /* Better spacing for lists */
  ul li,
  ol li {
    font-size: 0.875rem !important;
  }

  /* Mobile menu */
  .mobile-menu a {
    font-size: 0.875rem !important;
  }

  /* Stats section - 2 columns on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Desktop - 4 columns for stats */
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Contact Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal-overlay.show {
  opacity: 1;
}

.modal-overlay.hidden {
  display: none;
}

.modal-container {
  background: white;
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease-in-out;
}

.modal-overlay.show .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s;
  padding: 0.25rem;
  border-radius: 0.375rem;
}

.close-btn:hover {
  color: #ff6b35;
  background-color: #fee2e2;
}

.modal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s;
  background-color: white;
}

.form-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Modal Responsive */
@media (max-width: 640px) {
  .modal-container {
    max-height: 95vh;
    border-radius: 0.75rem;
  }

  .modal-header {
    padding: 1.25rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 1.25rem;
  }

  .form-input {
    padding: 0.625rem;
    font-size: 0.9375rem;
  }

  .form-label {
    font-size: 0.8125rem;
  }
}

@media (max-width: 400px) {
  .modal-overlay {
    padding: 0.5rem;
  }

  .modal-container {
    max-height: 98vh;
  }

  .modal-header,
  .modal-body {
    padding: 1rem;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #20b858 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9998;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
  }
}

/* Mobile adjustments for WhatsApp button */
@media (max-width: 640px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 65px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Testimonials Slider Styles */
.testimonial-slider-wrapper {
  position: relative;
  width: 100%;
}

.testimonial-slider {
  display: flex;
  transition: transform 0.7s ease-in-out;
}

.testimonial-slide {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Desktop: Show 2 cards at a time */
@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.testimonial-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot:hover {
  transform: scale(1.2);
}

/* Navigation button styles */
#prev-testimonial,
#next-testimonial {
  cursor: pointer;
}

#prev-testimonial:active,
#next-testimonial:active {
  transform: translateY(-50%) scale(0.95);
}

@media (max-width: 768px) {
  #prev-testimonial {
    left: 8px;
    transform: translateY(-50%) translateX(0);
  }

  #next-testimonial {
    right: 8px;
    transform: translateY(-50%) translateX(0);
  }
}

/* Calendly Badge Widget - Mobile Optimization */
@media (max-width: 768px) {
  .calendly-badge-widget {
    transform: scale(0.75) !important;
    transform-origin: bottom right !important;
    right: 10px !important;
    bottom: 10px !important;
  }

  .calendly-badge-content {
    font-size: 12px !important;
    padding: 8px 12px !important;
  }
}
/* Price Selection Modal Styles */
.price-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.price-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #fff9f5 100%);
  padding: 2.5rem;
  border-radius: 20px;
  max-width: 420px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.4s ease-out;
  border: 2px solid rgba(255, 107, 53, 0.2);
}

.price-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: #ff6b35;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.price-modal-close:hover {
  background-color: rgba(255, 107, 53, 0.1);
  transform: rotate(90deg);
}

.price-modal-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
  text-align: center;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #fdc830 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-modal-subtitle {
  color: #6b7280;
  text-align: center;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.price-modal-buttons {
  display: flex;
  gap: 1.25rem;
  flex-direction: column;
}

.price-modal-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: visible;
}

/* Animated border effect */
.price-modal-button::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b35, #f7931e, #fdc830, #ff6b35);
  background-size: 300% 300%;
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.price-modal-button:hover::before {
  opacity: 1;
}

.price-modal-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.25);
  border-color: transparent;
}

.price-modal-button:hover .price-modal-button-text,
.price-modal-button:hover .price-modal-button-flag {
  color: #ffffff;
}

.price-modal-button:hover .price-modal-button-price {
  background: #ffffff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-modal-button:active {
  transform: translateY(-1px);
}

/* Canada button specific colors */
.canada-btn {
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.canada-btn:hover {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

/* USA button specific colors */
.usa-btn {
  background: linear-gradient(135deg, #fff 0%, #f5f9ff 100%);
}

.usa-btn:hover {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.price-modal-button-flag {
  font-size: 2rem;
  z-index: 1;
  margin-right: 0.75rem;
  transition: color 0.4s ease;
}

.price-modal-button-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  z-index: 1;
  flex: 1;
  transition: color 0.4s ease;
}

.price-modal-button-price {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #fdc830 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
  margin-left: auto;
  transition: all 0.4s ease;
}

/* Responsive adjustments for modal */
@media (min-width: 640px) {
  .price-modal-buttons {
    flex-direction: column;
  }

  .price-modal-button {
    width: 100%;
  }
}

@media (max-width: 639px) {
  .price-modal-content {
    padding: 2rem 1.5rem;
  }

  .price-modal-title {
    font-size: 1.5rem;
  }

  .price-modal-button {
    padding: 0.9rem 1.2rem;
  }

  .price-modal-button-flag {
    font-size: 1.75rem;
    margin-right: 0.5rem;
  }

  .price-modal-button-text {
    font-size: 1rem;
  }

  .price-modal-button-price {
    font-size: 1.2rem;
  }
}
