* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: lighter;
}

body {
  font-family: "Open Sans", sans-serif;
  font-weight: lighter;
}

.container {
  display: grid;
  grid-template-columns: 400px 1fr;
}

/* SIDEBAR SECTION STYLING */

.side-bar {
  background-color: #333;
  /* height: 100vh; */
  max-height: 100vh;
  padding: 15px;
  top: 0;
  position: sticky;
  z-index: 1;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin-bottom: 20px;
}

.info-img {
  /* display: inline-block; */
  width: 50px;
  height: auto;
}

.info-text {
  color: #fff;
  font-size: 1.2em;
}

.nav-links li {
  list-style-type: none;
  padding: 0.5rem;
  margin: 0;
}

.nav-links li:last-child {
  padding-bottom: 2.5rem;
}

li a {
  display: flex;
  justify-content: stretch;
  gap: 1.5rem;
  padding: 1.2rem 0;
}

.contact-footer {
  display: flex;
  padding: 20px;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
}

.contact-footer i {
  font-size: 1.5rem;
  color: #eee;
}

.contact-footer i:hover {
  color: #bbb;
  transform: scale(1.2);
  transition: all 0.3s ease-in-out;
}

.nav-links a:link,
a:visited {
  text-decoration: none;
  color: #ccc;
  font-size: 1.4rem;
}

.nav-links a:hover,
.nav-links a:active {
  color: rgba(231, 40, 70, 0.5);
}

/* MAINBAR SECTION STYLING */

.main-bar {
  overflow-y: scroll;
  z-index: 2;
}

.main-home {
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(img/blue_back_laptop.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  height: 100vh;
  color: #fff;
  line-height: 1.6;
  background-color: rgba(10, 10, 10, 0.5);
}

section {
  text-align: center;
  padding: 2rem;
}

header {
  padding: 10px;
}

h1,
h2 {
  font-size: 3em;
  font-weight: lighter;
  display: block;
}

.header-text {
  color: rgb(231, 40, 70);
  margin: 30px 0;
  /* font-weight: 600; */
  font-size: 1.5em;
}

button[type="button"] {
  margin-top: 80px;
  padding: 15px 25px;
  /* width: 20%; */
  color: #eee;
  font-size: 1.5em;
  background-color: rgb(9, 187, 187);
  border-radius: 8px;
  border: none;
}

button[type="button"]:hover {
  background-color: rgba(9, 187, 187, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
  color: #fff;
}

/* ABOUT ME SECTION */

#about_me h2 {
  margin: 50px 0;
}

.about-me-img {
  width: 50%;
  /* height: 500px; */
  height: auto;
  margin-bottom: 50px;
}

.img-desc {
  line-height: 1.6;
  color: #444;
  font-size: 1.5em;
  font-weight: lighter;
  padding: 0.75rem 2rem;
}

/* SKILLS SECTION */

#skills {
  background-color: #ddd;
  padding: 2.5rem 2rem;
}

#skills h2 {
  margin-bottom: 30px;
}

.skills-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.span-text {
  font-size: 1.5em;
}

.skill {
  background-color: #fff;
  border: none;
  padding: 15px;
  width: 100%;
  margin-bottom: 10px;
}

.skill i {
  font-size: 5rem;
  color: #020200;
}

.skill:hover {
  cursor: pointer;
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 5, 0.2);
}

/* PROJECTS SECTION */

#projects {
  background-color: #eee;
  padding: 3rem 1.5rem;
}

#projects h2 {
  margin-bottom: 30px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 25px;
  row-gap: 50px;
  place-content: center;
}

figure img {
  display: inline-block;
  width: 100%;
}

.project-img {
  color: #eee;
  height: auto;
  border: 1px solid rgba(0, 0, 5, 0.2);
}

.project-img:hover {
  transform: scale(1.1);
}

.link-desc {
  font-size: 1em;
  color: #000;
  background-color: rgba(183, 183, 236, 0.5);
  padding: 10px;
  text-decoration: none;
}

/* CONTACT PAGE SECTION */

#contact {
  padding: 2rem 1.5rem;
  background-color: #ddd;
  color: #444;
  font-size: 1.3em;
  line-height: 1.6;
  text-align: center;
}

#contact h2 {
  margin-bottom: 30px;
}

.footer-contact {
  display: flex;
  padding: 20px;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-bottom: 50px;
  /* margin: 10px; */
}

.footer-contact i {
  margin-top: 50px;
  font-size: 1.5em;
  color: #555;
}

.footer-contact i:hover {
  transform: scale(1.1);
}

/* FOOTER SECTION */

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3em;
  background-color: #eee;
  padding: 20px;
}

footer a:link {
  text-decoration: none;
  color: #bbb;
}

footer a:hover {
  text-decoration: underline;
  color: #333;
}

/* MEDIA QUERIES */

@media (max-width: 786px) {
  p,
  .img-desc {
    font-size: 1.1em;
  }

  .container {
    display: grid;
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .side-bar {
    position: relative;
    height: auto;
    width: 100%;
  }

  .contact-footer {
    margin-top: 2rem;
  }

  .nav-links a:link,
  a:visited {
    font-size: 1.3rem;
  }

  li a {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
  }

  .main-bar {
    overflow: auto;
    width: 100%;
  }

  h1,
  h2 {
    font-size: 2.5rem;
    font-weight: lighter;
    margin-bottom: 2rem;
  }

  .header-text {
    margin: 20px 0;
    font-size: 1.5rem;
  }

  button[type="button"] {
    margin-top: 10px;
    padding: 10px 15px;
    width: 50%;
    font-size: 1.2em;
  }

  header {
    padding: 3rem;
    height: auto;
  }

  #skills h2 {
    margin-bottom: 50px;
  }

  .skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 10px auto;
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-img:hover {
    transform: scale(1);
  }

  footer {
    display: inline-block;
    /* margin: 10px auto; */
    font: 1em sans-serif;
  }
}
