@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Bebas+Neue&display=swap');

:root {
  --primary-color: #00CED1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Courier New', monospace;
}

body {
  background-color: #000;
  color: #fff;
  overflow: hidden;
}

/*body:not(.touch-device) {*/
/*  cursor: none;*/
/*}*/

@font-face {
  font-family: 'Angel Wish';
  src: url('assets/Angel_wish.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  height: 100vh;
  position: relative;
}

/*.custom-cursor {*/
/*  position: fixed;*/
/*  width: 40px;*/
/*  height: 40px;*/
/*  background: url('assets/arrow.cur') no-repeat center center;*/
/*  background-size: contain;*/
/*  pointer-events: none;*/
/*  z-index: 9999;*/
/*  transform: translate(-50%, -50%);*/
/*}*/

/*.cursor-trail {*/
/*  position: fixed;*/
/*  pointer-events: none;*/
/*  z-index: 9999;*/
/*}*/

/*.cursor-trail-dot {*/
/*  position: absolute;*/
/*  width: 6px;*/
/*  height: 6px;*/
/*  background-color: rgba(255, 255, 255, 0.8);*/
/*  border-radius: 50%;*/
/*  transform: translate(-50%, -50%);*/
/*  transition: opacity 0.3s ease;*/
/*}*/


#start-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  cursor: pointer;
}

#start-text {
  font-family: 'Courier New', monospace;
  font-size: 24px;
  color: #fff;
  text-align: center;
}


#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.glitch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s;
}

#hacker-overlay, #snow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

#profile-block {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 820px;
  min-height: 332px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 15px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 15px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform-style: preserve-3d;
  transition: transform 0.5s ease-out;
  pointer-events: auto;
}

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

#discord-activity {
  font-size: 1rem;
  color: #b3e5fc;
  margin-top: 0;
}

#profile-bio {
  margin-top: 16px;
  color: #e0e0e0;
  font-size: 1.1rem;
  line-height: 1.5;
  font-family: 'Retro Gaming', monospace;
}

.profile-container {
  position: relative;
  width: 150px;
  height: 150px;
}

.profile-container::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: radial-gradient(
          circle at 10px 10px,
          var(--primary-color, #00CED1) 10%,
          transparent 15%
  );
  animation: orbit 3s linear infinite;
  z-index: -1;
  filter: blur(1px);
  box-shadow: none;
}

.profile-container.fast-orbit::after {
  animation: fast-orbit 0.5s linear forwards;
}

.profile-picture {
  width: 150px;
  height: 150px;

  object-fit: cover;
  cursor: pointer;
  pointer-events: auto;
  opacity: 1 !important;
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.name-and-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}


#profile-name {
  font-family: 'Orbitron', 'Bebas Neue', Impact, Arial, sans-serif;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 2px 8px #000;
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-container {
  position: relative;
  pointer-events: auto;
  opacity: 1 !important;
}

.badge-container .tooltip {
  visibility: hidden;
  width: 120px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.badge-container:hover .tooltip {
  visibility: visible;
  opacity: 1 !important;
}

.badge-box {
  background: rgba(50, 50, 50, 0.7);
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
}

.badge-box-inner {
  padding: 5px;
  border-radius: 12px;
  display: flex;
  gap: 8px;
}

.badge {
  width: 22px;
  height: 22px;
  transition: transform 0.3s;
  pointer-events: auto;
  opacity: 1 !important;
}

.badge:hover {
  transform: scale(1.2);
}

#profile-bio {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 10px;
  opacity: 1 !important;
}

.bio-separator {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 20px 0;
  opacity: 1 !important;
}

.profile-footer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin-top: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
  pointer-events: auto;
  opacity: 1 !important;
}

.social-icon {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
  pointer-events: auto;
  opacity: 1 !important;
}

.social-icon:hover {
  transform: scale(1.4) rotateY(15deg);
}

.visitor-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  align-self: flex-start;
  position: relative;
  pointer-events: auto;
  opacity: 1 !important;
}

.visitor-icon {
  width: 18px;
  height: 18px;
  color: white;
  opacity: 1 !important;
}

.visitor-counter .tooltip {
  visibility: hidden;
  width: 120px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 100;
  top: -35px;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.visitor-counter:hover .tooltip {
  visibility: visible;
  opacity: 1 !important;
}

#visitor-count {
  opacity: 1 !important;
}

