:root {
  --primary-color: #404fa0;
  --primary-light: #404ea00f;
  --primary-hover: #313d7c;
  --primary-active: #4d5b7e;
  --link-color: #39457b;
  --accent-color: #f7f9fa;
  --pill-color: #736550;
  --headline: #4b6572;
  --body-text: #222222;
  --code: #d63384;
  --tech-stack: #ffe56f;
}

/* Base Styles */

html {
  font-size: 18px;
}

body {
  font-weight: 400;
  color: var(--body-text);
  background: var(--accent-color);
}

img {
  width: 100%;
  height: auto;
}

li {
  margin-bottom: 0.25rem;
}

h1,
.button {
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 2rem;
}

h1 {
  font-weight: 600;
  color: var(--pill-color);
  margin-top: 1rem;
}

h2 {
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  width: 100%;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

h3 {
  color: var(--headline);
  font-weight: 500;
  font-size: 1.25rem;
  font-family: "Roboto", sans-serif;
  margin: 0;
}

h4 {
  color: var(--primary-color);
  margin: 0;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  font-weight: 500;
}

p {
  line-height: 1.5;
}

small {
  font-size: 0.775rem;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

.container {
  max-width: 1000px;
}

.container-fluid {
  background: #fff;
  border-radius: 10px;
}

.navbar {
  z-index: 10;
  padding: 1rem 0 3rem;
}

.navbar-brand {
  padding: 0.67rem 1rem 0.97rem;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.navbar-brand:hover {
  background: var(--tech-stack);
}

.navbar-brand img {
  width: 25px;
}

ul.navbar-nav {
  padding: 0 0.25rem;
}

.nav-link {
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--link-color);
}

li.nav-item {
  border-radius: 0.5rem;
  width: 7rem;
  text-align: center;
  margin: 0.25rem 0;
  transition: background-color 0.3s ease;
}

.navbar-nav .nav-link.active {
  color: var(--body-text);
}

li.nav-item:hover {
  background-color: var(--tech-stack);
}

footer {
  width: 100%;
  padding: 0.5rem 0;
  margin-top: 13rem;
  background: var(--primary-light);
}

footer p {
  margin: 0;
}

footer a {
  text-decoration: none;
}

footer .fa-terminal{
  animation: terminal-animate 1.5s infinite;
}

@keyframes terminal-animate {
  0% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.button {
  text-decoration: none;
  color: white;
  background-color: var(--primary-color);
  padding: 0.5rem 2rem;
  font-size: 1.25rem;
  margin-top: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 0.5rem;
  font-weight: 400;
}

.button-small {
  margin-top: 0.25rem;
  font-size: 1rem;
  padding: 0.25rem 1rem 0.35rem;
}

.button:hover {
  color: white;
  background: var(--primary-hover);
}

.button:active,
.button:focus {
  color: white;
  background: var(--primary-active);
}

button.navbar-toggler {
  border: none;
  background: #fff;
  padding: 0.82rem 0.75rem;
  margin-top: 0.5rem;
  border-radius: 10px;
}

/* Home Page */

.header--hero {
  display: flex;
  flex-direction: column;
}

.img--headshot-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.img--headshot {
  width: 171px;
  height: 171px;
  border-radius: 50%;
  position: relative;
  box-shadow: 2px 3px var(--tech-stack);
}

.header-hero-col-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.featured-project-outer {
  background: var(--primary-light);
  padding: 4rem 2rem 6rem;
  margin-top: 11rem;
}

.featured-first-col {
  overflow: hidden;
  display: inline-block;
}

.featured-first-col img {
  border: 1px solid rgba(0, 0, 0, 0.094);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.featured-first-col:hover img {
  transform: scale(1.05);
  border: 1px solid #fff;
}

.featured-project {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
}

.featured-project .nav-link {
  text-decoration: underline;
}

.featured-second-col h3 {
  margin-top: 1rem;
}

.pill {
  background-color: var(--pill-color);
  color: white;
  padding: 0.15rem 0.5rem 0.25rem;
  border-radius: 5px;
  opacity: 0.8;
  font-size: 0.8rem;
}

/* Tech Stack */

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1rem;
  column-gap: 1rem;
  justify-content: center;
}
.tech-stack h4 {
  padding: 2rem;
  /* border: 1px solid var(--tech-stack); */
  background: var(--primary-light);
  border-radius: 10px;
  flex-grow: 1;
  text-align: center;
}

.tech-stack h4:nth-child(odd) {
  background-color: var(--tech-stack);
}

/* About Page */
.about-top p{
  width: 90%;
  max-width: 750px;
  margin: 0 auto;
}

/* Contacts Page */

.contact-top, .about-top {
  background: var(--primary-light);
  padding: 3rem 2rem 3rem;
  h2 {
    color: var(--primary-hover);
    font-weight: 600;
    border: none;
  }
  h2::before {
    background-color: transparent; /* Color of the border */
  }
}

.icon-box {
  color: var(--primary-color);
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.icon-box a {
  color: var(--primary-hover);
  text-decoration: none;
}

.icon-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  border-radius: 1rem;
  transition: background-color 0.3s ease;
}

.icon {
  font-size: 3rem;
  text-align: center;
}

.icon svg {
  padding-bottom: 0.55rem;
}

.icon.big-icon {
  font-size: 6rem;
  margin-left: 1.25rem;
}

.icon-text {
  text-align: center;
  padding-bottom: 0.5rem;
}

.icon-block:hover {
  background-color: var(--tech-stack);
}

.contact-image {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

/* Media Queries */

@media only screen and (min-width: 1092px) {
  h1 {
    margin-top: 0;
  }
  .header--hero {
    flex-direction: row;
    gap: 5rem;
    max-width: 900px;
    margin: 8rem auto;
  }
  .img--headshot-wrapper::after {
    top: 0.75rem;
  }
  .img--headshot {
    width: 225px;
    height: 225px;
  }
  .nav-link {
    font-weight: 600;
    font-size: 1.15rem;
  }
  .nav-link.active {
    font-weight: 700;
  }
}

@media only screen and (min-width: 768px) {
  h1 {
    font-size: 4rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  .featured-project {
    flex-direction: row;
    gap: 2rem;
  }
  .featured-first-col {
    flex: 1;
  }
  .featured-second-col {
    flex: 2;
  }
  .featured-second-col h3 {
    margin-top: 0rem;
  }
  .button-small {
    margin-top: 0;
  }
}
