/* Smooth Transitions CSS - Similar to mypandawoods.com */



/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Slide In Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale Animation */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation for Cards */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

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

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

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

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

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

/* Button Animations */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-animated:hover::before {
    left: 100%;
}

/* Image Parallax Effect */
.parallax-img {
    transition: transform 0.3s ease;
}

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

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s ease;
}

.text-reveal.visible span {
    opacity: 1;
    transform: translateY(0);
}

/* Counter Animation */
.counter {
    font-size: 2rem;
    font-weight: bold;
}

/* Progress Bar Animation */
.progress-animated {
    overflow: hidden;
}

.progress-animated .progress-bar {
    transform: translateX(-100%);
    transition: transform 1.5s ease;
}

.progress-animated.visible .progress-bar {
    transform: translateX(0);
}

/* Navbar Scroll Effect */
.navbar-scroll {
    transition: all 0.3s ease;
}

.navbar-scroll.scrolled {
    background-color: rgba(37, 99, 235, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}



/* Smooth Card Hover */
.card-smooth {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card-smooth:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #2563eb;
}



/* Smooth Section Transitions */
.section-transition {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

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



/* Mobile Optimizations */
@media (max-width: 768px) {
    .fade-in, .slide-in-left, .slide-in-right, .scale-in {
        transform: translateY(20px);
    }
    
    .hover-lift:hover {
        transform: translateY(-5px);
    }
    
    .hover-scale:hover {
        transform: scale(1.02);
    }
    

}

/* Enhanced existing elements */
.single_cause {
    transition: all 0.3s ease;
}

.single_cause:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.carousel-item img {
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.02);
}

/* Smooth navbar transition */
.header-area .main-header-area {
    transition: all 0.3s ease;
}

/* Button hover effects */
.btn, .boxed-btn3, .boxed-btn4 {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover, .boxed-btn3:hover, .boxed-btn4:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Image hover effects */
.thumb img {
    transition: transform 0.4s ease;
}

.thumb:hover img {
    transform: scale(1.05);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}