/* Individual Profile Styles */

/* Individual Header */
.individual-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%), 
                url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover;
    color: white;
    padding: 3rem 0;
    /* margin-bottom: 2rem; */
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.individual-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

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

.individual-main-info {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1;
}

.individual-avatar {
    flex-shrink: 0;
}

.individual-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    filter: grayscale(100%);
}

.individual-details {
    flex: 1;
}

.individual-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.individual-title {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.5rem 0;
}

.individual-organization {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.5rem 0;
}

.individual-location {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.5rem 0;
}

.individual-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    color: white;
    font-size: 1rem;
}

.rating-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.individual-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.individual-action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.individual-action-btn.primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid white;
}

.individual-action-btn.primary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.individual-action-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.individual-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Individual Stats */
.individual-stats {
    background: white;
    padding: 2rem 0;
    /* margin-bottom: 2rem; */
    border-bottom: 1px solid #e9ecef;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stats-header h2 {
    margin: 0;
    flex: 1;
}

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

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Profile Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Profile Content */
.profile-content {
    display: flex;
    flex-direction: column;
}

.profile-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1.5rem 0;
}

/* About Section */
.about-content {
    line-height: 1.7;
}

.about-description {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1rem;
}

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

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.expertise-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.expertise-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.expertise-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
}

.expertise-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.expertise-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.expertise-stat {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Projects List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-status.completed {
    background: var(--bg-lighter);
    color: var(--text-dark);
}

.project-status.active {
    background: var(--bg-lighter);
    color: var(--text-dark);
}

/* Grayscale all images within the main content to match requested styling */
.main-content img {
    filter: grayscale(100%);
}

.project-description {
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.project-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.project-amount,
.project-duration,
.project-location {
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #495057;
    border: 1px solid #dee2e6;
}

.project-achievements {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.achievement-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Education List */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.education-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.education-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.education-info {
    flex: 1;
}

.education-degree {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
}

.education-school {
    font-size: 0.9rem;
    color: #495057;
    margin: 0 0 0.25rem 0;
}

.education-year {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

/* Publications List */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.publication-item {
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.publication-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.publication-journal {
    font-size: 0.9rem;
    color: #495057;
    margin: 0 0 0.25rem 0;
}

.publication-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0 0 0.75rem 0;
}

.publication-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

.publication-link:hover {
    text-decoration: underline;
}

/* Profile Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1rem 0;
}

/* Contact Information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.contact-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-value {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: right;
    word-break: break-word;
}

.contact-value:hover {
    text-decoration: underline;
}

/* Details List */
.details-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Skills List */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-category {
    margin-bottom: 1rem;
}

.skill-category-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #f8f9fa;
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

/* Awards List */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.award-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.award-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.award-info {
    flex: 1;
}

.award-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
}

.award-issuer {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0 0 0.25rem 0;
}

.award-year {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

/* Availability Info */
.availability-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.availability-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.availability-item:last-child {
    border-bottom: none;
}

.availability-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.availability-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .individual-header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .individual-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .individual-header {
        padding: 2rem 0;
        background-attachment: scroll;
    }
    
    .individual-main-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .individual-name {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .individual-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .individual-action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-section {
        padding: 1.5rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .contact-value {
        text-align: left;
    }
}

/* Contact Overlay Styles */
.contact-section {
    position: relative;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.contact-overlay-content {
    text-align: center;
    padding: 1rem;
}

.contact-overlay-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-overlay-btn:hover {
    background: var(--primary-color-dark, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-overlay-btn:active {
    transform: translateY(0);
} 