html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: rgb(44, 44, 44);
}

.header {
  background-image: url('./assets/pic1.jpg');
  background-color: black;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  min-height: 700px;
  max-height: 1000px;
  width: 100%;
}

.mobile_menu_icon {
  display: none;
}

.nav {
  display: flex;
  background-color: transparent;
  align-items: center;
  justify-content: space-between;
  color: white;
  height: 50px;
}

.nav-div {
  width: 40%;
  display: flex;
  justify-content: space-evenly;
  font-weight: 500;
  font-size: 20px;
  padding-right: 5%;
}

.nav-div a {
  text-decoration: none;
  color: white;
}

.nav h2 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-style: italic ;
  padding-left: 10%;
  margin: 0;
}

.space_compensation {
  height: 50px;
  display: none;
  background-color: transparent;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: black;
  z-index: 5;
  opacity: 0.9;
}

.header-content {
  display: flex;
  justify-content: space-between;
  height: 100%;
  color: white;
}

.header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 8%;
  width: 50%;
}

.profile-name {
  font-size: 70px;
  margin: 0;
}

.profile-state {
  margin-top: 5px;
  font-size: 25px;
}

.profile-description {
  width: 80%;
  margin-top: 0;
}

.links-div {
  display: flex;
  width: 35%;
  justify-content: space-between;
}

.head_link {
  font-size: 25px;
  color: white;
}

.hire-me {
  margin-top: 1rem;
  border-radius: 5px;
  background-color: #0078ff;
  padding: 8px 20px 8px 20px;
  border: 1px solid #0078ff;
  width: 100px;
  text-align: center;
  color: white;
  text-decoration: none;
}

#my_resume:hover {
  background-color: white;
  border: 1px solid #0078ff;
  color: #0078ff;
}

.hire-me a {
  color: white;
  text-decoration: none;
}

.header-profile-div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
}

.profile-img {
  border-radius: 10px;
  height: 75%;
}

