.home-container {
    width: 100%;
}

.home-top {
    display: flex;
    gap: 10rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
    width: 100%;
    position: relative;
}

.home-part-a {
    flex: 1 55%;
    max-width: 75%;
}

.home-part-b {
    flex: 1 45%;
    max-width: 75%;
    height: 75vh; 
    position: relative;
}

.home-part-c {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    font-size: 1rem;
    white-space: nowrap;
}

.intro-text {
    margin: 2rem 0;
}
/* 
.greeting {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
} */

.education {
    margin: 1.5rem 0;
}

.degree {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.school {
    color: var(--polar-300);
    margin-bottom: 1rem;
}

.description, .current {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.image-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: absolute;
    top: 0;
    left: 0;
}

.profile-image {
    width: 100%;
    height: 100%; /* Changed from 75% to 100% */
    object-fit: cover;
    border-radius: 4px;
}

.image-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.image-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.image-row {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem;
}

.square-image {
    flex: 0 0 auto;
    width: 350px;
    height: 350px;
    position: relative;
}

.square-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.works-header {
    text-align: left;
    margin-bottom: 5rem;
}

.portfolio-section {
    margin-bottom: 5rem;
}

.portfolio-section h3,
.portfolio-section p {
    text-align: left;
}

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;  /* Increased gap between cards */
    margin-top: 2rem;
}

.project-card {
    display: flex;
    min-height: 600px;
    /* background-color: var(--polar-400); */
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-image {
    flex: 0 0 60%;
    height: 100%;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    border-radius: 16px;
}

.project-info {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* color: var(--snow-100);
    background-color: var(--polar-400); */
}

.project-info h2 {
    margin-bottom: 1rem;
    /* color: var(--snow-100); */
}

.project-info p {
    margin-bottom: 2rem;
    line-height: 1.6;
}


/* Media query for mobile responsiveness */
@media screen and (max-width: 768px) {
    .home-top {
        flex-direction: column;
        gap: 2rem;
    }
    
    .home-part-a,
    .home-part-b {
        width: 100%;
        max-width: 100%;
    }

    .home-part-b {
        height: 50vh; /* Half viewport height on mobile */
    }

    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .image-container {
        min-height: unset; /* Remove min-height constraint */
        height: 100%;
    }

    .square-image {
        width: 300px;
        height: 300px;
    }
    
    .image-row {
        justify-content: flex-start;
    }

    .project-card {
        flex-direction: column;
        min-height: auto;
    }

    .project-image {
        flex: 0 0 300px;
    }

    .project-info {
        padding: 2rem;
    }
}
