/* ===============================================
   GLOBAL POLISH - HOVER STATES & ANIMATIONS
   =============================================== */

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select, .interactive {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced link hover states */
a:not(.no-hover-effect) {
    position: relative;
}

a:not(.no-hover-effect):hover {
    opacity: 0.8;
}

/* Button hover states */
button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

button:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Form input hover states */
input:not(:disabled):hover,
textarea:not(:disabled):hover,
select:not(:disabled):hover {
    border-color: #fea644;
}

/* Card hover effects */
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Image hover effects */
img.hover-zoom {
    transition: transform 0.3s ease;
}

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

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

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

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

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

/* Skeleton loading animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Pulse animation for CTAs */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

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

/* Focus states for accessibility */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #fea644;
    outline-offset: 2px;
}

/* Consistent spacing utilities */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Typography consistency */
.heading-xl {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

.heading-lg {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.heading-md {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
}

.body-lg {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.6;
}

/* Loading spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* Prevent layout shift on page load */
body {
    min-height: 100vh;
}

/* Optimize images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: #f0f0f0;
}

/* Performance: GPU acceleration for transforms */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}