/* 
   BTC - Animations & Effects
*/

/* Reveal/* Clean Fade + Slide Animation */
.fade-up {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: opacity, transform;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Delays */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Floating Animation for Badges */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

/* Card Hover Enhancements */
.course-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.15);
}

/* Delay Utils */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Card Hover Effects */
.course-card, .feature-item, .testimonial-card, .gallery-item {
    transition: var(--transition);
}

.course-card:hover, .feature-item:hover, .testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-img img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.gallery-item img {
    transition: all 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* Button & Link Effects */
.course-link i {
    transition: transform 0.3s ease;
}

.course-link:hover i {
    transform: translateX(5px);
}

/* Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-content h1 {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-content p {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-btns {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Medical Preloader Styles */
body.loading {
    overflow: hidden;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    width: 300px;
}

.pulse-container {
    width: 100%;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-svg {
    width: 100%;
    height: auto;
}

.pulse-svg polyline {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: dash 2.5s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -200;
    }
}

.loader-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.l-main {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0056b3;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.l-sub {
    font-size: 0.85rem;
    font-weight: 600;
    color: #636e72;
    letter-spacing: 3px;
    text-transform: uppercase;
}
