/* ============================================
   LEIDERS INZICHT - ANIMATIE PRESETS
   Bestand: public/css/animations.css
   Doel: Herbruikbare animaties voor modulaire secties
   ============================================ */

/* Base Animation Classes */
.section-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-animation.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section Animations */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

/* Apply hero animations with improved timing */
.hero-content {
    animation: heroFadeIn 1.2s ease-out 0.3s forwards;
}

.hero-logo {
    animation: logoAppear 1s ease-out 0.6s forwards;
}

.hero-tagline {
    animation: slideInFromLeft 0.8s ease-out 0.9s forwards;
}

.hero-title {
    animation: slideInFromRight 0.8s ease-out 1.1s forwards;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 1.3s forwards;
}

.hero-cta {
    animation: ctaAppear 0.8s ease-out 1.5s forwards;
}

/* ============================================
   ANIMATIE PRESETS - VOOR CMS GEBRUIK
   ============================================ */

/* 1. Fade In */
.section-animation[data-animation="fade-in"] {
    opacity: 0;
}

.section-animation[data-animation="fade-in"].animate-in {
    opacity: 1;
    transform: none;
}

/* 2. Slide In Up */
.section-animation[data-animation="slide-in-up"] {
    opacity: 0;
    transform: translateY(50px);
}

.section-animation[data-animation="slide-in-up"].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Slide In Left */
.section-animation[data-animation="slide-in-left"] {
    opacity: 0;
    transform: translateX(-50px);
}

.section-animation[data-animation="slide-in-left"].animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* 4. Slide In Right */
.section-animation[data-animation="slide-in-right"] {
    opacity: 0;
    transform: translateX(50px);
}

.section-animation[data-animation="slide-in-right"].animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* 5. Fade In Up */
.section-animation[data-animation="fade-in-up"] {
    opacity: 0;
    transform: translateY(30px);
}

.section-animation[data-animation="fade-in-up"].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 6. Scale In */
.section-animation[data-animation="scale-in"] {
    opacity: 0;
    transform: scale(0.9);
}

.section-animation[data-animation="scale-in"].animate-in {
    opacity: 1;
    transform: scale(1);
}

/* 7. Parallax Slow */
.section-animation[data-animation="parallax-slow"] {
    opacity: 1;
    transform: none;
}

/* ============================================
   STAGGERED ANIMATIONS (Voor kinderen)
   ============================================ */

/* Column Items Stagger */
.column-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.columns-grid.animate-in .column-item {
    opacity: 1;
    transform: translateY(0);
}

.columns-grid.animate-in .column-item:nth-child(1) {
    transition-delay: 0.1s;
}

.columns-grid.animate-in .column-item:nth-child(2) {
    transition-delay: 0.2s;
}

.columns-grid.animate-in .column-item:nth-child(3) {
    transition-delay: 0.3s;
}

.columns-grid.animate-in .column-item:nth-child(4) {
    transition-delay: 0.4s;
}

/* Testimonial Items Stagger */
.testimonial-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonials-grid.animate-in .testimonial-item {
    opacity: 1;
    transform: translateY(0);
}

.testimonials-grid.animate-in .testimonial-item:nth-child(1) {
    transition-delay: 0.1s;
}

.testimonials-grid.animate-in .testimonial-item:nth-child(2) {
    transition-delay: 0.2s;
}

.testimonials-grid.animate-in .testimonial-item:nth-child(3) {
    transition-delay: 0.3s;
}

/* Methodiek Items Stagger */
.methodiek-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.methodieken-list.animate-in .methodiek-item {
    opacity: 1;
    transform: translateX(0);
}

.methodieken-list.animate-in .methodiek-item:nth-child(1) {
    transition-delay: 0.1s;
}

.methodieken-list.animate-in .methodiek-item:nth-child(2) {
    transition-delay: 0.2s;
}

.methodieken-list.animate-in .methodiek-item:nth-child(3) {
    transition-delay: 0.3s;
}

.methodieken-list.animate-in .methodiek-item:nth-child(4) {
    transition-delay: 0.4s;
}

/* ============================================
   HOVER ANIMATIONS
   ============================================ */

/* Card Hover Effects */
.column-item,
.testimonial-item {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.testimonial-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Icon Hover Effects */
.column-icon {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.column-item:hover .column-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Button Hover Effects */
.btn,
.hero-cta,
.assessment-cta,
.submit-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover,
.hero-cta:hover,
.assessment-cta:hover,
.submit-btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   PARALLAX EFFECTS
   ============================================ */

/* Parallax Background */
.parallax-bg {
    transform: translateY(0);
    transition: transform 0.1s linear;
}

/* Video Parallax */
.hero-video.parallax {
    transform: translate(-50%, -50%);
    transition: transform 0.1s linear;
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */

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

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

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

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   ENTRANCE ANIMATIONS (Voor dynamische content)
   ============================================ */

/* Slide In From Bottom */
@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-bottom {
    animation: slideInBottom 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Slide In From Top */
@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-top {
    animation: slideInTop 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Zoom In */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoom-in {
    animation: zoomIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
    .section-animation {
        transform: translateY(20px);
    }
    
    .column-item,
    .testimonial-item {
        transform: none;
        opacity: 1;
    }
    
    .columns-grid .column-item,
    .testimonials-grid .testimonial-item {
        transition-delay: 0s;
    }
    
    /* Reduce motion for mobile */
    .hero-content,
    .hero-logo,
    .hero-tagline,
    .hero-title,
    .hero-subtitle,
    .hero-cta {
        animation-duration: 0.6s;
    }
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .section-animation,
    .column-item,
    .testimonial-item,
    .methodiek-item {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .hero-content,
    .hero-logo,
    .hero-tagline,
    .hero-title,
    .hero-subtitle,
    .hero-cta {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .btn:hover,
    .hero-cta:hover,
    .assessment-cta:hover,
    .submit-btn:hover,
    .column-item:hover,
    .testimonial-item:hover {
        transform: none;
    }
}

/* ============================================
   INTERSECTION OBSERVER CLASSES
   ============================================ */

/* Before intersection */
.observe-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* After intersection */
.observe-animation.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.observe-animation.in-view .stagger-child {
    opacity: 1;
    transform: translateY(0);
}

.stagger-child {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-child:nth-child(1) { transition-delay: 0.1s; }
.stagger-child:nth-child(2) { transition-delay: 0.2s; }
.stagger-child:nth-child(3) { transition-delay: 0.3s; }
.stagger-child:nth-child(4) { transition-delay: 0.4s; }
.stagger-child:nth-child(5) { transition-delay: 0.5s; }
.stagger-child:nth-child(6) { transition-delay: 0.6s; }