* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding-top: 80px; /* Account for fixed nav */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 60px 0;
    text-align: center;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F63F8C, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.header .subtitle {
    color: #2DD4BF;
    font-size: 1.3rem;
    font-weight: 600;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #F63F8C;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #F63F8C;
}

/* Main Content */
.content {
    background: white;
    border-radius: 30px;
    padding: 80px 60px;
    margin: 40px 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.team-intro {
    text-align: center;
    margin-bottom: 80px;
}

.team-intro h2 {
    font-size: 2.5rem;
    color: #F63F8C;
    font-weight: 700;
    margin-bottom: 20px;
}

.team-intro p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Team Grid - Asymmetric Layout for 5 people */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* First row: 2 people */
.team-member:nth-child(1) {
    grid-column: 1 / 2;
}

.team-member:nth-child(2) {
    grid-column: 3 / 4;
}

/* Second row: 3 people */
.team-member:nth-child(3) {
    grid-column: 1 / 2;
}

.team-member:nth-child(4) {
    grid-column: 2 / 3;
}

.team-member:nth-child(5) {
    grid-column: 3 / 4;
}

.team-member {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.4s ease;
}

.team-member:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 3px;
    background: linear-gradient(135deg, #F63F8C, #2DD4BF, #8B5CF6);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.member-photo {
    width: 220px;
    height: 280px;
    border-radius: 15px;
    object-fit: cover;
    margin: 0 auto 30px;
    border: 4px solid rgba(45, 212, 191, 0.2);
    transition: all 0.4s ease;
}

.team-member:hover .member-photo {
    border-color: #2DD4BF;
    transform: scale(1.08);
}

/* Placeholder Photo Styling */
.member-photo-placeholder {
    width: 220px;
    height: 280px;
    border-radius: 15px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #F63F8C15, #2DD4BF15, #8B5CF615);
    border: 4px solid rgba(45, 212, 191, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.member-photo-placeholder::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.member-photo-placeholder::after {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 50%;
    width: 70px;
    height: 45px;
    background: #ddd;
    border-radius: 50px 50px 0 0;
    transform: translateX(-50%);
}

.team-member:hover .member-photo-placeholder {
    border-color: #2DD4BF;
    transform: scale(1.08);
}

.member-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #F63F8C, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.member-role {
    font-size: 1.1rem;
    color: #2DD4BF;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Accent decoration */
.member-accent {
    width: 50px;
    height: 4px;
    background: linear-gradient(135deg, #2DD4BF, #8B5CF6);
    margin: 20px auto 0;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .member-accent {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-member:nth-child(1),
    .team-member:nth-child(2),
    .team-member:nth-child(3),
    .team-member:nth-child(4),
    .team-member:nth-child(5) {
        grid-column: auto;
    }

    .team-member:nth-child(5) {
        grid-column: 1 / 3;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .content {
        padding: 60px 40px;
        margin: 20px 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-member:nth-child(5) {
        grid-column: auto;
        max-width: none;
    }

    .member-photo,
    .member-photo-placeholder {
        width: 180px;
        height: 230px;
    }

    .member-name {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 40px 20px;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
}
