/*
 * IMPORTANT: For editing rules and coding guidelines, see AI_documents/Rules/Rules_for_the_AI.txt
 * For project overview and details, see AI_documents/Project_Overview_Doc.txt
 * 
 * Production Directory: http://ainspire.ai/css/team_page.css
 * Development Directory: http://localhost:8000/css/team_page.css
 * 
 * Used in team page template 
 * /templates/team_page.php
 */ 

/* Team Page Specific Styles */

.team-main {
    position: relative;
    background: #000;
    color: #fff;
}

/* Hero Section */
.team-hero {
    position: relative;
    min-height: 40vh;
    border-bottom: 0.2px solid #3b82f67d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgb(59 130 246 / 43%) 0%, rgb(30 64 175 / 8%) 30%, rgb(37 99 235 / 5%) 60%, rgb(247 247 247 / 3%) 100%);
    overflow: hidden;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.team-hero-content {
    margin-top:40px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 40px;
}

.team-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.team-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Department Navigation */
.team-nav-container {
    text-align: center;
}

.team-nav-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.team-nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.team-nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.team-nav-link:hover,
.team-nav-link.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.team-nav-text {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Department Sections */
.team-department {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.team-department:last-child {
    border-bottom: none;
}

.team-department-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.team-department-header {
    margin-bottom: 3rem;
    text-align: left;
}

.team-department-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.team-department-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Team Grids */
.team-grid {
    display: grid;
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Leadership grid - 3 columns on desktop */
.team-grid-leadership {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Standard grid - 4 columns on desktop */
.team-grid-standard {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Team Member Cards */
.team-member-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.team-member-card:hover::before,
.team-member-card.hovered::before {
    opacity: 1;
}

.team-member-card:hover,
.team-member-card.hovered {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

/* Member Photo */
.team-member-photo {
    margin-bottom: 1.5rem;
}

.team-member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto;
    background-size: 110%;
    background-position: center;
    background-repeat: no-repeat;
    border: 4px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member-card:hover .team-member-image,
.team-member-card.hovered .team-member-image {
    border-color: rgba(59, 130, 246, 0.6);
    transform: scale(1.05);
}

.team-member-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; 
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

/* Member Info */
.team-member-info {
    position: relative;
    z-index: 2;
}

.team-member-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.team-member-title {
    font-size: 1rem;
    color: rgba(59, 130, 246, 0.9);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact Buttons */
.team-member-contact {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.team-contact-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.email-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: rgba(59, 130, 246, 0.3);
}

.email-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.linkedin-btn {
    background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
    color: white;
    border-color: rgba(10, 102, 194, 0.3);
}

.linkedin-btn:hover {
    background: linear-gradient(135deg, #004182 0%, #003366 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(10, 102, 194, 0.3);
}

/* Member Description */
.team-member-description {
    margin-bottom: 1.5rem;
    text-align: left;
}

.team-member-desc-line {
    font-size: 1.0rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.team-member-desc-line:last-child {
    margin-bottom: 0;
}

/* Specializations */
.team-member-specializations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.specialization-tag {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.team-member-card:hover .specialization-tag,
.team-member-card.hovered .specialization-tag {
    background: rgba(59, 130, 246, 0.3);
    color: #fff;
    border-color: rgba(59, 130, 246, 0.5);
}

/* No Data Fallback */
.team-no-data {
    padding: 4rem 0;
    text-align: center;
}

.team-no-data h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.team-no-data p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1199px) {
    .team-department-container {
        padding: 0 30px;
    }
    
    .team-grid-leadership {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .team-grid-standard {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .team-hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .team-department-container {
        padding: 0 20px;
    }
    
    .team-hero-content {
        padding: 0 20px;
    }
    
    .team-hero-title {
        font-size: 2.5rem;
    }
    
    .team-hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    /* Stack navigation vertically on mobile */
    .team-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .team-nav-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Department header stacked on mobile */
    .team-department-header {
        text-align: center;
    }
    
    .team-department-title {
        font-size: 2rem;
    }
    
    /* Single column on mobile */
    .team-grid-leadership,
    .team-grid-standard {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-member-card {
        padding: 1.5rem;
    }
    
    .team-member-image {
        width: 120px;
        height: 120px;
    }
    
    .team-member-placeholder {
        font-size: 1.5rem;
    }

    .team-member-contact {
        flex-direction: column;
        gap: 0.6rem;
    }

    .team-contact-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .team-department {
        padding: 3rem 0;
    }
    
    .team-department-container {
        padding: 0 15px;
    }
    
    .team-hero-title {
        font-size: 2rem;
    }
    
    .team-department-title {
        font-size: 1.8rem;
    }
    
    .team-member-card {
        padding: 1.25rem;
    }
    
    .team-member-image {
        width: 100px;
        height: 100px;
    }
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-member-card {
    animation: fadeInUp 0.6s ease forwards;
}

.team-member-card:nth-child(1) { animation-delay: 0.1s; }
.team-member-card:nth-child(2) { animation-delay: 0.2s; }
.team-member-card:nth-child(3) { animation-delay: 0.3s; }
.team-member-card:nth-child(4) { animation-delay: 0.4s; }

/* Vision & Philosophy Section */
.team-vision-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.03) 100%);
    border-bottom: 0.2px solid #3b82f67d;
}

.team-vision-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.team-vision-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Value Propositions */
.value-propositions {
    margin-bottom: 4rem;
}

.team-vision-title + .value-propositions {
    margin-top: 2rem;
}

.value-propositions + .team-vision-title {
    margin-top: 2rem;
}

.value-prop-row {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-bottom: 2rem;
}

.value-prop-row:last-child {
    margin-bottom: 0;
}

.value-prop {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, rgb(13 34 56 / 0%) 0%, rgb(23 60 123 / 34%) 30%, rgb(27 58 110 / 0%) 100%);
    padding: 1.5rem 3rem;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(20px);
    flex: 1;
    max-width: 350px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(59, 130, 246, 0.1);
}

.value-prop:hover {
    transform: translateY(-1px);
        background: linear-gradient(135deg, rgba(18, 36, 66, 0.98) 0%, rgb(30 64 175 / 93%) 30%, rgb(18 29 52 / 88%) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    color: #dbeafe;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(59, 130, 246, 0.2);
}

.team-vision-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-vision-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.team-vision-paragraph {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-vision-section {
        padding: 4rem 0;
    }

    .team-vision-container {
        padding: 0 1.5rem;
    }

    .team-vision-title {
        font-size: 2.2rem;
    }

    .team-vision-paragraph {
        font-size: 1.1rem;
        padding: 1.75rem;
    }

    .value-prop {
        font-size: 1.6rem;
        padding: 1.2rem 2rem;
        max-width: 300px;
    }

    .value-prop-row {
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .team-vision-section {
        padding: 3rem 0;
    }

    .team-vision-container {
        padding: 0 1rem;
    }

    .team-vision-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .team-vision-text {
        gap: 1.5rem;
    }

    .team-vision-paragraph {
        font-size: 1rem;
        line-height: 1.7;
        padding: 1.5rem;
        text-align: center;
    }

    .value-prop {
        font-size: 1.4rem;
        padding: 1rem 1.5rem;
        max-width: 250px;
    }

    .value-prop-row {
        gap: 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .value-prop-row .value-prop {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
        height: 80px;
        padding: 20px;
        font-size: 17px;
        text-align: center;
    
    }

    .value-propositions {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .team-vision-section {
        padding: 2.5rem 0;
    }

    .team-vision-title {
        font-size: 1.8rem;
    }

    .team-vision-paragraph {
        font-size: 0.95rem;
        padding: 1.25rem;
    }

    .value-prop {
        font-size: 1.2rem;
        padding: 0.8rem 1.2rem;
        max-width: 200px;
    }
}