html, body {
  margin: 0;
  height: auto;      
  overflow-x: hidden;  
  overflow-y: auto;     
}

body {
  margin: 0;
  background: linear-gradient(90deg, rgb(87,36,36) 14%, rgb(102,52,102) 50%, rgb(60,31,88) 86%);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  padding: 1rem;
}

body, a {
  cursor: none;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center; 
  padding-bottom: 2rem; 
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  z-index: 9999;
}


.custom-cursor.hovered {
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.726);
  box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.5);
}


.background-anim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0; 
}


.background-anim .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  animation: float 15s linear infinite;
  opacity: 0.7;
}


@keyframes float {
  0% {
    transform: translateY(100vh) scale(0.5);
    opacity: 0.3;
  }
  50% {
    transform: translateY(50vh) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-10vh) scale(0.5);
    opacity: 0;
  }
}


.davatar {
  margin-top: 3rem;
  text-align: center;
  position: relative;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}


.name {
  text-align: center;
  color: aliceblue;
  margin: 1rem 0;
}

.name h2 {
  font-size: 2rem;
}

.card svg {
  height: 25px;
}

.sociale {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem auto;
  width: 100%;
  max-width: 500px;
}

.spacer {
  height: 35vh;
}

.footer {
  text-align: center;
  padding: 20px 40px;
  font-size: 14px;
  color: #fff;
  background: rgba(40, 20, 80, 0.6); 
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(102, 52, 102, 0.5);
  backdrop-filter: blur(15px);
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.5s ease;
  position: relative;
  max-width: 90%;
  margin: 2rem auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer:hover {
  text-shadow: 0 0 10px #ff66cc, 0 0 20px #ff66cc;
  transform: translateY(0) scale(1.03);
}


.social-link img {
  width: 45px;     
  height: auto;     
  object-fit: contain;
  filter: brightness(0) saturate(100%) sepia(100%) hue-rotate(90deg) saturate(500%);
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7e7e7;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  height: 50px;
  width: 200px;
}

.card::before, .card::after {
  position: absolute;
  display: flex;
  align-items: center;
  width: 50%;
  height: 100%;
  transition: 0.25s linear;
  z-index: 1;
}

.card::before {
  content: "";
  left: 0;
  justify-content: flex-end;
  background-color: #494a52;
}

.card::after {
  content: "";
  right: 0;
  justify-content: flex-start;
  background-color: #5a5c68;
}

.card:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.card:hover span {
  opacity: 0;
  z-index: -3;
}

.card:hover::before {
  opacity: 0.5;
  transform: translateY(-100%);
}

.card:hover::after {
  opacity: 0.5;
  transform: translateY(100%);
}

.card span {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: whitesmoke;
  font-family: 'Fira Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  opacity: 1;
  transition: opacity 0.25s;
  z-index: 2;
}

.card .social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25%;
  height: 100%;
  color: whitesmoke;
  font-size: 24px;
  text-decoration: none;
  transition: 0.25s;
}

.card .social-link svg {
  text-shadow: 1px 1px rgba(31, 74, 121, 0.7);
  transform: scale(1);
}

.card .social-link:hover {
  background-color: rgba(249, 244, 255, 0.774);
  animation: bounce_613 0.4s linear;
}

@keyframes bounce_613 {
  40% {
    transform: scale(1.4);
  }

  60% {
    transform: scale(0.8);
  }

  80% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.karty {
  margin-top: 7rem;
}

/* From Uiverse.io by codebykay101 */ 
.container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.container .glass {
  --scale: 1;
  --angle: calc(var(--r) * 1deg);

  position: relative;
  width: 180px;
  height: 200px;
  background: linear-gradient(#fff2, transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease, box-shadow 0.4s ease, margin 0.5s ease;
  border-radius: 10px;
  margin: 0 -45px;
  backdrop-filter: blur(10px);
  transform: rotate(var(--angle)) scale(var(--scale));
  overflow: hidden;
}

.container:hover .glass {
  --angle: 0deg;
  --scale: 1.05;
  margin: 0 10px;
}

.container .glass:hover {
  --scale: 1.1;
  box-shadow: 0 0 25px rgba(46, 46, 51, 0.7);
}

.container .glass img {
  width: 80px;
  height: auto;
  object-fit: contain;
  transition: opacity 0.4s ease;
  position: relative;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.container .glass::before {
  content: attr(data-text);
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}
