:root {
    --primarycolor: rgb(0, 153, 255);
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

#navbar {
    width: 100%;
    position: fixed;
    background-color: black;
    text-align: center;
    position: fixed;
    top: 0;
}

#navbar ul li {
    display: inline-block;
    list-style-type: none;
    padding: 0 20px;
}

#navbar ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

#navbar ul li a:hover {
    color: var(--primarycolor);
}

#welcome-section {
    width: 100%;
    height: 90vh;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#welcome-section h1 {
    font-size: 50px;
}

#welcome-section p {
    font-size: 25px;
    margin: -30px 0;
    font-style: italic;
}

#welcome-section a {
    background-color: var(--primarycolor);
    padding: 10px;
    margin: 45px 0;
    border-radius: 10px;
    color: white;
    text-decoration: none;
}

#projects h1 {
    text-align: center;
    padding: 50px 0;
    font-size: 35px;
}

#projects {
    padding-bottom: 100px;
}

.project {
    background-color: rgb(184, 184, 184);
    width: 350px;
    text-align: center;
    border-radius: 20px;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-items: center;
    padding: 30px 0;
    margin: 0 100px;
    gap: 20px;
}

.projects img {
    height: 300px;
    width: 350px;
    border-radius: 20px 20px 0 0;
}

#contact {
    background-color: black;
    color: white;
    width: 100%;
    height: 500px;
    text-align: center;
}

#contact h1 {
    font-size: 50px;
    padding: 100px 0 0 0;
}

.contact {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.contacts {
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: 20px;
}

.contact i {
    padding: 0 10px;
}

.contact p {
    font-weight: 600;
}

.contacts a {
    text-decoration: none;
    color: white;
}

.contacts a:hover {
    color: var(--primarycolor);
}

@media (max-width: 580px) {
    #welcome-section h1 {
        font-size: 40px;
    }

    #welcome-section p {
        font-size: 20px;
        margin: -30px 0;
    }
    
    #welcome-section a {
        font-size: 10px;
        padding: 8px;
    }

    .contacts {
        font-size: 15px;
    }

    #contact h1 {
        font-size: 30px;
    }
    
}