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

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

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotateIn {
    from {
        transform: rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: rotate(0);
        opacity: 1;
    }
}

@keyframes flipCard {
    0% {
        transform: rotateY(0);
    }
    100% {
        transform: rotateY(180deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation Classes */
.landing-animation {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.slide-in-left {
    animation: slideInLeft 1s ease forwards;
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 1s ease forwards;
    opacity: 0;
}

.slide-in-up {
    animation: slideInUp 1s ease forwards;
    opacity: 0;
}

.scale-in {
    animation: scaleIn 1s ease forwards;
    opacity: 0;
}

.rotate-in {
    animation: rotateIn 1s ease forwards;
    opacity: 0;
}

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

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

/* Intersection Observer for Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.fade-in-scroll {
    transform: translateY(20px);
}

.animate-on-scroll.slide-in-left-scroll {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-in-right-scroll {
    transform: translateX(50px);
}

.animate-on-scroll.scale-in-scroll {
    transform: scale(0.9);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

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

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

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

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

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

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn:hover:after {
    left: 100%;
}

/* Card Hover Effects */
.service-card, .job-card, .event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, .job-card:hover, .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Image Hover Effects */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.1);
}

/* Animated Counter */
.statistic-number {
    display: inline-block;
    position: relative;
}

/* Delay Utilities */
.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;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.delay-900 {
    animation-delay: 0.9s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Mobile Menu Animation */
.mobile-menu-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Testimonial Slider Animation */
.testimonial-slide {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

/* Dark Theme Transition */
body, .site-header, .main-nav a, .service-card, .job-card, .event-card, .testimonial-content, .footer-content a {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Enhanced Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
    80% {
        opacity: 1;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slideInRight {
    animation: slideInFromRight 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slideInLeft {
    animation: slideInFromLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-scaleIn {
    animation: scaleIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-bounceIn {
    animation: bounceIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    opacity: 0;
}

/* Animation Delays */
.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; }

/* Add these new section animation styles */
.section-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced scroll animations for different sections */
.hero-section.section-hidden {
    transform: translateY(-30px);
}

.about-overview.section-hidden {
    transform: translateY(50px);
}

.services-section.section-hidden {
    transform: translateY(50px);
}

.statistics-section.section-hidden {
    transform: scale(0.95);
}

.testimonials-section.section-hidden {
    transform: translateY(50px) scale(0.98);
}

.job-opportunities.section-hidden {
    transform: translateY(50px);
}

.events-section.section-hidden {
    transform: translateY(50px) scale(0.98);
}

/* Staggered animations for child elements */
.section-visible .fade-in {
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.3s;
}

.section-visible .slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
    animation-delay: 0.4s;
}

.section-visible .slide-in-right {
    animation: slideInRight 0.8s ease forwards;
    animation-delay: 0.4s;
}

/* Enhance existing animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add smooth transition for all animations */
section {
    transition: transform 1s ease, opacity 1s ease;
}

/* Optional: Add different transitions for dark theme */
[data-theme="dark"] section {
    transition: transform 1.2s ease-out, opacity 1.2s ease-out;
}

/* Partner logos animation */
.animate-slide {
    animation: slideIn 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional hover effect for the partners image */
.partners-image:hover {
    transition: transform 0.5s ease;
    transform: scale(1.02);
}
