/* ======= Page Base ======= */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fc;
    margin: 0;
    padding: 80px 0 0 0;
    color: #1a1a2e;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ======= Navigation Override ======= */
nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.8rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(43, 78, 135, 0.1);
    min-height: 70px;
    display: flex;
    align-items: center;
}

/* ======= Header Section ======= */
header {
    background: linear-gradient(135deg, #2b4e87 0%, #77c7b5 50%, #f4c632 100%);
    color: white;
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(119, 199, 181, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(244, 198, 50, 0.15) 0%, transparent 50%);
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}

header .container {
    max-width: 900px;
    margin: auto;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}

header p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    max-width: 750px;
    margin: 0 auto;
}

/* ======= Team Section ======= */
.team-section {
    padding: 100px 5%;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
}

.team-section .container {
    max-width: 1200px;
    margin: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.team-member {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 1px solid rgba(43, 78, 135, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2b4e87 0%, #77c7b5 100%);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(43, 78, 135, 0.15);
    border-color: rgba(43, 78, 135, 0.3);
}

/* Member Image Styles */
.member-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2b4e87 0%, #77c7b5 100%);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(43, 78, 135, 0.9) 0%, rgba(119, 199, 181, 0.9) 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

/* If you want to use actual images instead of placeholders */
.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

/* Member Info Styles */
.member-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(43, 78, 135, 0.1);
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.member-title {
    font-size: 0.95rem;
    color: #2b4e87;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(43, 78, 135, 0.1) 0%, rgba(119, 199, 181, 0.1) 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.member-experience {
    font-size: 0.95rem;
    color: #2b4e87;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, rgba(244, 198, 50, 0.1) 0%, rgba(119, 199, 181, 0.1) 100%);
    border-radius: 12px;
    border-left: 4px solid #f4c632;
}

.member-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-details li {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.member-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #2b4e87;
    font-weight: bold;
}

.member-details li:hover {
    color: #2b4e87;
    padding-left: 1.8rem;
    transition: all 0.3s ease;
}

/* ======= Industry Expertise Section ======= */
.industries-section {
    background: white;
    padding: 80px 5%;
    border-top: 1px solid rgba(43, 78, 135, 0.1);
}

.industries-section .container {
    max-width: 1000px;
    margin: auto;
}

.industries-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a1a2e;
    font-weight: 800;
    margin-bottom: 3rem;
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.industry-tag {
    background: linear-gradient(135deg, rgba(43, 78, 135, 0.1) 0%, rgba(119, 199, 181, 0.1) 100%);
    color: #2b4e87;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 1px solid rgba(43, 78, 135, 0.1);
}

.industry-tag:hover {
    background: linear-gradient(135deg, #2b4e87 0%, #77c7b5 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(43, 78, 135, 0.3);
}

/* ======= Footer ======= */
footer {
    background: #0d1321;
    color: white;
    padding: 80px 5% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    max-width: 1400px;
    margin: auto;
}

.footer-section h3 {
    color: #77c7b5;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-section p, 
.footer-section li a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a:hover {
    color: #77c7b5;
}

.footer-bottom {
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 1rem;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-legal {
    margin-top: 1rem;
}

.footer-legal a:hover {
    color: #77c7b5;
}

/* ======= Responsive Design ======= */

/* Tablets & Small Laptops */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    header h1 {
        font-size: 2.8rem;
    }
    
    header p {
        font-size: 1.1rem;
    }
    
    .member-image {
        height: 200px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    body {
        padding-top: 60px;
    }
    
    nav {
        min-height: 60px;
        padding: 0.6rem 5%;
    }

    header {
        padding: 80px 20px 60px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    header p {
        font-size: 1rem;
    }

    .team-section {
        padding: 60px 5%;
    }

    .team-member {
        padding: 0;
    }
    
    .member-info {
        padding: 1.5rem;
    }
    
    .member-image {
        height: 180px;
    }

    .industries-section {
        padding: 60px 5%;
    }

    .industries-section h2 {
        font-size: 2rem;
    }

    .industry-tag {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .member-name {
        font-size: 1.3rem;
    }
    
    .member-details li {
        font-size: 0.9rem;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .team-section .container,
    .industries-section .container {
        max-width: 1300px;
    }
    
    .member-image {
        height: 240px;
    }
}


/* Alternative: Better control for different image orientations */
.member-image {
    height: 400px;
    position: relative;
    overflow: hidden;
    background: #f8f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* More padding */
}

.member-image img {
    max-width: 90%; /* Leave 10% space on sides */
    max-height: 90%; /* Leave 10% space on top/bottom */
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}