* {
    box-sizing: border-box;
}

body {
    margin: 0;
    width: 100%;
    font-family: Inter, sans-serif;
    background-color: #c9c9c9;
}

.intro {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    margin: 5vh 0;
}

.intro img {
    width: 10vw;
    border-radius: 50%;
}

.text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 15px;
}

.text h1,
.text h2 {
    margin: 0;
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 500px));
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.project {
    width: 100%;
    min-width: 0;
    padding: 15px;
    background-color: #1c1c1c;
    border: 1px solid #333;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease;
}
.project:hover {
    transform: translateY(-5px);
}

.project img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.project h2 {
    font-size: 20px;
    margin: 15px 0;
    color: white;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.buttons a {
    text-decoration: none;
    color: white;
    background-color: #2e2e2e;
    padding: 9px 20px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.buttons a:hover {
    background-color: #272727;
}

.interests {
    width: min(90%, 500px);
    margin: 40px auto 60px;
    padding: 20px;
    border-radius: 12px;
    background-color: #1c1c1c;
    color: white;
}

.interests h2 {
    text-align: center;
    margin-top: 0;
}

.interests ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-left: 25px;
    margin-bottom: 0;
}

.interests li {
    font-size: 20px;
}



@media (max-width: 1100px) {
    .projects {
        grid-template-columns: repeat(2, minmax(0, 500px));
    }
}

@media (max-width: 650px) {
    .projects {
        grid-template-columns: minmax(0, 500px);
    }

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

    .intro img {
        width: 100px;
    }

    .text {
        align-items: center;
        text-align: center;
    }
}