/* =========================================
   -------------- Global Styles -----------
   ========================================= */

*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 400;
  line-height: 1.2;
}
a {
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

li {
  list-style: none;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
}

.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.flex-item {
  display: flex;
}
.overlay {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #25252598;
  z-index: 100;
  display: none;
}

/* =========================================
   -------------- Common Styles -----------
   ========================================= */

.btn {
  color: #ffffff;
  background-color: #ffc455;
  padding: 0.8rem 1rem;
  font-size: 1.1rem;
  outline: 0;
  border: none;
  border-radius: 50px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #ff517e;
}

.social-icon .flex-item {
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-icon .flex-item a {
  font-size: 2rem;
  color: #ffffff;
  background-color: #00c5e4;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.social-icon .flex-item a:hover {
  background-color: #013e47;
}

.title h2 {
  font-size: 1.6rem;
  text-align: center;
  border-bottom: 3px solid #ffc455;
  width: 10rem;
  margin: 0 auto 1.5rem auto;
}

.content-btn {
  gap: 1.5rem;
}

.note {
  font-size: 0.835rem;
  color: #ff0000;
}

.modal {
  display: none;
  position: fixed;
  color: #ff0000;
  background-color: #ffffff;
  height: 100px;
  width: 90%;
  max-width: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.modal .modal-container {
  height: 100%;
  position: relative;
}
.modal .modal-container p {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding: 0 2.8rem;
  line-height: 1.5;
  text-align: center;
}
.modal .modal-container .modal-close {
  position: absolute;
  top: 0;
  right: 0;
  color: #444444;
  font-size: 1.7rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.modal .modal-container .modal-close:hover {
  color: #919191;
}

/* =========================================
   -------------- Side Bar -----------
   ========================================= */

/* -------icon----------- */

.menu-icon i,
.close-icon i {
  font-size: 2rem;
  position: fixed;
  right: 0;
  padding: 1rem 1.5rem;
  z-index: 100;
  cursor: pointer;
}

.close-icon {
  display: none;
}

/* -----------aside----------- */

aside {
  position: fixed !important;
  background-color: #ffffff;
  width: 130px;
  height: 100vh;
  left: -100%;
  overflow: auto;
  z-index: 1000;
  transition: left 0.3s;
}

.show-sidebar {
  left: 0;
}

/* ----------scroll bar--------- */

aside::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
  background-color: #b3b3b3;
}

aside::-webkit-scrollbar {
  width: 0.5rem;
  background-color: #414040;
}

aside::-webkit-scrollbar-thumb {
  background-color: #f88888;
  border-radius: 50px;
}
@supports (scrollbar-color: #ad5b5b #b3b3b3) {
  aside {
    scrollbar-color: #f88888 #b3b3b3;
    scrollbar-width: thin;
  }
}

/* --------------profile------------- */

.navbar .navbar-profile {
  margin: 1rem auto 2rem auto;
}

.navbar .navbar-profile img {
  width: 100px;
  height: 100px;
  margin: 0 auto 0.8rem auto;
  background-color: #b8b8f8;
  border-radius: 50%;
  transition: transform 0.3s;
}

.navbar .navbar-profile img:hover {
  transform: scale(1.1);
}

.navbar .navbar-profile h2 {
  font-size: 1rem;
  text-align: center;
  font-weight: 500;
  color: #f88888;
}

/* ------------navbar------------- */

.navbar ul li {
  text-align: center;
  width: 100%;
  margin: 0 auto;
  padding: 1.4rem 0;
  position: relative;
}

.navbar .nav-links li {
  border-bottom: 1px solid grey;
}

.navbar ul li {
  overflow: hidden;
}

.navbar .nav-links {
  margin-bottom: 2rem;
}

.navbar .nav-links .active:nth-child(1) {
  background-color: #fddada;
}

.navbar .nav-links li:nth-child(1) a {
  color: #ff5353;
}

.navbar .nav-links .active:nth-child(2) {
  background-color: #def9fd;
}

.navbar .nav-links li:nth-child(2) a {
  color: #20cae5;
}

.navbar .nav-links .active:nth-child(3) {
  background-color: #fdfdb0;
}

.navbar .nav-links li:nth-child(3) a {
  color: #ffc455;
}

.navbar .nav-links .active:nth-child(4) {
  background-color: #ffe9e2;
}

.navbar .nav-links li:nth-child(4) a {
  color: #ff754a;
}

.navbar .nav-links .active:nth-child(5) {
  background-color: #e1d9ff;
}

.navbar .nav-links li:nth-child(5) a {
  color: #3b07f8;
}

.navbar ul li a .nav-icon {
  display: block;
  font-size: 2.2rem;
  transform: translateY(10%);
  transition: transform 0.3s;
}

.navbar ul li a span {
  display: block;
  font-size: 1.2rem;
  transition: all 0.3s;
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  transition: top 0.3s;
}

.navbar ul li:hover .nav-icon {
  transform: translateY(-15%);
}

.navbar ul li:hover span {
  top: 70%;
}

/* ------navbar follow us------ */

.navbar .follow {
  margin-bottom: 3rem;
}

.navbar .follow .title h3 {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.navbar .social-icon ul li {
  padding: 0.5rem 0;
}

.navbar .social-icon .nav-icon {
  font-size: 1.8rem;
}

.navbar .social-icon li:hover .nav-icon {
  transform: translateY(-30%);
}

.navbar .social-icon li:hover span {
  top: 60%;
}

.navbar .social-icon .ri-facebook-line,
.navbar .social-icon .ri-facebook-line + span {
  color: #3b5998;
}

.navbar .social-icon .ri-instagram-line,
.navbar .social-icon .ri-instagram-line + span {
  background-image: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  background-size: 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
}

.navbar .social-icon .ri-twitter-line,
.navbar .social-icon .ri-twitter-line + span {
  color: #00acee;
}
.navbar .social-icon .ri-whatsapp-line,
.navbar .social-icon .ri-whatsapp-line + span {
  color: #25D366;
}

/* ------------media query----------- */

@media (min-width: 992px) {
  .menu-icon {
    display: none;
  }

  aside {
    left: 0;
  }

  main,
  footer {
    width: calc(100% - 130px);
    margin-left: 130px;
  }
}

/* =========================================
   -------------- Main Body -----------
   ========================================= */

/* ------------- header section------------- */

.header {
  position: relative;
  height: 550px;
  width: 100%;
  background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.719),
      rgba(140, 140, 140, 0.808)
    ),
    url("../images/bg.gif") center no-repeat;
  background-size: cover;
  margin-bottom: 2rem;
  box-shadow: 0px 10px 10px #ffffff;
}

.header .wrapper {
  flex-direction: column;
}

.header .wrapper .header-img {
  text-align: center;
}

.move-bg {
  max-width: 450px;
  max-height: 330px;
  -webkit-animation: float 4s ease-in-out infinite;
  animation: float 4s ease-in-out infinite;
}

/* --------- header content ----------- */

.header .header-content {
  padding: 1rem;
}

.header .header-content::before {
  content: "";
  position: absolute;
  background-color: #ffffff;
  width: 100%;
  height: 245px;
  top: 30%;
  left: 0;
  z-index: 1;
  -webkit-filter: blur(70px);
  filter: blur(70px);
  opacity: 0.7;
}

.header .header-content .wrapper {
  position: absolute;
  z-index: 1;
  top: -100%;
}

.header .header-content p {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: left;
  padding: 0.5rem 1rem 0.2rem 1rem;
  width: 125px;
  color: #ffffff;
  background-color: #ffc455;
  margin-bottom: 1rem;
}

.header .header-content h1 {
  font-size: 2.3rem;
  font-weight: 700;
  color: #037580;
  text-align: left;
  margin: 0.5rem 0 0.5rem -3px;
}

.header .header-content h1 span {
  color: #f04c4c;
}

.header .header-content .profession {
  margin-bottom: 1rem;
}

.header .header-content .profession .border-left {
  display: inline-block;
  border-left: 4px solid #ffc455;
  height: 2.1rem;
  /* width: 4px; */
}

.header .header-content .profession h3 {
  display: inline-block;
  font-weight: 600;
  color: #3d3d3d;
  text-align: left;
  padding: 0.25rem 0 0.2rem 0.3rem;
  margin-left: -5px;
  overflow: hidden;
  visibility: hidden;
}

.header .header-content .profession .visible {
  visibility: visible;
}

/* ----------- media query ------------ */

@media (min-width: 400px) {
  .header {
    height: 650px;
  }
  .move-bg {
    max-height: 400px;
  }
}
@media (min-width: 576px) {
  .header .header-content {
    margin-left: 2rem;
  }

  .header .header-content h1 {
    font-size: 3rem;
  }

  .header .header-content .profession h3 {
    font-size: 1.5rem;
    padding: 0 0 0 0.3rem;
  }
}

@media (min-width: 768px) {
  .header {
    height: 600px;
  }
  .header .wrapper {
    flex-direction: row;
    position: relative;
  }

  .header .header-img {
    order: 2;
    position: absolute;
    right: 0;
  }

  .header .header-content {
    order: 1;
    position: absolute;
    margin: 250px 0 0 3rem;
    width: 400px;
  }

  .header .header-content .wrapper {
    top: 0;
  }

  .header .move-bg {
    max-width: 600px;
    max-height: 500px;
    width: 600px;
    height: 500px;
  }
}

@media (min-width: 992px) {
  .header {
    height: 650px;
  }
  .header .move-bg {
    max-width: 700px;
    max-height: 600px;
    width: 700px;
    height: 600px;
  }
}

@media (min-width: 1200px) {
  .header {
    height: 700px;
  }
  .header .move-bg {
    max-width: 800px;
    max-height: 700px;
    width: 800px;
    height: 650px;
  }

  .header .header-content {
    width: 600px;
  }

  .header .header-content p {
    font-size: 2rem;
    padding: 0.8rem 1rem 0.4rem 1rem;
    width: 160px;
  }

  .header .header-content h1 {
    font-size: 3.5rem;
  }

  .header .header-content h3 {
    font-size: 1.7rem;
  }

  .header .header-content .btn {
    font-size: 1.3rem;
  }
}

/* ------------- about section------------- */

#about-me .wrapper {
  flex-direction: column;
  margin-bottom: 2rem;
}

/* ------------- about img------------- */

#about-me .about-img {
  position: relative;
  width: 320px;
  height: 380px;
  margin: 0 auto 2rem auto;
}

