/* Animations CSS - Smooth and elegant animations */

/* Fade In Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Bounce Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glow Effects */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(164, 170, 136, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(164, 170, 136, 0.8);
    }
}

@keyframes glowAccent {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 209, 118, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 209, 118, 0.8);
    }
}

/* Number Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hover Effects */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

@keyframes tilt {
    0%, 100% {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
    }
    75% {
        transform: perspective(1000px) rotateX(-5deg) rotateY(5deg);
    }
}

/* Apply animations to sections on scroll */
.fade-in-on-scroll {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.slide-in-up-on-scroll {
    animation: slideInUp 1s ease-out forwards;
    opacity: 0;
}

.fade-in-left-on-scroll {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-right-on-scroll {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

.scale-in-on-scroll {
    animation: scaleIn 0.8s ease-out forwards;
    opacity: 0;
}

/* Stagger animations for child elements */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

/* Infinite animations */
.float {
    animation: bounce 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.glow-animation {
    animation: glow 2s ease-in-out infinite;
}

.wiggle-animation {
    animation: wiggle 0.5s ease-in-out infinite;
}

/* Gradient Animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-shift {
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

/* Loading Spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Wave Animation */
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.wave-text span {
    display: inline-block;
    animation: wave 0.6s ease-in-out infinite;
}

.wave-text span:nth-child(2) {
    animation-delay: 0.1s;
}

.wave-text span:nth-child(3) {
    animation-delay: 0.2s;
}

.wave-text span:nth-child(4) {
    animation-delay: 0.3s;
}

.wave-text span:nth-child(5) {
    animation-delay: 0.4s;
}

/* Smooth Parallax Effect */
.parallax-bg {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Text Reveal Animation */
@keyframes revealText {
    from {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

.reveal-text {
    animation: revealText 0.8s ease-out forwards;
}

/* Smooth transitions for interactive elements */
button, a, input, textarea {
    transition: all 0.3s ease;
}

/* Backdrop blur effect for glass morphism */
@keyframes blurIn {
    from {
        backdrop-filter: blur(0px);
    }
    to {
        backdrop-filter: blur(10px);
    }
}

.blur-in {
    animation: blurIn 0.5s ease-out forwards;
}

/* Shadow elevation on hover */
.elevate-on-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.elevate-on-hover:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* Color transition on hover */
.color-transition {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Smooth scroll snap */
html {
    scroll-behavior: smooth;
}

/* FAQ Accordion Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.faq-answer {
    animation: slideDown 0.4s ease-out;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question:hover {
    background: #f0f0f0 !important;
}

/* Print styles - remove animations */
@media print {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
