* {
  box-sizing: border-box;
}

body {
  margin: 0px;
  font-family: sans-serif;
  font-size: 35px;
}

/* header-background */
#body-header {
  height: 65vh;
  width: 100%;
  opacity: 0.8;
  background-image: url(https://p4.wallpaperbetter.com/wallpaper/853/1023/682/apple-macbook-airbook-computer-mouse-wallpaper-preview.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 2vh;
  position: absolute;
}

#body-header ul {
  margin: 0px;
  text-align: center;
  list-style: none;
}

/* header list items */
#body-header ul li {
  display: inline-block;
  font-weight: 100;
  font-size: 1rem;
}

/* header anchor tag */
#body-header ul li a {
  text-decoration: none;
  color: white;
  padding: 0px 5px;
}

/* hover on headeranchor */
#navigation li a:hover {
  color: red;
  border-bottom: 1px solid white;
  transition: color 0.5s;
  /* box-shadow: 0px 0px 10px 5px rgba(252, 250, 250, 0.5); */
}

/* name div */
#name-div {
  max-height: 1px;
  width: 100%;
  overflow: scroll;
}

/* header h1 name */
#my-name {
  font-size: 100%;
  max-height: 55px;
  letter-spacing: 0.1rem;
  color: white;
  font-weight: 700;
  margin: 5% 0px 1%;
  text-align: center;
  overflow: hidden;
}

/* hover on social icons */
#social-icons li a i:hover {
  box-shadow: 1px 1px 5px 2px #989882;
  border-radius: 50%;
}

/* social icons */
#social-icons li a i {
  padding: 10px;
}

main {
  padding-top: 65vh;
}

section {
  width: 100%;
  height: auto;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

section:nth-child(2n) {
  background-color: #9e9b9b29;
}

section:nth-child(2n + 1) {
  background-color: white;
}

/* my image div */
#my-image {
  margin: auto;
  margin-top: -10%;
  margin-bottom: 0%;
  height: 15%;
  width: 15%;
  min-width: 110px;
  min-height: 110px;
  z-index: 1;
}

/* image styles */
#my-image img {
  height: 100%;
  width: 100%;
  border-radius: 50%;
  box-shadow: 0px 0px 10px 4px white;
}

/* about para styles */
#about-para {
  font-size: 16px;
  font-family: -webkit-body;
  text-align: justify;
  color: rgba(0, 0, 0, 0.7);
  margin: 40px 200px;
}

#skills {
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.section-heading {
  width: auto;
  padding: 20px 10px 10px;
  margin: 10px auto;
  font-weight: 400;
}

.section-heading span {
  color: #2857a4;
  font-size: 40px;
  display: inline-block;
  padding-top: 10px;
}

.skills-display {
  width: 80%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  height: auto;
  padding: 5%;
}

.skill-progress {
  width: 11rem;
  height: 2.2rem;
  background-color: lightgrey;
  border-radius: 1rem;
  box-shadow: 1px 1px 2px 1px #b9b9b9 inset;
  margin: 25px;
  overflow: hidden;
}

.skill-progress > div {
  border-radius: 20px 0px 0px 20px;
  box-shadow: 1px 1px 5px 2px #989882;
  text-align: center;
}

.skill-name span {
  color: white;
  font-size: 12px;
  vertical-align: middle;
  margin-left: 10px;
  margin-bottom: 5px;
}

/* section:target{
    background-color: darkgreen;
} */

/* WORK EXPERIENCE */

.timeline {
  position: relative;
  width: 80%;
}

.timeline-box {
  min-height: 200px;
  width: 40%;
  left: 5%;
  position: relative;
  margin: 0px 5px;
}

.timeline-box:nth-child(2n) {
  left: 55%;
}

.timeline-box:nth-child(2n)::before {
  content: "";
  border-radius: 50%;
  position: absolute;
  background-color: #8888886b;
  width: 0.8rem;
  height: 0.8rem;
  top: 10%;
  left: -14.6%;
  z-index: 1;
}

.timeline-box:nth-child(2n + 1)::after {
  content: "";
  border-radius: 50%;
  position: absolute;
  background-color: #7273746b;
  width: 0.8rem;
  height: 0.8rem;
  top: 50px;
  left: 110.5%;
  z-index: 1;
}