#about-me .about-img .show-icon,
#about-me .about-img .hide-icon {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 2rem;
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: background-color 0.3s;
  z-index: 10;
}

#about-me .about-img .show-icon {
  background-color: #20cae5;
}

#about-me .about-img .show-icon:hover {
  background-color: #ff517e;
}

#about-me .about-img .show-icon {
  background-color: #20cae5;
}

#about-me .about-img .hide-icon {
  display: none;
  background-color: #ff517e;
}

#about-me .about-img .hide-icon:hover {
  background-color: #20cae5;
}

#about-me .about-img img {
  height: 380px;
}

#about-me .about-img .about-img-details {
  position: absolute;
  top: 0;
  left: 0;
  padding: 2rem 1rem;
  background-color: #000000d7;
  width: 100%;
  height: 100%;
  display: none;
}

.show-details {
  display: block !important;
}

#about-me .about-img .about-img-details h2 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #ffffff;
}

#about-me .about-img .about-img-details h3 {
  font-size: 0.8rem;
  font-weight: 500;
  color: #cacaca;
  font-style: italic;
  margin: -0.1rem 0 1.5rem 0;
}

#about-me .about-img .about-img-details .flex-item {
  margin: 1rem 0;
}

#about-me .about-img .about-img-details h4 {
  font-size: 1rem;
  font-weight: 400;
  width: 5rem;
  color: #ffc455;
}

