/* ================================================
   ADVANCED MOTION DESIGN & ANIMATIONS
   Version 1.6.0 - Fixed flash on load
   ================================================ */

/* ==========================================
   1. SMOOTH TRANSITIONS & TIMING
   ========================================== */

.glass-card,
.advantage-card,
.lead-card,
.category-card,
.project-card,
.product-card {
    will-change: transform, opacity, box-shadow;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-button,
.outline-button {
    will-change: transform, box-shadow;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================
   2. HOVER EFFECTS - LIFT & GLOW
   ========================================== */

.glass-card:hover,
.advantage-card:hover,
.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 128, 255, 0.2),
        0 0 40px rgba(0, 212, 170, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(0, 128, 255, 0.3);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 25px 70px rgba(0, 128, 255, 0.25),
        0 0 50px rgba(0, 212, 170, 0.2);
}

/* ==========================================
   3. BUTTON EFFECTS
   ========================================== */

.glow-button:hover {
    box-shadow:
        0 0 30px rgba(0, 128, 255, 0.6),
        0 0 60px rgba(0, 212, 170, 0.4),
        0 10px 40px rgba(0, 128, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.glow-button:active {
    transform: translateY(0) scale(0.98);
}

.outline-button:hover {
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.15), rgba(0, 212, 170, 0.15));
    border-color: #0080FF;
    box-shadow:
        0 0 20px rgba(0, 128, 255, 0.4),
        inset 0 0 20px rgba(0, 128, 255, 0.1);
    transform: translateY(-2px) scale(1.05);
}

/* ==========================================
   4. SCROLL-TRIGGERED ANIMATIONS
   ========================================== */

.fade-in-up,
.fade-in-left,
.fade-in-right,
.scale-in-active {
    will-change: transform, opacity;
}

/* ==========================================
   5. PARALLAX ELEMENTS
   ========================================== */

.parallax-slow,
.parallax-medium,
.parallax-fast {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ==========================================
   6. MICRO-INTERACTIONS
   ========================================== */

.advantage-card:hover .icon-container,
.lead-card:hover .icon-container {
    animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.pulse-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 128, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 128, 255, 0.6);
        transform: scale(1.02);
    }
}

/* ==========================================
   7. REMOVED: Section fade-in animation
   Was causing page flash/blink on load.
   Sections are now visible immediately.
   ========================================== */

/* ==========================================
   8. TEXT ANIMATIONS
   ========================================== */

.gradient-text {
    background-size: 200% auto;
    animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

/* ==========================================
   9. SCROLL PROGRESS INDICATOR
   ========================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0080FF, #00D4AA);
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.5);
}

/* ==========================================
   10. FLOATING ANIMATIONS
   ========================================== */

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

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

.float-delay-1 {
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.2s;
}

.float-delay-2 {
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.4s;
}

/* ==========================================
   11. GLOW PULSE
   ========================================== */

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 128, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 128, 255, 0.6), 0 0 60px rgba(0, 212, 170, 0.4);
    }
}

.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

/* ==========================================
   12. IMAGE ZOOM ON HOVER
   ========================================== */

.image-zoom-container {
    overflow: hidden;
    border-radius: 1rem;
}

.image-zoom-container img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom-container:hover img {
    transform: scale(1.1);
}

/* ==========================================
   13. LOADING SHIMMER
   ========================================== */

.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ==========================================
   14. GPU ACCELERATION
   ========================================== */

.glass-card,
.advantage-card,
.category-card,
.project-card,
.glow-button,
.outline-button {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ==========================================
   15. ACCESSIBILITY - REDUCED MOTION
   ========================================== */

@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;
    }

    .parallax-slow,
    .parallax-medium,
    .parallax-fast {
        transform: none !important;
    }
}

/* ==========================================
   16. MOBILE OPTIMIZATIONS
   ========================================== */

@media (max-width: 768px) {
    .glass-card:hover,
    .advantage-card:hover,
    .category-card:hover {
        transform: translateY(-4px);
    }

    .project-card:hover {
        transform: translateY(-6px);
    }

    .glow-button:hover {
        box-shadow: 0 0 20px rgba(0, 128, 255, 0.4);
    }

    .parallax-slow,
    .parallax-medium,
    .parallax-fast {
        transform: none !important;
    }
}