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

:root {
  --base-bg: #08080e;
  --object-bg: #0f0f1a;
  --text-color: #ffffff;
  --secondary-text: #a4a5b8;
  --primary-color: #a8bdfd;
  --button-color: linear-gradient(45deg, #6c3fbf 20%, #4fc3f7);
  --link-color: rgb(100, 188, 247);
  --accent-color: rgb(31, 203, 255);
  --sub-topic-color: #c6abec;
  transition: ease-in-out 1s;
}

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.2s;
}
@keyframes fadeIn {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}

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

::-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;
}

/* main styling */
#main-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-bottom: 100px;
}

#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.3s ease;
  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: flex-end;
  gap: 20px;
  margin: 10px;
}

#li a {
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 18px;
}
#li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: -10px;
  transition: 0.3s;
}

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

#li a:hover {
  color: var(--accent-color);
}

.circle {
  width: 350px;
  height: 250px;
  border-radius: 50%;
  background: rgb(100, 139, 247);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 7px;
  right: -25px;
  z-index: -1;
  filter: blur(150px);
}

#profile-pic {
  width: 300px;
  height: auto;
  border-radius: 50%;
  margin-top: 10px;
  box-shadow: 0 0 50px rgba(100, 139, 247, 0.432);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

abbr {
  text-decoration: none;
  color: var(--accent-color);
}

h1 {
  font-size: 40px;
  margin: 20px 0;
}
h1,
h3 {
  text-align: center;
}

h3 {
  font-size: 20px;
  color: var(--link-color);
  margin-bottom: 20px;
}
#about {
  max-width: 800px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px;
}
#about-title {
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--accent-color);
  width: 80%;
  margin-left: 7px;
}

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

a {
  text-decoration: none;
}

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

h1 {
  overflow: hidden;
  white-space: nowrap;
  padding-right: 3px;
  animation: typing ease-in-out 2.5s;
  margin: 10px auto;
  text-align: center;
}
@keyframes typing {
  from {
    width: 0px;
  }
  to {
    width: 100%;
  }
}

#projects {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  margin: 15px;
  padding: 20px 0px;
  flex-wrap: wrap;
}
#projects div {
  background-color: var(--object-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  max-height: 9999px;
  max-width: 500px;
  transition: ease-in-out 0.2s;
  margin: 0 auto;
}
#projects div:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(100, 139, 247, 0.432);
}

#projects div i {
  color: var(--text-color);
  font-size: 20px;
  margin-top: auto;
}

#projects div i:hover {
  color: var(--link-color);
}

#projects div p {
  margin-top: 7px;
}

#projects div h4 {
  font-size: 20px;
  color: var(--primary-color);
}

#projects-section {
  font-size: 40px;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.project-img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.project-card {
  flex: 1 0 300px;
}

#screenshot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 20px;
}

#screenshot img {
  max-width: 900px;
  width: 90%;
  height: auto;
  border-radius: 10px;
  margin: 10px 20px;
}

ul {
  list-style: inside;
  font-size: 18px;
  margin: 0px 20px;
  width: 90;
}

.p-h3 {
  font-size: 22px;
  margin: 10px 10px;
  color: var(--accent-color);
  text-align: left;
  width: 90%;
}
.sub-text {
  text-align: center;
}

.main {
  width: 100%;
  max-width: 800px;
}
hr {
  margin-bottom: 7px;
}
.heading {
  text-align: center;
  font-size: 30px;
  margin: 20px 0;
  color: var(--link-color);
}

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

.popup-image {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  width: 100%;
  height: 100%;
  z-index: 9900 !important;
  display: none;
}

.popup-image span {
  position: absolute;
  top: 5px;
  right: 20px;
  font-size: 50px;
  font-weight: bolder;
  z-index: 9900 !important;
}

.popup-image img {
  position: absolute;
  width: 90%;
  max-height: 90%;
  height: auto;
  top: 50% !important;
  left: 50% !important;
  border-radius: 10px;
  transform: translate(-50%, -50%) !important;
}

.img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#tip {
  position: fixed;
  bottom: 5px;
  right: 20px;
  font-size: 15px;
  color: #c9c8c8;
}
/* responsive */
@media (min-width: 300px) and (max-width: 450px) {
  #profile-pic {
    width: 250px;
    margin-bottom: 10px;
  }

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

  #name {
    font-size: 20px;
    margin-right: 3px;
  }

  #li a {
    font-size: 17px;
  }
  h1 {
    font-size: 30px;
    margin: 10px 1px;
  }

  h3 {
    font-size: 17px;
    margin: 7px;
  }

  #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;
  }

  .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 {
    width: 280px;
    margin-bottom: 10px;
  }

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

  #name {
    font-size: 22px;
  }

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

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

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

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

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

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

  #name {
    font-size: 24px;
  }

  h1 {
    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);
  }
}