#about-me .about-img .about-img-details p,
#about-me .about-img .about-img-details .flex-item > a {
  font-size: 1rem;
  color: #ffffff;
  text-align: left;
  width: 12rem;
}

/* ------------- about content------------- */

#about-me .about-content {
  width: 90%;
  max-width: 30rem;
  margin: 0 auto;
  line-height: 1.5;
}

#about-me .about-content .title h2 {
  margin: 0 0 1.5rem 0;
}

#about-me .about-content .about-text p {
  color: #777777;
  margin: 1.5rem 0;
}

#about-me .about-content .about-text h1 {
  font-size: 1.4rem;
  font-weight: 500;
}

#about-me .about-content .about-text h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

/* -------------media query-------------- */

@media (min-width: 576px) {
  #about-me .about-img .about-img-details {
    padding: 3rem 1.5rem;
  }

  #about-me .about-img {
    width: 400px;
    height: 480px;
  }

  #about-me .about-img img {
    height: 480px;
  }
}

@media (min-width: 768px) {
  #about-me .about-img {
    width: 500px;
    height: 580px;
  }

  #about-me .about-img img {
    height: 580px;
  }
}

@media (min-width: 992px) {
  #about-me .wrapper {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    margin: 0 2rem;
  }

  #about-me .about-img {
    width: 380px;
    height: 480px;
  }

  #about-me .about-img img {
    height: 480px;
  }

  #about-me .about-img .img-style {
    position: relative;
  }

  #about-me .about-img .img-style::before {
    content: "";
    position: absolute;
    top: 1.2rem;
    left: -1.2rem;
    width: 100%;
    height: 100%;
    border: 4px solid #ff517e;
    z-index: -1;
  }

  #about-me .about-content {
    width: 90%;
    max-width: 28rem;
    margin: 0 auto;
  }
}

