@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

:root {
  /* Dark theme (default) */
  --bg-main: #1e1e1e;
  --bg-secondary: #292929;
  --bg-hover: #333333;
  --bg-soft: #444444;

  --text-main: #ddd;
  --text-muted: #999;
  --text-light: #fff;

  --accent: #a66efc;
  --accent-green: #29f199;
  --accent-orange: #faaf3a;

  --scroll-track: #121212;
  --scroll-thumb: #333333;

  --search-bg: #1e1e1e;
  --search-text: #ffffff;
  --search-placeholder: #777;
  --search-shadow: rgba(226, 226, 226, 0.9);
  --search-shadow-focus: rgba(255, 255, 255, 0.5);

  --footer-text-main: #ffffff;
  --footer-text-muted: #aaaaaa;
  --footer-text-link: #dddddd;
  --footer-text-hover: #a66efc;
}

body.light-theme {
  /* Light theme */
  --bg-main: #f5f5f5;
  --bg-secondary: #ffffff;
  --bg-hover: #eeeeee;
  --bg-soft: #e0e0e0;

  --text-main: #222;
  --text-muted: #555;
  --text-light: #000;

  --accent: #6a3df0;
  --accent-green: #0f9d58;
  --accent-orange: #f39c12;

  --scroll-track: #e0e0e0;
  --scroll-thumb: #bbbbbb;

  --search-bg: #ffffff;
  --search-text: #222222;
  --search-placeholder: #666;
  --search-shadow: rgba(0, 0, 0, 0.15);
  --search-shadow-focus: rgba(0, 0, 0, 0.3);

   --footer-text-main: #111111;
  --footer-text-muted: #555555;
  --footer-text-link: #333333;
  --footer-text-hover: #6a3df0;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: "Poppins", sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background-color: var(--scroll-track);
}
::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb);
  border-radius: 12px;
}

header {
  background-color: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 10;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  background: url(/assets/devprofilesicon.png) no-repeat;
  background-size: contain;
  width: 40px;
  height: 40px;
  display: inline-block;
}

h1 {
  color: var(--accent-green);
  padding: 20px 20px 20px 5px;
  font-size: 36px;
  font-weight: 500;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px;
}
.theme-btn{
  right: 0;
}
.profile {
  background-color: var(--bg-secondary);
  border: none;
  border-radius: 10px;
  padding: 20px;
  margin: 20px;
  width: calc(33.33% - 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
}
.profile:hover {
  background-color: var(--bg-hover);
  border: 1px solid var(--accent);
  transition: 150ms;
}

.pfp img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.name {
  font-weight: 400;
  font-size: 20px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.skill {
  background-color: var(--bg-soft);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
}

.profile .bio {
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4em;
  padding: 0 10px;
}

.social {
  display: flex;
  justify-content: center;
  background-color: var(--bg-soft);
  padding: 10px;
  border-radius: 20px;
}

.social a {
  color: var(--text-light);
  margin: 0 10px;
  font-size: 24px;
  transition: color 0.3s, font-size 0.3s;
}
.social a:hover {
  color: var(--accent);
  font-size: 28px;
}

button {
  border-radius: 5%;
  cursor: pointer;
  padding: 10px 20px;
  border: none;
  font-size: 16px;
  margin: 4px 2px;
}
button,
.top-btn {
  background-color: var(--accent);
  color: var(--text-light);
}
.search {
  margin: 30px 0;
}
.search {
  margin: 30px 0;
}

#searchInput {
  width: 80%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: var(--search-bg);
  color: var(--search-text);
  font-size: 16px;
  box-shadow: 0 0 5px var(--search-shadow);
}

#searchInput::placeholder {
  color: var(--search-placeholder);
}

#searchInput:focus {
  outline: none;
  box-shadow: 0 0 6px var(--search-shadow-focus);
}

footer {
  background-color: var(--bg-main);
  color: var(-footer-text-main);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-btn {
  width: 50px;
  height: 50px;
  padding: 10px;
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 10;
  margin-right: 10px;
  margin-bottom: 10px;
  display: none;
  border-radius: 10px;
  background-color: var(--accent);
}
.arrow-icon {
  animation: bounce 2s infinite ease-in-out;
}
.arrow-icon > path {
  fill: var(--text-light);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20%);
  }
}

.no-profile {
  padding: 20px;
  display: none;
}

#Dev {
  color: var(--accent-orange);
}

@media screen and (max-width: 768px) {
  .container {
    justify-content: center;
  }
  .profile {
    width: 100%;
  }
}

.footer-content {
  display: flex;
  width: 80%;
  max-width: 1200px;
  flex-direction: column;
  align-items: center;
}
.about {
  margin-bottom: 20px;
  text-align: center;
}
.flinks {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flinks > div {
  margin: 10px 0;
  text-align: center;
}
.fbtn {
  margin-top: 20px;
}
.about p.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-light);
  margin: 0;
}
.about p {
  margin: 10px 0;
  color: var(--footer-text-muted);
}
.about a {
  color: var(--footer-text-link);
  text-decoration: none
}
.ficons {
  margin-top: 20px;
}
.ficons a {
  color: var(--text-light);
  padding: 10px;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s;
}
.ficons a:hover {
  color: var(--accent);
}
.flinks p {
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-light);
}
.flinks a {
  display: block;
  color: var(--search-text);
  margin: 5px 0;
  text-decoration: none;
}
.flinks a:hover {
  color: ac;
}
#star {
  background-color: #fff;
  color: #141111f1;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: bold;
  justify-content: center;
}
#sponsor {
  background-color: #e62d7766;
  color: #fffffff1;
  border-radius: 5px;
  padding: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: bold;
  justify-content: center;
}
.copyright {
  margin: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
  .about, .flinks {
    flex: 1;
  }
  .about {
    text-align: left;
  }
  .flinks {
    flex-direction: row;
    align-items: flex-start;
  }
  .flinks > div {
    margin: 0 10px;
    text-align: left;
  }
  .fbtn {
    margin-top: 0;
  }
}
