/* team.css - Styles specific to the Team page */

/* ----- Hero Section ----- */
.team-hero-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--space-16) 0 var(--space-12);
}

/* ----- Working With Us Section ----- */
.working-with-us-section {
    position: relative;
}

.working-content {
    max-width: 1200px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    background-color: rgba(18, 18, 40, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.value-item:hover {
    background-color: rgba(98, 0, 238, 0.05);
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(98, 0, 238, 0.1);
    border-radius: 50%;
    color: var(--secondary);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.value-item:hover .value-icon {
    background-color: var(--primary);
    color: var(--text-white);
    transform: rotate(10deg);
}

.value-content {
    flex: 1;
}

.value-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
    color: var(--text-white);
}

.value-description {
    color: var(--text-light);
    font-size: var(--text-base);
    margin-bottom: 0;
}

/* ----- Join Our Team Section ----- */
.join-team-section {
    position: relative;
    padding: var(--space-16) 0;
    overflow: hidden;
}

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.cta-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(98, 0, 238, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    color: var(--text-white);
}

.cta-description {
    font-size: var(--text-xl);
    color: var(--text-light);
    margin-bottom: var(--space-6);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}

/* ----- Animations ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    opacity: 0.5;
}

/* ----- Responsive Styles ----- */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .cta-title {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .intro-content p {
        font-size: var(--text-base);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    .member-photo {
        padding-top: 60%; /* Adjust aspect ratio for smaller screens */
    }

    .member-name {
        font-size: var(--text-xl);
    }

    .cta-buttons {
        flex-direction: column;
        gap: var(--space-3);
    }

    .cta-title {
        font-size: var(--text-2xl);
    }

    .cta-description {
        font-size: var(--text-base);
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: var(--text-2xl);
    }

    .section-description {
        font-size: var(--text-base);
    }

    .value-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .value-icon {
        margin-bottom: var(--space-3);
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.neural-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(85, 85, 155, 0.1) 1px, transparent 1px),
                     linear-gradient(to bottom, rgba(85, 85, 155, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-title {
    font-size: var(--text-5xl);
    line-height: 1.1;
    margin-bottom: var(--space-4);
    background: linear-gradient(to right, var(--text-white), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-light);
    margin-bottom: var(--space-6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- General Section Styles ----- */
.section {
    position: relative;
    padding: var(--space-12) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-8);
}

.section-title {
    margin-bottom: var(--space-3);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width var(--transition-base);
}

.section-title:hover::after {
    width: 100px;
}

.section-description {
    color: var(--text-light);
    font-size: var(--text-lg);
    max-width: 700px;
    margin: 0 auto;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(98, 0, 238, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
}

.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.section:nth-child(even) {
    background-color: var(--surface);
}

/* ----- Team Introduction Section ----- */
.team-intro-section {
    position: relative;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    color: var(--text-light);
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

/* ----- Team Members Section ----- */
.team-members-section {
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background-color: rgba(18, 18, 40, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary);
}

.member-photo {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.member-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-info {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.member-name {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-1);
    color: var(--text-white);
}

.member-title {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
}

.member-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width var(--transition-base);
}

.team-member:hover .member-title::after {
    width: 60px;
}

.member-bio {
    font-size: var(--text-base);
    color: var(--text-light);
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.member-expertise {
    margin-bottom: var(--space-4);
}

.expertise-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-2);
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-list li {
    position: relative;
    padding-left: var(--space-4);
    margin-bottom: var(--space-1);
    color: var(--text-light);
    font-size: var(--text-sm);
}

.expertise-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
}

.member-social {
    display: flex;
    gap: var(--space-2);
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(98, 0, 238, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
}