/* AG Animations - Scroll-triggered animations for all AG components */

/* Base animation styles - components start hidden */
.ag-home-sectors,
.ag-info-card,
.ag-card,
.ag-home-vision,
.ag-home-about,
.ag-map,
.ag-image-text,
.ag-why-efad,
.ag-contact-form,
.ag-bullet-card,
.ag-about-text,
.ag-footer {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ag-home-sectors.ag-animate,
.ag-info-card.ag-animate,
.ag-card.ag-animate,
.ag-home-vision.ag-animate,
.ag-home-about.ag-animate,
.ag-map.ag-animate,
.ag-image-text.ag-animate,
.ag-why-efad.ag-animate,
.ag-contact-form.ag-animate,
.ag-bullet-card.ag-animate,
.ag-about-text.ag-animate,
.ag-footer.ag-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animations */

/* Home Sectors Cards */
.ag-home-sectors .ag-home-sectors__card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.ag-home-sectors.ag-animate .ag-home-sectors__card:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.ag-home-sectors.ag-animate .ag-home-sectors__card:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.ag-home-sectors.ag-animate .ag-home-sectors__card:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.ag-home-sectors.ag-animate .ag-home-sectors__card:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.ag-home-sectors.ag-animate .ag-home-sectors__card:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.ag-home-sectors.ag-animate .ag-home-sectors__card:nth-child(n+6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* Info Card Items */
.ag-info-card .ag-info-card__item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.ag-info-card.ag-animate .ag-info-card__item:nth-child(1) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.ag-info-card.ag-animate .ag-info-card__item:nth-child(2) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.ag-info-card.ag-animate .ag-info-card__item:nth-child(3) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.ag-info-card.ag-animate .ag-info-card__item:nth-child(n+4) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* Card Grid Cards */
.ag-card .ag-card__card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.ag-card.ag-animate .ag-card__card:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.ag-card.ag-animate .ag-card__card:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.ag-card.ag-animate .ag-card__card:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.ag-card.ag-animate .ag-card__card:nth-child(n+4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* Vision List Items */
.ag-home-vision .ag-home-vision__list-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.ag-home-vision.ag-animate .ag-home-vision__list-item:nth-child(1) { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
.ag-home-vision.ag-animate .ag-home-vision__list-item:nth-child(2) { transition-delay: 0.3s; opacity: 1; transform: translateX(0); }
.ag-home-vision.ag-animate .ag-home-vision__list-item:nth-child(3) { transition-delay: 0.4s; opacity: 1; transform: translateX(0); }
.ag-home-vision.ag-animate .ag-home-vision__list-item:nth-child(n+4) { transition-delay: 0.5s; opacity: 1; transform: translateX(0); }

/* Why EFAD Items */
.ag-why-efad .ag-why-efad__item {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.ag-why-efad.ag-animate .ag-why-efad__item:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateX(0); }
.ag-why-efad.ag-animate .ag-why-efad__item:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
.ag-why-efad.ag-animate .ag-why-efad__item:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateX(0); }
.ag-why-efad.ag-animate .ag-why-efad__item:nth-child(n+4) { transition-delay: 0.4s; opacity: 1; transform: translateX(0); }

/* Bullet Card Cards */
.ag-bullet-card .ag-bullet-card__card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.ag-bullet-card.ag-animate .ag-bullet-card__card:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0) scale(1); }
.ag-bullet-card.ag-animate .ag-bullet-card__card:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0) scale(1); }
.ag-bullet-card.ag-animate .ag-bullet-card__card:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0) scale(1); }
.ag-bullet-card.ag-animate .ag-bullet-card__card:nth-child(4) { transition-delay: 0.25s; opacity: 1; transform: translateY(0) scale(1); }
.ag-bullet-card.ag-animate .ag-bullet-card__card:nth-child(5) { transition-delay: 0.3s; opacity: 1; transform: translateY(0) scale(1); }
.ag-bullet-card.ag-animate .ag-bullet-card__card:nth-child(n+6) { transition-delay: 0.35s; opacity: 1; transform: translateY(0) scale(1); }

/* Footer Columns */
.ag-footer .ag-footer__col {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.ag-footer.ag-animate .ag-footer__col:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.ag-footer.ag-animate .ag-footer__col:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.ag-footer.ag-animate .ag-footer__col:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.ag-footer.ag-animate .ag-footer__col:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* Map Items */
.ag-map .ag-map__item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.ag-map.ag-animate .ag-map__item:nth-child(1) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.ag-map.ag-animate .ag-map__item:nth-child(2) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.ag-map.ag-animate .ag-map__item:nth-child(n+3) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* Contact Form Fields */
.ag-contact-form .ag-contact-form__field {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.ag-contact-form.ag-animate .ag-contact-form__field:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.ag-contact-form.ag-animate .ag-contact-form__field:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.ag-contact-form.ag-animate .ag-contact-form__field:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.ag-contact-form.ag-animate .ag-contact-form__field:nth-child(4) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.ag-contact-form.ag-animate .ag-contact-form__field:nth-child(5) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.ag-contact-form.ag-animate .ag-contact-form__field:nth-child(n+6) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }

/* Image Text */
.ag-image-text .ag-image-text__image-side {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ag-image-text .ag-image-text__content-side {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.ag-image-text.ag-animate .ag-image-text__image-side {
    opacity: 1;
    transform: scale(1);
}

.ag-image-text.ag-animate .ag-image-text__content-side {
    opacity: 1;
    transform: translateX(0);
}

/* Home About */
.ag-home-about .ag-home-about__content {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ag-home-about .ag-home-about__image-column {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.ag-home-about.ag-animate .ag-home-about__content {
    opacity: 1;
    transform: translateX(0);
}

.ag-home-about.ag-animate .ag-home-about__image-column {
    opacity: 1;
    transform: translateX(0);
}

/* About Text */
.ag-about-text .ag-about-text__title,
.ag-about-text .ag-about-text__content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.ag-about-text.ag-animate .ag-about-text__title {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.ag-about-text.ag-animate .ag-about-text__content {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}
