@font-face {
    font-family: 'SF Pro';
    src: url('src/fonts/SF-Pro.ttf');
}

body {
    margin: 0;
    font-family: 'SF Pro', sans-serif;
    font-size: 16px;
    background: #f2e3e2;
    text-align: center;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#navbar {
    background: #FDEEED;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

#navbar a {
    text-decoration: none;
    color: #221D23;
    transition: color 0.3s ease;
    cursor: pointer;
}

.tab {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 100%;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab.active {
    opacity: 1;
    visibility: visible;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.project {
    background: #FDEEED;
    border-radius: 16px;
    overflow: hidden;
    text-align: left;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.project img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 20px;
}

.project h2 {
    margin: 0 0 10px;
}

.project p {
    margin: 0 0 16px;
    line-height: 1.5;
    font-weight: normal;
}

#navbar .portfolio:hover { color: #E36588; }
#navbar .about:hover     { color: #4CB963; }
#navbar .contact:hover   { color: #9AC4F8; }