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

html, body {
  height: 100%;
  font-family: "Courier Prime", monospace;
}

/* Background video */
#Vids {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
  z-index: -1;
}

.center-content {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

.icon-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Icons */
.main-icon {
  width: 96px; 
  max-width: 140px;
  min-width: 60px;
  height: auto;
  cursor: pointer;
  opacity: 0.85;
  transition: transform 0.3s ease, filter 0.3s ease;
  will-change: transform, filter;
  filter: blur(0.3px)
          sepia(0.29)
          contrast(0.9)
          brightness(1.1)
          drop-shadow(0 0 15px rgba(80, 230, 130, 0.7))
          drop-shadow(0 0 8px rgba(60, 200, 109, 0.448));
}

.main-icon:hover,
.main-icon:active {
  transform: scale(1.07);
  filter: blur(0.3px)
          sepia(0.29)
          contrast(0.9)
          brightness(1.1)
          drop-shadow(0 0 20px rgba(50, 150, 80, 0.8))
          drop-shadow(0 0 15px rgba(60, 170, 90, 0.6))
          drop-shadow(0 0 8px rgba(40, 130, 70, 0.7));
}

.main-text {
  text-align: center;
  color: white;
  font-size: 0.9rem;
  margin-top: 1.5px;
  text-shadow:
    0 1.5px 2px rgba(0, 0, 0, 0.7),
    0 0 6px rgba(0, 0, 0, 0.5);
  animation: glowText 2s infinite alternate;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.center-content:hover .main-text {
  opacity: 1;
}

@keyframes glowText {
  0% {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7))
            drop-shadow(0 0 5px white);
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(255, 210, 150, 0.8));
  }
}

.about-icon-position .main-icon {
  width: 67px;
  max-width: 80px;
  filter: blur(0.3px)
          sepia(0.29)
          contrast(0.9)
          brightness(1.1)
          drop-shadow(0 0 17px rgba(255, 255, 255, 0.876))
          drop-shadow(0 0 15px rgba(240, 240, 240, 0.5))
          drop-shadow(0 0 8px rgba(220, 220, 220, 0.4));
}

.about-icon-position .main-icon:hover,
.about-icon-position .main-icon:active {
  transform: scale(1.07);
  filter: blur(0.3px)
          sepia(0.29)
          contrast(0.9)
          brightness(1.1)
          drop-shadow(0 0 20px rgba(180, 180, 180, 0.8))
          drop-shadow(0 0 15px rgba(160, 160, 160, 0.6))
          drop-shadow(0 0 8px rgba(140, 140, 140, 0.7));
}

.about-icon-position .main-text {
  position: relative;
  left: 12px;
  margin-top: 5px;
}

.projects-icon-position .main-icon {
  width: 67px;
  max-width: 80px;
  filter: blur(0.3px)
          sepia(0.29)
          contrast(0.9)
          brightness(1.1)
          drop-shadow(0 0 10px rgba(50, 150, 255, 0.7))
          drop-shadow(0 0 8px rgba(0, 100, 200, 0.6));
}

.projects-icon-position .main-icon:hover,
.projects-icon-position .main-icon:active {
  transform: scale(1.07);
  filter: blur(0.3px)
          sepia(0.29)
          contrast(0.9)
          brightness(1.1)
          drop-shadow(0 0 20px rgba(19, 85, 121, 0.8))
          drop-shadow(0 0 15px rgba(29, 97, 171, 0.603))
          drop-shadow(0 0 8px rgba(7, 82, 157, 0.701));
}

.projects-icon-position .main-text {
  position: relative;
  margin-top: 6px; 
}

.more-icon-position .main-icon {
  width: 90px;
  max-width: 90px;
  filter: blur(0.3px)
          sepia(0.29)
          contrast(0.9)
          brightness(1.1)
          drop-shadow(0 0 10px rgba(188, 30, 175, 0.702))
          drop-shadow(0 0 8px rgba(201, 52, 157, 0.489));
}

.more-icon-position .main-icon:hover,
.more-icon-position .main-icon:active {
  transform: scale(1.07);
  filter: blur(0.3px)
          sepia(0.29)
          contrast(0.9)
          brightness(1.1)
          drop-shadow(0 0 20px rgba(140, 30, 100, 0.8))
          drop-shadow(0 0 15px rgba(120, 25, 85, 0.6))
          drop-shadow(0 0 8px rgba(100, 20, 70, 0.7));
}

/* PC web */
@media (min-width: 769px) {
  .main-icons-wrapper .center-content {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin: 0;
  }

  .main-icons-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(3rem, 6vw, 5rem);
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .main-icons-wrapper .center-content:nth-child(1) .main-text {
    margin-left: -11px; 
  }

  .projects-icon-position {
    margin-top: 20px !important; 
  }
  
  .about-icon-position {
    margin-left: -25px !important;
  }

  .about-icon-position .main-text {
    right: 40px !important;
    margin-top: 4px !important;
  }

  .panel-mobile-only {
    display: none !important;
  }
}


