.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 100%;
    width: 100%;
}

.project-card {
    background: var(--color-card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(26,35,126,0.10);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(26,35,126,0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-project-card);
}

.project-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s;
    max-width: 100%;
    height: auto;
}

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

.project-content h3 {
    color: var(--color-highlight);
    font-size: 1.3rem;
    margin: 0 0 0.8rem 0;
}

.project-content p {
    color: var(--color-navbar-text);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.project-tech span {
    background: var(--color-highlight);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

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

.btn-primary, .btn-secondary {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--color-highlight);
    color: white;
}

.btn-primary:hover {
    background: var(--color-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-highlight);
    border: 2px solid var(--color-highlight);
}

.btn-secondary:hover {
    background: var(--color-highlight);
    color: white;
}

.btn-primary.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.btn-primary.disabled:hover {
    background: #ccc;
    transform: none;
}

/* Mobile and Tablet Responsive Design */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        margin-top: 1.5rem;
    }
    
    .project-card {
        padding: 1.2rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .project-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    .project-image {
        height: 160px;
        margin-bottom: 1rem;
    }
    
    .project-image img {
        width: 70px;
        height: 70px;
    }
    
    .project-tech {
        gap: 0.4rem;
        margin-bottom: 1.2rem;
    }
    
    .project-tech span {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-primary, .btn-secondary {
        text-align: center;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .project-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .project-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .project-content p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 0.7rem;
    }
    
    .project-image {
        height: 130px;
        margin-bottom: 0.8rem;
        border-radius: 8px;
    }
    
    .project-image img {
        width: 60px;
        height: 60px;
    }
    
    .project-tech {
        gap: 0.3rem;
        margin-bottom: 1rem;
    }
    
    .project-tech span {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        border-radius: 15px;
    }
    
    .project-links {
        gap: 0.6rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
}

@media (max-width: 360px) {
    .projects-grid {
        gap: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .project-card {
        padding: 0.8rem;
    }
    
    .project-content h3 {
        font-size: 1rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
    
    .project-image {
        height: 110px;
    }
    
    .project-image img {
        width: 50px;
        height: 50px;
    }
    
    .project-tech span {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
}