*,
*::before,
*::after {
  box-sizing: border-box;
  transition: .5s ease;
}



body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
}

.diagonalColor {
    position: relative;
    isolation: isolate;
}
  
.diagonalColor::after {
    content: '';
    background-image:
      linear-gradient(
        45deg,
        #0D77EE,
        #0BB1E9,
        #01F7C3,
        #6CC481
      );
    position: absolute;
    z-index: -1;
    inset: 0;
    transform: skewY(-5deg);
}

p{
  font-size: 1.5rem;
  line-height: 1.5;
  margin: 0;
  color: #07376f;
}

.wrapperColor {
  margin-top: 5rem;
  margin-bottom: 5rem;
  max-width: 50rem;
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex; /* Enable flexbox for the wrapper */
  align-items: center; /* Vertically align items in the center */
  justify-content: space-between; /* Put space between the two divs */
}

.name-title {
  line-height: 0.8;
  font-size: 4.35rem;
  text-align: left;
  line-height: 0.11rem;

  font-family: "Tourney", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: #07376f;
}
.name-title2 {
  line-height: 0.8;
  font-size: 3.5rem;
  text-align: left;
  line-height: 0.1rem;

  font-family: "Tourney", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: #07376f;
}

.section-title {
  font-size: 2.25rem;
  text-align: center;
}

.contrastBlock{
  text-align: center;
  font-size: 2rem;
  color: white;
  background-color: #07376f;
  margin-top: 1rem;
  padding: 0.5rem;
  width: 13rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;

}

#portrait {
  height: 20rem;
  max-width: 100%; /* Ensure image doesn't overflow its container */
  display: block; /* Remove any extra spacing below the image */
  margin-left: auto; /* Center the image in the PortraitBox */
  margin-right: auto; /* Center the image in the PortraitBox */
}

#textHeroBox {
  width: 50%;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically (if needed) */
}

#portraitBox {
  width: 50%;
  display: flex; /* Use flexbox to center the image */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically (if needed) */

}

.contrastBlockAbout {
  text-align: center;
  font-size: 2rem;
  color: white;
  background-color: #07376f;
  position: relative;
  top: -1rem;
  left: 38rem;

  margin-top: 1rem;
  padding: 0.5rem;
  width: 8rem;
  line-height: 1.5;
}

#aboutSection{
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.aboutTextBox{
  width: 50rem;
  margin-left: auto; /* Center the image in the PortraitBox */
  margin-right: auto; /* Center the image in the PortraitBox */
  padding-top: -15rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  padding-bottom: 1rem;
  background-color: rgba(24,176,230, 0.1);
}

.colorBar{
  width: 50rem;
  height: 0.5rem;
  margin-left: auto; /* Center the image in the PortraitBox */
  margin-right: auto; /* Center the image in the PortraitBox */
  background-image:
    linear-gradient(
      45deg,
      #0D77EE,
      #0BB1E9,
      #01F7C3,
      #6CC481
      );
}

.section-title{
  font-size: 4.35rem;

  font-family: "Tourney", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: #07376f;
}

#projects {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem; /* This creates spacing between rows and columns */
  justify-content: center; /* Optional: helps keep them centered */
  max-width: 52rem; /* Slightly wider to account for gap */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.project_box{
  display: flex;
  margin-bottom: 3rem;
 /* Add right margin for spacing between columns */
}

a {
  text-decoration: none; /* Remove the underline */
  color: inherit; /* Inherit the color from the parent element */
}


#project_alien{
  width: 25rem;
  height: 20rem;
  background-image: url(img/alienzapper.png);
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; 
  transition: .5s ease;
}

#project_alien:hover{
  background-image: url(img/alienzapper.gif);
  box-shadow: 1rem 1.5rem #01F7C3;
}

#project_olivetti{
  width: 25rem;
  height: 20rem;
  background-image: url(img/olivetti.png);
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; 
  transition: .5s ease;
}

#project_olivetti:hover{
  background-image: url(img/olivetti.gif);
  box-shadow: 1rem 1.5rem #01F7C3;
}

#project_nugget{
  width: 25rem;
  height: 20rem;
  background-image: url(img/nugget.png);
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; 
  transition: .5s ease;
}

#project_nugget:hover{
  background-image: url(img/nugget.gif);
  box-shadow: 1rem 1.5rem #01F7C3;
}

#project_racoons{
  width: 25rem;
  height: 20rem;
  background-image: url(img/racoons.png);
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; 
  transition: .5s ease;
}

#project_racoons:hover{
  background-image: url(img/racoons.gif);
  box-shadow: 1rem 1.5rem #01F7C3;
}


.projectTittleBlock{
  text-align: center;
  font-size: 1.5rem;
  color: white;
  background-color: #07376f;
  position: relative;
  top: 16rem;
  left: 13rem;

  padding: 0.5rem;
  width: 10rem;
  line-height: 1.5;
}

.projectType{
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: #07376f;
  background-color: rgba(255, 255, 255, 0.5);
  position: relative;
  top: 16rem;
  left: 13rem;

  padding: 0.25rem;
  width: 10rem;
  line-height: 1.5;
}

.colorbar_project{
  width: 25rem;
  height: 0.75rem;
  position: relative;
  top: 20rem;
  margin-left: auto; /* Center the image in the PortraitBox */
  margin-right: auto; /* Center the image in the PortraitBox */
  background-image:
    linear-gradient(
      45deg,
      #0D77EE,
      #0BB1E9,
      #01F7C3,
      #6CC481
      );
}

.colorbar_footer{
  width: 100%;
  height: 1.5rem;

  
  margin-left: auto; /* Center the image in the PortraitBox */
  margin-right: auto; /* Center the image in the PortraitBox */
  background-image:
    linear-gradient(
      45deg,
      #0D77EE,
      #0BB1E9,
      #01F7C3,
      #6CC481
      );
}

footer {
  background-color: #07376f;
  padding: 2rem;
}



@media (max-width: 700px) {
  .wrapperColor {
    flex-direction: column; /* Stack the divs vertically */
    align-items: center; /* Center the divs horizontally */
  }

  #textHeroBox,
  #portraitBox {
    width: 100%; /* Make them take full width */
    text-align: center; /* Center content within each box */
    margin-bottom: 2rem; /* Add some space between the stacked divs */
  }

  .name-title {
    text-align: center; /* Center the name on smaller screens */
    font-size: 3rem; /* Adjust font size for smaller screens */
  }

  .name-title2{
    text-align: center;
    font-size: 2.5rem;
  }

  .contrastBlock {
    margin-left: auto; 
    margin-right: auto; 
    font-size: 1.6rem;
    margin-top: 1rem;
    padding: 0.25rem;
    width: 9.5rem;
  }

  #portrait {
    max-width: 80%; /* Adjust image size for smaller screens */
    height: 10rem;
  }

  p{
    font-size: 1.25rem;
    line-height: 1;

  }

  .project_box {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .contrastBlockAbout {
    font-size: 1.5rem;
    left: 1rem;
  }
  .aboutTextBox{
  width: 100%;
  }

  .colorBar{
    width: 100%;
    height: 0.25rem;
  }
  .section-title{
    font-size: 3rem;
  }
}