@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Quicksand", sans-serif;
    background-color: #f7f4ef;
    background-repeat: repeat;
    background-size: 200px 200px;
    color: #222;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.tagline {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
    letter-spacing: 0.5px;
}

.bio {
    font-size: 0.95rem;
    font-weight: 300;
    color: #555;
    line-height: 1.7;
    max-width: 50ch;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    width: fit-content;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.links a:hover {
    border-color: #222;
}

.right {
    flex-shrink: 0;
}

.photo {
    width: 400px;
    height: 400px;
    object-fit: cover;
    opacity: 0.7;
    border-radius: 30%;
    display: block;
    background-color: #e0e0e0;
}

@media (max-width: 600px) {
    .container {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 3rem 2rem;
    }

    .photo {
        width: 100px;
        height: 100px;
    }
}

/* ── Projects page ── */

.page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.project-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #e0e0e0;
}

.project-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.project-desc {
    font-size: 0.88rem;
    font-weight: 300;
    color: #555;
    line-height: 1.65;
    max-width: 70ch;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin-top: 0.25rem;
}

.project-tags li {
    font-size: 0.75rem;
    font-weight: 500;
    color: #555;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 99px;
    padding: 0.2rem 0.65rem;
}

.click-tags {
    width: fit-content;
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffffff;
    background: rgba(190, 121, 242, 0.558);
    border-radius: 99px;
    margin-left: 0.5rem;
    padding: 0.2rem 0.65rem;
}

@media (max-width: 600px) {
    .page {
        padding: 3rem 2rem;
    }

    .project-card {
        flex-direction: column;
        align-items: flex-start;
    }
}