@font-face {
  font-family: "title";
  src: url(../fonts/Jost-VariableFont_wght.ttf);
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  transition: background-color 0.2s ease;
}

a:hover,
a:link,
a:visited,
a:active,
a:focus {
  text-decoration: none;
  outline: none;
  border: none;
  color: inherit;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

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

::-webkit-scrollbar-thumb {
  background-color: var(--main_text_color, #000000);
  border-radius: 8px;
  height: 20%;
}

::-webkit-scrollbar-track {
  background-color: var(--main_bg_color, linear-gradient(50deg, #a2d0ff, #ffffff));
}


html {
  --name: theme2;
  --main_bg_color: url(../img/background.jpg);
  --main_text_color: #000000;
  --gradient: linear-gradient(120deg, #bd34fe, #e0321b 30%, #41d1ff 60%);
  --purple_text_color: #747bff;
  --text_bg_color: rgb(121 163 231);
  --item_bg_color: rgba(249, 250, 251, 0.42);
  --item_hover_color: rgba(244, 245, 246, 0.8);
  --item_left_title_color: #000000;
  --item_left_text_color: #494949;
  --footer_text_color: #ffffff;
  --left_tag_item: #c7e1fa;
  --card_filter: 0px;
  --back_filter: 20px;
  --back_filter_color: #00000030;
  --fill: #000000;
}

/*Base Styles*/
body {
  height: 100%;
  min-height: 100vh;
  width: 100%;
  position: relative;
  font-family: "b", "a", sans-serif;
  background: var(--main_bg_color);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: color 0.1s ease;
  color: var(--main_text_color);
}


/*Blur overlay*/
.filter {
  position: fixed;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(var(--back_filter));
  -webkit-backdrop-filter: blur(var(--back_filter));
  background: var(--back_filter_color);
  z-index: -99999999;
}

/*Layout*/
.main {
  width: 100%;
  margin: 0 auto;
  transition: transform 0.5s ease;
  max-width: 1150px;
  position: relative;
  display: flex;
  flex-direction: row;
}

/*Left Sidebar*/
.left {
  overflow-y: scroll;
  width: 230px;
  height: 100vh;
  display: flex;
  padding: 0 15px;
  position: sticky;
  top: 0;
  left: 0;
  align-items: center;
  flex-direction: column;
}

.left::-webkit-scrollbar {
  display: none;
}

.logo {
  flex-shrink: 0;
  width: 90%;
  position: relative;
  aspect-ratio: 1/1;
  margin-top: 50px;
  background-size: cover;
  border-radius: 50%;
}

.left-div {
  flex-shrink: 0;
  width: 100%;
  border-radius: 13px;
  margin-top: 15px;
  padding: 10px;
  backdrop-filter: blur(var(--card_filter));
  -webkit-backdrop-filter: blur(var(--card_filter));
  background: var(--item_bg_color);
}

.left-des {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-des-item {
  display: flex;
  align-items: center;
  line-height: 20px;
  font-size: 15px;
  margin-bottom: 5px;
  overflow: hidden;
}

.left-des-item i,
.left-des-item svg {
  width: 16px;
  height: 16px;
  fill: var(--fill);
  font-size: 18px;
  margin-right: 10px;
}

.left-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 14px;
}

.left-tag-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  margin: 0px 5px 5px 0;
  padding: 5px;
  font-size: 13px;
  border-radius: 10px;
  background: var(--left_tag_item);
}

/*Right Content */
.right {
  width: calc(100% - 230px);
  display: flex;
  padding: 20px;
  position: relative;
  padding-bottom: 50px;
  flex-direction: column;
}

.welcome {
  font-size: 65px;
  font-weight: 800;
  margin: 20px 0;
  font-family: "title", sans-serif;
}

.index-logo {
  flex-shrink: 0;
  width: 40%;
  margin-top: 30px;
  position: relative;
  max-width: 200px;
  aspect-ratio: 1/1;
  background-size: cover;
  border-radius: 50%;
  border: 0.5px solid #ffffff;
}

.description {
  font-size: 20px;
  margin-top: 7px;
}

.gradientText {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200%;
  background-position: 0%;
  font-family: "title";
  animation: backgroundSizeAnimation 10s ease-in-out infinite;
  background-image: var(--gradient);
}

@keyframes backgroundSizeAnimation {
  0% {
    background-position: 100%;
  }

  25% {
    background-position: 50%;
  }

  50% {
    background-position: 0%;
  }

  75% {
    background-position: 50%;
  }

  100% {
    background-position: 100%;
  }

}

.iconContainer {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  overflow-x: scroll;
  margin-top: 20px;

}

.iconContainer::-webkit-scrollbar {
  display: none;
}

.iconItem {
  width: 49px;
  height: 43px;
  box-sizing: border-box;
  border-radius: 7px;
  display: flex;
  margin-left: 10px;

  backdrop-filter: blur(var(--card_filter));
  -webkit-backdrop-filter: blur(var(--card_filter));
  background: var(--item_bg_color);
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.iconItem i,
.iconItem svg {
  width: 22px;
  height: 22px;
  fill: var(--fill);
  font-size: 22px;
  margin-right: 3px;
}

.iconTip {
  white-space: nowrap;
  display: none;
}

.iconItem:hover {
  width: 95px;
  transform: translateY(-2px);
  background: var(--item_hover_color);
}

.iconItem:hover .iconTip {
  display: block;
}

.snake-icon {
  width: 85%;
}

.snake-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title {
  display: flex;
  align-items: center;
  font-size: 26px;
  font-weight: 800;
  margin: 20px 0;
  transition: transform 0.4s ease;
}

.title i,
.title svg {
  margin-right: 8px;
  height: 26px;
  width: 26px;
  fill: var(--fill);
}

.title:hover {
  transform: translateY(-5px);
}

/*Project List*/
.projectList {
  display: flex;
  flex-wrap: wrap;
}

.projectItem {
  display: flex;
  flex-direction: column;
  width: 300px;
  padding: 10px;
  background: var(--item_bg_color);
  backdrop-filter: blur(var(--card_filter));
  border-radius: 8px;
  margin: 10px;
  transition: opacity 0.5s ease, background-color 0.2s ease, border 0.2s ease, transform 0.3s ease;
}

.projectItem:hover {
  box-shadow: 0 8px 16px -4px #2c2d300c;
  transform: translateY(-2px);
}

.projectItemLeft p {
  font-size: 15px;
  margin-top: 5px;
  color: var(--item_left_text_color);
}

.projectItemLeft h1 {
  font-weight: normal;
  font-size: 20px;
  margin: 0px;

  transition: font-size 0.4s ease;
  color: var(--item_left_title_color);
}

.projectItemLeft {
  transition: width 0.4s ease;
  height: 100%;
  width: 80%;
}

.projectItemRight {
  overflow: hidden;
  transition: width 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20%;
  height: 100%;
}

.projectItemRight img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.left-skills {
  width: 100%;
  border-radius: 10px;
  margin-top: 15px;
  padding: 15px;
  backdrop-filter: blur(var(--card_filter));
  -webkit-backdrop-filter: blur(var(--card_filter));
  background: var(--item_bg_color);
}

.left-section-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--main_text_color);
  margin: 0 0 10px 5px;
  text-align: left;
}

.skill-icons {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px 0 0 0;
  margin: 0;
}

.skill-icons li {
  width: 80%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icons li img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.skill-icons li img:hover {
  transform: scale(1.2);
}

.mobile-skills {
  display: none;
}

@media (min-width: 800px) {

  .index-logo {
    display: none;
  }
}

@media (max-width: 1150px) {
  .a {
    width: calc(50% - 20px);
  }

  .projectItem {
    margin: 10px;
  }

  .b {

    width: calc(50% - 20px);


  }
}

@media (max-width: 800px) {
  .left {
    display: none;
  }

  .a .projectItemRight {
    display: none;

  }

  .a .projectItemRight img {
    display: none;

  }

  .a .projectItemLeft {
    width: 100%;
  }

  .a {

    width: calc(50% - 18px);
    margin: 9px;

  }

  .b {
    height: 110px;
    margin: 8px 15px;
    width: calc(100% - 30px);
  }



  .right {
    width: 100%;
  }

  .snake-icon {
    width: 100%;
  }

  .description {
    font-size: 4vw;
  }

  .welcome {
    font-size: 10vw;
    margin: 2vw 0;

  }

  .iconContainer {
    margin-top: 4vw;

  }

  .projectItem {
    padding: 10px;
  }

  .projectItemLeft p {
    font-size: 13px;
  }

  .projectItemLeft h1 {

    font-size: 18px;
  }

  .projectItem:hover h1 {

    font-size: 20px;

  }

  .left .skill-icons {
    display: none;
  }

}

@media (max-width: 800px) {
  .mobile-skills {
    display: block;
    margin: 40px 0 0 0;
    padding: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-width: 90%;
  }

  .mobile-skills .left-section-title {
    text-align: left;
    display: block;
    font-size: 20px;
    margin: 0 0 15px 0;
  }

  .mobile-skills .skill-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, 45px);
    gap: 0.5px;
    padding: 0;
    margin: 0;
    justify-items: start;
  }

  .mobile-skills .skill-icons li {
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
  }

  .mobile-skills .skill-icons li img {
    width: 90%;
    height: auto;
    object-fit: contain;
  }

  .mobile-skills .skill-icons li img:hover {
    transform: scale(1);
  }
}

.projectDescription {
  max-height: 0;
  overflow: hidden;
  padding: 0 10px;
  background: var(--item_bg_color);
  border-radius: 8px;
  margin: 0 0 10px 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.projectDescription::-webkit-scrollbar {
  width: 6px;
}

.projectDescription::-webkit-scrollbar-thumb {
  background: var(--item_left_text_color, #888);
  border-radius: 3px;
}

.projectDescription::-webkit-scrollbar-track {
  background: transparent;
}

.projectDescription ul {
  padding-left: 20px;
  margin: 0;
}

.projectDescription li {
  font-size: 14px;
  color: var(--item_left_text_color, #2c2c2c);
  margin-bottom: 5px;
  line-height: 1.4;
}

.project-container.active .projectDescription {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
}

.projectItemTop {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 80px;
  margin-bottom: 10px;
}

footer {
  position: absolute;
  padding: 10px;
  text-align: center;
  width: 100%;
  backdrop-filter: blur(var(--card_filter));
  -webkit-backdrop-filter: blur(var(--card_filter));
  background: var(--item_bg_color);
  color: var(--footer_text_color);
  font-size: 13px;
  bottom: 0;
}

.tc {
  position: fixed;

  display: flex;
  visibility: hidden;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(20, 20, 20, 0.5);
  z-index: 99999;
  align-items: center;
  top: 0;
  justify-content: center;
  flex-direction: column;
}

.tc-main {
  z-index: 100000;

  width: 80%;
  max-width: 300px;
  min-height: 200px;
  background-color: #ffffff;
  border-radius: 15px;

  display: flex;
  transition: transform 0.2s linear;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateY(30%) scale(0.5);

}

.tc-img {
  width: 100%;
  height: 100%;
}

.tc.active {
  visibility: visible;
}

.tc-main.active {

  transform: translateY(0) scale(1);

}