h1 {
    text-align: center;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

a {
    text-decoration: none;
}

.projects-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card {
    display: flex;
    gap: 20px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
    background: var(--main-gradient);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 100%;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}


.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.project-image {
    width: 220px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    position: relative;
    /* z-index: 1; */
}


.project-image:hover {
    cursor:pointer;
    /* transform: scale(1.4); */
    transition: transform 0.3s ease;
    /* z-index: 10; */
    /* margin: 20px; */
}

.projects-desc h2 {
    width: fit-content;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
    position: relative;
}

.projects-desc h2:hover {
    color: var(--text-color) !important;
    /* font-size: 44px; */
    text-shadow: 1px 1px 2px #001F4D;
}

.projects-desc h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--text-color);
    transition: width 1.1s ease;
}

.projects-desc h2:hover::after {
    width: 100%;
    /* underline grows on hover */
}

@media (max-width: 1000px) {
    .project-card {
        flex-direction: column;
        /* stack image and text */
        text-align: center;
        /* center the content */
    }

    .project-image {
        width: 70%;
        max-width: 300px;
    }

}