/* #website styles moved to common.css for consistency */


/* Ensure content doesn't interfere with fixed nav */
#about-page {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#about-area {
  display: flex;
  flex-direction: column;
  margin-left: 15%;
  margin-right: 15%;
  margin-top: 5%;
  margin-bottom: 5%;
  scroll-margin-top: 80px; /* Extra space above title when scrolling from "Back to top" */
  z-index: 10;
}
.section {
  margin-left: 8%;
  margin-right: 8%;
  margin-top: 4%;
  z-index: 10;
}
a{
  color: inherit;
  text-decoration: none;
}
.link{
  color: inherit;
  border-bottom: 1px dotted #000;
  text-decoration: none;
}
.link:hover{
  color: #8a8a8a;
  font-weight: 800;
}
#main-sec{
  display: flex;
  gap: 8%;
  flex-direction: row;
  z-index: 10;
}
#me{
  width: 40%;
  height: fit-content;
  border-radius: 10px;
  z-index: 10;
}
#writing p {
  line-height: 1.6;
}
#writing h4 {
  line-height: 1.3;
}
#picture-section{
  display: flex;
  align-items: center;
  z-index: 10;
}
.hover-text {
  visibility: hidden;
  width: 150px;
  background-color: rgb(30, 30, 30);
  font-family: "Instrument-sans-reg";
  /* border: 1px dashed rgb(146, 146, 146); */
  color: #e9e9e9;
  text-align: center;
  border-radius: 8px;
  padding: 6px 6px;
  position: absolute;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hover:hover .hover-text {
  visibility: visible;
  opacity: 1;
}
.hover{
  width: 20%;
  z-index: 10;
}
.picture{
  width: 100%;
  height: auto;
  z-index: 10;
}
#pictures{
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 6%;
  display:flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap:wrap;
  z-index: 10;
}
#name:hover {
  filter: drop-shadow(3px 3px 3px #54b3d6);
  color: rgb(78, 120, 165);
}
#about-me{
  font-weight: 800;
  color: #87004d;
  z-index: 10;
}

/* Sparkle animation */
i {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--random-color);
  pointer-events: none;
  animation: animate 2s linear forwards;
}
@keyframes animate {
  0% {
    opacity: 1;
    transform: translate(0,0);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y));
  }
}

@media screen and (max-width: 768px) {
  #main-sec{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  #me{
    min-width: 275px;
    width: 80%;
    max-width: 350px;
  }
  #about-area{
    margin-left: 4%;
    margin-right: 4%;
    margin-top: 8%;
  }
  .section {
    margin-left: 4%;
    margin-right: 4%;
  }
  /* Fix for picture section - target the correct container */
  #picture-section{
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-left: 4%;
    margin-right: 4%;
  }
  .hover{
    width: 80%;
    max-width: 200px;
    margin: 0 auto;
  }
  .picture{
    width: 100%;
    height: auto;
  }
}