/* Meet the Team - Unique Styling */

body {
    background: var(--bg);
    color: var(--words);
    overflow-x: hidden;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* Sections */

/* Featured Leader */

.card-hover-indicator {
    margin-top: auto;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent);
}

.team-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .team-contact a {
        color: var(--accent);
        text-decoration: none;
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
        background: rgba(0, 212, 255, 0.1);
        border-radius: 15px;
        transition: background 0.3s ease;
    }

        .team-contact a:hover {
            background: rgba(0, 212, 255, 0.2);
        }

/* --- Card Interactive Hover Effects --- */
.featured-card, .grid-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease !important;
    will-change: transform, box-shadow;
}

    .featured-card:hover, .grid-card:hover {
        transform: translateY(-4px); /* Clean, professional lift distance */
        box-shadow: 0 12px 24px rgba(0, 212, 255, 0.15); /* Soft, contextual cyan glow aura */
        opacity: 0.95;
    }

/* Values Section */

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.value-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--words);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-item p {
    color: var(--words-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-leader {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .leader-content h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .team-card {
        height: 350px;
    }

    .card-front, .card-back {
        padding: 1.5rem;
    }

    .team-image {
        width: 100px;
        height: 100px;
    }

    .featured-leader {
        padding: 1.5rem;
    }
}

/* --- Global Featured Card Styles --- */
.featured-card {
    /* Always injects the extra spacing gap across all display environments */
    margin-bottom: 16px !important;
}

/* --- Mobile Layout Adjustments for Team Cards --- */
@media (max-width: 768px) {
    /* Changes the layout block direction from side-by-side to a vertical stack */
    .featured-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 28px !important;
    }

    /* Prevents the image frame container from locking to a rigid horizontal width */
    .featured-image-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 16px;
    }

    /* Clean structural width adjustment for the image asset itself */
    .featured-card-image {
        width: 100% !important;
        height: auto !important;
        max-width: 320px;
    }
}
