/* Professional Animations and Effects */

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

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

/* Staggered Animation for Lists */
.stagger-item {
    opacity: 0;
    transform: translateY(15px);
}

.stagger-item:nth-child(1) { animation: fadeIn 0.4s ease-out 0.1s forwards; }
.stagger-item:nth-child(2) { animation: fadeIn 0.4s ease-out 0.2s forwards; }
.stagger-item:nth-child(3) { animation: fadeIn 0.4s ease-out 0.3s forwards; }
.stagger-item:nth-child(4) { animation: fadeIn 0.4s ease-out 0.4s forwards; }
.stagger-item:nth-child(5) { animation: fadeIn 0.4s ease-out 0.5s forwards; }
.stagger-item:nth-child(6) { animation: fadeIn 0.4s ease-out 0.6s forwards; }
.stagger-item:nth-child(7) { animation: fadeIn 0.4s ease-out 0.7s forwards; }
.stagger-item:nth-child(8) { animation: fadeIn 0.4s ease-out 0.8s forwards; }

/* Smooth Reveal Animation */
@keyframes smoothReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.smooth-reveal {
    opacity: 0;
    animation: smoothReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Subtle Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(90deg, #00CC52, #2584C4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Subtle Pulse Animation */
@keyframes subtlePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

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

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    pointer-events: none;
}

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

/* Slide In Animation */
@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out forwards;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

/* Accessibility - Respect Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .stagger-item,
    .smooth-reveal,
    .pulse,
    .shimmer::after,
    .floating,
    .slide-in-right,
    .slide-in-left {
        animation: none !important;
        transform: none !important;
        transition: none !important;
        opacity: 1 !important;
    }
    
    html {
        scroll-behavior: auto !important;
    }
}

/* Focus Styles for Accessibility */
:focus {
    outline: 3px solid rgba(0, 204, 82, 0.5);
    outline-offset: 2px;
}

/* Skip to Content Link - Accessibility Feature */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #00CC52;
    color: white;
    padding: 8px 15px;
    z-index: 100;
    transition: top 0.3s ease;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
    outline: none;
}
