/* Projects Section */
#projects {
    text-align: center;
    padding: 50px 20px;
    color: white;
}

#projects h1 {
    font-size: 2.5rem;
    color: #ff4757;
    margin-bottom: 30px;
}
/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    grid-auto-rows: auto;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Project Card Styling */
.project-card {
    display: flex;
    flex-direction: column;
    background: #1f1f1f;
    color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #444;
}

.project-card .project-info {
    padding: 15px 20px;
    flex: 1;
}

.project-card h3 {
    font-size: 1.5rem;
    color: #ff4757;
    margin-bottom: 10px;
    text-align: left;
}

.project-card p, .project-card ul {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: left;
}

.project-card ul {
    list-style: disc;
    padding-left: 20px;
}

.project-card .btn {
    display: inline-block;
    padding: 10px 15px;
    background: #ff4757;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.project-card .btn:hover {
    background: #ff6b81;
    transform: scale(1.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(255, 71, 87, 0.5);
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .project-card {
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .project-card img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .project-card h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .project-card p {
        font-size: 1rem;
        text-align: center;
    }
}
