/* components.css */
/* Shared separators, cards, projects, and utility components */

.dot-dash-line {
    height: 2px;
    margin-top: 18px;
    margin-bottom: 18px;
    background: repeating-linear-gradient(90deg, var(--border-strong), var(--border-strong) 6px, transparent 6px, transparent 12px);
}

.solid-line {
    height: 2px;
    margin-top: 18px;
    margin-bottom: 18px;
    background: var(--border);
}

.project {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    align-items: center;
}

.project img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.project-description {
    flex: 1;
}

.project-description a {
    color: var(--text-primary);
    text-decoration: none;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: none;
    background-color: rgba(17, 17, 17, 0.92);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.back-to-top.show {
    display: block;
}

.back-to-top img {
    display: block;
    width: 20px;
    height: 20px;
    padding: 10px;
}

.back-to-top img:hover {
    border: 1px solid var(--accent);
    box-sizing: border-box;
    border-radius: 20px;
    transition: border 0.3s;
}

@media screen and (max-width: 900px) {
    .project {
        flex-direction: column;
        align-items: flex-start;
    }

    .project img {
        width: 100%;
        max-width: 320px;
        height: auto;
    }
}
