/* 
 * About Us Modern CSS
 * Custom styling for the About Us section of the charity website
 */

/* Base Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Animation Classes */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__fadeInLeft {
    animation-name: fadeInLeft;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

.animate__delay-1s {
    animation-delay: 0.3s;
}

.animate__delay-2s {
    animation-delay: 0.6s;
}

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

/* Timeline Styles */
.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--bs-primary), var(--bs-info));
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-marker {
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px rgba(255,255,255,1);
    z-index: 1;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
}

.timeline-compact {
    position: relative;
    padding-left: 15px;
}

/* Card and Image Styles */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.object-cover {
    object-fit: cover;
}

/* Values Cards */
.card.hover-lift {
    overflow: hidden;
    border-radius: 0.5rem;
}

.card.hover-lift::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card.hover-lift:hover::before {
    transform: scaleX(1);
}

/* Team Member Cards */
.card-img-top {
    transition: transform 0.5s ease;
}

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

/* Special Badge Styles */
.badge.bg-primary-subtle {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

.badge.bg-info-subtle {
    background-color: rgba(var(--bs-info-rgb), 0.1);
    color: var(--bs-info);
}

.badge.bg-success-subtle {
    background-color: rgba(var(--bs-success-rgb), 0.1);
    color: var(--bs-success);
}

.badge.bg-warning-subtle {
    background-color: rgba(var(--bs-warning-rgb), 0.1);
    color: var(--bs-warning);
}

/* Special Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--bs-primary), #4361ee);
}

/* Media Queries for Responsive Timeline */
@media (max-width: 767.98px) {
    .timeline-line {
        left: 30px !important;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 30px;
        margin-left: -30px;
        position: absolute !important;
        top: 10px;
    }
    
    .timeline-item.flex-row-reverse {
        flex-direction: row !important;
    }
    
    .timeline-item .text-end {
        text-align: left !important;
    }
}

/* Progressive Reveal on Scroll */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Parallax Elements */
.parallax {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

/* Special Utility Classes */
.rounded-lg {
    border-radius: 0.75rem !important;
}

.rounded-xl {
    border-radius: 1rem !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.opacity-90 {
    opacity: 0.9 !important;
}

/* Custom Border and Shadow Effects */
.border-light {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.shadow-sharp {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}
