/* --- Global styles --- */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

body {
    font-family: "Montserrat", system-ui, sans-serif;
    line-height: 1.6;
    color: #070707;
    background-color: #f8c8dc;
    background: url("../assets/images/background.png") center;
    background-attachment: scroll;
    background-size: cover;
    margin: 0;
    padding: 60px 20px;
}

main {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* --- Section boxes --- */
section {
    background: #fbf2b1;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* --- Headings --- */
h1 {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #070707;
    padding-bottom: 8px;
}

/* --- About section layout --- */
.about {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
}

.profile-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

img.rounded {
    object-fit: cover;
    object-position: 50% 56%;
    border-radius: 50%;
    height: 250px;
    width: 250px;
    flex-shrink: 0;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

p.introduction {
    font-style: normal;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* --- Social links --- */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links img {
    width: 40px;
    height: 40px;
    /*filter: grayscale(100%) brightness(0.6);*/
    transition:
        filter 0.2s ease,
        transform 0.2s ease;
    cursor: pointer;
}

.social-links img:hover {
    filter: grayscale(0%) brightness(1.2) saturate(130%);
    transform: scale(1.3);
}

/* --- Projects section --- */
.projects {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    gap: 25px;
    margin-bottom: 25px;
}

.project-img {
    width: 200px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.project-img:hover {
    cursor: pointer;
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

.project-text p {
    margin: 0;
    line-height: 1.5;
    max-width: 600px;
}

/* --- Links --- */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Responsive layout --- */
@media (max-width: 800px) {
    section {
        padding: 25px;
    }

    /*body {
        background-size: 150%;
        background-position: center top;
    }*/

    .about {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .project {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

body {
    animation: fadeIn 0.9s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project a {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.project-img {
    pointer-events: auto;
    cursor: pointer;
}
