/* Portfolio Page Specific Styles */

/* Portfolio Hero Section */
.portfolio-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    background: linear-gradient(135deg, rgba(110, 68, 255, 0.1), rgba(0, 217, 255, 0.05));
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat p {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 500;
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background: var(--darker);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.team-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.team-card:hover::before {
    left: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--neon-glow);
}

/* Enhanced touch support for team cards */
.team-card {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.team-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.card-inner {
    position: relative;
    z-index: 2;
}

/* Member Photo */
.member-photo {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
}

.photo-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background: var(--gradient);
    padding: 3px;
    position: relative;
    z-index: 2;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.team-card:hover .photo-frame img {
    transform: scale(1.05);
}

.photo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.3;
    z-index: 1;
    animation: pulse 3s ease-in-out infinite;
}

/* Member Info */
.member-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--light);
    text-align: center;
    margin-bottom: 8px;
}

.member-role {
    font-size: 0.95rem;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.member-skills {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.member-skills span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* View Portfolio */
.view-portfolio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9rem;
    min-height: 44px;
}

.team-card:hover .view-portfolio {
    background: var(--gradient);
    color: white;
    transform: translateX(5px);
}

.view-portfolio i {
    transition: transform 0.3s ease;
}

.team-card:hover .view-portfolio i {
    transform: translateX(3px);
}

/* Portfolio Modal */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--neon-glow);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 2rem;
    color: var(--light);
    font-weight: 600;
}

.close-modal {
    font-size: 1.8rem;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    min-height: 44px;
}

.close-modal:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 30px;
}

.member-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 35px;
    align-items: start;
}

.detail-photo {
    position: relative;
    text-align: center;
}

.detail-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: var(--gradient);
    padding: 4px;
    position: relative;
    z-index: 2;
}

.photo-glow-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.4;
    z-index: 1;
}

.detail-info {
    color: var(--light);
}

.member-role {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.member-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 25px;
}

.member-features {
    margin-bottom: 25px;
}

.member-features h4 {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 15px;
    font-weight: 600;
}

.member-features ul {
    list-style: none;
    padding: 0;
}

.member-features li {
    padding: 8px 0;
    color: var(--gray);
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.member-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.member-skills-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* CTA Section */
.portfolio-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(110, 68, 255, 0.1), rgba(0, 217, 255, 0.05));
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .member-details {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .detail-photo img {
        width: 120px;
        height: 120px;
    }
    
    .photo-glow-large {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding-top: 100px;
        min-height: 70vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .team-stats {
        gap: 30px;
    }

    .stat h3 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .modal-content {
        margin: 15px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .team-stats {
        flex-direction: column;
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }

    .member-details {
        gap: 20px;
    }

    .detail-photo img {
        width: 100px;
        height: 100px;
    }

    .photo-glow-large {
        width: 120px;
        height: 120px;
    }
    
    .member-role {
        font-size: 1.1rem;
    }
    
    .member-bio {
        font-size: 1rem;
    }
}