/* -------------------
   Global Styles
-------------------- */

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

body {
    font-family: "Source Sans 3", sans-serif;
    background-color: #edf0e5;
    color: #2c2c2c;
    line-height: 1.6;
}

/* Team Page Layout */

.team-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* -------------------
   Header Section
-------------------- */

.team-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 68px auto;
    padding: 0 16px;
}

.header-container {
    padding: 0;
}

.team-header h1 {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 2.9rem;
    font-weight: 700;
    color: #1a3a29;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.team-header h1 span {
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 4px solid rgba(108, 179, 135, 0.75);
}

.team-header p {
    font-size: 1.06rem;
    color: #3f5147;
    line-height: 1.75;
}

.lead-line {
    font-size: 1.08rem;
    color: #3a5145;
    margin-bottom: 18px;
}

.team-vibes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.vibe-chip {
    font-size: 0.85rem;
    background-color: rgba(108, 179, 135, 0.18);
    color: #1f3d2b;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(31, 61, 43, 0.12);
}

/* -------------------
   Team Grid
-------------------- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 40px;
}

/* -------------------
   Team Card
-------------------- */

.team-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, rgba(244, 250, 246, 0.96) 100%);
    border-radius: 22px;
    padding: 48px 36px;
    box-shadow: 0 14px 32px rgba(36, 61, 48, 0.08);
    border: 1px solid rgba(47, 106, 81, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(115deg, rgba(47, 106, 81, 0.75), rgba(108, 179, 135, 0.7));
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(36, 61, 48, 0.1);
}

/* Avatar */
.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(170, 237, 197, 0.65), rgba(48, 94, 70, 0.35));
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 5px;
}

.avatar img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.avatar.has-photo img {
    display: block;
}

.avatar:not(.has-photo)::after {
    content: attr(data-initial);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f3d2b;
    letter-spacing: 0.02em;
}

/* Texts*/
.team-card h3 {
    font-size: 1.22rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f3d2b;
}

.role {
    display: block;
    font-size: 0.92rem;
    color: #4d8a69;
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

.team-card p {
    font-size: 0.95rem;
    color: #455247;
    margin-bottom: 14px;
    line-height: 1.7;
}

.persona-highlights {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 6px;
}

.persona-highlights li {
    font-size: 0.9rem;
    color: #2f4f3d;
    background-color: rgba(214, 235, 222, 0.65);
    border-radius: 12px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.persona-highlights li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(47, 106, 81, 0.9), rgba(108, 179, 135, 0.9));
    flex-shrink: 0;
}

/* -------------------
   Responsive Tweaks
-------------------- */

@media (max-width: 600px) {
    .team-header h1 {
        font-size: 2rem;
    }

    .team-page {
        padding: 40px 16px;
    }

    .team-vibes {
        justify-content: flex-start;
    }
}



/* Navigation */
.page-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: linear-gradient(135deg, rgba(37, 82, 59, 0.95), rgba(108, 179, 135, 0.9));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
}

.page-nav .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.85rem 2rem 0.85rem 0;
    padding-left: 2rem;
}

.page-nav .brand {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #f5f9f4;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-align: left;
}

.page-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.page-nav a {
    color: #eef6f1;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.page-nav a:hover,
.page-nav a:focus-visible {
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.page-nav a.about {
    background-color: rgba(192, 150, 79, 0.35);
    color: #ffffff;
}

.page-nav a.active {
    background-color: rgba(192, 150, 79, 0.5);
    color: #ffffff;
}

.page-nav a.simulation {
    background-color: rgba(192, 150, 79, 0.35);
    color: #ffffff;
}

.page-nav .brand {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #f5f9f4;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-align: left;
}

@media (max-width: 720px) {
    .page-nav .nav-inner {
        flex-direction: column;
        gap: 0.75rem;
    }
}