/* ===== TEAM SECTION ===== */
.team {
    padding-top:20px;
    padding-bottom:60px;
    background-color: var(--dark-bg);
}

.team.animated {
    opacity: 1;
    transform: translateY(0);
}

.team-grid-wrapper {
    overflow: visible;
    display: flex;
    justify-content: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    animation: none;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(147, 51, 234, 0.15);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

[data-theme="light"] .team-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(147, 51, 234, 0.2);
}

.team-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-8px);
    background: rgba(147, 51, 234, 0.06);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.15);
}

[data-theme="light"] .team-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 1);
}

/* Team Image Wrapper */
/* Team Image Wrapper */
.team-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.08), rgba(168, 85, 247, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.team-card:hover .team-image {
    transform: scale(1.08);
}

/*!* Tablet *!*/
/*@media (max-width: 1024px) {*/
/*    .team-image-wrapper {*/
/*        height: 280px;*/
/*    }*/
/*}*/

/*!* Mobile *!*/
/*@media (max-width: 768px) {*/
/*    .team-image-wrapper {*/
/*        height: 220px;*/
/*    }*/
/*}*/

/*!* Small Mobile *!*/
/*@media (max-width: 480px) {*/
/*    .team-image-wrapper {*/
/*        height: 240px;*/
/*    }*/
/*}*/

/* Team Card Content */
.team-card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.team-role {
    color: var(--primary-purple);
    font-size: 0.9rem;
    margin: 0 0 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.team-email {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 0 1.2rem;
    word-break: break-all;
}

/* Team Links */
.team-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: auto;
}

.team-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(147, 51, 234, 0.08);
    border: 1px solid rgba(147, 51, 234, 0.2);
    transition: all 0.3s ease;
    color: var(--primary-purple);
    text-decoration: none;
    position: relative;
}

.team-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.team-link:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.25);
}

.team-link:hover svg {
    transform: scale(1.15);
}

.github-link svg {
    fill: currentColor;
}

.linkedin-link svg {
    fill: currentColor;
}

/* ===== RESPONSIVE DESIGN ===== */

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

    .team-image-wrapper {
        height: 280px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .team {
        padding: 80px 0;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 100%;
        padding: 0 15px;
    }

    .team-card {
        border-radius: 12px;
    }

    .team-image-wrapper {
        height: 220px;
    }

    .team-card h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .team-role {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }

    .team-email {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .team-card-content {
        padding: 1.2rem;
    }

    .team-links {
        gap: 10px;
    }

    .team-link {
        width: 36px;
        height: 36px;
    }

    .team-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .team {
        padding: 60px 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 12px;
    }

    .team-image-wrapper {
        height: 240px;
    }

    .team-card h3 {
        font-size: 1rem;
    }

    .team-card-content {
        padding: 1rem;
    }
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.title-word {
    font-family: "syne", sans-serif;
    font-weight: 800;
    font-style: normal;
    display: inline-block;
    margin: 0 0.5rem;
    opacity: 0;
    animation: slide-up 0.6s ease forwards;
}

.accent-line {
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-lighter));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-word:nth-child(1) {
    animation-delay: 0.2s;
}

.title-word:nth-child(2) {
    animation-delay: 0.4s;
}

.title-word:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.back-btn button {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.back-btn button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.back-btn button span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn button img {
    width: 20px;
    height: 20px;
    display: block;
}

.back-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateX(-3px) scale(1.05);
}

[data-theme="dark"] .back-btn-icon {
    filter: invert(1);
}