* {
    font-family: azo-sans-web, sans-serif;

}

body {
    background-color: #252525;
    margin: 0;
}

header {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap:  10px;
  padding: 0 2%;
}

.logo-name {
  display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap:  10px;
    grid-column: 1/span 11;
    padding: 0 5% 2em 0;
}

.logo-name h2 {
  padding-top: 2.2rem;
}

header nav ul {
  grid-column: 1/span 12;
    font-family: azo-sans-web, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    justify-content:flex-start;
    list-style-type: none;
    padding-top: .5rem;

}

header nav li a:link, header nav li a:hover, header nav li a:visited {
    text-decoration: none;
    color: white;
    justify-content: right;
    display: flex;
    padding: 2rem
}

.SKLogo {
    width: 8rem;
    height: auto;
    justify-content: left;
    padding-left: 8%;
    display: flex;
    text-decoration: none;
}

#hero {
    background-image: url(images/PortfolioHero2.png);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lets {
  font-family: azo-sans-web, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 3rem;
}

/* Existing CSS remains the same until .button-container */

/* Existing CSS remains the same until .button-container */

/* Homepage Portfolio Buttons */
.button-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 1150px;
  margin: 20px auto;
  padding: 2rem;
}

.portfolio-button {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1; /* Ensures square boxes */
}

.portfolio-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #509CBF;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.portfolio-button:hover::before {
  opacity: 0.7;
}

.portfolio-button .button-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.portfolio-button:hover .button-text {
  opacity: 1;
}

/* Existing CSS remains the same until .button */

/* Project Page Buttons */
.button {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
  box-sizing: border-box;
  display: flex; /* Ensure the button is a flex container */
  align-items: center; /* Center the image vertically */
  justify-content: center; /* Center the image horizontally */
}

.button img {
  width: 100%; /* Ensure the image fills the width */
  height: 100%; /* Ensure the image fills the height */
  object-fit: cover; /* Ensure the image covers the entire container without distortion */
  display: block;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #509CBF;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.button:hover::before {
  opacity: 0.7;
}

.button .button-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.button:hover .button-text {
  opacity: 1;
}

/* Rest of your existing CSS remains the same */

/* Rest of your existing CSS remains the same */

/* Existing CSS for other sections remains the same */

  .about-me-section {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
  }

  .profile-container {
    grid-column: 1/span 5;
    width: 100%;
    height: auto;
  }

  .profile-image {
    width: 80%;
    min-width: 450px;
    display: flex;
    margin: auto;
  }

  .text-container {
    grid-column: 6/span 12;
    margin-right: 12rem;
    margin-left: 3rem;
  }

  .text-container h2 {
    font-family: azo-sans-web, sans-serif;
    font-weight: 300;
    font-style: normal;
    color: white;
    letter-spacing: 1.25rem;
    font-size: 1.75rem;
    padding-right: 30rem;
    white-space: nowrap;
  
  }
  
  .resume-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #509CBF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
  }

  .back-to-top {
    display: inline-block;
    padding: 10px 20px;
    background-color: #509CBF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
  }

  #back-to {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .port-container {
    margin-left: 10%;
    margin-right: 10%;
  }

  .port-info h1 {
    text-align: left;
    padding-top: 1rem;
    padding-bottom: 0;
    font-size: 2.5rem;
  }

  .port-info h5 {
    padding: 0;
  }

  .port-info {
    text-align: left;
    padding-bottom: 2rem;
    max-width: 1000px; /* Match this to the width of your images */
    padding-right: 20px; /* Add some padding for smaller screens */
    margin-left: 0; /* Align the text container to the left */
}

.port-info p {
    font-size: 1rem; /* Adjust font size if needed */
    line-height: 1.6; /* Increase line height for better readability */
    color: white; /* Ensure text color is readable */
}

  .image-box {
    width: 100%;
    height: auto;
    overflow: hidden;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 4%;
  }

  .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  }

#copyright {
  text-align: center;
  padding-bottom: 1.5rem;
  padding-top: 5rem;
  
}

h1 {
    color: #509CBF;
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

h2 {
    font-family: azo-sans-web, sans-serif;
    font-weight: 300;
    font-style: normal;
    color: white;
    letter-spacing: 1.1rem;
    font-size: 1.25rem;
    padding-right: 30rem;
    white-space: nowrap;

}

h3 {
    font-family: azo-sans-web, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2.1rem;
    color: white;
    padding: 12rem;
    padding-top: 15rem;
    padding-bottom: 15rem;

}

h4 {
  color: #509CBF;
  font-family: azo-sans-web, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
}

h5 {
  color: #509CBF;
  font-family: azo-sans-web, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
}

p {
  color: white;
  font-family: azo-sans-web, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: .9rem;
}

@media only screen and (max-width: 1000px) {
  
  .button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1150px;
    margin: 0;
    padding-top: 2rem;
  }

  .button {
    position: relative;
    width: 45%;
    margin-top: 5%;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
  }

  h3 {
    font-size: 1.5rem;
    color: white;
    padding: 5rem;
    padding-top: 8rem;
    padding-bottom: 8rem;

}

.profile-container {
  grid-column: 1/span 12;
}

.profile-image {
  width: 50%;
}

.text-container {
  grid-column: 1/span 12;
}

}

  @media only screen and (max-width: 800px) {

    #hero {
      background-image: url(images/PortfolioHero3.png);
      background-size: contain;
      background-repeat: no-repeat;
  }

    .lets {
      font-family: azo-sans-web, sans-serif;
      font-weight: 500;
      font-style: normal;
      font-size: 2.5rem;
      text-align: center;
    }

    .logo-name {
      grid-column: 1/span 12;
      padding: 0;
    }

    header nav ul {
        padding-top: 0;
    }

    h3 {
      font-size: 1.2rem;
      color: white;
      padding: 3rem;
      padding-top: 5rem;
      padding-bottom: 8rem;
      text-align: center;
  
  }
  
  }

  @media only screen and (max-width: 600px) {
  
    .button {
      width: 70%;
    }

    h3 {
      font-size: 1.1rem;
      color: white;
      padding: 3rem;
      padding-top: 5rem;
      padding-bottom: 8rem;
      text-align: center;
    }

    .lets {
      font-family: azo-sans-web, sans-serif;
      font-weight: 500;
      font-style: normal;
      font-size: 2.3rem;
      text-align: center;
    }

    .text-container {
      margin-right: 4rem;
    }

    @media only screen and (max-width: 1000px) {
    .button-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
        grid-template-rows: repeat(5, 1fr); /* Adjust rows accordingly */
    }
}

@media only screen and (max-width: 600px) {
    .button-container {
        grid-template-columns: 1fr; /* 1 column for mobile */
        grid-template-rows: repeat(9, 1fr); /* All items in a single column */
    }
}
  }