/* =========================================
   About Page - Professional Layout
   ========================================= */

/* Hero Section */
.about-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Our Story - Split Design */
.our-story {
    padding: 80px 0;
    background: white;
}

.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.story-content h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 25px;
    line-height: 1.2;
}

.story-content h2 span {
    color: #8c00ff;
    display: block;
    /* Break line for emphasis */
}

.story-content p {
    color: #64748b;
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.story-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.story-image:hover img {
    transform: scale(1.02);
}

/* 
   SCALABLE TEAM GRID 
   - Uses auto-fit to handle any number of members 
   - Cards stay uniform size
*/
.our-team {
    padding: 80px 0;
    background: #f8fafc;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    justify-content: center;
    /* Center the single card */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Member Card - Premium Dark Overlay Layout */
.team-member {
    background: #0f172a;
    /* Dark Navy/Black Theme */
    border-radius: 12px;
    /* Smoother radius like reference */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Subtle border */

    /* Layout */
    position: relative;
    height: 400px;
    /* Poster Shape */
}

.team-member:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* LinkedIn Icon (Top Right) */
.member-social.top-right {
    position: absolute;
    top: 3px;
    right: 11px;
    z-index: 60;
    color: white;
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s;
    opacity: 0.9;
}

.member-social.top-right:hover {
    transform: scale(1.1);
    opacity: 1;
}

.member-image {
    width: 100%;
    height: 100%;
    /* Fill entire card */
    margin: 0;
    padding: 0;
    background: #1e293b;
    /* Match dark theme if image loads slow */
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

/* 
   NEW OVERLAY DETAILS (Fresh Class)
   - Replaces .member-info to avoid conflicts
*/
.overlay-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    right: 0;
    margin: 0;
    padding: 80px 20px 25px;
    /* Gradient breathing room */
    box-sizing: border-box;

    /* Greyish Faded Gradient (Neutral) */
    background: linear-gradient(to top, rgba(10, 10, 10, 1) 0%, rgba(20, 20, 20, 0.9) 30%, rgba(30, 30, 30, 0) 100%);
    z-index: 999;
    text-align: center;
}

.overlay-details h3 {
    position: relative;
    z-index: 1000;
    margin: 0 0 5px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.overlay-details .role-title {
    position: relative;
    z-index: 1000;
    color: #94a3b8;
    /* Slate-400 */
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Values Section */
.our-values {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto 0;
}

.value-card {
    padding: 30px;
    border-radius: 16px;
    background: #f8fafc;
    transition: 0.3s;
}

.value-card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.value-icon {
    font-size: 2.5rem;
    color: #8c00ff;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .story-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

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