/* new code */
body {
  margin: 0px;
  font-family: sans-serif;
  font-size: 30px;
}

/* Body Header */
#body-header {
  height: 65vh;
  opacity: 0.8;
  background-image: url(https://ninjasfiles.s3.amazonaws.com/asset_0000000000000020_1549743985_macbook_mouse.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 1.2rem;
}

/* Horizontal Lists */
.horizontal-list {
  list-style: none;
  padding-left: 0px;
  margin: 0px;
}

.socialaddress {
  display: flex;
}

.horizontal-list li {
  display: inline-block;
  margin: 0px 8px 0px 10px;
  font-weight: 400;
  font-size: 1rem;
}

.horizontal-list li a {
  color: white;
  text-decoration: none;
}

/* Social links */


.horizontal-list-social {
  list-style: none;
  padding-left: 0px;
  margin: 0px 0px 0px 17px;
}

.horizontal-list-social li {
  display: inline-block;
  margin: 0px 8px 0px 10px;
  font-weight: 400;
  font-size: 2rem;
}

.horizontal-list-social li a {
  color: white;
  text-decoration: none;
}


.nav-menu li a {
  transition: color 0.5s, border-bottom 4s;
}

.nav-menu li a:hover {
  color: lightgrey;
  border-bottom: 1px solid black;
}

.text-center {
  text-align: center;
}

/* Name and Social Icons*/
#name-social-container {
  margin-top: 20vh;
}

#my-name {
  font-size: 3rem;
  letter-spacing: 0.1rem;
  color: white;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.social-icons li a i {
  padding: 10px;
  font-size: 1rem;
  border-radius: 50%;
}

.social-icons li a i:hover {
  box-shadow: 0px 0px 6px 4px rgba(230, 196, 196, 0.3);
}

/*Section Classes*/
section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section:nth-child(2n) {
  background-color: #9e9b9b29;
}

section:nth-child(2n + 1) {
  background-color: white;
}

.section-heading {
  width: auto;
  padding: 20px 10px 10px;
  font-weight: 400;
  margin-bottom: 75px;
}

.section-heading span {
  font-size: 40px;
  color: #2857a4;
  display: inline-block;
  padding-top: 10px;
  margin-right: 0.5rem;
}

/*About Section*/
#about {
  height: auto;
  width: 100%;
  position: relative;
  margin-bottom: 30px;
}

#my-image {
  height: 12rem;
  width: 12rem;
  margin: auto;
  margin-top: -17vh;
}

#my-image img {
  height: 100%;
  object-position: top;
  object-fit: cover;
  width: 100%;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 1px 1px 10px 2px lightgrey;
}

#about-para {
  padding: 10px;
  width: 70%;
  text-align: justify;
  color: grey;
  line-height: 28px;
  font-size: 1.1rem;
  margin: auto;
}

/*Skills Section*/
.skills-display {
  width: 75%;
  padding: 10px;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.skill-progress {
  width: 15rem;
  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;
}

.skill-name span {
  color: white;
  font-size: 1rem;
  margin-left: 10px;
  vertical-align: middle;
}

/* Work Experience */
.timeline {
  position: relative;
  width: 75%;
  border: none;
}

.timeline-box {
  padding: 5px;
  width: 40%;
  min-height: 150px;
  position: relative;
  left: 5%;
  text-align: left;
  border: none;
}

.timeline-box::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: lightgrey;
  top: 25%;
  border-radius: 50%;
  z-index: 1;
}

.timeline-box:nth-child(2n) {
  left: 53%;
}

.timeline-box:nth-child(2n+1)::after {
  right: -11.8%;
}

.timeline-box:nth-child(2n)::after {
  left: -9%;
}

#timeline-divider {
  position: absolute;
  width: 0;
  top: 8%;
  left: 50%;
  border: 2px dashed #0096fa6b;
  height: 75%;
  color: #433E3F;
}

@media screen and(max-width:600px) {
  .timeline-box {
    left: 12% !important;
    width: 80%;
  }

  .timeline-box::after {
    left: -12% !important;
  }

  /* .timeline-box:nth-child(2n+1)::after {
    left: 12%;
  }

  .timeline-box:nth-child(2n)::after {
    left: 12%;
  } */
  /* .timeline-box:nth-child(2n) {
    left: 12%;
  } */
}

.timeline-traveller {
  position: sticky;
  top: 135px;
  z-index: 2;
}



.timeline-traveller i {
  transform: rotate(90deg);
  margin-top: -35px;
  display: block;
  color: #2857a4;
}



/* Portfolio Section */
#portfolio-container {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  padding: 0 50px;
  margin-bottom: 20px;
  justify-content: space-around;
}

