:root {
    --color-primary: #fff;
    --color-links: rgba(255, 255, 255, 0.75);
}

body {
    font-family: "Montserrat", sans-serif;
    object-fit: cover;
    margin: auto;
    overflow-y: auto;
    background: rgb(28, 0, 48) url('bg.jpg') no-repeat center;
}

a {
    text-decoration: none;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main__title,
.bio {
    text-align: center;
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: rgba(32, 4, 42, 0.6);
}

.main {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.main__title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.bio {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #b0b0b0;
}

.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, auto));
    grid-template-rows: repeat(auto-fit, minmax(320px, auto));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 10px;
    transition: 0.3s;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    min-height: 240px;
    min-width: 240px;
}

.project-card h2, .project-card p {
    flex-grow: 1;
}

.project-card:hover {
    background-color: #292929;
}

.project-card h2 {
    margin: 5px 0;
    font-size: 1.4rem;
}

.project-card p {
    font-size: 0.9rem;
    color: #cccccc;
}

h1 {
    gap: 100px;
    font-size: 24px;
    margin: 0;
    color: var(--color-primary);
}

h2 {
    margin: 0;
    color: var(--color-primary);
}

li {
    margin: 0;
    color: var(--color-primary);
}

p {
    font-size: 14px;
    color: var(--color-primary);
    margin: 5px 0 20px;
}

.main__button {
    color: var(--color-links);
    inline-size: 80px;
    padding: 10px 25px;
    border-radius: 5px;
    border: none;
    background: #6e50ff;
    transition: background 0.3s ease;
    cursor: pointer;
}

.main__button:hover {
    background: #4734a8;
    color: var(--color-primary);
}
