/* Google font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    font-family: "poppins",sans-serif;
}
:root{
    --main-color:#033a80;
    --bg-color:#fff;
    --text-color:#0f0c27;
    --hover:hsl(260, 100%, 51%);
    --big-font:3.2rem;
    --medium-font :1.8rem;
    --pp-font:0.94rem;
    --btn-color:#ed0331;

}
/* ====navbar==== */
.heading {
    text-align: center;
  }
  .heading h2 {
    font-size: 30px;
  }
   
  .heading span {
    font-size: var(--p-font);
    color: rgb(2, 166, 70);
  }
  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);
  }
  #nav-menu {
    display: flex;
  }
  #nav-menu a {
    font-size: 1rem;
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 500;
  }
  #nav-menu a:hover {
    color: var(--hover);
  }
  #menu-icon {
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: none;
  }
  .active {
    color: green;
  }
  #res_btn{
    background: var(--btn-color);
    color: var(--bg-color);
    
    border-radius: 10px;
     /* display: flex; 
    flex-direction: row;
    justify-content: space-between;  */
  }
  #resume-link-2{
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    padding:0.7rem 1.3rem ;
    border-radius: 0.5rem;
  }
  /* #res_btn_arr{
  } */


body{
    background: var();
    color: var(--text-color);
}

/* =============Home Section=========== */
section{
    padding: 50px 10%;

}
*::selection{
    color: var(--bg-color);
    background: var(--main-color);
}

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

.home-img_div{
    order:3;

}
.home-img_div img{
    width: 70%;
    border-radius: 0.5rem;

}
.home-text {
    text-align: center;
    padding: 100px;
}

.fade-in {
    opacity: 0;
    animation: fade-in 1.5s ease forwards;
}

.slide-in {
    transform: translateX(-100%);
    animation: slide-in 1s ease forwards;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

@keyframes slide-in {
    to {
        transform: translateX(0);
    }
}

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

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

/* button */

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

/* ===================heading=========== */
.heading{
    text-align: center;
}
.heading h2{
    font-size: 30px;
}
.heading span{
    font-size: var(--p-font);
    color: rgb(2, 165 ,70);
}
/* About Section */
.about-container{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.about-img img{
      width: 80%;
      height: 80%;
      border-radius: 0.5rem;
}
.about-text p{
    font-size:var(--p-font);
    font-weight:400;
    text-align: justify;
}
.information{
    margin: 1rem 0 1.4rem;
}

.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;
}
#contact-github a{
  color: black;
}
#contact-linkedin a{
  color: black;
}
/* skills-1 */

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
  }
  .skills-card {
    padding: 20px;
    width: 200px;
    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 rgb(14 55 54 / 15%);
  }
  .skills-card:hover{
   background-color: teal;
  }
  .skills-card-img{
    height: 70%;
  }
  .skills-card-img img{
    width: 70%;
    height: 100%;
  }
  .skills-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.7rem 0 0.4rem;
  }
  .skills-card:hover h3{
    color: #fff;
  }
  .skills-card .bx {
    padding-top: 2rem;
    font-size: 54px;
    color: var(--main-color);
  }
  .skills-card:hover .bx{
    color: #22cf91;
  }
  .skills-card a {
    color: var(--main-color);
    font-size: var(--p-font);
    font-weight: 500;
  }
  .skills-card:hover a{
    color: #8b8a8f;
  }

  /* skills-2 */



  #services-box1_img{
    width: 40%;
    height: 80%;
  }
