@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
  font-family: Arial, sans-serif;
  background-color: #0e0e0f;
  margin: 0;
  padding: 20px;
  overflow-y: scroll;
  scroll-behavior: smooth;

  background-image:
    linear-gradient(135deg, #0d4083, #05303d),
    url('./files/noise.png');
  background-blend-mode: overlay;
  background-size: cover;
}

#topbar {
    color: rgba(255, 255, 255, 0.575);
    padding: 10px 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 440px;
    font-size: 8px;

    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    position: fixed;

    z-index: 9999;

    transition: background-color 0.15s ease, backdrop-filter 0.15s ease, border-radius 0.15s ease;
}

#topbar h1 {
    font-weight: 80;
}

#topbar.scrolled {
  background-color: #5c5c5c46;
  backdrop-filter: blur(5px);
  border-radius: 50px;
}

#content {
    margin-top: 60px;
    color: rgb(255, 255, 255);
    position: relative;
    left: 50%;
    height: 90vh;
    width: 90vw;
    background-color: rgba(0, 255, 255, 0);
    transform: translateX(-50%);
}

.topbarCurrentTab {
    color: rgba(255, 255, 255, 0.733);
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.555);
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

#welcomeText {
    font-size: 24px;
    text-align: center;
    position: absolute;
    top: 37%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size:50px;
    z-index: 2;
    width: 700px;
}

#projects {
    position: absolute;
    top: 98%;
    color: rgba(255, 255, 255, 0.582);
    font-size: 20px;
    width: 90vw;
    height: 30vh;
    background-color: rgba(0, 0, 0, 0);
    left: 50%;
    transform: translateX(-50%);
}

#projectsTitle {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.582);
}

#programmingLanguage {
    position: relative;
    top: 590px;
    color: rgba(255, 255, 255, 0.582);
    font-size: 20px;
    width: 90vw;
    height: 30vh;
    background-color: rgba(0, 0, 0, 0);
    left: 50%;
    transform: translateX(-50%);
}

#pLanguagesContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: calc(3 * 200px + 2 * 30px);
  margin: 0 auto;
  margin-top: 80px;
}

#pageViewsContainer {
  position: absolute;
  bottom: 50px;
  left: 49.4%;
  transform: translateX(-50%);
  width: 300px;
  height: 50px;

  display: flex;
  flex-direction: row;

  align-items: center;
  justify-content: center;
}

#viewsIcon {
    width: 30px;
    height: 30px;
}

#viewsCountContent {
    font-size: 16px;
    bottom: 1px;
    left: 10px;
    color: #c4c4c4;
    position: relative;
}

#myVideosContainer {
    position: relative;
    top: 890px;
    color: rgba(255, 255, 255, 0.582);
    font-size: 20px;
    width: 90vw;
    height: 30vh;
    background-color: rgba(151, 31, 31, 0);
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 900px;
}

#mvEntries {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;

  margin: 0 auto;

  background-color: #47dddd00;
  width: 100%;
  position: relative;
  margin-top: 80px;
}

#mvTitle {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.582);
}

.videoEntry {
    width: 250px;
    height: 520px;
    background-color: rgba(240, 248, 255, 0);
}

.videoTitle {
    font-size: 16px;
    font-weight: 400;
    top: 0px;
    position: relative;
    text-align: center;
}

.viewsSlider {
    width: 200px;
    height: 20px;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
    background-color: #43454791;
    border-radius: 16px;
}

.vsFill {
  height: 20px;
  border-radius: 16px;
  border-bottom-right-radius: 0px;
  border-top-right-radius: 0px;

  background: linear-gradient(270deg, #6ebeff, #68b2f0, #47dddd, #66b3fc);
  background-size: 400% 400%;

  animation: fluidWiggle 6s ease-in-out infinite;
}

.viewsCount {
  position: absolute;
  font-size: 14px;
  z-index: 999;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  transition: color 0.2s ease;
}

.videoThumbnail {
    width: 250px;
    border-radius: 15% / 10%;
    box-shadow: 1px 1px 100px #47dddd4f;
}

#pLanguagesContainer > * {
  flex: 0 1 200px;
}

#pLanguageTitle {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.582);
}

.pLanguage {
    width: 200px;
    height: 200px;
    background-color: rgba(41, 41, 41, 0.507);
    border-radius: 25% / 25%;
}

.languageIcon {
    width: 110px;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    position: relative;
}

.languageName {
    font-size: 18px;
    margin-right: 50%;
    margin-top: 35px;
    transform: translateX(50%);
    position: relative;
    text-align: center;
}

.project {
  width: 500px;
  height: 200px;
  padding: 10px;
  margin: 10px;
  background-color: rgba(51, 51, 51, 0.1);
  border: 1px solid rgba(119, 119, 119, 0.2);
  transition: background-color 0.3s ease;
  border-radius: 12% / 25%;
  position: relative;
}

.projectName {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.582);
    margin-bottom: 10px;
    text-align: left;
    position: relative;
    top: -220px;
    left: 220px;
}

.projectDescription {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.582);
    text-align: left;
    position: relative;
    top: 95px;
    top: -230px;
    left: 220px;
    width: 270px;
}

.projectImage {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 30% / 25%;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.projectButton {
    background-color: #2b3d6e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: absolute;
    top: 173px;
    width: 280px;
    left: 220px;
    border-bottom-right-radius: 80px;
    border-top-right-radius: 0px;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
}

#projectsContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    overflow-x: hidden;
}

#descriptionText {
    font-size: 16px;
    text-align: center;
    position: absolute;
    top: 54%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size:20px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.582);
}

#welcomeLine {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.scene {
  width: 200px;
  height: 200px;
  perspective: 800px;
  margin: 100px auto;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(30deg);
  animation: rotateCube 12s infinite linear;
}

.face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(32, 32, 32, 0.8);
  border: 2px solid rgb(114, 114, 114);
  line-height: 200px;
  font-size: 40px;
  color: white;
  text-align: center;
  font-weight: bold;
  opacity: 0.1;
}

.front  { transform: translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotateCube {
  from { transform: rotateX(0deg) rotateY(0deg); }
  to   { transform: rotateX(360deg) rotateY(360deg); }
}

#middleCube {
    position: fixed;
    right: 20px;
    width: 200px;
    height: 200px;
    z-index: 1;
    top: 30vh;
}

#decoWrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#scene {
    width: 100%;
    height: 100%;
    position: relative;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 1226px) {

    #topbar {
        display: none;
    }

    #welcomeText {
        font-size: 30px;
        top: 40%;
        width: 90vw;
    }

    #middleCube {
        left: 0px;
    }

    #content {
        bottom: 50px;
    }

    #descriptionText {
        font-size: 16px;
        top: 56%;
        width: 90vw;
    }

  #programmingLanguage {
    margin-top: 300px;
    height: 100%;
    position: relative;
  }

  #projectsContainer {
    width: 100%;
  }

  .projectButton {
    width: 93%;
    left: 12px;
    top: 180px;

    border-bottom-left-radius: 100px;
    border-top-left-radius: 0px;
  }

  .projectImage {
    width: 160px;
    height: 160px;
    border-bottom-left-radius: 0px;
  }

  .projectName {
    top: -180px;
    left: 170px;
  }

  .projectDescription {
    top: -195px;
    left: 170px;
    width: 100vw;
    font-size: 14px;
    width: 160px;
  }

  #myVideosContainer {
    width: 100vw;
    height: 100vh;
    margin-top: -240px;
  }
}