/* Projects Section */
.projects-section {
    width: 100%;
    background-color: var(--color-bg);
    padding: 8rem 0;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 0 auto;
    width: 100%;
    max-width: 1800px;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

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

.project-content h3 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin: 0 0 1rem 0;
    color: #141414;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.project-description {
    font-family: 'Inter', sans-serif;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    font-weight: 400;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
}

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

.tech-tag {
    font-family: 'Inter', sans-serif;
    background-color: #f0f0f0;
    color: #555;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    font-weight: 500;
}

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

.project-link {
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #141414;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.6rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.project-link:hover {
    background-color: #141414;
    color: white;
    border-color: #141414;
}

.project-link i {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 6rem 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 2rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-content h3 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        margin-bottom: 0.8rem;
    }
    
    .project-description {
        font-size: clamp(0.9rem, 3vw, 1rem);
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }
    
    .tech-tag {
        font-size: clamp(0.75rem, 3vw, 0.85rem);
        padding: 0.3rem 0.8rem;
    }
    
    .project-link {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 4rem 0;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .project-content h3 {
        font-size: clamp(1.3rem, 6vw, 1.6rem);
        margin-bottom: 0.6rem;
    }
    
    .project-description {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .tech-tag {
        font-size: clamp(0.7rem, 3.5vw, 0.8rem);
        padding: 0.25rem 0.7rem;
    }
    
    .project-link {
        font-size: clamp(0.75rem, 3.5vw, 0.85rem);
        padding: 0.4rem 0.8rem;
    }
} 