.about-me-section {
  height: 90vh;
  min-height: 600px;
  max-height: 700px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-me-card {
  height: 75%;
  width: 65%;
  max-width: 1000px;
  background-color: white;
  box-shadow: 0 0 8px rgb(223, 223, 223);
  display: flex;
  justify-content: space-between;
}

.about-image-div {
  width: 35%;
  height: 100%;
  display: flex;
  /* justify-content: center; */
  align-items: center;
}

.about-image {
  height: 90%;
  margin-left: 10%;
}

.about-content {
  padding: 0 1rem 0 0;
  height: 100%;
  width: 55%;
}

.about-title {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  margin-bottom: 5px;
  position: relative;
  font-size: 30px;
}

.divider {
  height: 3px;
  background-color: #0078ff;
  width: 80px;
}

.about-details {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.about-detail {
  display: flex;
}

.about-detail p {
  margin: 5px 0 5px 0;
}

.subject {
  width: 20%;
  margin-right: 2rem;
  font-weight: bold;
}

.about-desc {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 200; 
}

.skills-section {
  width: 100%;
  height: fit-content;
  background-color: white;
  position: relative;

}

.skill-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-items: center;
  padding: 2rem 0 6rem 0;
}

.skills {
  width: 90%;
  max-width: 1400px;
  height: 60%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.skill {
width: 45%;
}

.skill-bar {
  height: 20px;
  width: 100%;
  background-color: #a3ceff;
  border-radius: 15px;
  padding: 3px;
}

.skill-bar-progress {
  background-color: #0051ad;
  height: 100%;
  border-radius: 10px;
  width: 1%;
  transition: width 2s;
}

.skill_name {
  margin: 0;
}

.js_progress, .rails_progress, .react_progress {
  width: 80%;
}

.flutter_progress, .php_progress {
  width: 75%;
}

.html_progress {
  width: 90%;
}

.services-section {
  width: 100%;
  height: fit-content;
  padding: 1rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #006eff;
  position: relative;
  color: white;
}

.services-section::before {
  height: 100%;
  width: 100%;
  content: ' ';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  background-image: url(./assets/skill_img_3.jpg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100vw 100vh;
  opacity: 0.5;
}

.services-title {
  font-size: 40px;
  font-weight: bold;
  position: relative;
  margin: 0;
  padding-top: 3rem;
}

.services {
  margin: 2rem 0 2rem 0;
  position: relative;
  width: 90%;
  height: inherit;
  align-items: center;
  display: flex;
  justify-content: space-evenly;
}

.service {
  background-color: white;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  min-height: 300px;
  max-width: 300px;
  box-shadow: 0 3px 8px rgb(83, 83, 83);
  color: black;
}

.service-icon-div {
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  height: 100px;
  width: 100px;
  border-radius: 100px;
  border: 9px solid #006eff;
  transition: all 0.3s;
}

 .service:hover .service-icon-div {
  border: 9px solid #b3d4ff;
  background-color: #006eff;
  color: white;
}

.service p {
  text-align: center;
  max-width: 280px;
  margin-top: 0;
}

.service-icon {
  font-size: 35px;
}


.projects-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0 1rem 0;
  background-color: white;

}

.projects {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project {
  display: flex;
  margin: 4rem 2rem 4rem 2rem;
  width: 80%;
  max-width: 1400px;
}

.p_right {
  justify-content: end;
}

.p_details {
  width: 60%;
}

.p_name {
  margin: 0;
  font-size: 30px;
}

.p_date {
  margin: 0;
  font-style: italic;
  color: #6d6d6d;
  font-size: 15px;
}

.p_tags {
  display: flex;
  flex-wrap: wrap;
}

.p_tag {
  background-color: rgb(71, 71, 71);
  color: white;
  border-radius: 8px;
  padding: 2px 5px 2px 5px;
  margin: 5px;
  font-size: 12px;
  letter-spacing: 1px;
}

.p_links {
  display: flex;
}

.p_links a {
  background-color: rgb(12, 0, 185);
  text-decoration: none;
  color: white;
  border: 1px solid rgb(12, 0, 185);
  padding: 4px 10px 4px 10px;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgb(122, 122, 122);
  margin: 5px;
}

.project_img {
  width: 600px;
  height: auto;
}

.project_img2 {
  width: 350px;
  height: auto;
  margin-left: 1rem;
  order: 2;
}

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

/* .projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 95%;
  max-width: 1500px;
  margin-top: 2rem;
  padding-bottom: 5rem;
}

.project {
  width: 400px;
  height: 300px;
  background-color: white;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 2px 2px 8px 2px rgb(206, 206, 206);
}

.project a {
  text-decoration: none;
}

.p_img_div {
  width: 100%;
  height: 70%;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.p_divider {
  height: 1px;
  background-color: rgb(173, 173, 173);
  width: 100%;
}

.p_img {
  height: 100%;
  width: 100%;
  transition: all 1s;
  display: block;
}

.p_img:hover {
  height: 120%;
  width: 120%;
  
}

.p_details {
  padding: 1rem 1rem 1rem 1rem;
  height: 30%;
  display: flex;
  justify-content: space-between;
}

.p_details h4 {
  font-size: 20px;
  margin: 0 0 3px 0;
  color: rgb(37, 37, 37);
}

.p_details p {
  color: rgb(112, 112, 112);
  font-style: italic;
  margin: 2px 0 0 0;
}

.p_links {
  display: flex;
  flex-direction: column;
}

.p_links a {
  color: white;
  padding: 2px 10px 2px 10px;
  background-color: #006eff;
  margin: 2px 0 2px 0;
  border-radius: 5px;
} */

.contact-me-section {
  width: 100%;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #006eff;
  position: relative;
  color: white;
}

.contact-me-section::before {
  height: 100%;
  width: 100%;
  content: ' ';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  background-image: url(./assets/contact2.jpg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100vw 100vh;
  opacity: 0.5;
}

.contact-me-content {
  position: relative;
  height: 80%;
  width: 70%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  background-color: white;
  box-shadow: 0 0 8px rgb(49, 49, 49);
}

.contact-left {
  width: 50%;
  height: 100%;
  margin: 0;
  padding: 0 1rem 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-title {
  color: rgb(43, 43, 43);
  font-size: 35px;
  margin: 2px 0 2px 0;
}

.contact-form {
  margin-top: 2rem;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.name-email {
  width: 45%;
  border: 2px solid black;
  font-size: 14px;
  padding: 3px;
  margin-bottom: 1rem;
}

.message {
  width: 100%;
  border: 2px solid black;
  font-size: 14px;
  padding: 3px;
  margin-bottom: 1rem;
}

.contact-button {
  width: 100%;
  background-color: #006eff;
  font-weight: bold;
  border: 2px solid black;
  cursor: pointer;
}

.contact-right {
  color: black;
  width: 40%;
  height: 100%;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact_info {
  margin-top: 3rem;
}

.contact_icon {
  color: black;
}

.foot-links-div {
  display: flex;
  justify-content: space-between;
  width: 50%;
}

.foot_link {
  text-decoration: none;  
}

.foot_link_icon {
  font-size: 25px;
  color: black;
}

@media only screen and (max-width: 1100px) {
  .nav-div {
    width: 50%;
  }

  .links-div {
    width: 55%;
  }

  .about-me-card {
    width: 85%;
  }

  .about-detail p {
    margin: 1px 0 1px 0;
  }

  .project {
    width: 95%;
  }

  .project_img {
    width: 400px;
    height: auto;
  }

  .project_img2 {
    width: 310px;
  }

  .name-email {
    width: 100%;
  }

  .services-section {
    height: fit-content;
  }

  .services {
    flex-direction: column;

  }

  .service {
    max-width: 450px;
    margin: 1rem;
    height: fit-content;
  }

  .service-icon-div {
    margin-bottom: 1rem;
  }

  .service p {
    max-width: 430px;
  }

  .foot-links-div {
    width: 70%;
  }
}

@media only screen and (max-width: 850px) {
  .header {
    max-height: 700px;
  }

  .nav-div {
    width: 60%;
  }

  .about-me-section {
    max-height: none;
    height: fit-content;
    padding: 2rem 0 2rem 0;
  }

  .about-me-card {
    flex-direction: column;
    padding: 1rem;
    height: fit-content;
    width: 60%;
  }

  .about-image-div {
    height: 300px;
  }

  .about-image {
    margin: 0;
  }

  .about-content {
    width: 100%;
  }

  .services-section::before {
    background-size: auto 100%;
  }

  .project {
    flex-direction: column;
    align-items: center;
  }

  .project_img2 {
    order: -1;
  }

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

  .p_details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-me-section {
    height: auto;
    padding: 2rem 0 2rem 0;
  }

  .contact-me-section::before {
    background-size: auto 100%;
  }

  .contact-me-content {
    flex-direction: column;
    height: fit-content;
    align-items: center;
    padding: 1rem 0 1rem 0;
  }
  
  .contact-left {
    width: 90%;
  }

  .contact-right {
    width: 90%;
    padding: 0 1rem 0 1rem;
  }

  .contact_info {
    margin-top: 1rem;
  }

  .foot-links-div {
    width: 50%;
  } 
}

@media only screen and (max-width: 750px) {
  .nav-div {
    display: none;
  }

  .mobile_menu_icon {
    display: block;
    padding-right: 2rem;
    cursor: pointer;
  }

  .skills {
    flex-direction: column;
  }

  .links-div {
    width: 35%;
  }

  .skill {
    width: 90%;
  }

  .header-text {
    width: 90%;
  }

  .header-profile-div {
    display: none;
  }

  .p_details {
    width: 80%;
  }
}

/* @media only screen and (max-width: 550px) {

} */

@media only screen and (max-width: 410px) {
  .project_img {
    width: 90vw;
  }

  .project_img2 {
    width: 90vw;
  }

  .about-detail {
    display: block;
    margin-top: 1rem ;
  }
}

/* styling of my modal ------------------------------------------ */
.nav_modal-background {
  width: 100vw;
  height: 100vh;
  position: fixed;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  visibility: hidden;
  background-color: transparent;
}

.nav_modal {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.98);
  /* background-color: black; */
  z-index: 3;
  flex-direction: column;
  border-width: 1px;
  border-style: solid;
  border-color: white;
  color: white;
  font-size: 20px;
}

.nav_modal::-webkit-scrollbar {
  display: none;
}

.nav_modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 85.3211009174312%;
  /* margin-top: 24px; */
  margin-left: 2rem;
  margin-right: 2rem;
}

.nav_modal-title {
  font-size: 20px;
  align-self: center;
  color: white;
  text-align: left;
}

.nav_modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: inherit;
}

.nav_ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 50%;
}

.modal_nav_link {
  text-decoration: none;
  padding: 2px 10px 2px 10px;
  border: 1px solid white;
  font-weight: bold;
  color: white;
  border-radius: 5px;
}

.modal_nav_link:hover {
  background-color: white;
  color: black;
}

.X {
  cursor: pointer;
  margin-top: 1rem;
}

.down {
  margin-top: 57px;
}
