/* ===================================
   About Us - Modern Animations
   ================================ */

/* Modern cubic-bezier timing for smooth professional animations */
.about-us-container * {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Stagger Fade-In Animations for Team Cards
   ================================ */

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

/* Apply animation to team member cards with stagger effect */
.team-member-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Stagger delays for each card - Row 1 (Directors) */
.about-us-container .row:nth-of-type(6) .team-member-card:nth-child(1) { animation-delay: 0.1s; }
.about-us-container .row:nth-of-type(6) .team-member-card:nth-child(2) { animation-delay: 0.2s; }

/* Stagger delays for each card - Row 2 (Coordinators) */
.about-us-container .row:nth-of-type(7) .team-member-card:nth-child(1) { animation-delay: 0.3s; }
.about-us-container .row:nth-of-type(7) .team-member-card:nth-child(2) { animation-delay: 0.4s; }

/* Stagger delays for each card - Row 3 (Backoffice) */
.about-us-container .row:nth-of-type(8) .team-member-card:nth-child(1) { animation-delay: 0.5s; }
.about-us-container .row:nth-of-type(8) .team-member-card:nth-child(2) { animation-delay: 0.6s; }
.about-us-container .row:nth-of-type(8) .team-member-card:nth-child(3) { animation-delay: 0.7s; }

/* Stagger delays for each card - Row 4 (Logistics) */
.about-us-container .row:nth-of-type(9) .team-member-card:nth-child(1) { animation-delay: 0.8s; }
.about-us-container .row:nth-of-type(9) .team-member-card:nth-child(2) { animation-delay: 0.9s; }

/* ===================================
   Shimmer Effect for Team Member Icons
   ================================ */

.team-member-icon {
    position: relative;
    overflow: hidden;
}

/* Shimmer overlay pseudo-element */
.team-member-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    transform: rotate(45deg);
    opacity: 0;
}

/* Trigger shimmer on card hover */
.team-member-card:hover .team-member-icon::before {
    animation: shimmer 0.8s ease-out;
}

@keyframes shimmer {
    0% { 
        left: -50%; 
        opacity: 0; 
    }
    50% { 
        opacity: 1; 
    }
    100% { 
        left: 150%; 
        opacity: 0; 
    }
}

/* ===================================
   Enhanced Hover States for Team Cards
   ================================ */

.team-member-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(24, 53, 68, 0.18);
}

.team-member-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card:hover .team-member-icon {
    transform: scale(1.08);
}

/* ===================================
   Icon Color Transitions
   ================================ */

.team-member-icon i {
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Section Fade-In Animation
   ================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.about-us-container > .row {
    animation: fadeIn 0.8s ease-out;
}

/* ===================================
   Card Hover Animations for all sections
   ================================ */

.about-us-container .card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-us-container .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(24, 53, 68, 0.16);
}

/* ===================================
   Button Ripple Effect
   ================================ */

.about-us-container .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-us-container .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.about-us-container .btn:hover::before {
    width: 300px;
    height: 300px;
}

.about-us-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 53, 68, 0.2);
}

/* ===================================
   Smooth Image Loading
   ================================ */

.about-us-container img {
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-us-container img:hover {
    transform: scale(1.05);
}

/* ===================================
   Responsive Adjustments
   ================================ */

@media (max-width: 768px) {
    /* Reduce animation delays on mobile for faster appearance */
    .team-member-card {
        animation-duration: 0.4s;
    }
    
    .about-us-container .row:nth-of-type(6) .team-member-card:nth-child(1) { animation-delay: 0.05s; }
    .about-us-container .row:nth-of-type(6) .team-member-card:nth-child(2) { animation-delay: 0.1s; }
    .about-us-container .row:nth-of-type(7) .team-member-card:nth-child(1) { animation-delay: 0.15s; }
    .about-us-container .row:nth-of-type(7) .team-member-card:nth-child(2) { animation-delay: 0.2s; }
    .about-us-container .row:nth-of-type(8) .team-member-card:nth-child(1) { animation-delay: 0.25s; }
    .about-us-container .row:nth-of-type(8) .team-member-card:nth-child(2) { animation-delay: 0.3s; }
    .about-us-container .row:nth-of-type(8) .team-member-card:nth-child(3) { animation-delay: 0.35s; }
    .about-us-container .row:nth-of-type(9) .team-member-card:nth-child(1) { animation-delay: 0.4s; }
    .about-us-container .row:nth-of-type(9) .team-member-card:nth-child(2) { animation-delay: 0.45s; }
    
    /* Reduce hover effects on touch devices */
    .team-member-card:hover {
        transform: translateY(-2px);
    }
}

/* ===================================
   Prefers Reduced Motion Support
   ================================ */

@media (prefers-reduced-motion: reduce) {
    .about-us-container *,
    .team-member-card,
    .team-member-icon,
    .about-us-container .card,
    .about-us-container .btn,
    .about-us-container img {
        animation: none !important;
        transition: none !important;
    }
}
