:root {
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --accent-color: #2997ff;
    --secondary-color: #1d1d1f;
}

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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -.022em;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    max-width: 1600px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem 0;
}

h1 {
    font-size: 3.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

.projects {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.project {
    background-color: var(--secondary-color);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-basis: calc(50% - 1rem);
    max-width: 700px;
    position: relative;
}

.project:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project img {
	transform: scale(0.9);
    width: 100%;
    height: 400px;
    object-fit: scale-down;
    transition: transform 0.3s ease;
}

.project:hover img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
    background: rgba(29, 29, 31, 0.8);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project:hover .project-info {
    transform: translateY(0);
}

.project h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project p {
    font-size: 1rem;
    color: #86868b;
}

footer {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: #86868b;
}

@media screen and (max-width: 1200px) {
    .projects {
        flex-direction: column;
        align-items: center;
    }

    .project {
        flex-basis: 100%;
        width: 100%;
        max-width: 700px;
    }
}