body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

#main-page {
  height: 100vh; 
  width: 100vw; 
  position: relative;
  overflow: hidden;
}

#main-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; 
  position: relative;
}

#lead-text{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
}

#lead-text h1{
  color: rgb(232, 232, 232);
  font-size: 90px;
  line-height: 0.3;
}

#lead-text h2{
  color: rgb(232, 232, 232);
  font-size: 38px;
}

#main-page img + img{
  position: absolute;
  z-index: 2;
  width: auto;
  height: 500px; 
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#option-bar{
  background-color: black;
  height: 60px;
  width: auto;
  position: absolute;
  display: flex;
  top: 3.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-position: center; 
  z-index: 4;
  border-radius: 5px;
}

.option-button{
  background-color: black;
  cursor: pointer;
  transition: background-color 0.3s;
}

.option-button:hover{
  background-color: rgb(78, 78, 78);
}

.option-text{
  color: rgb(232, 232, 232);
}

.option-button {
  background-color: rgba(86, 17, 17, 0);
  width: 120px;
  height: 60px;
}

#icon-container {
  height: 60px;
  width: auto;
  position: absolute;
  display: flex;
  bottom: 0%;
  gap: 20px;
  left: 50%;
  transform: translate(-50%, -50%);
  object-position: center; 
  z-index: 4;
}

.icon:hover {
  transform: scale(1.1);
}

.resume-button{
  height: auto;
  width: auto;
  padding-left: 10px;
  padding-right: 10px;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-position: center; 
  text-align: center;
  z-index: 4;
  font-size: 15px;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 30px;
  border: solid white 3px;
  color: white;
}

.resume-button:hover{
  background-color: white;
  color: rgb(7, 83, 189);
  cursor: pointer;
  transition: background-color 0.3s;
}



/* -------------------ABOUT---------------------------- */

#about-section{
  background-color: rgb(232, 232, 232);
  width: 100vw;
  height: auto;
  padding: 1px;
  padding-bottom: 50px;
  box-sizing: border-box;
}

.headshot{
  border-radius: 50%;
  height: 250px; 
  width: 260px; 
  border-color: black;
  border-width: 3px;
}

.about-content{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
/* -------------------Experience---------------------------- */

#experience-section{
  background-color: rgb(167, 201, 231);
  width: 100vw;
  max-height: 2000px;
  padding: 1px;
  box-sizing: border-box;
  padding-bottom: 40px;
}

.experience-content{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr auto 3fr;
  max-width: 2000px;
  margin-left: auto;
  margin-right: auto;
}

.experience-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.role {
  margin-top: 55px;
  font-weight: bold;
  font-size: 25px;
}

.latest-role {
  margin-top: 25px;
  font-weight: bold;
  font-size: 25px;
}

.duration {
  font-size: 17px;
  color: #333333;
  margin-top: 0;
}

.experience-right {
  display: flex;
  flex-direction: column;
  margin-left: 50px;
}

.organization {
  font-weight: bold;
  font-size: 25px;
  color: rgb(7, 83, 189);
}

.description {
  font-size: 15px;
  color: #333;
}

.location-column {
  display: flex;
  justify-content: center;
  align-items: flex-start; 
  flex-direction: column;
}

.location-icon {
  margin-left:50px;
  height: 50px;
  width: 50px;
  border-radius: 20px;
}

.line{
  margin-left:73px;
  height: 100%; 
  width: 4px;       
  background-color: black;  
}

.line-column{
  display: flex;
  justify-content: center;
  align-items: flex-start; 
}

.inner-box{
  background-color: rgb(211, 232, 245);
  padding-left: 30px;
  padding-right: 15px;
  padding-bottom: 5px;
  margin-top: 30px;
  border-radius: 10px;
  max-width: 800px;
  max-height: 800px;
}

.latest-experience{
  background-color: rgb(211, 232, 245);
  padding-left: 30px;
  padding-right: 15px;
  padding-bottom: 5px;
  border-radius: 10px;
  max-width: 800px;
  max-height: 800px;
}

/* -------------------Achievements---------------------------- */
#achievements-section{
  background-color: rgb(232, 232, 232);
  width: 100vw;
  max-height: 800px;
  padding: 1px;
  box-sizing: border-box;
}

.about-content{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 55px;
}

.achievement-item{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-height: 900px;
  max-width: 900px;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  border: 1px solid rgb(167, 166, 166);
  background-color: rgb(212, 212, 212);
}

.achievement{
  font-size: 25px;
  margin-bottom: 15px;
  line-height: 1px;
  color: rgb(7, 83, 189);
}

.event{
  font-size: 20px;
  margin-bottom: 25px;
}

.details{
  font-size: 15px;
  margin-top: 0px;
  max-width: 700px;
}
/* -------------------Skills---------------------------- */

#skills-section{
  background-color: rgb(167, 201, 231);
  width: 100vw;
  height: 100%;
  padding: 1px;
  padding-bottom: 45px;
  box-sizing: border-box;
}