@media (min-width: 1200px) {
  #about-me .about-img {
    width: 430px;
    height: 530px;
  }

  #about-me .about-img img {
    height: 530px;
  }

  #about-me .about-content {
    width: 90%;
    max-width: 35rem;
    margin: 0 auto;
  }
}

@media (min-width: 1400px) {
  #about-me .about-img {
    width: 450px;
    height: 580px;
  }

  #about-me .about-img img {
    height: 580px;
  }
}

/* -------- education --------- */

#education .wrapper {
  width: 90%;
  max-width: 900px;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
}

#education .title h2 {
  margin: 3rem auto;
}

#education .content {
  flex-direction: column;
  overflow: hidden;
}

#education .content .left-side {
  align-self: flex-start;
  left: -100%;
  transition: left 0.5s ease-out;
}

#education .content .right-side {
  align-self: flex-end;
  right: -100%;
  transition: right 0.5s ease-out;
}

#education .content .flex-item {
  align-items: center;
  margin-bottom: 1rem;
}

#education .circle {
  position: relative;
}

#education .year {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#education .left-side .year {
  border: 7px solid #ff517e;
}

#education .right-side .year {
  border: 7px solid #20cae5;
}

#education svg {
  position: absolute;
  height: 100px;
  width: 100px;
}

#education .left-side svg {
  top: -12px;
  left: 64px;
}
#education .right-side svg {
  transform: rotate(180deg);
  left: -96px;
  top: -20px;
}

#education .left-side polygon {
  fill: #ff517e;
}

#education .right-side polygon {
  fill: #20cae5;
}

#education .content .flex-item .edu-type {
  margin-left: 2rem;
  width: 100%;
  max-width: 22rem;
  padding: 0.3rem 0.5rem;
  color: #ffffff;
  background-color: #ff517e;
  text-align: center;
  border-radius: 3px;
}

#education .content .flex-item .edu-type p {
  display: inline;
}
#education .content .flex-item .edu-type span {
  font-size: 0.835rem;
  font-weight: 300;
}

#education .content .right-side .circle {
  order: 2;
}

#education .content .right-side .edu-type {
  order: 1;
  background-color: #20cae5;
}

#education .content .edu-type {
  margin-right: 2rem;
}

/* --------skills---------- */

#skills .wrapper {
  width: 90%;
  max-width: 900px;
  margin: 0 auto 2rem auto;
}

#skills .title h2 {
  margin-bottom: 3rem;
  width: 80px;
}

#skills .content .single {
  margin: 1rem 0;
  align-items: center;
}

#skills .content .single h3 {
  font-size: 1rem;
  font-weight: 400;
  width: 6.5rem;
}

#skills .content .single .skill {
  width: 100%;
  height: 8px;
  border: 1px solid #20cae5;
  border-radius: 5px;
  margin-bottom: 3px;
}

#skills .content .single .fill-95 {
  position: absolute;
  width: 0;
  height: 8px;
  background-color: #ff517e;
  border-radius: 5px;
  top: -1px;
  left: -1px;
  transition: width 0.5s ease-out;
}
#skills .content .single .fill .fill-95 {
  width: 95%;
}

#skills .content .single .fill-90 {
  position: absolute;
  width: 0;
  height: 8px;
  background-color: #ff517e;
  border-radius: 5px;
  top: -1px;
  left: -1px;
  transition: width 0.5s ease-out;
}
#skills .content .single .fill .fill-90 {
  width: 90%;
}

