*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
}
body {
    background-color: #1f242d;
}
.MyProjects {
    font-size: 55px;
    margin-top: 15px; 
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
} 
.MyProjects, .portfolio-header {
    font-family: 'Poppins', sans-serif;
    font-size: 55px;                   
    color: rgb(255, 253, 253);               
    text-align: center;                
    margin-bottom: 50px;               
    letter-spacing: 2px;              
}
.MyProjects span {
    color: #b706c4; 
}

/* Container for horizontal alignment */
.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    min-height: 60vh;
    margin-top: 20px;
}

.project-card {
    position: relative; 
    width: 450px; 
    height: 280px;
    border-radius: 20px;
    overflow: hidden;   
    cursor: pointer;
    background: #23272f;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient look: semi-transparent black to deep purple */
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(185, 14, 219, 0.9)); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    text-align: center;
    
    /* Hover logic: Hidden by default */
    opacity: 0; 
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
}

/* Show content when hovering over the card */
.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Zoom effect on the background image */
.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin: 10px 0;
}

.repo-btn {
    margin-top: 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid white;
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

.repo-btn:hover {
    background: white;
    color: #b90edb;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Ensure your overlay stays on top of the video */
.project-overlay {
    z-index: 2; 
}