.work-img {
  height: 100px;
  width: 20%;
  margin: 0px;
  display: inline-block;
}

.work-img > img {
  height: 80px;
  width: 80%;
}

.role-name {
  display: inline-block;
  text-align: end;
  width: 70%;
}
.role-name h4 {
  color: rgb(110, 29, 185);
  margin: 20px 0px 10px;
  font-size: 22px;
}
.role-name h5 {
  margin: 0px;
  color: orangered;
  font-size: 15px;
}
.role-name p {
  margin: 5px;
  color: gray;
  font-size: 15px;
}

.timeline-box > p {
  margin: 0px;
  font-size: 15px;
  color: rgba(27, 27, 27, 0.8);
}
.timeline-box li {
  margin: 0px;
  font-size: 15px;
  color: rgba(27, 27, 27, 0.8);
}

#timeline-divider {
  position: absolute;
  width: 0;
  top: 60px;
  left: 50%;
  border: 1px dashed #0096fa6b;
  height: 69%;
  color: #433e3f;
  z-index: 0;
}

#timeline-divider .timeline-traveller {
  position: sticky;
  top: 135px;
  z-index: 2;
}

#timeline-divider i {
  transform: rotate(90deg);
  margin-top: -60px;
  display: block;
  color: #2857a4;
}

.portfolio-class {
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  height: auto;
  padding: 5%;
}

.imagediv {
  border-radius: 20px 0px;
  padding: 10px;
  border: rgba(66, 61, 61, 0.3) 1px solid;
  margin: 20px;
  background-color: rgb(204, 203, 203);
}

.portfolio-class img {
  height: 200px;
  width: 200px;
  border-radius: 20px 0px;
}
.portfolio-class h6 {
  margin: 0px;
  width: 100%;
  text-align: center;
  background-color: gainsboro;
  border-radius: 3px;
  color: rgb(71, 70, 70);
}

.portfolio-class img:hover {
  opacity: 0.2;
  background-color: darkgray;
}

/* Contact Form */

#contact {
  background-color: #0abcf9;
  background-image: linear-gradient(50deg, #2857a4 0%, #403066 74%);
  /*background-image: linear-gradient(50deg,#2857a4 0%, #5378b1 74%);*/
  /*background-image: linear-gradient(170deg,#2857a4 0%, #8496b2 74%);*/
  /*background-image: linear-gradient(315deg, #2a2a72 0%, #009ffd 74%);*/
  /*background-image: linear-gradient(to right,#13226fe0, #5473a2e0, #434ba8e0);*/
  /*background-color: #13386fe0;*/
  color: white;
  padding-bottom: 40px;
}

#contact h1,
#contact h1 span {
  color: white;
}

#contact-form {
  margin-left: 20%;
}

#contact-container {
  display: flex;
}

#my-details-container {
  width: 35%;
  margin-left: 6%;
}

#my-details-container h3 {
  color: white;
  font-weight: 550;
  font-size: 1.2rem;
}

#contact-form-container {
  width: 50%;
}

#my-details-container p {
  color: #d9dcdd;
  font-size: 0.9rem;
}

.my-details-info-container {
  margin-bottom: 20px;
  color: #d9dcdd;
}

.my-details-info-container span {
  margin-left: 0.4rem;
  font-size: 0.95rem;
}

.my-details-info-container i {
  color: white;
}

.my-details-icon {
  width: 1rem;
  height: 1rem;
  vertical-align: bottom;
  margin-right: 0.5rem;
}

#contact-form input,
textarea {
  max-width: 90%;
  margin: 15px;
  padding: 4px 10px;
  border: 0px solid transparent;
  border-bottom: 2px solid white;
  /*#2857a4*/
  color: var(--contact-light-text-color);
  background: transparent;
  width: 90%;
  line-height: 1.6;
  font-size: 1.05rem;
}

#contact-form button[type="submit"] {
  background: transparent;
  /*#1a1a1a;*/
  font-size: 0.95rem;
  border: 2px solid white;
  margin-top: 5%;
  margin-left: 35%;
  border-radius: 2px;
  color: white;
  font-family: sans-serif;
  font-weight: 700;
  letter-spacing: 0.046875em;
  line-height: 1;
  padding: 0.8em 0.8em 0.78em;
  text-transform: uppercase;
}

