/* ============================================
   PERCEPTA ABOUT SECTION
   Professional Team Showcase Design
   ============================================ */

/* Section Layout */
.about-section {
    background: linear-gradient(
        180deg,
        rgba(240, 248, 255, 0.6) 0%,
        rgba(255, 255, 255, 1) 30%,
        rgba(248, 249, 250, 0.8) 100%
    );
    position: relative;
    overflow: hidden;
}

.about-section::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 1000 1000"><defs><pattern id="dots" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(27,110,194,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 0.7;
    z-index: 0;
}

.about-section > .container {
    position: relative;
    z-index: 1;
}

/* Section Headers */
.about-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--percepta-gray-800);
}

.about-subtitle {
    font-size: 1.25rem;
    color: var(--percepta-gray-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Simplified Team Cards */
.team-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(27, 110, 194, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.team-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 180, 166, 0.08),
        transparent
    );
    transition: left 0.8s ease;
    z-index: 1;
    border-radius: 20px;
}

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

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 180, 166, 0.3);
}

.team-card:active {
    transform: translateY(-4px) scale(0.98);
}

/* Simplified Team Avatar */
.team-avatar {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar > i {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--percepta-primary),
        var(--percepta-teal)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(27, 110, 194, 0.3);
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar > i {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 180, 166, 0.4);
}

/* Role Badges */
.role-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.role-badge.team-leader {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b5a00;
}

.role-badge.backend {
    background: linear-gradient(135deg, var(--percepta-primary), #4d8bd9);
    color: white;
}

.role-badge.fullstack {
    background: linear-gradient(135deg, var(--percepta-teal), var(--percepta-cyan));
    color: white;
}

.role-badge.specialty {
    background: linear-gradient(135deg, var(--percepta-purple), var(--percepta-violet));
    color: white;
}

/* Simplified Team Content */
.team-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--percepta-gray-800);
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--percepta-gray-600);
    margin-bottom: 1rem;
}

.placeholder-role {
    color: var(--percepta-gray-400);
    font-style: italic;
}

.click-hint {
    font-size: 0.8rem;
    color: var(--percepta-teal);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.team-card:hover .click-hint {
    opacity: 1;
}

/* Simplified University Info */
.university-info-simple {
    padding: 2rem 0;
}

.university-info-simple i {
    font-size: 3rem;
}

.university-info-simple h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--percepta-gray-800);
    margin-bottom: 0.5rem;
}

/* Enhanced Modal Styles */
.modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(
        135deg,
        rgba(27, 110, 194, 0.08),
        rgba(0, 180, 166, 0.08)
    );
    border-bottom: 1px solid rgba(27, 110, 194, 0.08);
    border-radius: 0;
    padding: 2rem 2.5rem 1.5rem 2.5rem;
}

.modal-body {
    padding: 2rem 2.5rem 2.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.98);
}

.modal-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.modal-avatar i {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--percepta-primary),
        var(--percepta-teal)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 25px rgba(27, 110, 194, 0.25);
}

.modal-avatar .role-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
}

.modal-avatar .role-badge i {
    width: auto;
    height: auto;
    font-size: inherit;
    display: inline;
    background: none;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--percepta-gray-800);
    margin-bottom: 0.25rem;
}

.modal-header p {
    color: var(--percepta-gray-600);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Modal Section Headers */
.modal-body h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--percepta-gray-800);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* About Section */
.modal-body .col-12:first-child {
    margin-bottom: 2rem;
}

.modal-body .col-12:first-child p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--percepta-gray-700);
    margin-bottom: 0;
}

/* Content Sections */
.modal-body .col-md-6 {
    margin-bottom: 2rem;
}

.placeholder-content {
    background: rgba(27, 110, 194, 0.02);
    border: 1px solid rgba(27, 110, 194, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
}

.placeholder-content p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.placeholder-content ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.placeholder-content li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.skill-tag {
    background: linear-gradient(
        135deg,
        rgba(27, 110, 194, 0.1),
        rgba(0, 180, 166, 0.1)
    );
    color: var(--percepta-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(27, 110, 194, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.skill-tag:hover {
    background: linear-gradient(
        135deg,
        var(--percepta-primary),
        var(--percepta-teal)
    );
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 110, 194, 0.25);
}

/* Close button styling */
.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

/* Modal spacing improvements */
.modal-body .row {
    margin: 0;
}

.modal-body .col-12,
.modal-body .col-md-6 {
    padding: 0;
    margin-bottom: 1.75rem;
}

.modal-body .col-12:last-child,
.modal-body .col-md-6:last-child {
    margin-bottom: 0;
}

/* University Badge */
.university-badge {
    background: linear-gradient(
        135deg,
        rgba(27, 110, 194, 0.08),
        rgba(0, 180, 166, 0.08)
    );
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(27, 110, 194, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.university-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--percepta-primary), var(--percepta-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 10px 30px rgba(27, 110, 194, 0.3);
}

.university-logo i {
    font-size: 2rem;
    color: white;
}

.university-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--percepta-gray-800);
    margin-bottom: 0.5rem;
}

.university-info p {
    color: var(--percepta-gray-600);
    margin-bottom: 1.5rem;
}

.collaboration-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 180, 166, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--percepta-teal);
}

/* About CTA Section */
.about-cta {
    background: linear-gradient(
        135deg,
        rgba(27, 110, 194, 0.05),
        rgba(0, 180, 166, 0.05)
    );
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid rgba(27, 110, 194, 0.1);
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--percepta-gray-800);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--percepta-gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .about-title {
        font-size: 3rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 2.2rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .team-card-inner {
        padding: 2rem 1.5rem;
    }
    
    .avatar-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .avatar-placeholder i {
        font-size: 2rem;
    }
    
    .team-name {
        font-size: 1.5rem;
    }
    
    .project-info-card {
        padding: 2rem 1.5rem;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .project-stats .stat-number {
        font-size: 2rem;
    }
    
    .university-badge {
        margin-top: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 3rem 0;
    }
    
    .team-card-inner {
        padding: 1.5rem 1rem;
    }
    
    .avatar-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .avatar-placeholder i {
        font-size: 1.8rem;
    }
    
    .role-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .team-name {
        font-size: 1.3rem;
    }
    
    .team-role {
        font-size: 1rem;
    }
    
    .project-stats .stat-number {
        font-size: 1.8rem;
    }
    
    .university-logo {
        width: 60px;
        height: 60px;
    }
    
    .university-logo i {
        font-size: 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .team-card {
        border: 2px solid var(--percepta-primary);
        background: white;
    }
    
    .role-badge {
        border: 2px solid currentColor;
    }
    
    .skill-tag {
        border: 2px solid var(--percepta-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .team-card,
    .avatar-placeholder,
    .skill-tag {
        transition: none;
    }
    
    .team-card:hover,
    .avatar-placeholder:hover,
    .skill-tag:hover {
        transform: none;
    }
    
    .team-card::before {
        display: none;
    }
}

/* Print styles */
@media print {
    .about-section {
        background: white;
        box-shadow: none;
    }
    
    .team-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .cta-buttons {
        display: none;
    }
}