/* Smooth Performance Optimizations */

/* Global Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Smooth Transitions for All Interactive Elements */
a, button, input, textarea, select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Hover Effects */
a:hover, button:hover {
    transform: translateY(-1px);
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease;
}

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

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

/* Smooth Page Transitions */
body {
    animation: fadeIn 0.5s ease-in-out;
}

/* Smooth Mobile Menu */
.mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

.mobile-menu.active {
    animation: fadeInUp 0.3s ease-out;
}

/* Smooth Form Interactions */
input:focus, textarea:focus, select:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Smooth Card Hover Effects */
.product-card, .service-card, [class*="card"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover, .service-card:hover, [class*="card"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Smooth Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Performance: GPU Acceleration for Animations */
.animate {
    will-change: transform;
    transform: translateZ(0);
}

/* Smooth Scroll for Internal Links */
[href^="#"] {
    scroll-behavior: smooth;
}

/* Hide Hamburger Menu on Desktop */
@media (min-width: 768px) {
    .hamburger {
        display: none !important;
    }
}

/* Show Hamburger Menu only on Mobile */
@media (max-width: 767px) {
    .hamburger {
        display: flex !important;
    }
}

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