* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 60px 32px;
    /* background: #161616; */
    background:
        radial-gradient(circle at top, #242d55 0%, #161616 45%);
    color: white;
    font-family: Inter, sans-serif;
}

header {
    text-align: center;
    margin-bottom: 4rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0.4rem 0;
    color: #7c92ff;
}

header p {
    color: #b8b8b8;
    font-size: 1.1rem;
    margin-top: 0;
}

#projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project {
    background: #202020;
    border: 1px solid #303030;
    border-radius: 16px;
    overflow: hidden;
    /* display: flex; */
    /* flex-direction: column; */
    transition: transform .2s ease, box-shadow .2s ease;
}

.project:hover {
    transform: translateY(-6px);
}

.project img {
    width: calc(100% - 20px);
    margin: 10px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
}

.project h2 {
    margin: 1rem;
}

.project p {
    margin: 0 1rem;
    flex: 1;
}

.links {
    display: flex;
    gap: 10px;
    padding: 1rem;
}

.links a {
    flex: 1;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    color: white;
    background: #4d6bff;
    border-radius: 8px;
}

.links a:hover {
    background: #6f87ff;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 1rem;
    padding-top: 0.5rem;
}

.tag {
    background: #333;
    color: #ddd;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #444;
}

.logo {
    width: 240px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2px solid #333;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    transition: transform .25s ease, filter .25s ease;
}

.logo:hover {
    transform: translateY(-3px) scale(1.03);
    filter: drop-shadow(0 0 12px rgba(124,146,255,.4));
}
