/* Reset and basic styling */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    background-color: #f4f4f9;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}

.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 10px;
    box-sizing: border-box;
    height: auto;
    overflow: hidden;
}

.profile-picture {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    min-width: 200px;
    margin-bottom: 20px;
    height: auto;
}

.profile-picture img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 5%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.projects-container {
    flex: 2 1 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 500px;
    min-width: 250px;
    overflow-y: auto;
}

.project {
    position: relative;
    flex: 1 1 180px;
    max-width: 200px;
    min-width: 150px;
    height: 250px;
    padding: 20px;
    background-color: #636568;
    color: #636568;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


.project:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.267);
    background-color: rgba(0, 0, 0, 0.1);
}

.project a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #636568;
    font-weight: bold;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1000px) {
    .portfolio-container {
        flex-direction: row;
        justify-content: space-around;
        gap: 20px;
    }

    .project {
        max-width: 300px;
        height: 220px; /* Adjust height for better display on smaller screens */
    }
}

@media (max-width: 750px) {
    .portfolio-container {
        flex-direction: column;
        gap: 15px;
    }

    .profile-picture,
    .projects-container {
        flex: 1 1 100%; /* Allow each element to take full width */
        max-width: 100%;
    }

    .project {
        max-width: 100%;
        height: 220px; /* Adjust height for better display on smaller screens */
    }
}

@media (max-width: 500px) {
    .project {
        max-width: 100%;
        height: auto; /* Let content height adjust accordingly */
    }
}

/* .about-project {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.9);
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    pointer-events: none;
    z-index: 2;
} */
