/* Team Page Specific Styles */

/* Team Hero Section */
.team-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(37,99,235,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.team-hero .hero-content {
    position: relative;
    z-index: 2;
}

.team-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-hero .subheadline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Overview + Story Sections */
.about-overview-section,
.dcomm-story-section {
    padding: 72px 0;
    background: var(--background-dark);
}

.dcomm-story-section {
    background: var(--background-light);
}

.about-overview-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.2rem 2rem;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.84));
    border: 1px solid rgba(96, 165, 250, 0.24);
    box-shadow:
        0 12px 26px rgba(2, 6, 23, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.about-overview-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1.02rem;
}

.about-overview-card p:last-child {
    margin-bottom: 0;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.story-card {
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.84));
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: var(--border-radius-lg);
    padding: 1.6rem 1.4rem;
    box-shadow:
        0 12px 26px rgba(2, 6, 23, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.story-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.story-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.65;
}

/* Founders Section */
.founders-section {
    padding: 80px 0;
    background: var(--background-dark);
}

.founders-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.founder-card {
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.84));
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 12px 26px rgba(2, 6, 23, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s;
}

.founder-card:hover::before {
    left: 100%;
}

.founder-card:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow:
        0 18px 34px rgba(2, 6, 23, 0.48),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

.founder-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    position: relative;
}

.founder-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.founder-card:hover .founder-image::after {
    opacity: 1;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.founder-card:hover .founder-image img {
    transform: scale(1.1);
}

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

.founder-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.founder-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.founder-email:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.founder-email i {
    font-size: 0.95rem;
}

.founder-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: var(--background-light);
}

.team-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.team-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.84));
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: var(--border-radius-lg);
    padding: 2rem 2rem 1rem;
    box-shadow:
        0 12px 26px rgba(2, 6, 23, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.team-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.team-description:last-child {
    margin-bottom: 0;
}

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

.team-member {
    background: var(--card-background);
    border: var(--neon-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s;
}

.team-member:hover::before {
    left: 100%;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-effect);
}

.member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    position: relative;
}

.member-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .member-image::after {
    opacity: 1;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

/* Placeholder Avatar Styles */
.placeholder-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.team-member:hover .placeholder-avatar {
    transform: scale(1.1);
}

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

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.member-bio {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.85rem;
}

/* Team CTA Section */
.team-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
    text-align: center;
    position: relative;
}

.team-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(37,99,235,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.team-cta .container {
    position: relative;
    z-index: 2;
}

.team-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-cta .cta-button {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* Join DComm Section */
.join-dcomm {
    padding: 80px 0;
    background: var(--background-light);
    text-align: center;
}

.join-dcomm h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.join-dcomm > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.join-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.join-item {
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.84));
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    text-align: left;
}

.join-item:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow:
        0 18px 34px rgba(2, 6, 23, 0.48),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

.join-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.join-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.join-emails {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.join-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.join-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.join-item a .fa-external-link-alt {
    font-size: 0.8rem;
}

.join-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 600px;
    margin: 2rem auto 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-hero {
        padding: 6.5rem 0 3rem;
    }
    
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .founder-card {
        padding: 1.5rem;
    }
    
    .founder-image {
        width: 120px;
        height: 120px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .team-member {
        padding: 1.25rem;
    }
    
    .member-image {
        width: 100px;
        height: 100px;
    }
    
    .team-cta {
        padding: 60px 0;
    }
    
    .join-dcomm {
        padding: 60px 0;
    }
    
    .join-contact {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .join-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .founders-grid {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .founder-card,
    .team-member {
        padding: 1rem;
    }
}

/* Animation for team members */
.team-member,
.founder-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Stagger animation for team grid */
.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }
.team-member:nth-child(5) { animation-delay: 0.5s; }
.team-member:nth-child(6) { animation-delay: 0.6s; }
.team-member:nth-child(7) { animation-delay: 0.7s; }
.team-member:nth-child(8) { animation-delay: 0.8s; }
.team-member:nth-child(9) { animation-delay: 0.9s; }
.team-member:nth-child(10) { animation-delay: 1.0s; }
.team-member:nth-child(11) { animation-delay: 1.1s; }
.team-member:nth-child(12) { animation-delay: 1.2s; }
.team-member:nth-child(13) { animation-delay: 1.3s; }
.team-member:nth-child(14) { animation-delay: 1.4s; }
.team-member:nth-child(15) { animation-delay: 1.5s; }
.team-member:nth-child(16) { animation-delay: 1.6s; } 

/* Mobile optimization for team page */
@media (max-width: 768px) {
    .team-hero {
        padding: 95px 0 52px;
    }

    .team-hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
    }

    .team-hero .subheadline {
        font-size: 1rem;
        max-width: 520px;
    }

    .about-overview-section,
    .dcomm-story-section,
    .founders-section,
    .team-section,
    .team-cta,
    .join-dcomm {
        padding: 56px 0;
    }

    .about-overview-card {
        padding: 1.5rem 1.2rem;
    }

    .about-overview-card p {
        font-size: 0.96rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .story-card {
        padding: 1.2rem 1rem;
    }

    .founder-card,
    .join-item,
    .team-intro {
        border-radius: 14px;
    }

    .founder-card {
        padding: 1.35rem;
    }

    .founder-bio,
    .team-description {
        font-size: 0.96rem;
        line-height: 1.65;
    }

    .join-item {
        gap: 1rem;
        align-items: flex-start;
    }

    .join-item i {
        font-size: 2rem;
    }

    .join-note {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .team-hero {
        padding: 88px 0 46px;
    }

    .team-hero h1 {
        font-size: clamp(1.75rem, 9vw, 2.15rem);
    }

    .about-overview-card,
    .story-card {
        border-radius: 14px;
    }

    .founders-grid,
    .join-contact {
        gap: 1rem;
    }

    .founder-image {
        width: 105px;
        height: 105px;
    }

    .join-item {
        padding: 1.1rem;
    }
}