@import url('https://fonts.googleapis.com/css2?family=Comic+Relief:wght@400;700&family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Montserrat:ital,wght@0,100..900;1,100..900&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&display=swap');

/*main*/
.main {
    margin-left: 100px;
    margin-right: 100px;
    margin-bottom: 100px;
}

.main h2 {
    margin-top: 0%;
    font-family: 'Comic Relief';
    color: #00103e;
    text-align: center;
    font-size: 18px;
}
#current{
    border: 1px solid black;
    border-radius: 5px;
}

.social {
    display: flex;
    justify-content: center;
    padding-top: 0px;
}
.social img {
    height: 18px;
    padding-left: 5px;
    padding-right: 5px;
    filter: grayscale(100%) brightness(0.9) contrast(1.2);
    opacity: 0.7;
}
.main p{
    font-family: 'Montserrat';
    font-weight: 500;

}

/*Navbar*/
.nav {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 5px 5px 0px 5px;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0px 5px 25px rgba(6, 6, 6, 0.5);
}

.nav a img {
    height: 50px;
    user-select: none;
}
@media (max-width: 768px){
    .main{
        margin: 2px 10px 150px 10px;
    }
    .nav{
        width: 200px;
        display: flex;
        justify-content: center;
        padding: 2px 10px 2px 10px;
    }
}

.portfolio-hero {
  display: flex;
  justify-content: center;  
  width: 100%;
}

.wheel-viewport {
  position: relative;
  height: 5.5rem; 
  width: 380px; 
  perspective: 1000px; 
  overflow: hidden;
}

.wheel {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: scrollWheel 24s infinite cubic-bezier(0.7, 0, 0.3, 1);
}

.wheel-item {
  position: absolute;
  width: 100%;
  height: 5.5rem;
  line-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center; 
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  font-weight: 700;
  background: linear-gradient(45deg, #007bff, #6200ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  backface-visibility: hidden;
  transform: rotateX(calc(var(--i) * -40deg)) translateZ(7.5rem);
}

.wheel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0) 25%,
    rgba(255, 255, 255, 0) 75%,
    rgba(255, 255, 255, 0.85) 100
  );
}
@keyframes scrollWheel {
  0%, 9%      { transform: rotateX(0deg); }
  11%, 20%    { transform: rotateX(40deg); }
  22%, 31%    { transform: rotateX(80deg); }
  33%, 42%    { transform: rotateX(120deg); }
  44%, 53%    { transform: rotateX(160deg); }
  55%, 64%    { transform: rotateX(200deg); }
  66%, 75%    { transform: rotateX(240deg); }
  77%, 86%    { transform: rotateX(280deg); }
  88%, 97%    { transform: rotateX(320deg); }
  100%        { transform: rotateX(360deg); }
}
@media (max-width: 480px) {
  .wheel-viewport {
    width: 280px; 
    height: 4.5rem;
  }
  
  .wheel-item {
    font-size: 30px; 
    height: 4.5rem;
    line-height: 4.5rem;
    transform: rotateX(calc(var(--i) * -40deg)) translateZ(6rem); 
  }
}