html {
  font-family: Poppins, Comfortaa, sans-serif;
  color: aliceblue;
}

body {
  margin: 0px;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.scroll-line {
      position: fixed;
      top: 0;
      left: 0;
      height: 6px;
      background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
      background-size: 400% 400%;
      animation: gradient 15s ease infinite;
      transition: width 0.3s ease-out;
      z-index: 1000;
    }

    @keyframes gradient {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
.navbar {
        background-color: #1c5b6d;
      }
.navbar-brand {
        font-family: Comfortaa;
        font-size: 2rem;
        color: white;
        font-weight: 900;
      }
      .nav-link {
        color: #f7eac0;
      }
      .navbar-toggler{
        background-color: #f7eac0;
      }

#intro {
  background: #1c5b6d;
  background: linear-gradient(
    312deg,
    rgba(28, 91, 109, 1) 30%,
    rgba(3, 100, 128, 1) 60%,
    rgba(0, 120, 150, 1) 100%
  );
  display: flex;
  height: 100vh;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  font-family: Comfortaa;
  box-sizing: border-box;
  padding: 0px 100px 0px;
  color: white;
}

#intro-info {
  animation: fadeIn 2s ease 0s 1 normal forwards;
}

.typewriter {
  font-family: poppins;
}

#intro-info-name  {
  margin: 0px;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  font-family: monospace;
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: .15em solid orange; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: .15em; /* Adjust as needed */
  animation: 
    typing 3.5s steps(30, end),
    blink-caret .5s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: orange }
}


#intro-photo > img {
  height: 20rem;
  width: auto;
  margin-bottom: 45px;
  animation: fadeIn 2s ease 0s 1 normal forwards;
}

#quote {
  background: rgb(39, 39, 39);
  background:linear-gradient(
    312deg,
    rgba(39, 39, 39, 1) 30%,
    rgba(0, 0, 0, 1) 60%,
    rgba(0, 0, 0, 1) 100%
  );
  height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}
#quote>*{
 animation: fadeIn 10s ease 0s 1 normal forwards;
}
#quote{
 animation: fadeIn 10s ease 0s 1 normal forwards;
}
#quote * {
  text-align: justify;
}

#quote h3 {
  font-family: Comfortaa;
 -webkit-animation: tracking-in-contract-bck 2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
  animation: tracking-in-contract-bck 2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@-webkit-keyframes tracking-in-contract-bck {
  0% {
    letter-spacing: 1em;
    -webkit-transform: translateZ(400px);
            transform: translateZ(400px);
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    opacity: 1;
  }
}
@keyframes tracking-in-contract-bck {
  0% {
    letter-spacing: 1em;
    -webkit-transform: translateZ(400px);
            transform: translateZ(400px);
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    opacity: 1;
  }
}

#education {
  background-color: #f7eac0;
  display: flex;
  justify-content: space-between;
  padding: 5rem 100px 5rem;
  box-sizing: border-box;
  align-items: center;
  color: black;
}
#education h2 {
  margin: 0px;
  letter-spacing: 2px;
  font-family: poppins;
  text-align: center;
  font-weight: bolder;
}
#education h3 {
  margin: 10px;
  letter-spacing: 1.5px;
  font-family: poppins;
}
b{
  font-family: poppins;
  font-weight: 600;
}
#education hr {
  width: 3rem;
  margin: 0px;
  position: relative;
  left: 4rem;
  align-items: center;
}
#right {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
} 
#right>img {
  width: 120px;
  height: auto;
  border-radius: 50%;
}

#right>img:hover {
  transform: scale(1.1);
}
#right>p{
  font-family: Comfortaa;
  text-align: justify;
  margin-bottom: 2rem;
  margin: 10px;
}


#skills {
  background-color: #237a8c;
  background: linear-gradient(
    312deg,
    rgba(30, 95, 110, 1) 30%,
    rgba(55, 125, 145, 1) 60%,
    rgba(85, 160, 180, 1) 100%
  );
  height: 83vh;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 100px 0px;
}

#skills {
  letter-spacing: 2px;
  margin-bottom: 0px;
}
#skills h2 {
  margin: 10px;
  color: white;
  font-weight: bolder;
}

#skills hr {
  width: 3rem;
  margin: 0px;
  position: relative;
  left: 4rem;
}

#skills-list {
  width: 60%;
  display: flex;
  flex-direction: column;
}

#skills-list > h3 {
  color: #f7eac0;
  letter-spacing: 2px;
}

