* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000000;
  color: #fff;
}

body p {
  font-family: "arial", sans-serif;
  font-weight: 500;
  font-style: normal;
}

#header {
  width: 100%;
  height: 100%;
  margin-top: 15px;
}

.container {
  padding: 10px 10%;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  width: 150px;
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin: 10px 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

nav ul li a::after {
  content: "";
  width: 0;
  height: 3px;
  background: #ff0bc6;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
}

nav ul li a:hover::after {
  width: 100%;
}

.header-text {
  margin-top: 20%;
  font-size: 30px;
}

.header-text h1 {
  font-size: 60px;
}

.header-text h1 span {
  color: #ff0bc6;
}

.hire-btn {
  background-color: #ff0bc6;
  font-size: 1.5rem;
  border: 4px solid white;
  border-radius: 35px;
  color: white;
  padding: 10px 25px;
  font-weight: bold;
  margin-top: 20px;
  margin-right: 10px;
}

.d-btn {
  background-color: transparent;
  font-size: 1rem;
  border: 5px solid #ff0bc6;
  border-radius: 35px;
  color: white;
  margin-top: 15px;
  padding: 14px 30px;
}
.d-btn:hover {
  scale: 1.05;
  background-color: #262626;
}
@media only screen and (max-width: 700px) {
  .hire-btn {
    display: none;
  }
  .d-btn{
    font-size: 0.5rem;
     border: 3px solid #ff0bc6;
     padding: 12px 25px;
  }
}
/* ---------about----------- */
#about {
  margin-top: 80px;
  color: #efefef;
  word-spacing: 3px;
  line-height: 20px;
}
/* ---------Problem solver----------- */
.live-stats {
  color: #ff0bc6;
  margin-top: 50px;
}
.leetcode {
  background-color: white;
  padding: 5px;
  border-radius: 10px;
}

.leetcode-dash div {
  background-color: rgb(81, 81, 81);
  width: 110px;
  height: 50px;
  font-size: 15px;
  padding: 5px;
  text-align: center;
  margin: 20px;
  border-radius: 10px;
}
.range-box {
  width: 90%;
  border: 3px solid rgb(255, 255, 255);
  display: flex;
  justify-content: space-evenly;
  padding: 20px;
  margin-top: 30px;
  border-radius: 15px;
  background-color: rgb(41, 41, 41);
}
.rank-box {
  width: 30%;
  font-size: 22px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  line-height: 40px;
}
@media only screen and (max-width: 700px) {
  .rank-box {
    font-size: 1rem;
    line-height: 30px;
  }
  .range-box {
    width: 100%;
    padding: 2px;
    border-radius: 15px;
    background-color: rgb(41, 41, 41);
  }
  .leetcode-dash div {
    background-color: rgb(81, 81, 81);
    width: 100px;
    height: 45px;
    font-size: 13px;
    padding: 2px;
  }
}
@media only screen and (max-width: 450px) {
   .rank-box {
    display: none;
   }
    .range-box {
    width: 100%;
    padding: 5px;
    border-radius: 15px;
    background-color: rgb(41, 41, 41);
  }
  
}

.myChart {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 20px;
}

/* circle */
.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 70px;
}

.about-col-1 {
  flex-basis: 35%;
}

.about-col-1 img {
  width: 100%;

  border-radius: 15px;
}

.about-col-2 {
  flex-basis: 60%;
}

.sub-title {
  font-size: 50px;
  font-weight: 600;
  color: white;
  margin-bottom: 25px;
}

.about-col-2 p {
  color: rgb(255, 255, 255);
  font-size: 19px;
}

.tab-titles {
  display: flex;
  margin: 20px 0 40px;
}

.tab-links {
  margin-right: 50px;
  font-size: 20px;
  font-weight: 50;
  font-family: arial;
  cursor: pointer;
  position: relative;
}

.tab-links:hover {
  color: #ff0bc6;
  transition: color 0.5s;
}

.tab-links::after {
  content: "";
  width: 0;
  height: 3px;
  background: #ff0bc6;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.5s;
}

.tab-links.active-link::after {
  width: 50%;
}

.tab-contents ul li {
  list-style: none;
  margin: 10px 0;
}

.tab-contents ul li span {
  color: #ff0bc6;
  font-size: 18px;
  font-weight: bold;
}

.tab-contents {
  display: none;
}

.tab-contents.active-tab {
  display: block;
}

/* ---------------services-------------- */
#services {
  padding: 40px 0;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
}

.services-list div i {
  font-size: 50px;
  margin-bottom: 30px;
}

.services-list div {
  background: #262626;
  padding: 40px;
  font-size: 13px;
  font-weight: 300;
  border-radius: 10px;
  transition:
    background 0.5s,
    transform 0.5s;
}

.heading {
  margin-top: 10px;
  margin-bottom: 10px;
}

.services-list div a {
  text-decoration: none;
  color: #bea6ff;
  font-size: 16px;
  margin-top: 12px;
  display: inline-block;
}
.services-list div:hover {
  background: #ff0bc6;
  transform: translateY(-10px);
}

#portfolio {
  padding: 50px 0;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
}

.work {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.work img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s;
}
/* ----------------portfolio---------------- */
.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), #ff0bc6);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  font-size: 14px;
  transition: height 0.5s;
}

.layer h3 {
  font-weight: 550;
  font-size: 20px;
  margin-bottom: 20px;
}

.layer a {
  margin-top: 20px;
  color: #ff0bc6;
  text-decoration: none;
  font-size: 18px;
  line-height: 60px;
  background-color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
}

.layer a img {
  margin-top: 20px;
  width: 45px;
  border-radius: 25px;
  background-color: white;
}

