@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=JetBrains+Mono&display=swap");

:root {
  --bg-fallback: #030303;
  --glass-color: rgba(100, 0, 0, 0.219);
  --border-color: rgba(247, 2, 2, 0.15);
}

body {
  background-color: var(--bg-fallback);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  overflow: hidden;
  perspective: 1500px;
  user-select: none;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3; /* behind image and overlays */
  pointer-events: none;
  filter: brightness(0.45) saturate(1.05);
}

.custom-background {
  position: fixed;
  inset: 0;
  background: var(--bg-image) center/cover no-repeat;
  filter: brightness(0.5) saturate(1.1);
  z-index: -2; /* sit above video */
}
.halftone-overlay {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.03) 1px,
    transparent 0
  );
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 10;
}

.liquid-glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-color);
  backdrop-filter: blur(6px) saturate(160%);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
  border-radius: 48px;
  box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1.5px var(--border-color),
    inset 0 10px 20px rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.4s ease;
  transform-style: preserve-3d;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
}

.shine {
  position: absolute;
  inset: 0px;
  background: radial-gradient(
    circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.08) 25%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: overlay;
  transition: background-position 120ms linear;
}

#particle-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) translateZ(20px);
  width: 140px;
  height: 30px;
  pointer-events: none;
}

.dust-particle {
  position: absolute;
  background: #ffbb00;
  border-radius: 50%;
  filter: blur(1px);
}

@keyframes float-particle {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy));
    opacity: 0;
  }
}

@keyframes squish-bounce {
  0% {
    transform: var(--current-transform) scale(1);
  }
  30% {
    transform: var(--current-transform) scale(0.96, 0.94);
  }
  100% {
    transform: var(--current-transform) scale(1);
  }
}

.animate-bounce-click {
  animation: squish-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#entry-overlay {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 1s ease;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 15;
  opacity: 0.3;
}

.fade-out {
  opacity: 0;
  pointer-events: none;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.92);
  transition: transform 180ms ease, color 180ms ease, opacity 180ms ease;
  position: relative;
  text-decoration: none;
}

.social-btn i {
  transition: transform 180ms ease;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.05);
  color: #fff;
}

/* Social tooltip */
.social-btn .tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: all 160ms ease;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  z-index: 40;
}

.social-btn .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}

.social-btn:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.avatar-wrapper {
  position: relative;
  width: 112px;
  height: 112px;
  transform: translateZ(30px);
}

.avatar-decoration {
  position: absolute;
  top: -10%;
  left: 0%;
  width: 130%;
  height: 130%;
  z-index: 2;
}

.action-trigger {
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}
.action-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Badges */
.badges {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  margin-bottom: 0.5rem;
  z-index: 10;
}

.badge {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 200ms cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background 180ms ease;
  cursor: default;
  overflow: visible;
}

.badge i,
.badge .ruhul-badge {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}
.badge .ae-badge {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.badge:hover {
  transform: translateY(-4px) scale(1.04);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.badge .tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 140ms ease;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  z-index: 40;
}

.badge .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}



.ruhul-badge {
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(47, 255, 0, 0.342),
    rgba(0, 255, 123, 0.466)
  );
  padding: 7px 7px;
  border-radius: 6px;
  transform: translateZ(1px);
}



.badge:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ae-badge {
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 140, 0.342),
    rgba(76, 0, 255, 0.466)
  );
  padding: 4px 6px;
  border-radius: 6px;
  transform: translateZ(1px);
}

/* Location button (top-right of glass) */
.location-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: rgba(255, 255, 255, 0.92);
  z-index: 30;
  transition: transform 160ms ease, background 160ms ease;
}

.location-btn i {
  font-size: 16px;
}

.location-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.location-btn .tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: all 140ms ease;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.location-btn .tooltip::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}

.location-btn:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Custom cursor */
#custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease;
  opacity: 1;
  mix-blend-mode: difference;
}

#custom-cursor .cursor-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  transition: transform 160ms ease, background 160ms ease;
}

#custom-cursor .cursor-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease;
  opacity: 0.95;
}

body.custom-cursor-enabled {
  cursor: none;
}

/* Hide native pointer on interactive elements when custom cursor enabled */
body.custom-cursor-enabled a:hover,
body.custom-cursor-enabled button:hover,
body.custom-cursor-enabled .social-btn:hover,
body.custom-cursor-enabled .badge:hover,
body.custom-cursor-enabled .action-trigger:hover {
  cursor: none;
}

/* Hover / click states */
#custom-cursor.hover .cursor-dot {
  transform: translate(-50%, -50%) scale(2.2);
  background: rgba(255, 255, 255, 0.98);
  width: 10px;
  height: 10px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.95);
}
#custom-cursor.hover .cursor-ring {
  transform: translate(-50%, -50%) scale(1.45);
  border-color: rgba(255, 255, 255, 0.32);
  opacity: 1;
}
#custom-cursor.click .cursor-dot {
  transform: translate(-50%, -50%) scale(0.8);
}

/* Hide on touch / coarse pointers */
@media (hover: none), (pointer: coarse) {
  #custom-cursor {
    display: none;
  }
  body {
    cursor: default;
  }
}
