/* Team Section Base Styles */
.team-section {
    padding: 4rem 0 2rem 0;
    background-color: #ffffff;
    min-height: 100vh;
    overflow: hidden;
}

.team-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6rem;
    padding: 0;
}

.team-titles h3 {
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 1rem;
    color: #ec252e;
    margin: 0 0 0.5rem 0;
}

.team-titles h2 {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: #000000;
    margin: 0;
}

.view-more {
    font-family: var(--font-primary);
    font-weight: bold;
    color: #646363;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: #ec252e;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Desktop view - reorder cards */
@media (min-width: 769px) {
    .team-grid {
        grid-template-areas: 
            "ceo creative tech";
    }
    
    .team-card:nth-child(1) { /* Asia */
        grid-area: creative;
    }
    
    .team-card:nth-child(2) { /* Greg */
        grid-area: ceo;
    }
    
    .team-card:nth-child(3) { /* Aubi */
        grid-area: tech;
    }
}

/* Mobile view - maintain original order */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }
    
    .team-card {
        grid-area: auto;
    }
}

/* Team Card Styles for Home Page */
.team-card {
    position: relative;
    width: 100%;
    height: 620px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    pointer-events: auto;
}

.team-card:nth-child(2),
.team-card:nth-child(3) {
    margin-top: 0;
}

.team-card-image {
    width: 100%;
    height: 590px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    position: relative;
    border: 2px solid #ec252e;
    border-bottom: none;
    margin: 0;
    padding: 0;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    transform: none;
    border-radius: 8px 8px 0 0;
}

.team-card:hover .team-card-image img {
    filter: grayscale(0%);
    transform: none;
}

.team-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 0 0 10px 10px;
    z-index: 2;
    text-align: center;
    border: 2px solid #ec252e;
    border-top: none;
    margin: 0;
}

.team-card-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ec252e;
}

.team-card-name {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 0.5rem;
    display: block;
}

.team-card-position {
    font-family: var(--font-primary);
    font-weight: normal;
    font-size: 1rem;
    color: #646363;
    display: block;
}

.team-member {
    position: relative;
    width: 100%;
    height: 520px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    pointer-events: auto;
}

.team-member:nth-child(2),
.team-member:nth-child(3) {
    margin-top: 0;
}

.member-image {
    width: 100%;
    height: 490px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    position: relative;
    border: 2px solid #ec252e;
    border-bottom: none;
    margin: 0;
    padding: 0;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    transform: none;
    border-radius: 8px 8px 0 0;
}

.team-member:hover .member-image img {
    filter: grayscale(0%);
    transform: none;
}

.member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 0 0 10px 10px;
    z-index: 2;
    text-align: center;
    border: 2px solid #ec252e;
    border-top: none;
    margin: 0;
}

.member-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ec252e;
}

.member-name {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 0.5rem;
    display: block;
}

.member-position {
    font-family: var(--font-primary);
    font-weight: normal;
    font-size: 1rem;
    color: #646363;
    display: block;
}

.member-logo {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.member-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Social Card Styles */
.social-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 490px;
    border-radius: 10px 10px 0 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid #ec252e;
    border-bottom: none;
}

.team-member:hover .social-card {
    opacity: 1;
    pointer-events: auto;
}

.social-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.social-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(236, 37, 46, 0.2);
    backdrop-filter: blur(3px);
    border-radius: 8px 8px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .social-background::before {
    opacity: 0;
}

/* Social Arch Styles */
.social-arch {
    position: absolute;
    bottom: 100px;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 10;
    overflow: visible;
}

