/* ========================================
   PROJECTS PAGE STYLES
   ======================================== */

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
}

/* ========================================
   PROJECTS HEADER
   ======================================== */

.projects-header {
    text-align: center;
    margin-bottom: 4rem;
}

.projects-header h1 {
    font-size: 3.5rem;
    color: #212529;
    margin-bottom: 1rem;
}

.projects-header p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   GITHUB SECTION
   ======================================== */

.github-section {
    margin-bottom: 5rem;
}

.github-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

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

.github-icon {
    margin-bottom: 1.5rem;
}

.github-icon svg {
    color: white;
}

.github-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.github-card p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.github-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.github-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   PROJECT CATEGORIES
   ======================================== */

.project-category {
    margin-bottom: 5rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.category-icon {
    font-size: 3rem;
}

.category-header h2 {
    font-size: 2.5rem;
    color: #212529;
}

/* ========================================
   PROJECTS GRID
   ======================================== */

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

/* ========================================
   PROJECT CARDS
   ======================================== */

.project-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

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

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

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    color: #212529;
    margin-bottom: 1rem;
}

.project-content p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ========================================
   PROJECT TAGS
   ======================================== */

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

.tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================================
   PROJECT BUTTONS
   ======================================== */

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

.project-btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem 1.5rem;
    background-color: #6366f1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-btn:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.project-btn.secondary {
    background-color: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.project-btn.secondary:hover {
    background-color: #6366f1;
    color: #ffffff;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 1024px) {
    .projects-header h1 {
        font-size: 3rem;
    }
    
    .category-header h2 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .projects-container {
        padding: 100px 1rem 2rem;
    }
    
    .projects-header h1 {
        font-size: 2.5rem;
    }
    
    .projects-header p {
        font-size: 1.1rem;
    }
    
    .github-card {
        padding: 2rem 1.5rem;
    }
    
    .github-card h2 {
        font-size: 1.5rem;
    }
    
    .github-card p {
        font-size: 1rem;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-header h2 {
        font-size: 1.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-content h3 {
        font-size: 1.3rem;
    }
    
    .project-links {
        flex-direction: column;
    }
}