/* =====================================================
   Modern Animations & Effects for Dashboard Colab
   ===================================================== */

/* =================== Hero Section =================== */
/* NOTE: All hero section animations have been moved to landing.css for better isolation */
/* This ensures landing page styles don't interfere with application components */

/* =================== Button Animations =================== */
/* NOTE: Landing page button animations (btn-hover-glow, btn-hover-effect) have been moved to landing.css */

/* =================== Card Animations =================== */
/* NOTE: Landing page card animations (card-hover-lift, card-hover-scale, glass-card, featured-badge, pulse-animation) have been moved to landing.css */

/* =================== Icon Animations =================== */
/* NOTE: Landing page icon animations (icon-rotate, icon-bounce, icon-hover-rotate) have been moved to landing.css */

/* =================== Header Animations =================== */

/* Sticky header with scroll effect */
.header {
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(61, 77, 106, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation underline animation */
.navmenu a {
    position: relative;
}

.navmenu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #47b2e4;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navmenu a:hover::after,
.navmenu a.active::after {
    width: 80%;
}

/* =================== Section Animations =================== */

/* Section reveal animation */
.section {
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #47b2e4, transparent);
    animation: sectionReveal 3s linear infinite;
}

@keyframes sectionReveal {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* =================== Loading Animations =================== */

/* Smooth page load */
body {
    animation: pageLoad 0.5s ease-out;
}

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

/* =================== Scroll Animations =================== */

/* Parallax scrolling effect */
.parallax-element {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Counter animation */
.counter {
    display: inline-block;
    animation: countUp 2s ease-out;
}

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

/* =================== Micro Interactions =================== */

/* Link hover effect */
a {
    position: relative;
    transition: color 0.3s ease;
}

a:not(.btn):hover {
    color: #47b2e4;
}

/* Form field focus animation */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #47b2e4;
    box-shadow: 0 0 0 3px rgba(71, 178, 228, 0.1);
    transition: all 0.3s ease;
}

/* =================== Performance Optimizations =================== */

/* 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;
    }
}

/* GPU acceleration for smooth animations */
.animated,
.hero-img img,
.floating-shape,
.card-hover-lift,
.card-hover-scale {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* =================== Additional Effects =================== */

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

/* Shimmer effect for loading */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
    transform: translateX(-100%);
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* =================== Computer Screen Effect =================== */
/* NOTE: Computer screen effect styles have been moved to landing.css */

/* =================== Hero Advantages Cards =================== */
/* NOTE: Hero advantages cards styles have been moved to landing.css */

/* =================== Other Landing Page Elements =================== */
/* NOTE: Typewriter cursor hide animation and scroll indicator have been moved to landing.css */