html, body {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 100%;
  background: #000;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: 'Segoe UI', 'Mulish', sans-serif;
}

/* Star points */
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 2s infinite ease-in-out;
}

/* Real shooting star */
.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px white;
  opacity: 0;
  transform: rotate(315deg);
  animation: shoot-diagonal 1s ease-out forwards;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

@keyframes shoot-diagonal {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-150px, 150px) scale(2);
  }
  100% {
    opacity: 0;
    transform: translate(-300px, 300px) scale(0);
  }
}
html {
  scroll-behavior: smooth;
}

/* Fancy card hover */
.card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 50px rgba(255, 255, 255, 0.2);
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fade-in 1s ease-out both;
}
/* Hide scrollbar visually but keep scroll */
.custom-scroll::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}
.custom-scroll {
  -ms-overflow-style: none;  /* IE 10+ */
  scrollbar-width: none;     /* Firefox */
}
/* Smooth hover on icons */
img.hover\:scale-110 {
  transition: transform 0.3s ease-in-out;
}
img.hover\:scale-110:hover {
  transform: scale(1.1);
}

/* Subtle section fades */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}
body {
  background: #000;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}
.form-container, .dashboard-container {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 400px;
}
input, button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
}
button {
  background: #4f46e5;
  color: white;
  cursor: pointer;
  font-weight: bold;
}
button:hover {
  background: #4338ca;
}
a {
  color: #a5b4fc;
  text-decoration: none;
}

/* === Worm Trail Behind Circular Avatar === */
.avatar-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 60px auto;
}

.avatar-wrapper img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.worm-ring {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 224px;
  height: 224px;
  border-radius: 9999px;
  z-index: 1;
  pointer-events: none;
}

.worm-ring::before {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(0, 255, 255, 1) 10deg,
    rgba(0, 255, 255, 0.3) 16deg,
    transparent 26deg
  );
  animation: spin-worm 4s linear infinite;
  filter: blur(3px);
  transform-origin: center center;
  mask: radial-gradient(farthest-side, transparent 90%, black 91%);
  -webkit-mask: radial-gradient(farthest-side, transparent 90%, black 91%);
}

@keyframes spin-worm {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.flip-card {
  overflow: visible;
  width: 280px;
  height: 360px;
  perspective: 1000px;
}

.flip-content {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s;
  position: relative;
  border-radius: 8px;
}

.flip-card:hover .flip-content,
.flip-card.flipped .flip-content {
  transform: rotateY(180deg);
}

.flip-front, .flip-back {
  background-color: #151515;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.flip-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.flip-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.flip-back-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.flip-img {
  position: relative;
  width: 100%;
  height: 100%;
}

#flip-bottom {
  background-color: #ff8866;
  left: 50px;
  top: 0px;
  width: 150px;
  height: 150px;
  animation-delay: -800ms;
}

#flip-right {
  background-color: #ff2233;
  left: 160px;
  top: -80px;
  width: 30px;
  height: 30px;
  animation-delay: -1800ms;
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
  100% { transform: translateY(0px); }
}

.flip-front-content {
  position: absolute;
  bottom: 0;
  padding: 10px;
  width: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
}

.flip-badge {
  background-color: #00000055;
  padding: 2px 10px;
  border-radius: 10px;
  width: fit-content;
  font-size: 0.75rem;
}

.flip-title {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

.flip-footer {
  color: #ffffff88;
  margin-top: 5px;
  font-size: 10px;
}

