
.hero-section-team {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.team-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.team-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(237, 237, 206, 0.1) 0%,
        rgba(41, 99, 116, 0.08) 50%,
        rgba(220, 44, 85, 0.05) 100%);
}

.team-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(41, 99, 116, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 99, 116, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: teamGridMove 20s linear infinite;
}

@keyframes teamGridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

.team-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.team-floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.1;
    filter: blur(40px);
}

.element-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation: teamFloatShape 25s ease-in-out infinite alternate;
}

.element-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation: teamFloatShape 20s ease-in-out infinite alternate-reverse;
}

.element-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation: teamFloatShape 30s ease-in-out infinite;
}

@keyframes teamFloatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(100px, 50px) rotate(120deg);
    }
    66% {
        transform: translate(-50px, 100px) rotate(240deg);
    }
}

.team-hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.team-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.team-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    animation: teamBadgePulse 3s ease-in-out infinite;
}

@keyframes teamBadgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 44, 85, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 44, 85, 0);
    }
}

.team-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--dark);
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-hero-subtitle {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--secondary);
    margin-top: 0.5rem;
}

.team-hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--secondary-dark);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.team-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem auto 3rem;
    max-width: 800px;
}

.team-hero-stat {
    text-align: center;
}

.team-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.team-stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-team {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-team::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-team:hover::before {
    width: 300px;
    height: 300px;
}

.btn-team-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-team-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-team-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid rgba(var(--light-rgb), 0.5);
}

.btn-team-outline:hover {
    background: rgba(var(--light-rgb), 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-team-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-team-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.team-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.team-scroll-text {
    font-size: 0.875rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: teamFadeInOut 2s ease-in-out infinite;
}

@keyframes teamFadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.team-scroll-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: teamBounce 2s ease-in-out infinite;
}

@keyframes teamBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==================== TEAM PHILOSOPHY ==================== */
.team-philosophy-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(to bottom, 
        rgba(237, 237, 206, 0.1),
        rgba(41, 99, 116, 0.05));
}

.team-philosophy-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.team-philosophy-content {
    text-align: center;
}

.team-section-title {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.team-section-subtitle {
    color: var(--gray);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.team-philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.philosophy-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(var(--light-rgb), 0.5);
    transition: all var(--transition-smooth);
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    transition: transform var(--transition-smooth);
}

.philosophy-card:hover .philosophy-icon {
    transform: scale(1.1) rotate(5deg);
}

.philosophy-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.philosophy-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ==================== TEAM MEMBERS ==================== */
.team-members-section {
    padding: var(--space-xl) 0;
}

.team-members-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.team-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-section-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.decoration-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 1px;
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.team-filter-container {
    margin-bottom: 3rem;
}

.team-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.team-filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 1px solid rgba(var(--light-rgb), 0.5);
    border-radius: var(--radius-lg);
    color: var(--secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
}

.team-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.team-filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-color: var(--primary);
}

/* --- Team Grid Setup --- */
.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
}
/* --- Card Background Fix --- */
.theme-white { background-color: #ffffff; }

.team-member-card {
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08); /* Sophisticated subtle border */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

/* --- Full Cover Top Visual --- */
.member-visual-top {
    height: 280px; /* Taller height for full-top coverage */
    background-color: #f8fafc;
    position: relative;
    display: block; /* Change from flex to block to fill area */
    overflow: hidden;
}

.team-img-fetch {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image fill the entire top area */
    object-position: top center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Hover Zoom Out Logic --- */
.team-member-card:hover .team-img-fetch {
    transform: scale(1.08); /* Zoom in slightly for depth instead of out to keep it immersive */
}

/* --- Badges Overlaying Image --- */
.status-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.member-tag {
    position: absolute;
    bottom: 15px;
    left: 15px; /* Alignment fix */
    background: #000;
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
}

/* --- Bottom Info Styling --- */
.member-info-bottom {
    padding: 30px;
    background: #fff;
    flex-grow: 1;
    z-index: 10;
}

.member-name {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.member-role {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary); /* Uses your brand color */
    margin-bottom: 15px;
}

.member-seo-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 25px;
}

/* --- Stats Dashboard Refresh --- */
.member-stats-dashboard {
    display: flex;
    justify-content: space-around;
    background: #f1f5f9;
    padding: 15px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.m-stat strong {
    font-size: 20px;
    color: #000;
}

.m-stat span {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
}

/* --- Action Area --- */
.member-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.btn-action-black {
    background: #000;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    transition: 0.3s;
}

.btn-action-black:hover {
    transform: scale(1.05);
    background: #222;
}

.member-socials a {
    color: #000;
    font-size: 20px;
    margin-left: 15px;
    transition: 0.3s;
}

.member-socials a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}
/* ==================== SPECIALISTS SECTION ==================== */
.specialists-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(to bottom, 
        rgba(41, 99, 116, 0.05),
        rgba(237, 237, 206, 0.1));
}

.specialists-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.specialist-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(var(--light-rgb), 0.5);
    transition: all var(--transition-smooth);
}

.specialist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.specialist-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.specialist-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.specialist-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.specialist-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ==================== COLLABORATION PROCESS ==================== */
.collaboration-process-section {
    padding: var(--space-xl) 0;
}

.collaboration-process-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.process-timeline {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 60px;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, 
        var(--primary), 
        var(--secondary));
    z-index: 1;
}