.skills{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.specific-item{
  background-color: rgb(211, 232, 245);
  border-radius: 2px;
  border-width: 3px solid black;
  padding-left: 15px;
  padding-top: 7px;
  padding-right: 15px;
  padding-bottom: 7px;
  font-size: 20px;
  margin-top: 25px;
  margin-right: 25px;
}

.skill-title{
  font-size: 25px;
  margin-bottom: 1px;
  color: rgb(7, 83, 189);
  display: flex;
  justify-content: center;
}
/* -------------------Projects---------------------------- */

.project-image-container {
  position: relative;
  width: 250px;
  height: 250px;
}

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

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(235, 238, 238, 0.9);
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image-container:hover .overlay {
  height: 100%;
}

.overlay-text {
  color: black;
  font-size: 14.8px;
  text-align: center;
  padding: 8px;
}

.projects-section {
  background-color: rgb(232, 232, 232);
  width: 100vw;
  max-height: 10000px;
  box-sizing: border-box;
  padding: 35px 0;
}

.projects {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding-bottom: 45px;
  margin: 0 auto; 
  max-width: 1200px; 
}

.project-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 20px; 
}

/* -------------------Contact---------------------------- */

#contact-section{
  background-color: rgb(167, 201, 231);
  width: 100vw;
  max-height: 900px;
  padding: 1px;
  box-sizing: border-box;
  padding-bottom: 40px;
}

.input{
  font-size: 25px;
  margin-bottom: 1px;
  color: rgb(0, 0, 0);
}

#textboxes{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.textbox{
  padding: 6px;
  width: 500px;
  background-color: rgb(211, 232, 245);
  height: 20px;
  border: 1px solid black;
}

.textbox2{
  padding-top: 6px;
  padding-left: 6px;
  padding-bottom: 200px;
  width: 502px;
  background-color: rgb(211, 232, 245);
  white-space: pre-wrap; 
  overflow-wrap: break-word;
  resize: none;
  border: 1px solid black;
  }
  
.submit-button{
  border-radius: 5px;
  font-size: 20px;
  width: 515px;
  padding: 6px;
  background-color: rgb(7, 83, 189);
  color: rgb(211, 232, 245);
}
/* -------------------END-SECTION---------------------------- */
#end-section {
  margin: 30px 0;
  display: flex;
  flex-direction: column; 
  align-items: center;    
  justify-content: center; 
  text-align: center;
  gap: 10px; 
}

.icon {
  width: 100px;  
  height: 100px;
  cursor: pointer;
}

#end-section p {
  font-size: 15px;
  color: rgb(84, 83, 83);
  margin: 0;
}

/* -------------------GENERAL---------------------------- */

.section-headers{
  color: black;
  font-size: 38px;
  text-align: center;
}

.text{
  color: black;
  font-size: 19px;
  max-width: 550px;
  text-align: left;
  gap: 10px;
}

html {
  scroll-behavior: smooth;
}

/* -------------------ADJUSTMENTS---------------------------- */

@media (max-width: 768px) {
  #lead-text h1 {
    font-size: 60px;
    line-height: 1.1; 
  }
  
  #lead-text h2 {
    font-size: 24px;
  }

  #main-page img + img {
    height: 350px;
  }
  
  #option-bar {
    width: 90%; 
    top: 5%; 
  }
  
  .option-button {
    width: auto; 
    padding: 0 10px;
  }

  #contact-section {
    padding: 20px 10px; 
  }
  
  .textbox, 
  .textbox2,
  .submit-button {
    width: 90%; 
    max-width: 350px; 
  }
  
  .textbox2 {
    padding-bottom: 150px; 
  }
  
  .submit-button {
    width: 92%; 
    font-size: 18px; 
  }
  
  .section-headers {
    font-size: 30px; 
  }

  #achievements-section {
    padding: 20px 10px; 
  }

  .achievement-item {
    max-width: 95%; 
    padding: 15px; 
  }

  .achievement {
    font-size: 22px; 
    line-height: 1.2;
  }

  .event {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .details {
    font-size: 14px; 
    padding: 0 10px; 
  }

  .details li {
    margin-bottom: 8px;
  }

  #experience-section {
    padding: 20px 15px; 
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-bottom: 25px;
    position: relative; 
  }

  .experience-item:not(:last-child)::after {
    content: "";
    display: block;
    width: 80%; 
    height: 2px;
    background: rgba(7, 83, 189, 0.3); 
    margin: 20px auto; 
  }

  .experience-left, 
  .experience-right {
    text-align: center;
    margin-left: 0;
    align-items: center;
  }

  .location-column {
    display: none;
  }

  .role,
  .latest-role {
    margin-top: 15px;
    font-size: 20px;
  }

  .duration {
    font-size: 15px;
    margin-bottom: 10px;
    color: #555; 
  }

  .organization {
    font-size: 20px;
    color: rgb(7, 83, 189); 
  }

  .description {
    font-size: 14px;
    text-align: left;
    padding: 0 10px; 
  }

  .inner-box,
  .latest-experience {
    max-width: 100%;
    padding: 15px;
    margin-top: 10px;
    background-color: rgba(211, 232, 245, 0.7); 
  }

  #about-section {
    height: auto; 
    padding: 40px 20px; 
  }

  .about-content {
    flex-direction: column; 
    gap: 30px;
    padding: 0 15px; 
  }

  .headshot {
    width: 200px; 
    height: 200px;
  }

  .text {
    text-align: center; 
    max-width: 100%; 
    font-size: 16px; 
    padding: 0 10px; 
  }

  #option-bar {
    top: 5%;
    width: 90%; 
  }
  
  .option-button {
    padding: 5px 6px;
  }
  
  .option-text {
    font-size: 12px;
  }
  .resume-button {
    padding: 6px 12px;
    font-size: 14px;
    border-width: 2px;
    bottom: 12%; 
  }

  .icon {
    width: 80px;
    height: 80px;
    bottom: 4%;
  }
}