/* =========================================
   PROJECTS SECTION & CARDS
   ========================================= */
.projects-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

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

.project-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    overflow: hidden;          
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
}

.project-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;         
}

.project-content {
    padding: 1.25rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title { 
    font-size: 1.15rem; 
    font-weight: 700; 
    color: #f8fafc; 
    margin-bottom: 0.5rem; 
}

.project-description { 
    font-size: 0.95rem; 
    color: #94a3b8; 
    line-height: 1.6; 
    flex-grow: 1; 
    margin-bottom: 1.25rem; 
}

.tech-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.5rem; 
    margin-bottom: 1.25rem; 
}

.tag {
    background: rgba(56, 189, 248, 0.08); 
    color: #7dd3fc; 
    font-size: 0.7rem; 
    font-weight: 600;
    padding: 0.2rem 0.7rem; 
    border-radius: 9999px; 
    border: 1px solid rgba(56, 189, 248, 0.12); 
    letter-spacing: 0.02em;
}

.project-link {
    color: #38bdf8; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.9rem;
    transition: all 0.2s ease; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.3rem; 
    margin-top: auto;
}

.project-link:hover {
    color: #7dd3fc; 
    gap: 0.6rem; 
}

@media (max-width: 640px) {
    .projects-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .project-image { height: 140px; }
}