.work:hover img {
  transform: scale(1.1);
}

.work:hover .layer {
  height: 100%;
}

.btn {
  display: block;
  margin: 50px auto;
  width: fit-content;
  border: 1px solid #ff0bc6;
  padding: 14px 50px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  transition: background 0.5s;
}

.btn:hover {
  background: #ff0bc6;
}

.social-icons {
  margin-top: 30px;
}

.social-icons a {
  text-decoration: none;
  font-size: 30px;
  margin-right: 15px;
  color: #dbd8d8;
  display: inline-block;
  transition: transform 0.5s;
}

.social-icons a:hover {
  color: #ff0bc6;
  transform: translateY(-5px);
}

.contact-left {
  flex-basis: 35%;
}

.contact-right {
  flex-basis: 60%;
}

.contact-left p {
  margin-top: 30px;
}

.contact-left p i {
  color: #ff0bc6;
  margin-right: 15px;
  font-size: 25px;
}

.btn.btn2 {
  display: inline-block;
  background: #ff0bc6;
}
#dbtn:hover {
  background-color: #ff0051d4;
}
.contact-right form {
  width: 100%;
}

form input,
form textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: #262626;
  padding: 15px;
  margin: 15px 0;
  color: #fff;
  font-size: 18px;
  border-radius: 6px;
}

form .btn2 {
  padding: 14px 50px;
  font-size: 18px;
  margin-top: 20px;
  cursor: pointer;
}

.copyright {
  width: 100%;
  text-align: center;
  padding: 25px 0;
  background: #262626;
  font-weight: 300;
  margin-top: 20px;
}

.copyright i {
  color: #ff0bc6;
}

nav .fas {
  display: none;
}

@media only screen and (max-width: 850px) {
  #header {
    height: 50%;
  }
  .header-text {
    margin-top: 100%;
    font-size: 16px;
  }
  .header-text h1 {
    font-size: 30px;
  }

  nav .fas {
    display: block;
    font-size: 25px;
  }

  nav ul {
    background: #ff0bc6;
    position: fixed;
    top: 0;
    right: -200px;
    width: 160px;
    height: 100vh;
    padding-top: 50px;
    z-index: 2;
    transition: right 0.5s;
  }

  nav ul li {
    display: block;
    margin: 25px;
    transition: transform 0.2s;
  }
  nav ul li a:hover {
    font-weight: bold;
  }
  nav ul .fas {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }

  .header-text {
    margin-top: 30%;
    font-size: 20px;
    width: 300px;
  }

  .sub-title {
    font-size: 40px;
  }

  .about-col-1,
  .about-col-2 {
    flex-basis: 100%;
  }

  .about-col-1 {
    margin-bottom: 30px;
  }

  .about-col-2 {
    font-size: 14px;
  }

  .tab-links {
    font-size: 16px;
    margin-right: 20px;
  }

  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }

  .copyright {
    font-size: 14px;
  }
}

#msg {
  color: #61b752;
  margin-top: -40px;
  display: block;
}

.skill {
  width: 160px;
  height: 160px;
  position: relative;
  margin-right: 40px;
}

.outer {
  height: 120px;
  width: 120px;
  border-radius: 50%;
  padding: 10px;
  box-shadow:
    4px 4px 10px -1px rgba(0, 0, 0, 0.15),
    -3px -2px 10px -1px rgba(195, 194, 194, 0.7);
}

.inner {
  height: 100px;
  width: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 2px 2px 4px -1px rgba(0, 0, 0, 0.2),
    inset -4px -4px 6px -1px rgba(167, 166, 166, 0.7),
    -0.5px -0.5px 0px rgb(63, 62, 62),
    0.5px 0.5px 0px rgba(0, 0, 0, 0.15),
    0px 12px 10px -10px rgba(134, 131, 131, 0.05);
}

#number,
#number1,
#number2 {
  font-weight: 600;
  color: #777474;
  text-align: center;
  font-size: 15px;
}

circle {
  fill: none;
  stroke: url(#GradientColor);
  stroke-width: 10px;
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
  animation: anim 2s linear forwards;
}

svg {
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes anim {
  100% {
    stroke-dashoffset: 70;
  }
}
.per {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.circle2 {
  animation: anim1 2s linear forwards;
}
@keyframes anim1 {
  100% {
    stroke-dashoffset: 122;
  }
}
.circle3 {
  animation: anim2 2s linear forwards;
}

@keyframes anim2 {
  100% {
    stroke-dashoffset: 175;
  }
}
/* Wrapper to position the button and hearts */
.heart-wrapper {
  position: relative;
  display: inline-block;
}

/* Style the heart button */
.heart-btn {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 10px;
  position: relative;
  z-index: 1;
}

.heart-btn i {
  color: #e0e0e0; /* Default heart color */
  font-size: 30px;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

/* When the button is clicked */
.heart-btn.active i {
  color: rgb(255, 35, 200);
  transform: scale(1.2);
}

/* Container for small hearts */
.heart-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; /* Prevent blocking clicks */
  z-index: 0;
}

/* Style for the small hearts */
.small-heart {
  position: absolute;
  font-size: 15px;
  color: rgb(255, 35, 200);
  opacity: 1;
  animation: floatUp 1s ease-out forwards;
}

/* Animation to move the small hearts upwards */
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(0.5);
    opacity: 0;
  }
}
#extraCode {
  overflow: hidden;
  margin-top: 10px;
  padding: 0 10px;
  transition:
    height 0.4s ease,
    padding 0.4s ease;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
}
#toggleButton {
  background-color: #000000;
}
#toggleButton:hover {
  background-color: #ff0bc6;
}
