* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    font-family: 'Bree Serif', serif;
}

.user-img{
  padding: 1rem;
  filter:grayscale(1);
  transition:all 1s;
  animation:scaleImage 5s linear infinite;
}
.user-img img{
  z-index:-9;
}
@keyframes scaleImage {
  0%{
      filter: grayscale(0);
      transform: scale(1);
  }
  50%{
      transform: scale(1.1); 
      filter: grayscale(1);
      box-shadow: 3px 3px 10px black;
  }
  100%{
      transform: scale(1);
      filter: grayscale(0);
  }
}

:root{
    --main-color:#033a80;
    --bg-color:#fff;
    --bg-dark-blue: #091020;
    --bg-white: #fff;
    --text-color: #0f0c27;
    --hover: hsl(260, 100%, 51%);
    --big-font:3.2rem;
    --median-font:1.8rem;
    --p-font:0.941rem;
    --bgOrange:#e84949;
}

section {
    padding: 50px 10%;
}

.role{
  color:#4e45d5;
  font-weight: 800;
}

body.active {
  --text-color: #fff;
  --bg-color: #0f0c27;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
}
*::selection {
  color: var(--bg-color);
  background: var(--main-color);
}

.heading {
    text-align: center;
}
.heading h2 {
    font-size: 30px;
}
.heading span {
    font-size: 1.2rem;
    color: rgb(2, 166, 70);
}

.navbar{
    display: flex;
}

.navbar a{
    font-size: 1.rem;
    padding: 10px 20px;
    color:var(--text-color);
    font-weight: 500;
    text-decoration: none;
}


.about-container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.contact-container{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.about-img img{
    width: 80%;
    border-radius: 0.5rem;
}

.about-text p{
    font-size: var(--p-font);
    font-weight: 400;
    text-align: justify;
}

.information{
    margin: 1rem 0rem 1.4rem;
}

.information .info-box{
    display: flex;
    align-items: center;
    margin-bottom: 1.4rem;
}

.information .info-box span{
    font-weight: 400;
    margin-left: 1rem;
}

.skill-container{
    display: grid;

}





.navbar a:hover{
    color:var(--hover);
}

#menu-icon {
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: none;
}
#darkmode {
    font-size: 22px;
    cursor: pointer;
}
header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-color);
  padding: 13px 10%;
  transition: 0.2s;
  box-shadow: -3px -3px 7px #ffffff73,
      2px 2px 5px rgba(94, 104, 121, 0.288);
}
header.shadow {
  box-shadow: 0 0 4px rgb(14 55 54 / 15%);
}

.logo {
    font-size: 1.61rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}
.logo span {
    font-size: 1.61rem;
    font-weight: 600;
    color: crimson;
    text-decoration: none;
}

#darkmode {
    font-size: 22px;
    cursor: pointer;
}

.home{
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.2fr 1fr 1fr;
    align-items: center;
    gap: 1rem;
}

.home-img{
    order: 3;
}

.home-img img{
    width: 65%;
    border-radius: 50%;
    position: relative;
    left: 10%;
}

.home-text span{
    font-size: var(--median-font);
    font-weight: 500;
}

.home-text h1{
    font-size: var(--big-font);
}

.home-text h2{
    font-size: 1.1rem;
    font-weight: 400;
}

.home-text p{
    font-size: var(--p-font);
    font-weight: 400;
    margin: 0.7rem 0 1rem;
}

.btn-pink{
    background-color: var(--bgOrange);
    width: fit-content;
    color: #fff;
    padding: 0.9rem 2.3rem;
    margin-top: 10px;
    box-shadow: 5px 5px 7px 0px #0000003f;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.5s;
    font-weight: 500;
    border: solid 3px transparent;
    position: relative;
    z-index: 1;
}

.btn-pink::before{
    content: "";
    position: absolute;
    background-color: #fff;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.8s;
}

.btn-pink:hover::before{
    transform: scaleX(1);
}

.btn-pink:hover{
    border: solid 3px var(--bgOrange);
    color: black;
}