/* Github sstts */
#github-top-box{
  display: flex;
  flex-direction: row;
  gap: 10px;
}
#lag_div{
  text-align: center;
}
.react-activity-calendar{
  margin: auto;
  width: 100%;
  border: 1px solid;
  text-align: center;
}
#cal-git{
  width: 100%;
}
.js-calendar-graph-svg{
align-items: center;

}


  /* projects */

  .portfolio-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, auto));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  .project-card {
    overflow: hidden;
    border-radius: 0.5rem;
    border: 0px solid grey;
  }
  .project-title{
    margin-bottom: 8px;
    text-align: center;
  }
  .project-image{
    margin-bottom: 8px;
  }
  .project-description{
    margin-bottom: 8px;
  }
  .project-tech-stack{
    margin-bottom: 8px;
  }
  .project-tech-stack p{
    font-weight:600;
  }
  #btns-links-project {
    margin: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }
  .project-image img {
    width: 100%;
    display: block;
    border-radius: 0.5rem;
  }
  .project-card:hover{
    transform: scale(1.1);
    transition: 1s;
  }
  /* .project-image img:hover {
    transform: scale(1.1);
    transition: 1s;
  } */

  /* Contact */
  .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: none;
    outline: none;
    background: hsla(260, 100%, 44%, 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);
  }
  .github-section{
    /* border: 5px solid; */
    width: 100%;
    display:inline-flexbox;
  }
  .contact-form-info-parent{
    border: 0px solid;display: flex; justify-content: center; align-items: center;
  }
  .information-in-contact-me{
    border: 1px solid;text-align: center; border-bottom: 2px solid var(--main-color);
        box-shadow: 0 2px 7px rgb(14 55 54 / 15%);    padding: 20px;
    width: 650px;
    display: flex; 
    flex-direction: column;
    align-items:center ;
    text-align: center;
    border-radius: 0.5rem;
    place-items: center;
    margin-top: 2rem;
    text-align: center
  }


  /* Media query */
  @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;
    }
    .skills-content {
      display: grid;
      grid-template-columns: repeat(2, minmax(200px, auto));
      justify-content: center;
      gap: 1rem;
      margin-top: 2rem;
    }
  }
  @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 #nav-menu {
      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;
    }
    #nav-menu.active {
      top: 100%;
    }
    #nav-menu a {
      padding: 1.5rem;
      display: block;
      background: var(--bg-color);
    }
    #darkmode {
      position: absolute;
      top: 1.4rem;
      right: 2rem;
    }
    .portfolio-content {
      display: grid;
      grid-template-columns: repeat(1, minmax(280px, auto));
      gap: 2rem;
      margin-top: 2rem;
    }
    .scroll-down {
      display: none;
    }
    .home {
      grid-template-columns: 0.5fr 3fr;
    }
    .home-text {
      grid-column: 1/3;
      padding-left: 1.4rem;
    }
    .home-img_div {
      order: initial;
      /* text-align: center; */
    }
    .about-container {
      grid-template-columns: 1fr;
    }
    .about-img {
      display: flex;
      justify-content: center;
    }
    .skills-container {
      grid-template-columns: 1fr;
    }
    .skills-img img {
      padding-left: 0;
    }
    .skills-img {
      padding-top: 2rem;
      display: flex;
      justify-content: center;
    }
    #github-top-box{
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 10px;
    }
    .contact-form form{
      width: 300px;
    }
      .information-in-contact-me{
    width: 300px;
  }
    .contact-button{
      margin-left: 25%;
    }
    /* github */
    .js-calendar-graph-svg{
      width:100%;
    }
        .home-text{
      text-align: center;
      border: 0px solid;
            width: 200%;
      text-align: center;
    }
    .home-img_div{
      width: 200%;
      border: 0px solid;
    }
    .home-text span {
      font-size: 1rem;
    }
    .home-text h2 {
      font-size: 0.9rem;
      font-weight: 500;
    }
    .information{
      text-align: center;
      border: 0px solid;
      margin: auto;
    }
    #user-detail-name{
      border: 0px solid;
      text-align: center;
    }
   #github-streak-stats{
      width: 100%;
    }
    #github-stats-card{
      width: 100%;
    }
    #cal-git{
  width: 100%;
}
  }
  @media (max-width: 340px) {
    :root {
      --big-font: 1.7rem;
      --medium-font: 1.1rem;
    }
/*  */
    .home-text{
      text-align: center;
      border: 0px solid;
            width: 200%;
      text-align: center;
    }
    .home-img_div{
      width: 200%;
      border: 0px solid;
    }
    .home-text span {
      font-size: 1rem;
    }
    .home-text h2 {
      font-size: 0.9rem;
      font-weight: 500;
    }
    .information{
      text-align: center;
      border: 0px solid;
      margin: auto;
    }
    #user-detail-name{
      border: 0px solid;
      text-align: center;
    }
   #github-streak-stats{
      width: 100%;
    }
    #github-stats-card{
      width: 100%;
    }

    /*  */
    .information .info-box span {
      font-size: 1rem;
    }
    .portfolio-content {
      grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    }
    .contact-form form{
      width: 300px;
    }
    .contact-button{
      margin-left: 25%;
    }
    #github-streak-stats{
      width: 100%;
    }
    #github-stats-card{
      width: 100%;
    }
    #btns-links-project{
      display: flex;
      justify-content: space-between;
    }
      /* .github-section{
    width: 100%;
    display:block;
  } */
  }

  #msg{
    color: #61b761;
    margin-top: -12px;
    display: block;
  }