/* mobile web*/


@media (max-width: 768px) {
  .center-content {
    top: 70%;
    left: 45%;
  }

  .main-text {
    font-size: 0.7rem;
    opacity: 1;
  }

  .center-content:nth-child(1),
  .about-icon-position {
    display: none !important;
  }

  .projects-icon-position {
    top: 37%;
    left: 25%;
  }
  .projects-icon-position .main-icon {
    width: 60px;
    max-width: 60px;
  }
  .projects-icon-position .main-text {
    margin-top: 4px;
    font-size: 0.7rem;
    display: block !important; 
    opacity: 1 !important; 
  }

  .more-icon-position {
    top: 50%;
    left: 60%;
  }
  .more-icon-position .main-icon {
    width: 78px;
  }
  .more-icon-position .main-text {
    display: block !important; 
    opacity: 1 !important; 
  }

  .main-icon {
    filter: blur(0.1px) brightness(1.05) !important;
    will-change: transform;
    transform: translateZ(0);
  }

  .projects-icon-position .main-icon {
    filter: blur(0.15px)
            brightness(1.12)
            drop-shadow(0 0 12px rgba(80, 180, 255, 0.55))
            drop-shadow(0 0 20px rgba(40, 130, 220, 0.33)) !important;
  }

  .more-icon-position .main-icon {
   filter: blur(0.15px)
            brightness(1.12)
            drop-shadow(0 0 12px rgba(255, 170, 230, 0.55))
            drop-shadow(0 0 20px rgba(255, 130, 220, 0.33)) !important;
  }


  #Vids {
    transform: translateZ(0);
    backface-visibility: hidden;
  }
}

/* Panel */
.more-panel {
  position: fixed;
  top: 23%;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center top;
  background: rgba(20, 20, 20, 0.3);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border-radius: 20px;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.1s ease;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.55);
  border: 0.1px solid rgba(255, 255, 255, 0.15);
}

.more-panel.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.more-panel.anchored {
  transform: translate(-50%, 0) scale(0);
}

.more-panel.anchored.open {
  transform: translate(-50%, 0) scale(1);
}

.panel-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.panel-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel-icon {
  cursor: pointer;
  width: 50px;
  height: 60px;
  opacity: 0.85;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: blur(0.3px) brightness(1.1)
          drop-shadow(0 0 15px rgba(0, 0, 0, 0.6));
}

.panel-icon:hover {
  transform: scale(1.1);
  filter: blur(0.3px) brightness(1.3)
          drop-shadow(0 0 25px rgba(56, 57, 56, 0.9));
}

.panel-text {
  color: white;
  font-size: 0.8rem;
  margin-top: 8px;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.7);
}

/* Mobile panel adjustments */
@media (max-width: 768px) {
  .more-panel {
    width: 70%;
    padding: 10px;
    backdrop-filter: blur(15px) saturate(1.3);
    -webkit-backdrop-filter: blur(15px) saturate(1.3);
  }

  .panel-icons {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .panel-icon {
    width: 55px;
    height: 60px;
  }
}

/* Footer */
.footer-links {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  width: 100%;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.4s;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  text-shadow:
    0 1.5px 2px rgba(0, 0, 0, 0.7),
    0 0 6px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-links a:hover {
  color: #dbd7d1;
  text-shadow:
    2px 3px rgba(0, 0, 0, 0.8),
    0 0 10px rgb(104, 87, 65);
  transform: translateY(-3px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Typewriter */
.typewriter-container {
  position: fixed;
  bottom: 80px; 
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 100;
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards 0.8s; 
}

.typewriter-container.panel-open {
  opacity: 0 !important;
  pointer-events: none;
}

.typewriter-text {
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  color: #fff; 
  margin: 0;
  white-space: pre-wrap;
  text-shadow: 1.5px 2px rgba(19, 12, 85, 0.7),
    0 0 6px rgba(36, 22, 114, 0.681);
}

/* sparkle sparkle */
.sparkle-placeholder {
  pointer-events: none;
  opacity: 0.8;
}

.sparkle-icon {
  font-size: 40px;
  color: white;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(255, 220, 250, 0.8),
    0 0 30px rgba(255, 150, 250, 0.6);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  user-select: none;
}

.sparkle-placeholder:hover .sparkle-icon {
  transform: scale(1.15);
  text-shadow:
    0 0 15px rgba(255, 255, 255, 1),
    0 0 25px rgba(255, 180, 250, 0.9),
    0 0 35px rgba(255, 120, 240, 0.8);
}
