/* Masters of Consulting - UI Animations */
/* Non-intrusive animations that enhance without breaking existing styles */

/* ============================================
   SCROLL REVEAL ANIMATIONS (Opt-in only)
   ============================================ */

/* Initial hidden state for scroll animations */
.moc-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.moc-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in from left */
.moc-fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.moc-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.moc-fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.moc-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up animation */
.moc-scale-up {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* ============================================
   GENTLE HOVER EFFECTS
   ============================================ */

/* Card hover - gentle lift (only for specific card classes) */
.tm-content-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tm-content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Team member hover effect */
.tm-team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tm-team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */

/* Smooth transitions for interactive elements */
a {
    transition: color 0.3s ease;
}

/* Image smooth transitions */
.tm-team-member img,
.tm-content-box img {
    transition: transform 0.4s ease;
}

.tm-team-member:hover img {
    transform: scale(1.02);
}

/* ============================================
   ICON ANIMATIONS
   ============================================ */

/* Social icon hover colors */
.fa-facebook:hover { color: #1877f2 !important; }
.fa-twitter:hover { color: #1da1f2 !important; }
.fa-linkedin:hover, .fa-linkedin-in:hover { color: #0a66c2 !important; }
.fa-instagram:hover { color: #e4405f !important; }
.fa-youtube:hover { color: #ff0000 !important; }
.fa-github:hover { color: #333 !important; }

/* Social icons transition */
.tm-social-icon a {
    transition: transform 0.3s ease, color 0.3s ease;
}

.tm-social-icon a:hover {
    transform: translateY(-3px);
}

/* ============================================
   SECTION ENHANCEMENTS
   ============================================ */

/* Section fade in on load */
.tm-section {
    animation: sectionFadeIn 0.8s ease-out;
}

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

/* Staggered animation for children */
.tm-section:nth-child(1) { animation-delay: 0s; }
.tm-section:nth-child(2) { animation-delay: 0.1s; }
.tm-section:nth-child(3) { animation-delay: 0.2s; }
.tm-section:nth-child(4) { animation-delay: 0.3s; }
.tm-section:nth-child(5) { animation-delay: 0.4s; }

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */

/* Primary buttons hover effect */
.tm-btn-primary,
.tm-btn-secondary {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.tm-btn-primary:hover,
.tm-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FLOATING ANIMATION (Opt-in)
   ============================================ */

.moc-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   PULSE ANIMATION (Opt-in)
   ============================================ */

.moc-pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

/* ============================================
   GRADIENT TEXT (Opt-in)
   ============================================ */

.moc-gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   NAVBAR ENHANCEMENTS
   ============================================ */

/* Smooth navbar background transition on scroll */
.tm-nav {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Nav links hover */
.tm-nav a {
    transition: color 0.3s ease;
}

/* ============================================
   HERO SECTION ENHANCEMENTS
   ============================================ */

/* Hero content entrance animation */
.tm-hero-title {
    animation: heroSlideIn 1s ease-out;
}

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

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */

/* Input focus glow */
.tm-input:focus,
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transition: box-shadow 0.3s ease;
}

/* ============================================
   LOADING SKELETON (Opt-in)
   ============================================ */

.moc-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   PAGE LOAD ANIMATION
   ============================================ */

body {
    animation: pageLoad 0.6s ease-out;
}

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

/* ============================================
   MENTORS PAGE - CARD HOVER EFFECTS ONLY
   ============================================ */

/* Mentor card hover effect - gentle lift */
.card-profile:hover,
.card-plain:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card transition */
.card-profile,
.card-plain {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image hover zoom effect */
.card-profile img:hover,
.card-plain img:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

/* ============================================
   RESPONSIVE & ACCESSIBILITY
   ============================================ */

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smaller hover effects on mobile */
@media (max-width: 768px) {
    .tm-content-box:hover,
    .tm-team-member:hover {
        transform: translateY(-3px);
    }
}
