.my-projects {
    background-color: #1e1e1e;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.my-projects h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: yellow;
}

.my-projects p {
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 16px;
    color: #ddd;
}

/* Grid Container */
.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Flip Card Styles */
.projects-card {
    perspective: 1000px;
    height: 300px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.projects-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-front {
    background-color: #2a2a2a;
    background-size: cover;
    background-position: center;
}

.card-front h2 {
    color: yellow;
    margin-top: 10px;
}

.card-front img {
    width: 80px;
    height: 80px;
}

.card-back {
    background-color: #333;
    transform: rotateY(180deg);
    color: white;
}

.card-back a {
    color: #bdbdbd;
    margin: 5px 0;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
    }
}
