/* Projects Page Styles */

/* Fix for text disappearing on hover */
.project-card * {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

.project-card:hover * {
    color: inherit !important;
    text-decoration: none !important;
}

/* Exception for badges - preserve their colors */
.project-card:hover .badge {
    color: white !important;
    background-color: #212529 !important;
}

.project-card:hover .badge.bg-dark {
    color: white !important;
    background-color: #212529 !important;
}

.project-card-title:hover,
.project-card-subtitle:hover,
.project-description:hover,
.skill-tag:hover {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Projects Hero Section */
.projects-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 120px 0 80px 0;
    margin-top: 76px; /* Account for fixed navbar */
}

.projects-hero h1 {
    background: linear-gradient(45deg, #0d6efd, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback for text selection */
    color: #0d6efd;
}

.projects-hero h1::selection {
    -webkit-text-fill-color: white;
    background: #0d6efd;
}

.projects-hero h1::-moz-selection {
    -webkit-text-fill-color: white;
    background: #0d6efd;
}

/* Navigation Pills */
.nav-pills .nav-link {
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 500;
    color: #6c757d;
    background-color: white;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    color: #0d6efd;
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
}

.nav-pills .nav-link.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.nav-pills .nav-link.active:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #0d6efd;
}

.project-card-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: white;
    padding: 24px;
    border-bottom: none;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-card-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.project-card-body {
    padding: 24px;
}

.project-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Skills Tags */
.skills-container {
    margin-bottom: 20px;
}

.skill-tag {
    display: inline-block;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 2px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(45deg, #0d6efd, #0056b3);
    color: white;
    transform: translateY(-1px);
}

/* Academic Year Sections */
.year-section {
    margin-bottom: 50px;
}

.year-header {
    /* Minimal styling - just basic text */
    margin-bottom: 20px;
}

.year-title {
    /* Plain text appearance */
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    color: inherit;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    padding: 0;
}

/* Focus Area Badge */
.focus-badge {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
}

/* Loading States */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-hero {
        padding: 100px 0 60px 0;
    }
    
    .projects-hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-pills .nav-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .project-card-header,
    .project-card-body {
        padding: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .year-header {
        /* Keep minimal styling in responsive view */
        margin-bottom: 16px;
    }
    
    .year-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .projects-hero {
        padding: 80px 0 40px 0;
    }
    
    .nav-pills {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-pills .nav-link {
        width: 100%;
        text-align: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

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

/* Staggered Animation */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
