/* Custom styles to complement Tailwind CSS */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom button hover effects */
.btn-primary {
    @apply bg-blue-600 text-white px-6 py-3 rounded-lg font-semibold transition-all duration-300;
}

.btn-primary:hover {
    @apply bg-blue-700 transform scale-105 shadow-lg;
}

/* Custom card styles */
.card {
    @apply bg-white rounded-lg shadow-md p-6 transition-all duration-300;
}

.card:hover {
    @apply shadow-xl transform scale-105;
}

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

/* Custom text styles */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive utilities */
@media (max-width: 640px) {
    .mobile-hidden {
        display: none;
    }
}

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

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

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

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

/* Enhanced animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-pulse-slow {
    animation: pulse 2s infinite;
}

.animate-bounce-slow {
    animation: bounce 2s infinite;
}

/* Floating button styles */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

/* Enhanced button styles */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Trust badges */
.trust-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin: 4px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .floating-cta {
        bottom: 16px;
        right: 16px;
    }
    
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-full-width {
        width: 100%;
    }
    
    /* Improve touch targets */
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing for mobile */
    .mobile-padding {
        padding: 1rem;
    }
    
    /* Responsive text */
    .mobile-text-sm {
        font-size: 0.875rem;
    }
    
    .mobile-text-base {
        font-size: 1rem;
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    .tablet-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tablet-text-lg {
        font-size: 1.125rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1024px) {
    .desktop-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .desktop-text-xl {
        font-size: 1.25rem;
    }
}

/* Improved focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Better image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Improved button hover states */
.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Better mobile menu animations */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-exit {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
