/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Animation */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Parallax Effect */
@keyframes parallax {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-20px);
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Apply animations to elements */
.hero__title,
.hero__subtitle,
.hero .btn {
    animation: fadeIn 1s ease-out forwards;
}

.hero__title {
    animation-delay: 0.2s;
}

.hero__subtitle {
    animation-delay: 0.4s;
}

.hero .btn {
    animation-delay: 0.6s;
}

.hero__background {
    animation: parallax 20s ease-in-out infinite alternate;
}

.service-card {
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }

.testimonial {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.testimonial:nth-child(1) { animation-delay: 0.2s; }
.testimonial:nth-child(2) { animation-delay: 0.4s; }
.testimonial:nth-child(3) { animation-delay: 0.6s; }

/* Smooth transitions for interactive elements */
.navbar__menu a,
.btn,
.service-card,
.testimonial,
.faq__item,
.about__image img {
    transition: all 0.3s ease;
}

/* Hover effects */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

/* Mobile menu animation */
.navbar__menu.active {
    animation: slideIn 0.3s ease-out forwards;
}

/* FAQ accordion animation */
.faq__answer {
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), padding 0.3s ease-out;
}

.faq__item.active .faq__answer {
    transition: max-height 1s ease-in-out, padding 0.3s ease-out;
}

/* Form input focus animation */
.form__group input:focus,
.form__group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-100px);
}

.reveal-right {
    transform: translateX(100px);
}

.reveal-bottom {
    transform: translateY(50px);
}

.reveal-scale {
    transform: scale(0.9);
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark), var(--color-primary));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Fade In Right Animation */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Active Nav Link Animation */
.nav-link.active {
    color: var(--color-primary);
    position: relative;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Navbar Background Animation */
.navbar {
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled .navbar__bg {
    transform: translateY(0);
}

.navbar.scroll-down {
    transform: translateY(-100%);
}

.navbar.scroll-up {
    transform: translateY(0);
}

/* Progress Bar Animation */
.navbar__progress {
    transform-origin: left;
    transition: width 0.1s ease-out;
}

/* Logo Animation */
.navbar__logo {
    transition: transform 0.3s ease;
}

.navbar__logo:hover {
    transform: translateY(-2px);
}

.logo__dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Menu Animation */
@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.navbar__menu.active {
    animation: menuSlideIn 0.3s ease forwards;
}

/* Hamburger Menu Animation */
.navbar__toggle span {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar__toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Form Container Animation */
@keyframes formPulse {
    0% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 15px 40px rgba(93, 129, 101, 0.2);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

.contact__form-container {
    animation: formPulse 3s infinite ease-in-out;
} 