.faded-text{
    user-select: none;
    font-size: 3rem;
    color: darkgray;
    opacity: 1.5;
    filter: grayscale(2);
    bottom: -2%;
    left: -1%;
    font-weight: bold;
    transition: all 3s;
}

.absolute{
    position: absolute;
    left:12%;

}

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

.social a{
    margin-bottom: 1rem;
    font-size: 22px;
    color: var(--text-color);
}

.social a:hover{
    color: var(--hover);
}

.btn{
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    padding: 0.7rem 1.3rem;
    border-radius: 0.5rem;
}

.btn:hover{
    background: var(--hover);
}


.about-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 4rem;
}
.about-img img {
  width: 80%;
  border-radius: 0.5rem;
}
.about-text p {
  font-size: var(--p-font);
  font-weight: 400;
  text-align: justify;
}
.information {
  margin: 1rem 3rem 3rem;
}
.information .info-box {
  display: flex;
  align-items: center;
  margin-bottom: 1.4rem;
}
.information .info-box .bx {
  font-size: 22px;
}
.information .info-box span {
  font-weight: 400;
  margin-left: 1rem;
}

/* ====================================================================== */

.timeline {
    list-style: none;
    padding: 20px 10px 20px;
    position: relative;
  }
  
  .timeline:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 1.5px;
    background-color: #970909;
    left: 50%;
    margin-left: -1.5px;
  }
  
  .timeline > li {
    margin-bottom: 40px;
    position: relative;
  }
  
  .timeline > li:before,
  .timeline > li:after {
    content: " ";
    display: table;
  }
  
  .timeline > li:after {
    clear: both;
  }
  
  .timeline > li > .timeline-panel {
    position: relative;
    float: left;
    width: 42%;
    background: #6b6bf2;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    padding: 20px;
    -webkit-box-shadow: 0 1px 2px rgb(212, 210, 210);
    box-shadow: 0 2px 6px rgb(138, 131, 131);
    text-align: right;
  }
  
  .timeline > li > .timeline-panel:before {
    position: absolute;
    top: 52px;
    right: -15px;
    display: inline-block;
    border-top: 15px solid transparent;
    border-left: 15px solid #910404;
    border-right: 0 solid #5b0808;
    border-bottom: 15px solid transparent;
    content: " ";
  }
  
  .timeline > li > .timeline-panel:after {
    position: absolute;
    top: 52px;
    right: -14px;
    display: inline-block;
    border-top: 14px solid transparent;
    border-left: 14px solid #310303;
    border-right: 0 solid #770707;
    border-bottom: 14px solid transparent;
    content: " ";
  }
  
  .timeline > li > .timeline-image {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(232, 232, 231, 0.2);
    line-height: 50px;
    font-size: 1.4em;
    text-align: center;
    top: 20px;
    left: 50%;
    margin-left: -50px;
    background-color: #148914;
    z-index: 100;
    border-radius: 100%;
    -webkit-box-shadow: 0 1px 2px rgba(232, 232, 231, 0.1);
    box-shadow: 0 1px 3px rgba(212, 251, 223, 0.1);
  }
  
  .timeline>li .timeline-image .timeline-content {
      margin-top: 22px;
      font-family: 'Open Sans', sans-serif;
      font-size: 16px;
      font-weight: 400;
      color: #fff;
  }
  
  .timeline > li.timeline-inverted > .timeline-panel {
    float: right;
    text-align: left;
  }
  
  .timeline > li.timeline-inverted > .timeline-panel:before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
  }
  
  .timeline > li.timeline-inverted > .timeline-panel:after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -14px;
    right: auto;
  }
  
  .timeline>li:last-child {
      margin-bottom: 20px;
  }
  
  .timeline-title1 {
    margin-bottom: 10px;
    font-family: 'Alegreya', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 18px;
    letter-spacing:0.5px;
    text-transform: uppercase;
  }
  .title2 {
      color: #aa0404; 
      font-family: 'Alegreya', serif;
      font-weight: 580;
      font-size: 22px;
      line-height: 35px;
  }
  .timeline .timeline-body>p, .timeline .timeline-body>ul {
      margin-bottom: 0;
      font-family: 'Alegreya', serif;
      font-size: 16px;
      letter-spacing:1px;
  }
  @media(max-width:768px) {
      .timeline:before {
      left: 50%;
  }
  .timeline>li {
      margin-bottom: 100px;
      min-height: 100px;
  }
  .timeline>li .timeline-panel {
      float: left;
      width: 41%;
      padding: 0 20px 20px 30px;
      text-align: right;
  }
  .timeline>li .timeline-image {
      left: 50%;
      width: 100px;
      height: 100px;
      margin-left: -50px;
  }
  
  .timeline-title1 {
    margin-top: 10px;
  }
  .timeline>li.timeline-inverted>.timeline-panel {
      float: right;
      padding: 0 30px 20px 20px;
      text-align: left;
  }
  }
  @media(max-width: 480px) {
  .timeline:before {
      left: 22%;
  }
  .timeline>li {
      margin-bottom: 100px;
      min-height: 100px;
  }
  .timeline>li .timeline-panel {
      float: right;
      width: 60%;
      padding: 0 20px 20px 30px;
      text-align: left;
  }
  .timeline > li > .timeline-panel:before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
  }
  
  .timeline > li > .timeline-panel:after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -14px;
    right: auto;
  }
  .timeline>li .timeline-image {
      left: 20%;
      width: 100px;
      height: 100px;
      margin-left: -50px;
  }
  .timeline-title1 {
    margin-top: 10px;
  }
  .timeline>li.timeline-inverted>.timeline-panel {
      float: right;
      padding: 0 30px 20px 20px;
      text-align: left;
  }
  }


  /* ============================================================== */
   /*---------------------------------------------------------------------*/
 .skill-container{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
 }

 .bars-box{
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 1rem;
 }

 .bars-box h3, span{
  font-size: 1.1rem;
  font-weight: 500;
 }

 .light-bar{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background: hsla(260, 100%, 44%, 0.4);
  border-radius: 0.5rem;
 }

 .percent-bar{
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.5rem;
  background:var(--main-color);
  border-radius: 0.5rem;
 }

 .html-bar{
  width: 95%;
 }

 .css-bar{
  width: 90%;
 }

 .js-bar{
  width: 70%;
 }

 .boot-bar{
  width: 75%;
 }

 .react-bar{
  width: 65%;
 }

 .tailwind-bar{
  width: 60%;
 }

 .j2ee-bar{
  width: 90%;
 }

 .spring-bar{
  width:85%;
 }
 .security-bar{
  width: 70%;
 }

 .hiber-bar{
  width: 75%;
 }
 .git-bar{
  width: 90%;
 }

 .maven-bar{
  width: 85%;
 }

 .services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.services-box {
  padding: 20px;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 0.5rem;
  border-bottom: 2px solid var(--main-color);
  box-shadow: 0 2px 7px rgba(222, 140, 7, 0.15);
}
.services-box:hover {
  background-color: #0cb2ee;
}
.services-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.7rem 0 0.4rem;
}
.services-box:hover h3 {
  color: #fff;
}
.services-box .bx {
  padding-top: 2rem;
  font-size: 54px;
  color: var(--main-color);
}
.services-box:hover .bx {
  color: #01150e;
}
.services-box a {
  color: var(--main-color);
  font-size: var(--p-font);
  font-weight: 500;
}
.services-box:hover a {
  color: #010707;
}
.contact-form {
  display: grid;
  place-items: center;
  margin-top: 2rem;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  width: 650px;
}
form,input,
textarea {
  padding: 15px;
  border-radius: 0.5rem;
  width: 100%;
  border: 1;
  outline: #0f0c27;
  background: hsla(230, 98%, 48%, 0.1);
  margin-bottom: 1rem;
  color: var(--text-color);
}
form input::placeholder,
textarea::placeholder {
  color: var(--text-color);
}
form textarea {
  resize: none;
  height: 200px;
}
.contact-button {
  width: 160px;
  cursor: pointer;
  background: #2768d9;
  color: #fff;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 35%;
}
.contact-button:hover {
  background: var(--hover);
}

