*{
   box-sizing: border-box;
}
body{
   margin: 0;
   height: 100vh;

   display: flex;
   flex-direction: column;
   overflow: hidden;

   background-image: url("static/photo1.jpg");
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   background-attachment: fixed;
}

body>header{
   flex-shrink: 0;
}

nav{
   position: relative;
   box-sizing: border-box;
   position:relative;
   width: 100%;
   min-height: 60px;
   padding: 10px 20px;

   display: flex;
   justify-content: center;
   align-items: center;
   font-size: 17px;
   padding: 20px;
   gap: 100px;

   background-color: rgba(188, 188, 188, 0.134);
}

nav a {
   display: inline-block;
   margin: 0;
   padding: 0;
   font-size: 17px;
   line-height: 1.5;
   color: black;
   text-decoration: none;
   white-space: nowrap;
   flex-shrink: 0;
}

nav a:hover {
   color: rgba(255, 0, 0, 0.928);
   text-decoration: none;
   justify-content: center;
   margin-right: 0 10px;

}

nav .instagram {
  position: absolute;
  right: 57px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

nav .instagram img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

nav .Portfolio{
  color: rgba(0, 0, 0, 0.928);
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  display: flex;
  margin-left: 10px;
}

.about-me{
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 30px 130px;
  flex: 1;

  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  column-gap: 248px;
  box-sizing: border-box;
}

.left-about-me{
  min-width: 0;
  min-height: 0;
  overflow-y: visible;

  position: relative;
  left: 30px;
  top: 8px;
}

.head-portrait{
  display: block;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
}

.left-about-me h1{
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}   

.left-about-me p{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.left-about-me .location{
    display: flex;
    align-items: center;
    gap:6px
}
.location img{
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.right-about-me{
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  padding-right: 20px;
}

.about-me-intro p{
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.right-about-me h2{
  margin: 0 0 24px;
  padding-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.right-about-me h3{
  margin: 0 0 20px;
  padding:0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #444;
  border: none;
}
.right-about-me h4{
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #444;
}

.experience-position-time{
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
}

.about-me1{
  margin-bottom: 36px;
}
.on-campus-experience{
  margin-bottom: 24px;
}
.off-campus-experience{
  margin-bottom: 24px;
}

@media (max-width: 700px) {
   body{
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }
  .about-me{
    height: auto;
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .left-about-me{
    overflow: visible;
  }

  .right-about-me{
    overflow: visible;
    padding-right: 0;
  }
}

