/* Card Animation Library */

/* Base Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Animations */
.slide-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease;
}

.slide-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease;
}

.slide-left.animate,
.slide-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Bounce Animation */
.bounce-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* Flip Animation */
.flip-in {
    opacity: 0;
    transform: rotateY(90deg);
    transition: all 0.6s ease;
}

.flip-in.animate {
    opacity: 1;
    transform: rotateY(0deg);
}

/* Floating Animation */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Running Border Effect */
.running-border {
    position: relative;
    overflow: hidden;
}

.running-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 115, 223, 0.3), transparent);
    animation: runningBorder 2s linear infinite;
    z-index: 1;
}

@keyframes runningBorder {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Pulse Effect */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(78, 115, 223, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(78, 115, 223, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(78, 115, 223, 0);
    }
}

/* Glow Effect */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(78, 115, 223, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(78, 115, 223, 0.8);
    }
}

/* Shake Animation */
.shake:hover {
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Rotate Animation */
.rotate-in {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
    transition: all 0.6s ease;
}

.rotate-in.animate {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Zoom Animation */
.zoom-in {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
}

.zoom-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* 3D Card Effects */
.card-3d {
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

/* Parallax Card Effect */
.parallax-card {
    transition: transform 0.1s ease;
}

/* Morphing Border */
.morph-border {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #4e73df, #e67e22) border-box;
    border-radius: 15px;
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Breathing Animation */
.breathe {
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Slide Up Animation */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.animate {
    opacity: 1;
}

/* Elastic Animation */
.elastic {
    animation: elastic 2s ease-out;
}

@keyframes elastic {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    75% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* About Section Styles */
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4e73df, #e67e22);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: float 3s ease-in-out infinite;
}

.about-badge h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.about-badge p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-content .section-title {
    margin-bottom: 1.5rem;
}

.about-text {
    margin-bottom: 2rem;
}

.read-more-btn {
    color: #4e73df;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #e67e22;
    text-decoration: none;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn.expanded i {
    transform: rotate(180deg);
}

.vision-mission-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.vision-mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.vm-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(78, 115, 223, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.vm-icon i {
    font-size: 1.5rem;
}

.vision-mission-card h5 {
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    color: #4e73df;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-item p {
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Performance optimization */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 