.gradient-title {
  background: linear-gradient(to right, #1e293b, #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gradient-title-change {
  background: linear-gradient(to right, #0284c7, #1e293b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gradient-title-white {
  background: linear-gradient(to right, #ffffff, #e0f2fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gradient-title-white-change {
  background: linear-gradient(to right, #e0f2fe, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@keyframes stroke-draw {
  0% {
    stroke-dashoffset: 1000;
  }

  50% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -1000;
  }
}

.stroke-animated {
  animation: stroke-draw 8s ease-in-out infinite;
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.animate-scroll-partners {
  animation: scroll-partners 30s linear infinite;
  display: flex;
  width: fit-content;
}

.animate-scroll-partners:hover {
  animation-play-state: paused;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.faq-answer {
  transition: max-height 0.4s ease-in-out;
}

.lg\:max-h-\[800px\]::-webkit-scrollbar {
  width: 6px;
}

.lg\:max-h-\[800px\]::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.lg\:max-h-\[800px\]::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #0284c7, #0ea5e9);
  border-radius: 10px;
}

.lg\:max-h-\[800px\]::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #0369a1, #0284c7);
}

footer .flex.flex-col.gap-3 a {
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .flex.flex-col.gap-3 a:hover {
  transform: translateY(-2px) translateX(4px);
}

.utility-tool {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes phoneRing {
  0%,
  100% {
    transform: rotate(135deg) translateY(0);
  }

  25% {
    transform: rotate(140deg) translateY(-3px);
  }

  50% {
    transform: rotate(145deg) translateY(0);
  }

  75% {
    transform: rotate(140deg) translateY(-3px);
  }
}

.phone-icon-animate {
  animation: phoneRing 1.5s ease-in-out infinite;
  display: inline-block;
  transform-origin: center center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.utility-btn {
  position: relative;
}

.utility-btn:hover .utility-tooltip {
  opacity: 1;
}

.utility-btn:active {
  transform: scale(0.95);
}

@media (max-width: 640px) {
  .utility-tool {
    bottom: 5rem;
    right: 1.5rem;
  }

  .utility-btn {
    width: 3rem;
    height: 3rem;
  }

  .utility-btn i,
  .utility-btn svg,
  .utility-btn img {
    width: 1.25rem;
    height: 1.25rem;
  }

  .utility-tooltip {
    display: none;
  }
}

/* Performance Metrics Styles */
.performance-score-circle {
  will-change: stroke-dashoffset;
  transition: stroke-dashoffset 1s ease-out;
}

/* Optimized animations with will-change */
.hover\:shadow-xl:hover,
.hover\:shadow-lg:hover {
  will-change: box-shadow, transform;
}

.group:hover .group-hover\:scale-110 {
  will-change: transform;
}

/* Table responsive scrollbar */
.overflow-x-auto::-webkit-scrollbar {
  height: 6px;
}

.overflow-x-auto::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #0284c7, #0ea5e9);
  border-radius: 10px;
}

/* Floating CTA animations */
#floatingCTA {
  will-change: transform, opacity;
}

/* Image lazy loading fade-in */
img[loading="lazy"] {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loading {
  opacity: 0;
}

/* Feature comparison table hover */
table tbody tr:hover td:first-child {
  color: #0284c7;
}

/* Add-on card hover state */
.addon-card:hover .addon-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Responsive typography improvements */
@media (max-width: 768px) {
  .text-5xl {
    font-size: 2.25rem;
  }

  .text-4xl {
    font-size: 1.875rem;
  }

  .text-3xl {
    font-size: 1.5rem;
  }
}

/* Print styles for better performance */
@media print {
  .utility-tool,
  #floatingCTA,
  .animate-scroll-partners {
    display: none !important;
  }
}

/* ==========================================
   Service Dropdown Menu Styles (Fallback)
   ========================================== */
.service-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(-8px);
  width: 580px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(186, 230, 253, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 50;
  padding: 20px 16px;
  margin-top: 8px;
}

.group:hover .service-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.service-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-dropdown-column {
  display: flex;
  flex-direction: column;
}

.service-dropdown-column:last-child {
  border-left: 1px solid #f1f5f9;
  padding-left: 16px;
}

.service-dropdown-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-left: 12px;
}

.service-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.service-dropdown-item:hover {
  background: linear-gradient(to right, #f0f9ff, #ecfeff);
}

.service-dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(to bottom right, #f0f9ff, #ecfeff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.service-dropdown-item:hover .service-dropdown-icon {
  background: linear-gradient(to bottom right, #0284c7, #0ea5e9);
  color: white;
}

.service-dropdown-content {
  flex: 1;
  min-width: 0;
}

.service-dropdown-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1;
  margin: 0;
}

.service-dropdown-content p {
  font-size: 12px;
  color: #64748b;
  line-height: 1;
  margin-top: 2px;
}

.service-dropdown-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
}

.service-dropdown-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0284c7;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.service-dropdown-cta:hover {
  gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .service-dropdown {
    width: calc(100vw - 32px);
    max-width: 400px;
  }

  .service-dropdown-grid {
    grid-template-columns: 1fr;
  }

  .service-dropdown-column:last-child {
    border-left: none;
    border-top: 1px solid #f1f5f9;
    padding-left: 0;
    padding-top: 16px;
  }
}
#floatingCTA {
    position: fixed !important;
    bottom: 6rem !important;
    right: 1.5rem !important;
    z-index: 40 !important;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s ease-out;
}

#floatingCTA.translate-x-0,
#floatingCTA[style*="translateX(0)"] {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

#floatingCTA.opacity-100 {
    opacity: 1 !important;
}

#floatingCTA>div {
    background: linear-gradient(to bottom right, #0f172a, #1e293b, #0f172a);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    max-width: 320px;
    position: relative;
    overflow: hidden;
}

#floatingCTA #closeCTA {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    cursor: pointer;
    border: none;
    z-index: 10;
}

#floatingCTA #closeCTA:hover {
    background: rgba(255, 255, 255, 0.2);
}

#floatingCTA h4 {
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

#floatingCTA p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 16px;
}

#floatingCTA a {
    display: block;
    text-align: center;
    padding: 10px 16px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
}

#floatingCTA a:first-of-type {
    background: linear-gradient(to right, #0284c7, #0ea5e9);
    color: white;
    margin-bottom: 8px;
}

#floatingCTA a:first-of-type:hover {
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.3);
    transform: translateY(-2px);
}

#floatingCTA a:last-of-type {
    color: rgba(255, 255, 255, 0.8);
}

#floatingCTA a:last-of-type:hover {
    color: white;
}

/* Floating CTA Mobile */
@media (max-width: 640px) {
    #floatingCTA {
        bottom: 5rem !important;
        right: 1rem !important;
        left: 1rem !important;
    }

    #floatingCTA>div {
        max-width: none;
    }
}
