/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(127, 219, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(127, 219, 255, 0.8);
    }
}

/* Apply Animations */
.hero-content {
    animation: slideUp 0.8s ease-out;
}

.service-card,
.testimonial-card,
.team-member,
.value-card,
.why-item {
    animation: fadeIn 0.6s ease-out;
}

.btn {
    transition: all 0.3s ease;
}

.btn:active {
    transform: scale(0.98);
}

/* Hover Effects */
.service-card:hover {
    animation: none;
}

/* Scroll Animation */
.service-card,
.testimonial-card {
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }

/* Mobile Menu Animation */
.mobile-menu {
    animation: slideDown 0.3s ease-out;
}

.mobile-menu-link {
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    padding-left: 10px;
    color: var(--color-secondary);
}

/* Form Input Animation */
input:focus,
textarea:focus,
select:focus {
    animation: scaleIn 0.2s ease-out;
}

/* Loading Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Bounce */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.bounce {
    animation: bounce 0.6s ease-in-out;
}

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

/* Link Hover Underline */
a:not(.btn):not(.logo) {
    position: relative;
}

a:not(.btn):not(.logo)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

a:not(.btn):not(.logo):hover::after {
    width: 100%;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}