/* ==============================
   Base Styles
   ============================== */

* {
  font-family: "Open Sans", sans-serif;
  text-align: center;
  color: rgb(102, 102, 102);
  box-sizing: border-box;
}

#wrapper {
  width: 95%;
  margin: 0 auto;
}

body {
  padding: 5%;
  background: linear-gradient(135deg, #afeeee 0%, #b0e0e6 100%);
  min-height: 100vh;
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==============================
   Typography
   ============================== */

h1 {
  font-family: "Montserrat", sans-serif;
}

h2 {
  font-weight: bold;
  color: orangered;
}

h2,
.top {
  text-transform: uppercase;
}

h3 {
  font-weight: 600;
  padding-top: 15px;
}

p {
  padding-bottom: 15px;
}

/* ==============================
   Images
   ============================== */

img {
  max-width: 100%;
  height: auto;
  margin: auto;
  display: block;
}

/* ==============================
   Navigation
   ============================== */

nav {
  font-weight: 800;
  text-transform: uppercase;
}

li {
  list-style: none;
  padding-bottom: 25px;
}

ul {
  list-style-position: inside;
  padding-left: 0;
}

/* ==============================
   Links
   ============================== */

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: orangered;
  transform: translateY(-1px);
}

a:focus {
  outline: 2px solid orangered;
  outline-offset: 2px;
}

a:active {
  transform: translateY(0);
}

/* ==============================
   Components
   ============================== */

.bio {
  color: rgb(89, 88, 88);
  font-size: large;
}

.section-1 {
  padding-bottom: 75px;
}

.project {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
}

.project img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.project:hover img {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

#portfolio {
  padding-bottom: 35px;
}

/* ==============================
   Footer
   ============================== */

footer {
  border-top: solid 1px rgb(89, 88, 88);
  padding-top: 25px;
  font-weight: 700;
}

.alignleft {
  float: left;
}

.alignright {
  float: right;
}

.nav-footer {
  display: none;
}

/* Clearfix utility */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ==============================
   Media Queries
   ============================== */

/* Tablet: 768px and up */
@media (min-width: 768px) {
  #wrapper {
    width: 95%;
    margin: 0 auto;
  }

  .bio {
    text-align: left;
    font-size: larger;
  }

  li {
    display: inline-block;
    padding-left: 20px;
  }

  .section-1 {
    display: flex;
    flex-direction: row-reverse;
  }

  .project {
    float: left;
    width: 50%;
    padding-right: 10px;
    padding-left: 10px;
  }

  .portfolio-text {
    padding: 15px 25px;
  }

  .contact-container {
    max-width: 60%;
    margin: auto;
  }

  .top {
    display: none;
  }

  .nav-footer {
    display: flex;
    float: right;
    margin: auto;
    padding: 0;
  }

  .ul-footer {
    margin: 0;
  }

  .profile-pic {
    padding-left: 30px;
    padding-right: 10px;
  }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
  #header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 60px;
  }

  #top {
    margin: 0px;
  }

  li {
    padding-bottom: 0px;
  }

  .project {
    float: left;
    width: 33.3%;
    padding-right: 10px;
    padding-left: 10px;
  }

  .bio {
    font-size: x-large;
  }
}