.arch-path {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.curve {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 0.8s ease;
    overflow: visible;
}

.team-member:hover .curve {
    stroke-dashoffset: 0;
}

/* Remove static positioning classes as they're now handled by JS */
.social-icon.twitter,
.social-icon.facebook,
.social-icon.linkedin,
.social-icon.instagram {
    left: auto;
    bottom: auto;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .team-section {
        padding: 3rem 0;
        min-height: auto;
    }

    .team-container {
        padding: 0;
    }

    .team-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
        padding: 0 2rem;
    }

    .team-titles h2 {
        font-size: 2.5rem;
    }

    .team-grid {
        display: block;
        position: relative;
        height: 520px;
        margin: 0;
        overflow: hidden;
    }

    .team-card {
        position: absolute;
        width: 300px;
        height: 480px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.5s ease;
        will-change: transform, opacity;
    }

    .team-card-image {
        width: 100%;
        height: 490px;
        border-radius: 10px 10px 0 0;
        margin: 0;
        padding: 0;
        position: relative;
        overflow: hidden;
    }

    .team-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px 10px 0 0;
        filter: grayscale(100%);
        transition: filter 0.3s ease;
        position: relative;
        z-index: 1;
    }

    .team-card:hover .team-card-image img {
        filter: grayscale(0%);
    }

    .team-card-info {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem;
        background: #ffffff;
        border-radius: 0 0 10px 10px;
        z-index: 2;
        text-align: center;
        border: 2px solid #ec252e;
        border-top: none;
        margin: 0;
        height: 100px;
    }

    .team-card-name {
        font-size: 1.2rem;
        margin-top: 0.5rem;
    }

    .team-card-position {
        font-size: 0.9rem;
    }

    /* Navigation Arrows */
    .team-arrows {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        z-index: 10;
        padding: 0 1rem;
        pointer-events: none;
    }

    .team-arrow {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(236, 37, 46, 0.9);
        border: none;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.3s ease;
        pointer-events: auto;
    }

    .team-arrow:hover {
        background: #ec252e;
    }

    .team-arrow i {
        font-size: 1.2rem;
    }

    /* Navigation Dots */
    .team-nav {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
        position: relative;
        z-index: 10;
    }

    .team-nav button {
        width: 2.5rem;
        height: 3px;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .team-nav button.active {
        background: #ec252e;
    }

    /* Social Card Styles */
    .social-card {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 380px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 0;
    }

    .team-card:hover .social-card {
        opacity: 0;
        pointer-events: none;
    }

    .social-background {
        height: 380px;
        opacity: 0;
    }

    .social-background::before {
        opacity: 0;
    }

    .team-card:hover .social-background::before {
        opacity: 0;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .team-member {
        width: 280px;
        height: 450px;
    }

    .member-image {
        height: 350px;
    }

    .social-card,
    .social-background {
        height: 350px;
    }

    .team-arrow {
        width: 35px;
        height: 35px;
    }

    .team-arrow i {
        font-size: 1rem;
    }

    .team-titles h2 {
        font-size: 2rem;
    }
}

/* Hide mobile navigation on desktop */
@media (min-width: 769px) {
    .team-arrows,
    .team-nav {
        display: none;
    }
}

.team-section h2 {
    font-family: var(--font-primary);
    font-weight: 900;
}

.team-member h3 {
    font-family: var(--font-primary);
    font-weight: bold;
}

.team-member p {
    font-family: var(--font-primary);
    font-weight: normal;
}

.team-page {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.team-hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    margin-bottom: 40px;
}

.team-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
}

.team-hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.team-members {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-member-detail {
    display: grid;
    grid-template-columns: 400px 1fr;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
    min-height: 600px;
    border: 2px solid #ec252e;
}

.member-image {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border-right: 2px solid #ec252e;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-member-detail:hover .member-image img {
    filter: grayscale(0%);
}

.member-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
    font-family: var(--font-primary);
}

.position {
    display: block;
    font-size: 1.2rem;
    color: #ec252e;
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
}

.description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.member-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.linkedin {
    background-color: #0077b5;
}

.social-icon.twitter {
    background-color: #1da1f2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

@media (max-width: 992px) {
    .team-member-detail {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .member-image {
        height: 500px;
        min-height: auto;
        border-right: none;
        border-bottom: 2px solid #ec252e;
    }

    .member-content {
        padding: 30px;
    }

    .member-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .team-hero h1 {
        font-size: 2.5rem;
    }

    .team-member-detail {
        margin-bottom: 40px;
    }

    .member-image {
        height: 450px;
    }

    .member-content {
        padding: 25px;
    }

    .member-content h2 {
        font-size: 1.8rem;
    }

    .position {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .member-image {
        height: 400px;
    }
}

