/* Color Scheme */

:root {
    --main-white: hsl(0, 0%, 94%);
    --accent-color: #17a687;
    --dark-bg: #303841;
    --secondary-bg: hsl(221, 12%, 42%);
    --text-orange: hsl(16, 100%, 66%);
  }

h1, h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    word-spacing: 3px;
}

h1 {
    font-size: 5rem;
  }
  
  h2 {
    font-size: 3.5rem;
  }

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

html{
    font-size: 10px;
    scroll-behavior: smooth;
}
  
body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Popins', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--main-white);
}

#navbar {
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    background-color: var(--accent-color);
    width: 100%;
    height: 8vh;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.logo {
    margin-left: 10%;
    max-height: 8vh;
    max-width: 8vh;
    display: block;
}

.logo img {
    height: 100%;
    width: 100%;
}

#navbar > ul {
    display: flex;
    justify-content: flex-end;
    margin-right: 20px;
}

#navbar > ul > li {
    margin: 0px 10px;
    font-size: 2.2rem;
    padding-block: 2.5vh;
    padding-inline: 20px;
}

#navbar > ul > li:hover {
    background-color: var(--secondary-bg);
}

.jumbotron {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-bg);
}

#welcome-section{
    height: 100vh;
    background-image: linear-gradient(62deg, #3a3d40 0%, #181719 100%);
}

#welcome-section > h1 {
    margin-bottom: 0px;
}

#welcome-section > p {
    color: var(--accent-color);
    font-style: italic;
    font-size: 2.5rem;
    font-weight: 200;
    margin-top: 0;
}

#projects {
    text-align: center;
    padding: 10rem 2rem;
    background-color: var(--secondary-bg);
}

#projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 4rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    margin-bottom: 6rem;
  }

.project-tile {
    background: var(--dark-bg);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

.project-tile img {
    height: calc(100% - 60px);
    width: 100%;
    object-fit: cover;
}

.description {
    font-size: 2rem;
    padding: 10px;
    text-align: center;
}

.code {
    color: var(--dark-bg);
    transition: color 0.3s ease-out;
  }
  
  .project-tile:hover .code {
    color: var(--accent-color);
  }
  
  .project-tile:hover img {
    filter: brightness(60%);
    
    transition: all 1s ease;
  }

.btn {
    display: inline-block;
    padding: 1rem;
    border-radius: 2px;
    font-size: 2rem;
    color: var(--main-white);
    background: var(--dark-bg);
    border: none;
    transition: background 0.3s ease-out;
}

.btn:hover {
    background-color: var(--accent-color);
    cursor: pointer;
}

#contact {
    height: 80vh;
}

#contact > p {
    font-size: 1.6rem;
    font-weight: 200;
    font-style: italic;
    margin-top: -20px;
    margin-bottom: 40px;
}

.social-btn {
    margin: 20px;
    font-weight: 100;
}

.social-btn:hover {
    color: var(--accent-color);
}

.social-btn > i {
    margin: 5px;
}

#footer {
    height: 12vh;
    background-color: var(--dark-bg);
    border-top: 3px solid var(--accent-color);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 100;
}

#footer > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
}

#footer > span > p {
    margin-inline: 10px;
}

@media (max-width: 800px) {
    .social-btn {
        display: block;
    }
}

@media (max-width: 460px) {
    .nav {
      justify-content: center;
    }
}
