/* totals */
.contactcard-list div {
    display: inline-table;
}

.contactcard {
    border: white solid 2px;
    border-radius: 10px;
    height: 220px;
    width: 180px;
    margin: 20px;
    transition: 0.3s;
}

.contactcard h1{
    transition: 0.3s;
}

.contactcard:hover {
    transform: scale(1.1);
    transition: 0.3s;
}

.contactcard:hover h1{
    transform: scale(1.5);
    transition: 0.3s;
}

.project-card {
    border: white solid 2px;
    border-radius: 10px;
    min-height: 100px;
    margin: 20px;
    transition: 0.3s;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 16px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative; /* positioning context for the external link button */
}

/* Left title and right stacked content */
.project-title {
    flex: 0 0 25%;
    margin: auto 0;
    font-size: 25px;
    align-self: flex-start;
}
.project-content {
    flex: 1 1 75%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 8px;
}
.project-desc {
    margin: 0;
    overflow-wrap: break-word; /* ensure long text wraps */
}
.project-tech {
    margin: 0;
    font-size: 13px;
    color: #dfdfdf;
}

.project-divider {
    margin-bottom: 0;
    pointer-events: none;
    width: 100%;
}


/* External link button bottom-right */
.project-link-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    color: white;
    background: transparent;
    border-radius: 6px;
    text-decoration: none;
    font-size: 18px;
}
.project-link-btn:hover,
.project-link-btn:focus {
    background: rgba(255,255,255,0.06);
    outline: none;
}

/* Responsive: stack vertically on small widths */
@media (max-width: 751px) {
    .project-card {
        flex-direction: column;
        align-items: stretch;
    }
    .project-title {
        flex: none;
        width: 100%;
    }
    .project-content {
        width: 100%;
    }
}

@media (max-width: 810px) {
    .project-link-btn {
        right: 6px;
        bottom: 6px;
        width: 20px;
        height: 20px;
    }
    .project-card {
        padding-bottom: 35px;
    }
}