/* Projects Page Specific Styles */

/* Filter Buttons */
.filter-btn {
    @apply px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 border border-gray-300 bg-white text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500;
}

.filter-btn.active {
    @apply bg-blue-600 text-white border-blue-600;
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Search Input */
.search-input {
    @apply w-64 px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors duration-200;
}

/* Sort Select */
.sort-select {
    @apply px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors duration-200 bg-white;
}

/* Enhanced Project Cards - Improved Spacing */
.project-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

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

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.project-image-container {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    flex-shrink: 0;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #92400e;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
    z-index: 2;
}

/* Project Content - Improved Spacing */
.project-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    @apply text-xl font-bold text-gray-900 mb-4;
    line-height: 1.4;
    transition: color 0.3s ease;
    font-size: 1.25rem;
}

.project-card:hover .project-title {
    color: #3b82f6;
}

.project-description {
    @apply text-gray-600 mb-6;
    line-height: 1.7;
    font-size: 1rem;
    flex: 1;
}

/* Enhanced Project Tags - Better Spacing */
.project-tags {
    @apply flex flex-wrap gap-3 mb-6;
}

.project-tag {
    @apply px-4 py-2 bg-gradient-to-r from-blue-50 to-indigo-50 text-blue-700 text-sm font-semibold rounded-full border border-blue-200 transition-all duration-200;
    backdrop-filter: blur(10px);
}

.project-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border-color: #3b82f6;
}

/* Enhanced Project Links - Better Spacing */
.project-links {
    @apply flex gap-4 pt-4 border-t border-gray-100 mt-auto;
}

.project-link {
    @apply flex items-center justify-center text-blue-600 hover:text-blue-800 font-semibold text-sm transition-all duration-200;
    position: relative;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid transparent;
    flex: 1;
    min-height: 48px;
}

.project-link:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    transition: width 0.3s ease;
}

.project-link:hover::after {
    width: 100%;
}

/* Project Card Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    padding: 2rem;
}

.project-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.overlay-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.overlay-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.overlay-btn {
    padding: 12px 24px;
    background: white;
    color: #3b82f6;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.overlay-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Technology Cards */
.tech-card {
    @apply bg-white p-6 rounded-lg text-center shadow-sm hover:shadow-md transition-all duration-200 border border-gray-100;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tech-card i {
    transition: transform 0.3s ease;
}

.tech-card:hover i {
    transform: scale(1.1);
}

/* Statistics Section */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .counter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Project Grid Animation - Better Spacing */
.project-grid {
    display: grid;
    gap: 2.5rem;
}

.project-grid .project-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

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

/* Responsive Design - Better Mobile Spacing */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .project-image-container {
        height: 200px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .project-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .project-tags {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .project-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .project-links {
        gap: 0.75rem;
        padding-top: 1rem;
    }
    
    .project-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-link {
        justify-content: center;
        min-height: 48px;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .project-image-container {
        height: 180px;
    }
}

/* Filter Animation */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

/* Hover Effects for Interactive Elements */
.interactive-element {
    transition: all 0.2s ease;
}

.interactive-element:hover {
    transform: scale(1.05);
}

/* Focus States for Accessibility */
.filter-btn:focus,
.search-input:focus,
.sort-select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Project Card Loading Skeleton */
.project-card-skeleton {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    height: 240px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    flex-shrink: 0;
}

.skeleton-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.skeleton-title {
    height: 28px;
    background: #f0f0f0;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    width: 80%;
}

.skeleton-description {
    height: 16px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    width: 100%;
}

.skeleton-description:nth-child(3) {
    width: 60%;
}

.skeleton-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.skeleton-tag {
    height: 32px;
    width: 80px;
    background: #f0f0f0;
    border-radius: 16px;
}

.skeleton-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.skeleton-link {
    height: 48px;
    background: #f0f0f0;
    border-radius: 12px;
    flex: 1;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
} 