body {
  margin: 0px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
  background: #2857a4;
  border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #1f4080;
}

/* Body Header */

#body-header {
  height: 65vh;
  opacity: 0.9;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRDuOf-rKHphBJZ4q6iZsqP9fP7oeTgv8yyUQ&s");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 1.2rem;
  min-height: 420px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Horizontal Lists */

.bars {
  color: white;
  margin: 0;
  margin-right: 5%;
  display: none;
}

.bars i {
  font-size: 2rem;
}

.dropdown-list {
  margin: 0;
  display: none;
  background-color: #828470;
  box-shadow: 0px 4px 8px 1px #535547;
}

.dropdown-list ul {
  margin: 0.2rem 0.2rem;
  text-align: left;
  padding: 0px 0.8rem;
}

.dropdown-menu:hover .dropdown-list {
  display: block;
  position: absolute;
  right: 3%;
}

.dropdown-list li {
  margin: 0.4rem 0px;
}

.no-list-style {
  list-style: none;
}

.no-list-style li {
  font-weight: 100;
  font-size: 0.9rem;
}

.no-list-style li a {
  list-style: none;
  color: white;
  text-decoration: none;
}

.horizontal-list {
  padding-left: 0px;
  margin: 0px;
}

.horizontal-list li {
  display: inline-block;
  margin: 0px 12px 8px 0px;
}

.nav-menu li a {
  transition:
    color 0.5s,
    border-bottom 4s;
}

.nav-menu li a:hover {
  color: #fff;
  border-bottom: 2px solid #fff;
  transition: all 0.3s ease;
}

/* Name and Social Icons*/

#name-social-container {
  margin-top: 20vh;
  padding: 0 1rem;
}

#my-name {
  font-size: 3.5rem;
  letter-spacing: 0.05rem;
  color: white;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-icons li a i {
  padding: 10px;
  font-size: 1rem;
  border-radius: 50%;
}

.social-icons li a i:hover {
  box-shadow: 0 0 15px 5px rgba(40, 87, 164, 0.3);
  transform: translateY(-3px);
  transition: all 0.3s ease;
}

/*Section Classes*/

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 16px;
}

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

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

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

.section-heading span {
  font-size: 40px;
  color: #2857a4;
  display: inline-block;
  padding-top: 10px;
  margin-right: 0.5rem;
  font-weight: 700;
}

/*About Section*/

#about {
  height: auto;
  width: 100%;
  position: relative;
  margin-bottom: 30px;
}

#my-image {
  height: 12rem;
  width: 12rem;
  margin: auto;
  margin-top: -17vh;
  max-width: 80vw;
  max-height: 80vw;
}

#my-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

#my-image img:hover {
  transform: scale(1.05);
}

#about-para {
  padding: 10px 0;
  width: 70%;
  max-width: 850px;
  text-align: justify;
  color: grey;
  line-height: 28px;
  font-size: 1.1rem;
  margin: auto;
}

/*Skills Section*/

.skills-display {
  width: 75%;
  max-width: 520px;
  padding: 10px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 16px 28px;
  justify-items: center;
}

.skill-progress {
  width: 180px;
  height: 2.2rem;
  background-color: #e8eef5;
  border-radius: 12px;
  box-shadow: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dbe0e8;
}

.skill-progress>div {
  border-radius: 12px 0px 0px 12px;
  box-shadow: 0 2px 8px rgba(40, 87, 164, 0.2);
  transition: width 0.4s ease;
}

.skill-name span {
  color: white;
  font-size: 1rem;
  margin-left: 10px;
  line-height: 2.2rem;
  vertical-align: middle;
}

/* Work Experience */

.timeline {
  position: relative;
  width: 75%;
  max-width: 1000px;
}

.timeline-box {
  padding: 5px;
  width: 40%;
  min-height: 150px;
  position: relative;
  left: 5%;
  text-align: right;
  box-sizing: border-box;
}

.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-container {
  padding: 8px;
}

.timeline-logo {
  position: absolute;
  width: 50px;
  overflow: hidden;
}

.timeline-logo>img {
  width: 100%;
}

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

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

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

.experience-designation {
  font-size: 1.4rem;
}

.experience-company-name {
  margin: 5px 0 0;
  color: #eb822d;
  font-weight: 400;
  font-size: 1.2rem;
}

.experience-duration {
  color: #9e9b9b;
  font-weight: 100;
  color: grey;
  font-size: 1rem;
}

.experience-description {
  font-size: 14px;
  padding: 2px;
  color: grey;
  line-height: 20px;
}

/* Portfolio Section */

#portfolio-container {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  padding: 0 50px;
  margin-bottom: 20px;
  justify-content: space-around;
  max-width: 1200px;
}

.portfolio-image-container {
  width: min(300px, 100%);
  overflow: hidden;
  margin: 30px;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  border-radius: 10px;
}

.portfolio-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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;
}

.portfolio-image-container:hover .portfolio-details {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Contact Form */

#contact {
  background: linear-gradient(135deg, #2857a4 0%, #1f4080 100%);
  color: white;
  padding-bottom: 40px;
  position: relative;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

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

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

#contact-container {
  display: flex;
  width: 100%;
  max-width: 1100px;
  gap: 2rem;
}

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

#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;
  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;
  box-sizing: border-box;
}

#contact-form button[type="submit"] {
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
  border: 2px solid white;
  margin-top: 5%;
  margin-left: 35%;
  border-radius: 6px;
  color: white;
  font-family: sans-serif;
  font-weight: 700;
  letter-spacing: 0.046875em;
  line-height: 1;
  padding: 0.8em 2em 0.78em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

#contact-form button:hover {
  background: white;
  color: #2857a4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#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 Text Align Classes */

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

/* Common Margin Classes */

.m0 {
  margin: 0;
}

.mb75px {
  margin-bottom: 75px;
}

.mb50px {
  margin-bottom: 50px;
}

/*common color classes */

.text-highlight {
  color: #2857a4;
  font-weight: 600;
}

/* setting background-color */

.m-blue {
  color: #2857a4;
}

.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%;
}

.seventhy-percent {
  height: inherit;
  width: 70%;
}

.fifteen-percent {
  height: inherit;
  width: 15%;
}

@media only screen and (max-width: 572px) {
  .skills-display {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  #body-header {
    background-attachment: scroll;
    min-height: 360px;
  }

  #my-name {
    font-size: 2.1rem;
  }

  #about-para {
    width: 90%;
    font-size: 1rem;
    line-height: 1.8;
  }

  .timeline-box {
    width: 90%;
    left: 10% !important;
    text-align: left;
  }

  .bars {
    display: block;
  }

  .nav-menu {
    display: none;
  }

  #portfolio-container {
    padding: 0 12px;
  }

  .portfolio-image-container {
    margin: 12px 0;
  }
}

@media only screen and (max-width: 768px) {
  #my-image {
    margin-top: -10vh;
  }

  .timeline-box {
    width: 90%;
    left: 10% !important;
    text-align: left;
  }

  .timeline-box::after {
    left: -9.3% !important;
  }

  #timeline-divider {
    top: 10%;
    left: 2%;
  }

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

  #contact-container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  #my-details-container {
    width: 80%;
    margin: 10%;
  }

  #contact-form-container {
    width: 80%;
    margin: 10%;
  }

  #portfolio-container {
    padding: 0 20px;
  }

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