/* Custom Landing Page Styles */
html {
    scroll-behavior: smooth; /* Optional: Smooth scrolling for anchor links */
}

body {
    scroll-snap-type: y mandatory; /* Ensures top alignment */
}

.desktop a{
    padding: .5rem;
}
.desktop a {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    text-decoration: none;
    color: #1e3a8a; /* Tailwind's blue-900 */
    color: rgb(43, 36, 36); /* Tailwind's blue-900 */
    transition: color 0.3s ease;
}

.desktop a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background-color: #3b82f6; /* Tailwind's blue-500 */
    transition: width 0.3s ease-in-out;
}

.desktop a:hover {
    color: #1d4ed8; /* Tailwind's blue-700 */
}

.desktop a:hover::after {
    width: 100%;
}
/* Smooth animations with better easing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* IMPORTANT: All elements start completely visible by default */
/* .business-card, .panel-card, .text-center {
    opacity: 1 !important;
    transform: none !important;
} */

/* .text-center:not(.hero-section) TOOD:WE HAD TO REMOVE THIS LINE FROM BELLOW AND ADD EXTRAT CLASSES: businesses,panels, features,trust-indicators */
.business-card-container .business-card, 
.businesses .text-center,
.panels .text-center,
.features .text-center,
.trust-indicators .text-center
{
    opacity: 0;
    transform: translateY(20px); /* Starting position for fade-in-up */
    will-change: opacity, transform; /* Optimize performance */
}

/* Animation classes - elements start visible by default */
.animate-fade-in-up {
    opacity: 1; /* Start visible */
    transform: translateY(0); /* Start in final position */
}

.animate-slide-in-left {
    opacity: 1; /* Start visible */
    transform: translateX(0); /* Start in final position */
}

.animate-slide-in-right {
    opacity: 1; /* Start visible */
    transform: translateX(0); /* Start in final position */
}

.animate-scale-in {
    opacity: 1; /* Start visible */
    transform: scale(1); /* Start in final position */
}

/* Animation classes that will be added by JavaScript - these contain the actual animations */
.animate-fade-in-up-trigger {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-slide-in-left-trigger {
    animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-slide-in-right-trigger {
    animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-scale-in-trigger {
    opacity: 1;
    transform: scale(1);
    animation: scaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    /* animation: scaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; */
}

/* Stagger animations for better UX */
.animate-stagger-1 { animation-delay: 0.1s; }
.animate-stagger-2 { animation-delay: 0.2s; }
.animate-stagger-3 { animation-delay: 0.3s; }
.animate-stagger-4 { animation-delay: 0.4s; }
.animate-stagger-5 { animation-delay: 0.5s; }
.animate-stagger-6 { animation-delay: 0.6s; }

/* Custom gradient backgrounds */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Enhanced card hover effects with smoother transitions */
.business-card {
    position: relative;
    overflow: hidden;
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: transform; /* Optimize for animations */
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.business-card:hover::before {
    left: 100%;
}

.business-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Panel card enhancements with smoother transitions */
.panel-card {
    position: relative;
    overflow: hidden;
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: transform; /* Optimize for animations */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.panel-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.panel-card:hover::after {
    transform: scaleX(1);
}

.panel-card:hover {
    transform: scale(1.02) translateZ(0);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

/* Business icon animations with smoother transitions */
.business-icon {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0); /* Force hardware acceleration */
}

.business-card:hover .business-icon {
    transform: scale(1.1) translateZ(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading animation for buttons */
.btn-loading {
    position: relative;
    overflow: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (min-width: 1025px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-fade-in-up-trigger,
    .animate-slide-in-left-trigger,
    .animate-slide-in-right-trigger,
    .animate-scale-in-trigger {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Focus styles for better accessibility */
.focus-visible:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .gradient-bg {
        opacity: 0; /* Start hidden */
        transform: scale(0.95); /* Initial scale for scaleIn animation */
        background: white !important;
        color: black !important;
    }
}

/* Prevent layout shift during animations */
.animate-container {
    min-height: 100px; /* Adjust based on your content */
}

/* Smooth transitions for all interactive elements */
button, a, .card-hover, .panel-card, .business-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Optimize for performance */
* {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
} 