.box2{
  margin-top: 4rem;
}
.footer {
  display: grid;
  place-items: center;
  padding: 20px;
  color: #000;
}
.footer h2 {
  font-size: 1.5rem;
  margin-bottom: 1.6rem;
  color: var(--text-color)
}
.footer-social a i {
  color: rgb(10, 26, 208);
  font-size: 25px;
  margin-left: 10px;
  text-align: center;
  line-height: 40px;
  background-color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.copyright {
  padding: 20px;
  background: var(--main-color);
  text-align: center;
  color: #fff;
}
.copyright a {
  color: #22cf91;
}
/* For Mobile */
@media (max-width: 991px) {
  header {
      padding: 18px 4%;
  }
  section {
      padding: 50px 4%;
  }
}
@media (max-width: 881px) {
  :root {
      --big-font: 2.7rem;
      --medium-font: 1.4rem;
  }
}
@media (max-width: 768px) {
  :root {
      --big-font: 2.4rem;
      --medium-font: 1.2rem;
  }
  header {
      padding: 11px 4%;
  }
  #menu-icon {
      display: initial;
      color: var(--text-color);
  }
  header .navbar {
      position: absolute;
      top: -500px;
      left: 0;
      right: 0;
      display: flex;
      flex-direction: column;
      background: var(--bg-color);
      box-shadow: 0 4px 4px rgb(0 0 0 / 10%);
      transition: 0.2s ease;
      text-align: center;
  }
  .navbar.active {
      top: 100%;
  }
  .navbar a {
      padding: 1.5rem;
      display: block;
      background: var(--bg-color);
  }
  #darkmode {
      position: absolute;
      top: 1.4rem;
      right: 2rem;
  }
  .scroll-down {
      display: none;
  }
  .home {
      grid-template-columns: 0.5fr 3fr;
  }
  .home-text {
      grid-column: 1/3;
      padding-left: 1.4rem;
  }
  .home-img {
      order: initial;
  }
  .about-container {
      grid-template-columns: 1fr;
  }
  .about-img {
      display: flex;
      justify-content: center;
  }
  .skill-container {
      grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
}
  /* .skills-img img {
      padding-left: 0;
  }
  .skills-img {
      padding-top: 2rem;
      display: flex;
      justify-content: center;
  } */
  .contact-form form {
      width: 300px;
  }
  .contact-button {
      margin-left: 25%;
  }
  .absolute{
      bottom: -2%;
      left:2%;
  }
  .faded-text{
      font-size: 3rem;
  }
}
@media (max-width: 407px) {
  .faded-text{
      font-size: 2.5rem;
      bottom:-2%;
  }
}
@media (max-width: 340px) {
  :root {
      --big-font: 1.7rem;
      --medium-font: 1.1rem;
  }
  .home-text span {
      font-size: 1rem;
  }
  .home-text h2 {
      font-size: 0.9rem;
      font-weight: 500;
  }
  .information .info-box span {
      font-size: 1rem;
  }
  .contact-form form {
      width: 300px;
  }
  .contact-button {
      margin-left: 25%;
  }
  .faded-text{
      font-size:8vh;
  }
}
@media (max-width: 285px) {
  .faded-text{
      font-size: 7vh;
  }
}
@media (max-width: 255px) {
  .faded-text{
      font-size:150%;
  }
}
@media (max-width: 204px) {
  .faded-text{
      font-size:140%;
  }
}
 

/* ==================================== */


/* 5 Portfolio */
.portfolio_wrapper .card {
  height:100%;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid var(--bg-white);
  cursor: pointer;
  box-shadow: 0 0 16px 4px var(--bg-dark-blue); 
}

.portfolio_wrapper .card span {
  transition: background-position 4s ease-in-out 0s;
  width: 100%;
  height: 100%;
  background-position: top center;
  background-size: cover;
}

.portfolio_wrapper .card:hover span {
  background-position: bottom center;
}