#skills .content .single .fill-85 {
  position: absolute;
  width: 0;
  height: 8px;
  background-color: #ff517e;
  border-radius: 5px;
  top: -1px;
  left: -1px;
  transition: width 0.5s ease-out;
}
#skills .content .single .fill .fill-85 {
  width: 85%;
}
#skills .content .single .p-95 {
  margin-top: 8px;
  transition: margin-left 0.5s ease-out;
}
#skills .content .single .fill .p-95 {
  margin-left: calc(95% - 3%);
}
#skills .content .single .p-90 {
  margin-top: 8px;
  transition: margin-left 0.5s ease-out;
}
#skills .content .single .fill .p-90 {
  margin-left: calc(90% - 3%);
}
#skills .content .single .p-85 {
  margin-top: 8px;
  transition: margin-left 0.5s ease-out;
}
#skills .content .single .fill .p-85 {
  margin-left: calc(85% - 3%);
}

/* --------- projects ---------- */

#projects {
  background-color: #77777733;
}

#projects .wrapper {
  width: 90%;
  margin: 0 auto 2rem auto;
  padding: 2rem 0;
}

#projects .content {
  display: grid;
  row-gap: 2rem;
  -moz-column-gap: 1rem;
  column-gap: 1rem;
}

#projects .content .item {
  position: relative;
  width: 300px;
  height: 250px;
  margin: 0 auto;
}

#projects .content img {
  width: 300px;
  height: 250px;
  transition: transform 0.3s;
}

#projects .content .preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

#projects .content .preview a {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s;
}

#projects .content .item .project-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.822);
  opacity: 0;
  transition: all 0.3s;
}

#projects .content .item:hover .project-img::after {
  transform: scale(1.05);
  opacity: 1;
}

#projects .content .item:hover img {
  transform: scale(1.05);
}

#projects .content .item:hover .preview a {
  opacity: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------- medai query --------- */

@media (min-width: 680px) {
  #projects .content {
    grid-template-columns: auto auto;
  }
}

@media (min-width: 1210px) {
  #projects .content {
    grid-template-columns: auto auto auto;
  }
}

/* -------- contact -------- */

#contact .wrapper {
  width: 80%;
  margin: 0 auto 7rem auto;
}

#contact .form-group {
  max-width: 600px;
  margin: 0 auto 1rem auto;
}

#contact .form-control {
  font-size: 1rem;
  color: #777777;
  width: 100%;
  outline: 0;
  padding: 0.5rem 1rem;
  border: 1px solid #777777;
  border-radius: 5px;
  margin: 0 auto;
}

#contact .btn {
  background-color: #ff517e;
  padding: 0.8rem 2.5rem;
  cursor: pointer;
  position: absolute;
  bottom: -58px;
  left: 50%;
  transform: translateX(-50%);
}

#contact .btn:hover {
  background-color: #20cae5;
}

/* ==========================================
            ----- footer -----
   ========================================== */

footer {
  background-color: #252525;
}

footer .wrapper {
  width: 90%;
  margin: 0 auto;
  padding-bottom: 2rem;
}

footer .wrapper .contact-info {
  text-align: center;
  max-width: 15rem;
  line-height: 1.2;
  margin: 0 auto;
  padding-top: 3rem;
}
footer .wrapper .contact-info section {
  padding-bottom: 3rem;
}
footer .wrapper .contact-info section .footer-icon {
  display: block;
  color: #26b801;
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}
footer .wrapper .contact-info section h3,
footer .wrapper .social-icon h3  {
  position: relative;
  color: #dddddd;
  font-size: 1.5rem;
  text-align: center;
  width: 15rem;
  margin: 0 auto 1.2rem auto;
}
footer .wrapper .contact-info section h3::after,
footer .wrapper .social-icon h3::after {
  content: '';
  position: absolute;
  width: 25%;
  top: 30px;
  left: 90px;
  border-bottom: 2px solid #ffeb39;
}
footer .wrapper .social-icon h3::after {
  
}
footer .wrapper .contact-info section p,
footer .wrapper .contact-info section a {
  color: #acacac;
  font-size: 1rem
}

footer .wrapper .social-icon ul {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

footer .wrapper .content p {
  text-align: center;
  color: #ffffff;
}
