/* --- 1. MISSION SECTION (Serious & Clean) --- */
.mission-section {
    background: white;
    padding: 100px 20px;
    color: var(--black);
}

.mission-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media(min-width: 900px) {
    .mission-container {
        grid-template-columns: 0.8fr 1.2fr; /* Layout: Title Left, Text Right */
        align-items: start;
        gap: 80px;
    }
}

.eyebrow {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary-deep);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.mission-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--color-primary-deep);
}

.purple-divider {
    width: 60px;
    height: 4px;
    background: var(--purple-light);
    margin-top: 20px;
}

.mission-content {
    font-size: 1.1rem;
    line-height: 1.8; /* High readability */
    color: #444;
    font-weight: 400;
    text-align: justify;
}

.mission-text {
    margin-bottom: 20px;
}


/* --- 2. TEAM SECTION (Premium Grid) --- */
.team-section {
    background-color: var(--bg-light); 
    background-image: url('../../assets/backgrounds/Speakup_BG.jpg');
    
    /* Critical Scaling Properties */
    background-repeat: no-repeat;
    background-size: cover; /* Ensures the image fills the section */
    background-position: center center; /* Keeps the focal point central */
    
    /* Optional: Fixed background for a parallax effect */
    background-attachment: fixed;
    padding: 100px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary-deep);
    margin-bottom: 60px;
}

.team-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* --- THE GRIDS --- */
/* Leadership: 2 items centered */
.leadership-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Core Team: 3 items centered */
.core-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}


/* --- CARD DESIGN --- */
.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    width: 300px; /* Standard Width */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* Hover Effect: Lift Up */
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 20, 140, 0.15); /* Purple shadow */
}

/* Image Styling */
.image-wrapper {
    width: 100%;
    height: 320px; /* Tall portrait aspect ratio */
    overflow: hidden;
}

/* --- THE FIX: CINEMATIC LOOK (No B&W) --- */
.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    
    /* instead of grayscale(100%), we use this combination.
       saturate(85%): Slightly calms down the colors so they look uniform.
       contrast(1.1): Makes them look sharper and high-quality.
    */
    filter: saturate(85%) contrast(1.1); 
}

.team-card:hover .team-photo {
    transform: scale(1.05);
    /* Bloom into full natural color on hover */
    filter: saturate(100%) contrast(100%); 
}

/* Text Info */
.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 5px;
}

.role {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary-deep); /* Accent color */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Icon for Founders */
.social-mini {
    margin-top: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.team-card:hover .social-mini {
    opacity: 1;
    transform: translateY(0);
}

.social-mini a {
    color: var(--color-primary-deep);
    font-size: 1.2rem;
}

/* --- SMALLER CARDS FOR CORE TEAM --- */
.small-card {
    width: 260px; /* Slightly smaller width */
}
.small-card .image-wrapper {
    height: 260px; /* Square aspect ratio */
}


/* --- FADE IN ANIMATION --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MOBILE FIX: SHOW LINKEDIN ALWAYS
   ========================================= */

@media (max-width: 1024px) {
    /* On Tablets and Phones, force the icons to show */
    .social-mini {
        opacity: 1 !important;
        transform: translateY(0) !important;
        margin-top: 15px !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Optional: Make the icon slightly larger on mobile for easier tapping */
    .social-mini a {
        font-size: 1.4rem;
        padding: 10px; /* larger touch target */
    }
}


.section-title.fade-in {
    color: var(--brand-lilac);
}


/* iPhone/mobile */
@media (max-width: 991px) {
  .team-section {
    background-attachment: scroll; /* required for iOS quality */
    background-image: none;         
    background-color: var(--brand-lilac); 
  }

  .section-title.fade-in {
    color: var(--color-primary-deep);
  }
}
