

.projects-section {
    background-color: #ffffff;
    padding: 80px 0px;
    font-family: 'Futura PT', sans-serif;
    overflow: hidden;
}

.projects-container {
    /* max-width: 1400px; */
    /* margin: 0 auto; */
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.projects-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.see-all-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #000000;
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

.see-all-btn:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.see-all-btn:hover .arrow-icon {
    transform: translateX(5px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3px;
    align-items: stretch;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the image covers the container without distortion */
    display: block; /* Removes any inline spacing issues */
    border-radius: 0px; /* Optional: Adds rounded corners for a polished look */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transitions for hover effects */
}

.project-card {
    position: relative;
    background-color: #ffffff;
    /* border-radius: 10px; */
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    transition: all 0.3s ease;
    /* border: 3px solid transparent; */
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #000000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.video-center-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.project-card:hover .video-center-title {
    opacity: 0.7;
}

.project-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.project-location {
    color: #ffffff;
    font-size: 1rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-icon {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

.play-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-icon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.project-card:hover .play-indicator {
    background-color: #ffffff;
}

.project-card:hover .play-icon {
    fill: #000000;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .projects-section {
        padding: 60px 3px;
    }

    .projects-title {
        font-size: 2rem;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .see-all-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        min-height: 250px;
    }

    .project-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .projects-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .project-overlay {
        padding: 20px;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-location {
        font-size: 0.9rem;
    }

    .play-indicator {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }

    .video-center-title {
        font-size: 1.5rem;
    }

    .play-icon {
        width: 16px;
        height: 16px;
    }
}

/* Loading animation */
.project-video {
    background-color: #f0f0f0;
}

.project-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}