@import url("https://fonts.googleapis.com/css2?family=Baloo+Da+2:wght@400..800&family=Varela+Round&display=swap");
@import url(var.css);
/* default styleing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Varela Round", system-ui;
  background-color: var(--base-bg);
  color: var(--text-color);
  margin: 0;
  line-height: 1.6;
  min-height: 100vh;
  transition: ease-in-out 1s;
  cursor: default;
  display: flex;
  align-items: center;
  flex-direction: column;
  animation: fadeIn 0.5s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #d4ccf3;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--button-color);
  border-radius: 5px;
}

.loader-parent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background-color: var(--base-bg);
}

.loader-parent h3 {
  color: var(--accent-color);
  text-shadow: black 2px 2px px;
  font-size: 30px;
  font-family: "Baloo Da 2", sans-serif;
  text-align: center;
  margin-top: 20px;
  letter-spacing: 2px;
}

.loader-parent h3::after {
  content: "";
  animation: dots 2s steps(5, end) infinite;
  vertical-align: bottom;
}
@keyframes dots {
  0%,
  20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80% {
    content: "...";
  }
  90%,
  100% {
    content: "....";
  }
}

#loader {
  width: 100px;
  height: 100px;
  border: 10px solid #fcf9f9;
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: rotate 1s infinite;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@keyframes rotate {
  100% {
    rotate: 360deg;
  }
}

@keyframes transition {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

button {
  border: none;
  cursor: pointer;
}

/* navbar styling --start */
#logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 3px;
}

nav {
  width: 100%;
  position: sticky;
  top: 0;
  background-color: transparent;
  padding: 0px 20px;
  transition: background-color 0.5s ease-in-out;
  z-index: 1;
}

nav div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

#li {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 10px, 10px, 0px, 10px;
}

#li a {
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 18px;
}

#li a#github {
  color: #ffffff;
  font-size: 25px;
}

#li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: -10px;
  transition: 0.3s;
}

#li a#github::after,
#li a#menuBtn::after {
  display: none;
}

#li a:hover::after {
  width: 100%;
}

#li a:hover,
#li a#github:hover {
  color: var(--accent-color);
}
/* navbar styling --end */
/* mobile menu -- start*/
#sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px;
  background: #0c0e1f;
  z-index: 999;
  min-width: 250px;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  transition: 0.5s ease-in;
  border-radius: 20px 0px;
}
#li a#menuBtn {
  font-size: 28px;
  padding-right: 10px;
}

#closeSidebar {
  position: absolute;
  top: 12px;
  right: 10px;
  color: #ffffff;
  font-size: 25px;
}
#sidebar #li-sidebar {
  display: flex;
  flex-direction: column;
}

#sidebar #li-sidebar a {
  width: 100%;
  font-size: 23px;
  color: var(--accent-color);
  padding: 8px;
}
#li-sidebar a:hover::after {
  display: none;
}

#li a:hover,
#li a#github:hover {
  color: var(--accent-color);
}
#sidebar #logo-box {
  display: flex;
  align-items: center;
}
#sidebar #li-sidebar a:hover {
  color: #ffffff;
  transition: 0.3s;
}

@media (max-width: 600px) {
  .hideOnMobile {
    display: none;
  }
}

@media (max-width: 425px) {
  #sidebar {
    width: 70%;
  }
}

@media (min-width: 600px) {
  #menuBtn {
    display: none;
  }
}
/* mobile menu -- end*/ /* H1 highlighting ↓ */
.highlight {
  text-decoration: none;
  color: var(--accent-color);
}

h1 {
  font-size: 40px;
  margin: 20px 0;
}

h2 {
  font-size: 22px;
  margin: 20px 10px;
}

h1,
h3 {
  text-align: center;
}

h3 {
  font-size: 20px;
  color: var(--link-color);
  margin-bottom: 20px;
}
.intro {
  overflow: hidden;
  white-space: nowrap;
  padding-right: 3px;
  animation: typing ease-in-out 2.5s;
  margin: 10px auto;
  text-align: center;
}
.heading {
  text-align: center;
  margin: 20px 0;
  color: var(--link-color);
}
@keyframes typing {
  from {
    width: 0px;
  }
  to {
    width: 100%;
  }
}

#name /*navbar - text:surjo*/ {
  text-decoration: none;
  font-size: 26px;
  color: var(--accent-color);
}

p {
  font-size: 22px;
  margin-bottom: 20px;
}
.margin-p {
  max-width: 800px;
  /* display: flex;
  flex-direction: column;
  align-items: center; */
  margin: 10px;
}

a {
  text-decoration: none;
}

/* responsive */
@media (min-width: 300px) and (max-width: 450px) {
  .profile-pic {
    margin-bottom: 15px;
  }
  .profile-pic img {
    width: 250px;
    height: 250px;
  }

  #logo {
    width: 37px;
    height: 37px;
  }
  #logo-box {
    margin-left: 10px;
  }
  #name {
    font-size: 20px;
    margin-right: 3px;
  }

  #li {
    gap: 12px;
  }

  #li a {
    font-size: 17px;
  }

  #li a#github {
    font-size: 24px;
  }
  h1,
  #intro {
    font-size: 30px;
    margin: 10px 1px;
  }

  h3 {
    font-size: 17px;
    margin: 7px;
  }
  #short-desc {
    font-size: 1rem;
  }
  #about-title {
    font-size: 27px;
    margin-bottom: 12px;
  }

  p {
    margin-bottom: 10px;
    font-size: 19px;
  }

  nav {
    padding: 0px 5px;
    position: sticky;
    top: 0;
    z-index: 999;
  }

  .item1,
  .item2 {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .item1 {
    top: -5px;
    right: -20px;
  }

  .item2 {
    bottom: -5px;
    left: -20px;
  }
  .circle {
    width: 250px;
    height: 180px;
    top: 5px;
    right: -13px;
    filter: blur(120px);
  }

  #projects {
    width: 90%;
  }
}

@media (min-width: 451px) and (max-width: 768px) {
  .profile-pic {
    margin-bottom: 25px;
  }
  .profile-pic img {
    width: 280px;
    height: 280px;
  }

  #logo {
    width: 45px;
    height: 45px;
  }

  #name {
    font-size: 22px;
  }

  h1,
  #intro {
    font-size: 35px;
    margin: 10px 0;
  }

  h3 {
    font-size: 18px;
    margin: 10px;
  }
  #short-desc {
    font-size: 17px;
  }
  #about-title {
    font-size: 28px;
    margin-bottom: 12px;
  }

  p {
    margin-bottom: 15px;
    font-size: 20px;
  }

  .item1,
  .item2 {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .item1 {
    top: -7px;
    right: -30px;
  }

  .item2 {
    bottom: -7px;
    left: -30px;
  }

  .circle {
    width: 300px;
    height: 220px;
    top: 6px;
    right: -20px;
    filter: blur(130px);
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .profile-pic img {
    width: 280px;
    height: 280px;
  }

  #logo {
    width: 48px;
    height: 48px;
  }

  #name {
    font-size: 24px;
  }

  h1,
  #intro {
    font-size: 38px;
    margin: 10px 0;
  }

  h3 {
    font-size: 19px;
    margin: 10px;
  }

  #about-title {
    font-size: 29px;
    margin-bottom: 12px;
  }

  p {
    margin-bottom: 18px;
    font-size: 21px;
  }

  nav {
    padding: 9px;
  }

  .circle {
    width: 320px;
    height: 240px;
    top: 6px;
    right: -22px;
    filter: blur(140px);
  }
}
