﻿* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: black;
}

    body::-webkit-scrollbar {
        width: 0.25rem;
    }

    body::-webkit-scrollbar-track {
        background-color: black;
    }

    body::-webkit-scrollbar-thumb {
        background-color: darkturquoise;
    }

.navbar {
    position: fixed;
    background-color: black;
    transition: width 200ms ease;
    z-index: 100;
}

.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5rem;
    text-decoration: none;
    background-color: azure;
    color: darkblue;
}

.nav-item {
    width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 5rem;
    color: azure;
    background-color: black;
    text-decoration: none;
    transition: background-color 100ms ease-in;
}

    .nav-link:hover {
        background-color: azure;
        color: black;
    }

.link-text {
    margin: 0 10px;
}

.link-description {
    display: none;
    color: deeppink;
}

main {
    margin-left: 5rem;
}

.profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container .profile {
    background: linear-gradient(to bottom, #001a33, #00264d, #003366, #004080, #005199);
}

.profile img {
    max-height: 200px;
    max-width: 200px;
    background-color: white;
    border-radius: 50%;
    margin: 1rem;
}

.icon-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-icon {
    transition: height 200ms ease;
    height: 40px;
}

    .tech-icon:hover {
        height: 55px;
    }

h1 {
    font-size: 32px;
    text-align: center;
    color: azure;
}

h2 {
    text-align: center;
    color: antiquewhite;
}

p {
    font-size: large;
}

.projects h2 {
    color: darkblue;
}

.container .projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

    .container .projects .card {
        padding: 2rem;
        border: 1px solid;
        border-radius: 20px;
        height: fit-content;
        width: fit-content;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        background-color: rgba(255, 255, 255, 0.7);
    }

.card .project-link {
    text-decoration: none;
    border: 1px solid;
    border-radius: 30px;
    padding: 0.5rem;
    font-size: 16px;
    font-weight: bold;
    transition: color 200ms ease;
    margin-top: 2rem;
}

    .card .project-link:hover {
        color: blue;
    }

.container #project1 {
    background: linear-gradient(to bottom, #001a33, #00264d, #003366, #004080, #005199);
}

.container #project2 {
    background: linear-gradient(to bottom, #003366, #004080, #005199, #0066b3, #0077cc);
}

.container #project3 {
    background: linear-gradient(to bottom, #005199, #0066b3, #0077cc, #0088e5, #0099ff);
}

.container #project4 {
    background: linear-gradient(to bottom, #0077cc, #0088e5, #0099ff, #66b3ff, #99ccff);
}

.container #project5 {
    background: linear-gradient(to bottom, #0099ff, #66b3ff, #99ccff, #cce5ff);
}

@media only screen and (min-width: 600px) {
    .navbar {
        top: 0;
        width: 5rem;
        height: 100vh;
    }

    .container .projects .card {
        width: 30rem;
        height: 30rem;
    }

    .navbar-nav {
        gap: 2rem;
    }

    .navbar:hover {
        width: 16rem;
    }

    .nav-item:hover .link-description {
        display: block;
    }
}

@media only screen and (max-width: 600px) {
    .navbar {
        top: 0;
        width: 100vw;
        height: 5rem;
    }

    .container .projects .card {
        width: fit-content;
    }

    .navbar-nav {
        flex-direction: row;
    }

    .logo {
        display: none;
    }

    .nav-link {
        justify-content: center;
    }

    .nav-item:hover .link-description {
        display: none;
    }

    main {
        margin: 0;
    }

    .tech-icon {
        max-height: 60px;
    }
}