#skills-list > p {
  font-family: Comfortaa;
  text-align: justify;
  margin-bottom: 2rem;
  color: white;
}

#skills-logo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#skills-logo > img {
  height: 100px;
  width: auto;
}

#skills-logo > img:hover {
  transform: scale(1.1);
}

#projects {
  color: black;
  background-color: #f7eac0;
  display: flex;
  justify-content: space-between;
  padding: 5rem 100px 5rem;
  box-sizing: border-box;
}

#projects h2 {
  margin: 0px;
  letter-spacing: 2px;
  font-family: poppins;
  font-weight: bolder;
  margin: 10px;
}

#projects h3 {
  margin: 0px;
  letter-spacing: 1.5px;
  font-family: poppins;
}

#projectleft hr {
  background-color: black;
  height: 1px;
  width: 3rem;
  margin: 0px;
  position: relative;
  left: 6rem;
}

#projectright {
  width: 60%;
  font-family: Comfortaa;
}

#projectright p {
  margin: 10px;
  text-align: justify;;
}

#projectgrid {
  padding: 3rem;
  display: grid;
  grid-template-columns: 30% 70%;
  grid-template-rows: auto auto;
  gap: 2rem;
}

#projectgrid a {
  color: black;
  text-decoration:underline;
  font-size: 1.2rem;
  font-weight: bolder;
}

.projectpic {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.projectpic img {
  width: 100%;
  height: auto;
  border-radius: 5%;
}
.projectpic img:hover {
  transform: scale(1.1);
}

.projectinfo {
  text-align: justify;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.projectinfo > h3 {
  text-align: start;
  font-weight: bolder;
}

.projectinfo > h3:hover {
  text-decoration: underline;
}

#contact {
  background-color: rgb(39, 39, 39);
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 5rem 100px 5rem;
}

#contact h2 {
  letter-spacing: 2px;
  margin-bottom: 0px;
}

#contact hr {
  margin: 0px;
  position: relative;
  left: 2.5rem;
  width: 4rem;
}

#contact * {
  color: aliceblue;
}

@media (max-width: 1000px) {
  #intro {
    flex-direction: column-reverse;
    justify-content: center;
    padding: 0px 8% 0px;
  }

  #intro-photo > img {
    height: 20rem;
    width: auto;
    border-radius: 50%;
    animation: fadeIn 2s ease 0s 1 normal forwards;
  }

  #intro-info-name {
    margin: 0px;
    font-size: 32px;
    font-weight: 700;
    font-family: poppins;
    text-align: center;
  }

  #intro h2 {
    text-align: center;
  }

  #quote {
    height: auto;
    padding: 5rem 8% 5rem;
  }

  #education {
    flex-direction: column;
    justify-content: center;
    padding: 5rem 8% 5rem;
    height: auto;
    align-items: normal;

  }
  #education > h2 {
    margin-top: 10px;
  }
  #right {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #right>img {
    width: 130px;
    height: auto;
    border-radius: 50%;
    margin-top: 10px;
  }

  #skills {
    flex-direction: column;
    justify-content: center;
    padding: 5rem 8% 5rem;
    height: auto;
    align-items: normal;
  }
  #skills-list {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  #skills-logo> img {
    height: 70px;
    width: auto;
  }

  #projects {
    flex-direction: column;
    justify-content: center;
    padding: 5rem 8% 5rem;
  }

  #projectright {
    width: 100%;
  }

  #projectright > p {
    padding-top: 2rem;
  }

  #projectgrid {
    padding: 3rem;
    padding-bottom: 0px;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto;
    grid-auto-rows: auto;
    gap: 2rem;
  }

  #contact {
    flex-direction: column;
    justify-content: start;
    padding: 5rem 8% 5rem;
  }

  #contactinfo {
    padding: 1rem 0px;
  }
}
footer {
      background-color: #222;
      color: white;
      padding: 20px 0;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 30px;
    }

    .footer-icons {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 40px;
    }
    .footer-icons span {
      font-size: 15px;
      color: #f7eac0;
      font-weight: 700;
    }
    .footer-icons a {
      color: white;
      font-size: 24px;
      transition: transform 0.2s ease, color 0.2s ease;
    }

    .footer-icons a:hover {
      color: #ffa116; /* default hover color */
      transform: scale(1.2);
    }

    .footer-icons a.leetcode:hover {
      color: #ffa116;
    }

    .footer-icons a.gfg:hover {
      color: #2f8d46;
    }
