.main-content {
    max-width: 100%;
    width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center; 
    position: relative; 
    -fx-alignment: center;
    z-index: 2; 
}

.project-list {
    vertical-align: center;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    justify-content: center; /* Center-align cards horizontally */
    gap: 10px; /* Space between cards */
    margin: 10px 0;
}

.project-list .static-card {
    flex: 1 1 100%; /* Full width of the container */
    max-width: 100%; /* Prevent from exceeding container width */
    min-width: 0; /* Remove any minimum width constraint */
    background: var(--background-alt); /* Card background */
    color: var(--text-color); /* Text color */
    padding: 30px; /* Inner spacing */
    margin: 20px 0; /* Vertical spacing between cards */
    border-radius: 25px; /* Rounded corners */
    border: var(--accent-color) solid 5px; /* Unified border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    text-align: left; /* Default text alignment */
    transition: all 0.3s ease;
}

.project-list .static-card-3 {
    flex: 1 1 100%; /* Full width of the container */
    max-width: calc(50% - 10px); /* Prevent from exceeding container width */
    min-width: 0; /* Remove any minimum width constraint */
    background: var(--background-alt); /* Card background */
    color: var(--text-color); /* Text color */
    padding: 30px; /* Inner spacing */
    margin: 20px 0; /* Vertical spacing between cards */
    border-radius: 25px; /* Rounded corners */
    border-left: var(--accent-color) solid 5px;
    border-right: var(--accent-color) solid 5px;
    border-top: var(--accent-color) solid 5px;
    border-bottom: var(--accent-color) solid 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    text-align: left; /* Default text alignment */
    transition: all 0.3s ease;
    p {
        color: var(--text-color);
    }
}

.project-list .static-card:hover {
    background: linear-gradient(to bottom, rgba(100, 255, 218, 0.15), rgba(0, 0, 0, 0.8)); /* Slight hover effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 15px 5px rgba(100, 255, 218, 0.5); /* Soft outer glow */
    transform: translateY(-5px); /* Subtle elevation */
}

.project-list .static-card-3:hover {
    background: linear-gradient(to bottom, rgba(100, 255, 218, 0.15), rgba(0, 0, 0, 0.8)); /* Slight hover effect */
    box-shadow:        0 4px 10px rgba(0, 0, 0, 0.3), /* Subtle base shadow */
    0 0 15px 5px rgba(100, 255, 218, 0.5); /* Soft outer glow */
    transform: translateY(-5px); /* Subtle elevation */
    p {
        color: var(--accent-color);
    }
}

.project-list .static-card h3 {
    font-size: 1.2rem; /* Larger heading for cards */
    margin-bottom: 0.5rem;
    text-align: center;
}

.project-list .static-card-3 h3 {
    font-size: 1.2rem; /* Larger heading for cards */
    margin-bottom: 0.5rem;
    text-align: center;
}

.project-list .static-card h3 a, .static-card-3 h3 a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.project-list .static-card h3 a:hover, .static-card-3 h3 a:hover {
    text-decoration: underline; /* Subtle hover on links */
    color: #52e0c8; /* Slightly brighter hover effect */
}

.project-list .static-card p {
    font-size: 1rem; /* Keep text consistent */
    line-height: 1.3; /* Improve readability */
    margin: 0.5rem 0 0;
    text-align: center;
}

.project-list .static-card-3 p {
    font-size: 1rem; /* Keep text consistent */
    line-height: 1.3; /* Improve readability */
    margin: 0.5rem 0 0;
    text-align: center;
}

.project-list .static-card p:hover, .static-card-3 p:hover {
    font-size: 1rem; /* Keep text consistent */
    line-height: 1.3; /* Improve readability */
    margin: 0.5rem 0 0;
    text-align: center; 
}

.project-list .static-card img,
.static-card-3 img {
    display: block;
    margin: 0 auto 1rem; /* Center and add spacing */
    max-width: 100%;
    width: 200px;
}
