/* Existing styles remain unchanged */

/* Project Gallery Styles */
.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-item {
    position: relative;
    width: 300px;
    height: 200px;
    perspective: 1000px; /* For 3D effect */
}

    .project-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s, box-shadow 0.3s;
        transform-style: preserve-3d;
        will-change: transform;
    }

    .project-item:hover img {
        transform: scale(1.05);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 800px;
    width: 90%;
    background-color: #fff;
    padding: 20px;
}

    .modal-content img {
        width: 100%;
        height: auto;
    }

.modal-description {
    margin-top: 15px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
}

    .close-modal:hover,
    .close-modal:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

/* Tilt Effect Styles */
.project-item:hover img {
    transform: scale(1.05) rotateX(var(--rotateX)) rotateY(var(--rotateY));
}
