/* General Page Styling */
#content {
  width: 100%;
  min-height: 100vh;
  margin: auto;
  color: #dfdfdf;
  background-color: black;
}

p {
  font-size: 18px;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: left;
  /* hyphens: auto; */
  margin-bottom: 15px;
}

/* Introduction Section Styling */
#intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 90%;
  margin: auto;
  padding-top: 60px;
}

#introduction {
  order: 1; 
}

#portrait {
  max-height: 60vh;
  max-width: 40%;
  filter: grayscale(0.2);
  order: 2; 
  pointer-events: none;
}

#intro h1 {
  font-size: 75px;
  margin: 0;
}

#intro h2 {
  font-size: 24px;
  margin: 0;
}

#intro h3 {
  font-size: 18px;
  margin: 0;
}

.buttonPink {
  background-color: rgba(234, 128, 154, 1);
  border: none;
  color: black;
  padding: 15px 32px;
  text-align: center;
  display: inline-block;
  font-size: 18px;
  width: 100%;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-style: normal;
  border-radius: 3px;
}

.buttonPink:hover {
  background-color: rgba(236, 184, 136, 1);
}

.buttonPink:active {
  background-color: rgb(192, 139, 90);
}

#icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 20px;
}

.icon {
  filter: invert(1);
}

.icon img {
  width: 40px;
}

.icon img:hover {
  filter: opacity(0.5);
  cursor: pointer;
}

#sectionBio {
  background-color: #1C1C1C;
  margin: 0;
  padding-top: 30px;
}

#sectionBio h1 {
  margin-top: 0;
  text-align: center;
  align-content: center;
}

#bioBox {
  background-color: black;
  width: 65vw;
  max-width: 800px;
  height: max-content;
  padding: 30px;
  /* padding-left: 40px;
  padding-right: 40px; */
  margin: auto;
  margin-top: 20px;
  border-radius: 25px;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: left;
}

#bioBox p {
  margin: 0;
}

#sectionSkills {
  background-color: #1C1C1C;
  margin: 0;
  padding-top: 30px;
}

#sectionSkills h1 {
  margin-top: 0;
  text-align: center;
  align-content: center;
}

#skillBox {
  background-color: black;
  width: 65vw;
  max-width: 800px;
  height: max-content;
  padding: 30px;
  /* padding-left: 40px;
  padding-right: 40px; */
  margin: auto;
  margin-top: 20px;
  border-radius: 25px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

#skillBox h1 {
  width: 100%;
  text-align: center;
  margin: 5px;
}

.skillBtn {
  display: flex;
  align-items: center;
  border: 2px solid rgba(234, 128, 154, 1);
  border-radius: 5px;
  padding: 10px;
  width: max-content; 
  max-width: 50%; 
  flex: 1 1 0; 
  box-sizing: border-box;
  white-space: nowrap; 
}

.skillBtn img {
  width: 24px; 
  height: 24px; 
  margin-right: 10px;
  filter: invert(1);
}

.skillBtn span {
  font-size: 18px;
  color: #dfdfdf;
}

/* Section Styling */
#sectionWork {
  max-width: 100%;
  min-height: max-content;
  padding-top: 10px;
  margin: auto;
  color: #dfdfdf;
  overflow: hidden;
  background-color: #1C1C1C;
  display: block;
}

#sectionWork h1 {
  text-align: center;
}

/* Grid Container for Tiles */
.workGrid {
  width: 80%;
  margin: auto;
  display: block;
  column-count: 4;
  column-gap: 25px;
  padding-top: 10px;
}
.workGrid .tile {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
}

/* Responsive */
@media (max-width: 1800px) {
  .workGrid {
    column-count: 2;
    width: 95vw;
  }
}

@media (max-width: 900px) {
  .workGrid {
    column-count: 1;
    width: 95vw;
  }
}

/* Tile Styling */
.tile {
  width: 100%;
  height: max-content; 
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 5px;
  background: black;
  opacity: 0;
  overflow: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(50px) rotate(-5deg);
  border-radius: 25px;
  box-sizing: border-box;
  margin-bottom: 25px; 
  display: block;
}

.tile h1 {
  padding-top: 20px;
  padding-bottom: 10px;
  text-align: center;
  margin: 0;
}

.tile h2 {
  padding-top: 15px;
  font-weight: 300;
  text-align: center;
  margin: 0;
}

.tile h4 {
  padding-bottom: 15px;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

.tile .grade {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

.tile img {
  width: 100%;
  border-radius: 15px;
  background-color: #111;
  pointer-events: none;
}

/* .tile .buttonPink {
  border-radius: 0;
  position: absolute;
  bottom: 0;
  right: 0;
} */

.tile .buttonPink {
  margin: 0 auto;
  border-radius: 15px;
  width: 100%;
  display: block;
  margin-bottom: 15px;
}

/* Tile Animation when in view */
.tile.inView {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.tile:hover {
  transform: scale(1.02);
  outline: 3px solid rgba(234, 128, 154, 1);
  transition: transform 40ms ease-in-out, outline 100ms ease-in-out;
}


/* Responsive Adjustments */
@media (max-width: 900px) {
  #intro {
    max-width: 95%;
    padding-top: 40px;
  }

  #introduction {
    order: 1;
    margin-top: 60px;
  }

  #portrait {
    order: 2;
    max-height: 50vw;
    max-width: 95%;
    margin: auto;
    text-align: center;
  }

  #intro h1 {
    font-size: 45px;
  }
  #intro h2 {
    font-size: 18px;
  }
  #intro h3 {
    font-size: 14px;
  }

  .tile-grid {
    grid-template-columns: 1fr; 
  }

  .workGrid {
    width: 80vw;
  }

  #skillBox {
    width: 80vw;
  }

  #bioBox {
    width: 80vw;
  }

  .tile {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 0;
  }
}

@media (max-width: 800px) {
  #portrait {
    order: 2;
    max-height: 60vw;
    max-width: 95%;
    margin: auto;
    text-align: center;
  }

  .workGrid {
    width: 95vw;
  }
}

@media (max-width: 800px) {
  #portrait {
    order: 2;
    max-height: 60vw;
    max-width: 95%;
    margin: auto;
    text-align: center;
  }

  .workGrid {
    width: 95vw;
    column-count: 1; 
  }

  #skillBox {
    width: 95vw;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
  }
  #bioBox {
    width: 95vw;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
    border-radius: 10px;
    padding-top: 15px;
    margin-top: 0;
  }

  #bioBox p {
    margin: 0;
    margin-top: 10px;
  }

  #skillBox {
    padding: 15px;
    border-radius: 10px;
    margin-top: 0;
  }

  .skillBtn {
    width: 100%;
    padding: 8px;
  }
  .skillBtn img {
    scale: 1;
    width: 20px;
    height: 20px;
  }

  .skillBtn span {
    font-size: 12px;
  }

  .tile .buttonPink {
    margin-bottom: 10px;
  }

  .tile {
    padding-bottom: 5px;
    margin-bottom: 15px;
  }

  .tile:hover {
    transform: scale(1.007);
    outline: 3px solid rgba(234, 128, 154, 1);
    transition: transform 40ms ease-in-out, outline 100ms ease-in-out;
  }
}