#contact-form button:hover {
  background: white;
  color: #13386fe0;
}

ul {
  padding-inline-start: 20px;
  margin: 10px 0px;
}

/* CSS for screen size less 950px */

@media only screen and (max-width: 750px) {
  #about-para {
    font-size: 18px;
    margin: 40px;
  }
}

/* CSS for screen size less 450px */

@media only screen and (max-width: 950px) {
  /* header-background */
  #body-header {
    height: 40vh;
  }

  /* header list items */
  #body-header ul li {
    font-size: 0.8rem;
  }

  /* header anchor tag */
  #body-header ul li a {
    padding: 0px;
  }

  /* header h1 name */
  #my-name {
    font-size: 70%;
    color: white;
    font-weight: 500;
  }

  /* social icons */
  #social-icons li a i {
    padding: 8px;
  }

  main {
    padding-top: 40vh;
  }

  /* about para styles */
  #about-para {
    font-size: 13px;
    margin: 40px;
  }

  .section-heading {
    font-size: 25px;
    font-weight: 200;
    padding: 0px;
  }

  .section-heading span {
    font-size: 30px;
  }

  .skills-display {
    width: 95%;
  }

  .skill-progress {
    width: 100px;
    height: 1.6rem;
    border-radius: 0.8rem;
    margin: 10px;
  }

  .skill-progress > div {
    border-radius: 0.8rem 0px 0px 0.8rem;
    text-align: center;
  }

  .skill-name span {
    color: white;
    font-size: 12px;
    vertical-align: top;
  }

  /* Timeline Divider */
  #timeline-divider {
    position: relative;
    width: 100%;
    height: 80px; /* Adjust for plane path */
    margin-top: 20px;
    overflow: hidden;
  }

  /* Plane Icon */
  .timeline-traveller {
    position: absolute;
    top: 50%;
    left: -50px; /* Start off screen */
    font-size: 24px;
    color: rgb(110, 29, 185);
    transform: translateY(-50%);
    animation: flyPlane 8s linear infinite; /* Continuous animation */
  }

  /* Plane Flight Path Animation */
  @keyframes flyPlane {
    0% {
      left: -50px;
      transform: translateY(-50%) rotate(0deg);
    }
    50% {
      left: 50%;
      transform: translateY(-60%) rotate(10deg); /* Slight tilt */
    }
    100% {
      left: 100%;
      transform: translateY(-50%) rotate(0deg);
    }
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .timeline-traveller {
      font-size: 20px;
    }
    #timeline-divider {
      height: 60px;
    }
  }

  @media (max-width: 480px) {
    .timeline-traveller {
      font-size: 18px;
    }
    #timeline-divider {
      height: 50px;
    }
  }

  .imagediv {
    border-radius: 10px 0px;
    padding: 5px;
    margin: 10px;
  }

  .portfolio-class img {
    height: 100px;
    width: 100px;
    border-radius: 10px 0px;
  }
  .portfolio-class h6 {
    width: 100%;
    font-size: 15px;
  }

  /* Contact Form */

  #contact {
    padding-bottom: 20px;
  }

  #contact h1,
  #contact h1 span {
    color: white;
  }

  #contact-form {
    margin-left: 0%;
  }

  #my-details-container {
    width: 45%;
  }

  #my-details-container h3 {
    font-weight: 350;
    font-size: 0.8rem;
  }

  #contact-form-container {
    width: 40%;
  }

  #my-details-container p {
    color: #d9dcdd;
    font-size: 0.7rem;
  }

  .my-details-icon {
    width: 1rem;
    height: 1rem;
    vertical-align: bottom;
    margin-right: 0.5rem;
  }

  #contact-form input,
  textarea {
    padding: 4px;
    line-height: 1.2;
    font-size: 0.8rem;
  }

  #contact-form button[type="submit"] {
    font-size: 0.6rem;
    border: 1px solid white;
    margin-left: 25%;
    font-weight: 500;
    line-height: 1;
  }

  .my-details-info-container i {
    font-size: medium;
  }
  .my-details-info-container span {
    font-size: 10px;
    margin: 0%;
    padding: 0%;
    line-height: 10px;
  }
  .my-details-info-container {
    margin: 0%;
  }
}