@media (max-width: 768px) {
    .process-timeline::before {
        left: 40px;
    }
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 120px;
    flex-shrink: 0;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    position: relative;
    animation: teamNumberPulse 3s ease-in-out infinite;
}

@keyframes teamNumberPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 44, 85, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(220, 44, 85, 0);
    }
}

@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-number {
        width: 80px;
        height: 40px;
        font-size: 1.5rem;
        margin: 0 auto;
    }
}

.step-content {
    flex: 1;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(var(--light-rgb), 0.5);
}

.step-content h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.step-content p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ==================== TEAM TESTIMONIALS ==================== */
.team-testimonials-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(to bottom, 
        rgba(237, 237, 206, 0.2) 0%,
        rgba(41, 99, 116, 0.1) 100%);
}

.team-testimonials-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.testimonials-slider {
    position: relative;
    min-height: 300px;
}

.testimonial-slide {
    display: none;
    animation: teamSlideFade 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

@keyframes teamSlideFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(var(--light-rgb), 0.5);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.2;
}

.testimonial-content p {
    color: var(--gray);
    font-size: 1.125rem;
    line-height: 1.7;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info h4 {
    color: var(--secondary);
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.author-info p {
    color: var(--gray);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.author-project {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 1px solid rgba(var(--light-rgb), 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(var(--light-rgb), 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--primary);
}

/* ==================== PARTNERSHIPS ==================== */
.partnerships-section-team {
    padding: var(--space-xl) 0;
}

.partnerships-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partner-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(var(--light-rgb), 0.5);
    transition: all var(--transition-base);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.partner-logo {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.partner-card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.partner-card p {
    color: var(--gray);
    font-size: 0.875rem;
}

/* ==================== COLLABORATION CTA ==================== */
.collaboration-cta-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.collaboration-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(220, 44, 85, 0.1) 0%, transparent 50%);
}

.collaboration-cta-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.collaboration-cta-content {
    text-align: center;
}

.collaboration-title {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.collaboration-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.collaboration-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem 0;
    align-items: center;
}

.collaboration-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.collaboration-feature i {
    color: var(--accent-light);
}

.collaboration-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.collaboration-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--accent-light);
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* ==================== MODALS ==================== */
.team-modal-overlay,
.consult-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: teamModalFadeIn 0.3s ease;
}

@keyframes teamModalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.team-modal-container,
.consult-modal-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: teamModalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes teamModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-modal-header,
.consult-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(var(--light-rgb), 0.3);
}

.modal-title {
    color: var(--secondary);
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--light-rgb), 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: var(--secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: rgba(220, 44, 85, 0.1);
    color: var(--primary);
}

.team-modal-body,
.consult-modal-body {
    padding: 1.5rem;
}

.modal-loading {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-spinner {
    margin-bottom: 1.5rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(var(--light-rgb), 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Team Member Profile Modal */
.team-member-profile {
    animation: teamFadeIn 0.3s ease;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-titles h4 {
    color: var(--secondary);
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.profile-titles p {
    color: var(--gray);
    margin: 0;
    font-size: 0.875rem;
}

.profile-content {
    margin-bottom: 2rem;
}

.profile-section {
    margin-bottom: 1.5rem;
}

.profile-section h5 {
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.profile-section p {
    color: var(--gray);
    line-height: 1.6;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.profile-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(var(--light-rgb), 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--light-rgb), 0.2);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-weight: 700;
    color: var(--secondary);
}

.stat-value.available {
    color: #4CAF50;
    font-weight: 600;
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary);
    font-size: 0.875rem;
}

.expertise-item i {
    color: var(--primary);
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

/* Consultation Modal */
.consult-form {
    animation: teamFadeIn 0.3s ease;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(var(--light-rgb), 0.1);
    border: 2px solid rgba(var(--light-rgb), 0.3);
    border-radius: var(--radius-md);
    color: var(--secondary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(var(--light-rgb), 0.05);
    box-shadow: 0 0 0 3px rgba(220, 44, 85, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.consult-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==================== NOTIFICATIONS ==================== */
.team-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary);
    transform: translateX(150%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    max-width: 400px;
    overflow: hidden;
}

.team-notification.show {
    transform: translateX(0);
}

.team-notification.success {
    border-left-color: #4CAF50;
}

.team-notification.error {
    border-left-color: #DC2C55;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.team-notification i {
    font-size: 1.5rem;
    color: var(--primary);
}

.team-notification.success i {
    color: #4CAF50;
}

.team-notification.error i {
    color: #DC2C55;
}

.team-notification span {
    color: var(--secondary);
    font-weight: 500;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .team-members-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .team-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section-team {
        min-height: 80vh;
        padding-top: 80px;
    }
    
    .team-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-team {
        width: 100%;
        max-width: 300px;
    }
    
    .team-filter-buttons {
        gap: 0.5rem;
    }
    
    .team-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .team-member-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .member-social-links {
        justify-content: center;
    }
    
    .collaboration-actions {
        flex-direction: column;
    }
    
    .collaboration-actions .btn-team {
        width: 100%;
        max-width: none;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .consult-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .team-hero-title {
        font-size: 2rem;
    }
    
    .team-hero-subtitle {
        font-size: 1.25rem;
    }
    
    .team-section-title {
        font-size: 2rem;
    }
    
    .team-members-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .step-content {
        text-align: center;
    }
}
