:root {
    /* 3-color palette */

    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #fca311;
}

@media (prefers-color-scheme: light) {
    /* 
    :root {
        TODO: light mode 
        --bg-color: #000000;
        --text-color: #ffffff;
        --accent-color: #fca311; 
      }
      */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    scroll-behavior: smooth;
}

.portfolio {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.portfolio-content {
    max-width: 60rem;
}

.name {
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: 600;
}

.title .link {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.portfolio p {
    font-size: 1.5rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 54.5rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.profile-image {
    width: 9.375rem;
    height: 9.375rem;
    border-radius: 50%;
    border: 0.1875rem solid var(--text-color);
    object-fit: cover;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link:hover {
    opacity: 0.7;
}

.link i {
    font-size: 2.4rem;
}

.scroll-indicator {
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-0.625rem);
    }
    60% {
        transform: translateY(-0.3125rem);
    }
}

.container {
    max-width: 56.25rem;
    margin: 0 auto;
    padding: 2rem;
}

.container section {
    margin-bottom: 3rem;
}

.container section h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-bottom: 0.125rem solid var(--text-color);
    padding-bottom: 0.5rem;
}

.container section ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.375rem, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
    list-style: none;
    padding: 0;
}

.container section ul li {
    background-color: var(--bg-color);
    border: 0.0625rem solid var(--text-color);
    padding: 0.5rem 1rem;
    text-align: center;
    border-radius: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.project {
    margin-bottom: 1rem;
    padding: 0.75rem 0;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    border-radius: 0.25rem;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.project-link:hover {
    opacity: 0.7;
}

.project-description {
    color: var(--text-color);
    opacity: 0.9;
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 48rem) {
    .container {
        padding: 1rem;
    }

    .portfolio {
        padding: 1rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .title {
        font-size: 1.2rem;
    }

    .portfolio-description {
        font-size: 1rem;
    }

    .links {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .profile-image {
        width: 7.5rem;
        height: 7.5rem;
    }

    .container section ul {
        grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    }
}