/* Skills Block */
#skills-block {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 820px;
  min-height: 332px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 15px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 15px;
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transition: transform 0.5s ease-out;
}

.skills-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 15px;
}

.skill {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.skill-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-icon {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}

.skill-bar-container {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  border-radius: 5px;
  width: 0%;
  transition: width 2s;
}

#python-bar {
  background: linear-gradient(90deg, #ff6b6b, #ff9f9f);
}

#cpp-bar {
  background: linear-gradient(90deg, #4facfe, #00f2fe);
}

#csharp-bar {
  background: linear-gradient(90deg, #43e97b, #38f9d7);
}

/* Results Button */
#results-button-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

#results-theme {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
}

#results-theme:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.8);
}

#results-hint {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  width: 180px;
  text-align: center;
  pointer-events: none;
  z-index: 25;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#results-hint::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
}

/* Media Controls */
.top-controls {
  position: fixed;
  bottom: calc(50% - 240px - 60px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 12px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  color: white;
}

.transparency-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.transparency-icon {
  width: 20px;
  height: 20px;
  color: white;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

/* Theme Specific Styles */
.home-theme #profile-block,
.home-theme #skills-block {
  border-color: rgba(0, 195, 255, 0.5);
}

.hacker-theme #profile-block,
.hacker-theme #skills-block {
  border-color: rgba(0, 255, 0, 0.5);
}

.rain-theme #profile-block,
.rain-theme #skills-block {
  border-color: rgba(100, 149, 237, 0.5);
}

.anime-theme #profile-block,
.anime-theme #skills-block {
  border-color: rgba(255, 0, 255, 0.5);
}

.car-theme #profile-block,
.car-theme #skills-block {
  border-color: rgba(255, 165, 0, 0.5);
}

/* Animations */
.glitch {
  animation: glitch 0.2s ease-in-out;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

@keyframes orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fast-orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Responsive Styles */
@media (max-width: 430px) {
  #profile-block, #skills-block {
    width: 90vw;
    max-width: 350px;
    min-height: 280px;
    padding: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .profile-container {
    width: 120px;
    height: 120px;
  }

  .profile-picture {
    width: 120px;
    height: 120px;
  }

  .profile-info {
    background: rgba(30, 30, 30, 0.85);
    border-radius: 16px;
    padding: 24px 32px;
    margin-left: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 320px;
  }

  #profile-name {
    font-family: 'Retro Gaming', monospace;
    font-size: 2rem;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #000;
  }

  #profile-name {
    font-size: 24px;
    letter-spacing: 2px;
  }

  .badge-group {
    justify-content: center;
    gap: 6px;
  }

  .badge {
    width: 18px;
    height: 18px;
  }

  .badge-container .tooltip {
    width: 100px;
    font-size: 12px;
    margin-left: -50px;
    bottom: 110%;
  }

  #profile-bio {
    font-size: 14px;
    line-height: 1.4;
  }

  .bio-separator {
    margin: 15px 0;
  }

  .social-links {
    gap: 10px;
    justify-content: center;
  }

  .social-icon {
    width: 32px;
    height: 32px;
  }

  .visitor-counter {
    font-size: 12px;
    padding: 6px 12px;
    align-self: center;
  }

  .visitor-icon {
    width: 16px;
    height: 16px;
  }

  .visitor-counter .tooltip {
    width: 100px;
    font-size: 12px;
    margin-left: -50px;
    top: -30px;
  }

  .skills-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .skill-icon {
    width: 18px;
    height: 18px;
  }

  .skill-name span {
    font-size: 14px;
  }

  .controls {
    bottom: 20px;
    gap: 8px;
    padding: 5px 8px;
  }

  .theme-button {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .top-controls {
    bottom: 70px;
    gap: 10px;
    padding: 6px 10px;
  }

  .volume-control, .transparency-control {
    gap: 6px;
  }

  .volume-icon, .transparency-icon {
    width: 18px;
    height: 18px;
  }

  .slider {
    width: 60px;
    height: 4px;
  }

  .slider::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
  }

  #results-button-container {
    top: 10px;
  }

  #results-theme {
    padding: 6px 12px;
    font-size: 12px;
  }

  #results-hint {
    width: 150px;
    font-size: 10px;
    padding: 6px 10px;
  }

  #start-text {
    font-size: 18px;
    padding: 0 20px;
  }
}

.wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.wrapper h1.glitch {
  color: white;
  font-family: sans-serif;
  font-weight: 800;
  position: relative;
  font-size: 100px;
  padding: 30px;
}
.wrapper h1.glitch::before, .wrapper h1.glitch::after {
  padding: 30px;
  color: white;
  content: "BagFumbler";
  position: absolute;
  width: 100%;
  height: 100%;
  background: black;
  overflow: hidden;
  top: 0;
}
.wrapper h1.glitch::before {
  left: 3px;
  text-shadow: -2px 0 red;
  animation-name: glitch-animation-1;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: reverse-alternate;
}
.wrapper h1.glitch::after {
  left: -3px;
  text-shadow: -2px 0 blue;
  animation-name: glitch-animation-2;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: reverse-alternate;
}

@keyframes glitch-animation-1 {
  0% {
    clip: rect(75px, 350px, 67px, 30px);
  }
  5% {
    clip: rect(15px, 350px, 10px, 30px);
  }
  10% {
    clip: rect(43px, 350px, 57px, 30px);
  }
  15% {
    clip: rect(11px, 350px, 21px, 30px);
  }
  20% {
    clip: rect(107px, 350px, 81px, 30px);
  }
  25% {
    clip: rect(25px, 350px, 100px, 30px);
  }
  30% {
    clip: rect(147px, 350px, 135px, 30px);
  }
  35% {
    clip: rect(96px, 350px, 111px, 30px);
  }
  40% {
    clip: rect(32px, 350px, 6px, 30px);
  }
  45% {
    clip: rect(61px, 350px, 111px, 30px);
  }
  50% {
    clip: rect(64px, 350px, 112px, 30px);
  }
  55% {
    clip: rect(123px, 350px, 121px, 30px);
  }
  60% {
    clip: rect(27px, 350px, 30px, 30px);
  }
  65% {
    clip: rect(67px, 350px, 149px, 30px);
  }
  70% {
    clip: rect(3px, 350px, 78px, 30px);
  }
  75% {
    clip: rect(102px, 350px, 113px, 30px);
  }
  80% {
    clip: rect(101px, 350px, 108px, 30px);
  }
  85% {
    clip: rect(36px, 350px, 69px, 30px);
  }
  90% {
    clip: rect(57px, 350px, 51px, 30px);
  }
  95% {
    clip: rect(142px, 350px, 133px, 30px);
  }
  100% {
    clip: rect(126px, 350px, 30px, 30px);
  }
}
@keyframes glitch-animation-2 {
  0% {
    clip: rect(149px, 350px, 126px, 30px);
  }
  5% {
    clip: rect(98px, 350px, 120px, 30px);
  }
  10% {
    clip: rect(55px, 350px, 8px, 30px);
  }
  15% {
    clip: rect(98px, 350px, 19px, 30px);
  }
  20% {
    clip: rect(35px, 350px, 120px, 30px);
  }
  25% {
    clip: rect(64px, 350px, 135px, 30px);
  }
  30% {
    clip: rect(77px, 350px, 97px, 30px);
  }
  35% {
    clip: rect(80px, 350px, 4px, 30px);
  }
  40% {
    clip: rect(123px, 350px, 111px, 30px);
  }
  45% {
    clip: rect(5px, 350px, 123px, 30px);
  }
  50% {
    clip: rect(1px, 350px, 72px, 30px);
  }
  55% {
    clip: rect(73px, 350px, 90px, 30px);
  }
  60% {
    clip: rect(58px, 350px, 105px, 30px);
  }
  65% {
    clip: rect(102px, 350px, 53px, 30px);
  }
  70% {
    clip: rect(29px, 350px, 17px, 30px);
  }
  75% {
    clip: rect(26px, 350px, 7px, 30px);
  }
  80% {
    clip: rect(33px, 350px, 14px, 30px);
  }
  85% {
    clip: rect(103px, 350px, 108px, 30px);
  }
  90% {
    clip: rect(83px, 350px, 74px, 30px);
  }
  95% {
    clip: rect(14px, 350px, 69px, 30px);
  }
  100% {
    clip: rect(13px, 350px, 65px, 30px);
  }
}