.portfolio-image-container {
  max-width: 300px;
  overflow: hidden;
  margin: 10px;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.portfolio-image-container img {
  width: 100%;
  height: 29vh;
}

.portfolio-details {
  transition: all 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  color: transparent;
  text-align: center;
  padding: 10px;
}

.portfolio-image-container:hover {
  box-shadow: 0 0 20px #74ADC8;
  font-size: 1rem;
}

.portfolio-image-container:hover .portfolio-details {
  background-color: #262626;
  color: white;
}

/* Contact Form */
#contact {
  background-color: #0abcf9;
  background-image: linear-gradient(50deg, #2857a4 0%, #403066 74%);
  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;
}

#my-details-container h4 {
  color: white;
  font-weight: 550;
  font-size: 1.2rem;
  margin-left: 0.8rem;
  margin-top: 0.8rem;
}


#contact-form-container {
  width: 50%;
}

#contact-form-container h3 {
  font-size: 2rem;
  margin-left: 15rem;
  margin-bottom: 2rem;
}

#my-details-container p {
  color: #d9dcdd;
  font-size: 0.9rem;
}

.my-details-info-container {
  margin-bottom: 20px;
  color: #d9dcdd;
  font-size: 1rem;
}

.my-details-info-container span {
  margin-left: 0.4rem;
}

.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;
  color: #d9dcdd;
  background: transparent;
  width: 90%;
  line-height: 1.6;
  font-size: 1.05rem;
}

#contact-form button[type="submit"] {
  background: transparent;
  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;
}

#contact .social-icons li a i {
  font-size: 1.2rem;
  margin: 40px 10px 10px;
  padding: 10px 14px 20px 10px;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Common Margin Classes */
.mb75px {
  margin-bottom: 75px;
}

.mb50px {
  margin-bottom: 50px;
}

/*common color classes */
.text-highlight {
  color: #2857a4;
  font-weight: 600;
}

/* setting background-color */
.mb-blue {
  background-color: #2857a4;
}

.mb-orange {
  background-color: #ec4d1c;
}

.mb-teal {
  background-color: #0b8176;
}

.mb-light-purple {
  background-color: #93738c;
}

/*Percentage Classes */
.eighty-five-percent {
  height: inherit;
  width: 85%;
}

.eighty-percent {
  height: inherit;
  width: 80%;
}

.ninty-percent {
  height: inherit;
  width: 90%;
}

.fifty-percent {
  height: inherit;
  width: 50%;
}

.sixty-percent {
  height: inherit;
  width: 60%;
}

/* EDUCATION-BOX */
.box1-heading {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 0;
  color: #2857a4;
}

.heading-color {
  color: orange;
}

.box1-paragraph {
  font-size: 1rem;
  text-indent: 5px;
}

.duration {
  color: grey;
}

/* media query */
@media screen and (min-width:768px) {


  .timeline {
    width: 100%;
  }

  #contact-container {
    flex-direction: column;
  }

  #contact-form-container {
    width: 100%;
  }

  #my-details-container {
    width: 100%;
    margin-left: 18%;
    /* text-align: center; */
  }



}



/* Mobile styles */
@media (max-width: 480px) {
  #timeline-divider {
    display: none;
  }

  .timeline-box {
    width: 100%;
    font-size: 0.8em;
    padding: 15px;
    left: 0 !important;
    border: 1px solid #dedede;
    margin-bottom: 10px;
    border-radius: 20px;
    box-shadow: inset 0px 3px 15px 0px rgb(5 5 5 / 46%);
  }

  .timeline-traveller i {
    font-size: 20px;
  }

  .section-heading {
    font-size: 20px;
    margin-bottom: 0;
  }

  .timeline-box::after {
    display: none;
  }

  /* Contact Css  */
  #contact-container {
    flex-direction: column;
    gap: 15px;
  }

  #contact-form-container,
  .socialaddress {
    padding: 15px;
    width: 90%;
    margin-left: 3%;
  }

  #contact-form {
    margin: 0;
  }

  #my-details-container {
    width: 100%;
    margin-left: 2%;
  }

  #contact-form input,
  #contact-form textarea {
    font-size: 14px;
    padding: 8px;
  }

  #contact-form button {
    padding: 8px 15px;
    font-size: 14px;
  }

  .my-details-info-container {
    font-size: 14px;
  }

  .horizontal-list-social li a {
    font-size: 18px;
  }

  #contact-form-container h3 {
    margin: 0;
  }

  .credit {
    font-size: 18px !important;
  }
}

@media (max-width: 385px) {
  .section-heading span {
    font-size: 31px;
  }

  .credit {
    font-size: 11px !important;
  }

  #my-details-container h3 {
    font-size: 16px;
  }

  .my-details-info-container span {
    font-size: 9px;
  }

  .my-details-info-container i {
    font-size: 9px;
  }
}
