/* Enhanced Custom styles for TurboPages 2025 */

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

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

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

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

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* Apply animations to elements */
.animate-fade-in-up {
    animation: fadeInUp 2s ease-out;
}

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

.animate-slide-in {
    animation: slideIn 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

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

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200px 100%;
}

.animate-gradient {
    background: linear-gradient(-45deg, #FF6B35, #e55a2b, #ff8c42, #FF6B35);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

.animate-bounce {
    animation: bounce 1s ease-in-out;
}

/* Enhanced hover effects */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Enhanced focus styles */
.focus-ring:focus {
    outline: none;
    ring: 3px;
    ring-color: #FF6B35;
    ring-offset: 2px;
}

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #e55a2b 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::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.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #cc4a1f 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
}

/* Enhanced form styles */
.form-input {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #FF6B35, #e55a2b) border-box;
}

.form-input:focus {
    outline: none;
    border-color: #FF6B35;
}

/* Override any hover effects on form inputs - PRODUCTION FIX */
input, textarea, select {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

input:hover, textarea:hover, select:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
    scale: none !important;
    translate: none !important;
    rotate: none !important;
}

/* Ensure no hover animations on form elements */
input:focus, textarea:focus, select:focus {
    transform: none !important;
    box-shadow: none !important;
    scale: none !important;
    translate: none !important;
    rotate: none !important;
}

/* Override Tailwind CSS hover classes specifically */
input.hover\:scale-105:hover,
textarea.hover\:scale-105:hover,
select.hover\:scale-105:hover {
    transform: none !important;
    scale: none !important;
}

input.hover\:translate-y-1:hover,
textarea.hover\:translate-y-1:hover,
select.hover\:translate-y-1:hover {
    transform: none !important;
    translate: none !important;
}

/* Override any transition classes */
input.transition-all,
textarea.transition-all,
select.transition-all {
    transition: none !important;
}

input.duration-300,
textarea.duration-300,
select.duration-300 {
    transition: none !important;
}

/* Global override for any form element animations */
*[class*="input"]:hover,
*[class*="textarea"]:hover,
*[class*="select"]:hover {
    transform: none !important;
    box-shadow: none !important;
    scale: none !important;
    translate: none !important;
    rotate: none !important;
}

/* Enhanced card styles */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 140, 66, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.card-hover:hover::before {
    opacity: 1;
}

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

/* Enhanced gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #1E1E1E 0%, #2A2A2A 50%, #1E1E1E 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.gradient-accent {
    background: linear-gradient(135deg, #FF6B35 0%, #e55a2b 50%, #FF6B35 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Enhanced text gradients */
.text-gradient {
    background: linear-gradient(135deg, #FF6B35 0%, #e55a2b 50%, #ff8c42 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Enhanced loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e55a2b, #cc4a1f);
}

/* Enhanced selection */
::selection {
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: white;
}

/* Enhanced focus visible */
.focus-visible:focus-visible {
    outline: 3px solid #FF6B35;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Enhanced backdrop blur */
.backdrop-blur-custom {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Enhanced shadows */
.shadow-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.shadow-custom-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.shadow-glow {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

/* Enhanced borders */
.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #FF6B35, #e55a2b) 1;
}

.border-glow {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #FF6B35, #e55a2b) border-box;
}

/* Enhanced transitions */
.transition-all-custom {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-transform-custom {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced responsive utilities */
@media (max-width: 640px) {
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-padding {
        padding: 1rem;
    }
    
    .mobile-hidden {
        display: none;
    }
    
    .mobile-block {
        display: block;
    }
}

/* Enhanced form validation styles */
.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

.form-input.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Enhanced loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

.spinner-fast {
    animation: spin 0.5s linear infinite;
}

/* Enhanced tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1E1E1E, #2A2A2A);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Enhanced modal styles */
.modal-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Enhanced notification styles */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    color: white;
    font-weight: 500;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Enhanced grid patterns */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(255, 107, 53, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.grid-pattern-dense {
    background-image: 
        linear-gradient(rgba(255, 107, 53, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Enhanced glass effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced text shadows */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.text-shadow-glow {
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* Enhanced border radius */
.rounded-custom {
    border-radius: 1rem;
}

.rounded-custom-lg {
    border-radius: 1.5rem;
}

.rounded-custom-xl {
    border-radius: 2rem;
}

/* Enhanced spacing */
.space-custom {
    margin: 2rem 0;
}

.space-custom-lg {
    margin: 4rem 0;
}

/* Enhanced typography */
.font-display {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.font-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Enhanced responsive images */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

/* Enhanced aspect ratios */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-portrait {
    aspect-ratio: 3 / 4;
}

/* Enhanced utilities for better mobile experience */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
    
    .mobile-block {
        display: block;
    }
    
    .mobile-text-sm {
        font-size: 0.875rem;
    }
    
    .mobile-text-lg {
        font-size: 1.125rem;
    }
    
    .mobile-p-4 {
        padding: 1rem;
    }
    
    .mobile-p-6 {
        padding: 1.5rem;
    }
}

/* Enhanced print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
}

/* Enhanced accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced focus indicators */
.focus-indicator {
    position: relative;
}

.focus-indicator:focus::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #FF6B35;
    border-radius: inherit;
    pointer-events: none;
}

/* Enhanced loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

/* Enhanced hover states for interactive elements */
.interactive {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.interactive:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Enhanced gradient text animations */
.gradient-text-animate {
    background: linear-gradient(-45deg, #FF6B35, #e55a2b, #ff8c42, #FF6B35);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Enhanced floating elements */
.floating {
    animation: float 3s ease-in-out infinite;
}

.floating-slow {
    animation: float 4s ease-in-out infinite;
}

.floating-fast {
    animation: float 2s ease-in-out infinite;
}

/* FINAL OVERRIDE - PRODUCTION FIX FOR FORM ANIMATIONS */
/* This must be at the end to override everything */
input, textarea, select {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    scale: none !important;
    translate: none !important;
    rotate: none !important;
}

input:hover, textarea:hover, select:hover,
input:focus, textarea:focus, select:focus {
    transform: none !important;
    box-shadow: none !important;
    scale: none !important;
    translate: none !important;
    rotate: none !important;
    transition: none !important;
    animation: none !important;
} 