/* Projects Page Specific Styles */

.projects-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: white;
    overflow: hidden;
}

.projects-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.projects-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.projects-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.projects-hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Filter Section */
.projects-filter {
    padding: 2rem 0;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Projects Section */
.projects-section {
    padding: 4rem 0;
}

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

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-actions {
    display: flex;
    gap: 1rem;
}

.project-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.project-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Technology-specific colors */
.tech-tag.html { background-color: #fff5f5; color: #e53e3e; }
.tech-tag.css { background-color: #f0f9ff; color: #0284c7; }
.tech-tag.js { background-color: #fffbeb; color: #d97706; }
.tech-tag.ts { background-color: #f0f9ff; color: #2563eb; }
.tech-tag.python { background-color: #f0fdf4; color: #16a34a; }
.tech-tag.cpp { background-color: #fef3c7; color: #d97706; }
.tech-tag.ai { background-color: #f3e8ff; color: #9333ea; }
.tech-tag.ml { background-color: #ecfdf5; color: #059669; }
.tech-tag.api { background-color: #eff6ff; color: #2563eb; }
.tech-tag.tf { background-color: #fff7ed; color: #ea580c; }
.tech-tag.arduino { background-color: #f0fdfa; color: #0d9488; }
.tech-tag.iot { background-color: #f8fafc; color: #475569; }
.tech-tag.web { background-color: #fef2f2; color: #dc2626; }
.tech-tag.sensors { background-color: #f1f5f9; color: #334155; }
.tech-tag.education { background-color: #fefce8; color: #ca8a04; }
.tech-tag.maps { background-color: #f0f9ff; color: #0369a1; }
.tech-tag.game { background-color: #fdf4ff; color: #c026d3; }
.tech-tag.nlp { background-color: #f5f3ff; color: #7c3aed; }
.tech-tag.science { background-color: #ecfdf5; color: #16a34a; }
.tech-tag.poetry { background-color: #fdf2f8; color: #ec4899; }

.project-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* GitHub CTA */
.github-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    text-align: center;
}

.github-cta .cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.github-cta .cta-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Filter Animation */
.project-card.hide {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.project-card.show {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-hero-title {
        font-size: 2.5rem;
    }
    
    .projects-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .projects-hero-description {
        font-size: 1rem;
    }
    
    .filter-controls {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .github-cta .cta-title {
        font-size: 2rem;
    }
    
    .github-cta .cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        margin: 0 10px;
    }
    
    .filter-controls {
        padding: 0 10px;
    }
}

