/* About Page - Team Section */

/* Team Section Styles */
.team-section {
    padding: 6rem 0;
    background-color: var(--color-background);
    position: relative;
}

/* Team Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--content-padding);
}

/* Enhanced Team Card Styling */
.team-card {
    background-color: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden; /* For ripple effect */
}

.team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Consistent Team Photo Styling */
.team-photo {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

/* Enhanced Team Info Styling */
.team-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100px;
}

.team-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.team-role {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* Social Links Container */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

/* LinkedIn and GitHub link styling */
.linkedin-link, .github-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(100, 255, 218, 0.15);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.linkedin-link:hover, .github-link:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    transform: translateY(-2px);
}

/* Remove the old team-social section */
.team-social {
    display: none;
}

/* Remove the team-header class since we're not using it anymore */
.team-header {
    display: none;
}

/* Custom positioning for Tom & Oscar's image */
.team-card:nth-child(1) .team-photo img,
.team-card:nth-child(2) .team-photo img {
    object-position: center 30%; /* Shifts the focus point upward */
}

/* Keep Jiah's image as is */
.team-card:nth-child(3) .team-photo img {
    object-position: center center;
}

/* Remove any specific positioning for individual cards */
.team-card:nth-child(1) .social-links,
.team-card:nth-child(2) .social-links {
    position: static;
    margin-top: auto;
}

/* Responsive Adjustments */
@media (max-width: 1400px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 900px;
    }
}

@media (max-width: 992px) {
    .team-section .section-container {
        display: flex !important;
        flex-direction: column !important;
    }

    .team-section .section-header {
        order: -1 !important;
        margin-bottom: 2rem !important;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* Team Modal Styles */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    perspective: 1000px;
}

.team-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-modal.active .modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: auto;
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.7) translateY(100px) rotateX(-10deg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
    transform-origin: center center;
}

.team-modal.active .modal-content {
    transform: scale(1) translateY(0) rotateX(0);
    opacity: 1;
}

/* Add animation classes for closing */
.team-modal.closing {
    opacity: 0;
}

.team-modal.closing .modal-overlay {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
}

.team-modal.closing .modal-content {
    transform: scale(0.95) translateY(-50px) rotateX(5deg);
    opacity: 0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

/* Bio Styles */
.member-bio {
    display: none;
}

.bio-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.bio-photo {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(100, 255, 218, 0.2);
}

.bio-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-title {
    flex: 1;
}

.bio-title h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.bio-role {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.bio-social {
    display: flex;
    gap: 1rem;
}

.bio-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bio-social a:hover {
    background: var(--color-primary);
    color: var(--color-background);
    transform: translateY(-2px);
}

.bio-content {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.bio-content p {
    margin-bottom: 1.5rem;
}

.bio-highlights h4 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.bio-highlights ul {
    list-style: none;
    padding: 0;
}

.bio-highlights li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.bio-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    width: 200px;
    height: 200px;
    margin: -100px;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Adjustments for Modal */
@media (max-width: 768px) {
    .bio-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .bio-photo {
        width: 120px;
        height: 120px;
    }

    .bio-social {
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }

    .modal-body {
        padding: 1.5rem;
    }
} 
