/* VenMaze Website Styles */

/* Loading Screen */
#loading-screen {
  background-color: #0A0A0B;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 5px solid transparent;
  border-top-color: #6D28D9;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #0A0A0B;
  color: white;
  line-height: 1.6;
}

/* Background Elements */
.bg-mesh {
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 0
  );
  background-size: 32px 32px;
}

/* Card Styles */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Animation and Effects */
.animate-hover {
  transition: all 0.3s ease;
}

.animate-hover:hover {
  transform: translateY(-2px);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.text-sliding {
  display: inline-block;
  white-space: nowrap;
  animation: textShine 3s ease-in-out infinite alternate;
}

@keyframes textShine {
  0% {
    text-shadow: 0 0 10px rgba(109, 40, 217, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(79, 70, 229, 0.8);
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% auto;
  animation: gradient 3s linear infinite;
}

/* Fade on scroll animation */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

#main-content {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Custom glow effects */
.glow-button {
  position: relative;
  overflow: hidden;
}

.glow-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-button:hover::after {
  opacity: 1;
}

/* Form elements */
.custom-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.custom-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  outline: none;
  box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.25);
}

/* Additional animation effects */
.bounce-on-hover {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bounce-on-hover:hover {
  transform: scale(1.03);
}

.stat-card {
  transition: all 0.5s ease;
}

.stat-card:hover {
  border-color: rgba(109, 40, 217, 0.3);
  box-shadow: 0 0 30px rgba(109, 40, 217, 0.15);
}

/* Stats value styling */
.stat-value {
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #6D28D9, #4F46E5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* Game cards styling */
.game-card {
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 11, 0.8) 80%);
  z-index: -1;
}

/* Button effects */
.cta-button {
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

/* Glowing text effect */
.glowing-text {
  animation: glow 3s ease-in-out infinite alternate;
  position: relative;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 10px rgba(109, 40, 217, 0.7),
                 0 0 20px rgba(109, 40, 217, 0.5),
                 0 0 30px rgba(109, 40, 217, 0.3);
  }
  100% {
    text-shadow: 0 0 15px rgba(79, 70, 229, 0.8),
                 0 0 30px rgba(79, 70, 229, 0.6),
                 0 0 45px rgba(79, 70, 229, 0.4);
  }
}

/* Enhanced counter styling */
.count-up {
  position: relative;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, #6D28D9, #4F46E5, #2563EB);
  background-size: 200% auto;
  animation: gradient-shift 4s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(109, 40, 217, 0.4);
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.count-up::after {
  content: "+";
  position: absolute;
  font-size: 1.5rem;
  margin-left: 2px;
  top: -0.1rem;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pulsating effect for counter card */
.stat-card:first-child {
  animation: pulse 3s infinite ease-in-out;
  border: 1px solid rgba(109, 40, 217, 0.2);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(109, 40, 217, 0.3); }
  70% { box-shadow: 0 0 0 10px rgba(109, 40, 217, 0); }
  100% { box-shadow: 0 0 0 0 rgba(109, 40, 217, 0); }
}

/* Social Media Icons enhancement */
.social-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.2), rgba(79, 70, 229, 0.2));
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

.social-icon i {
  font-size: 1.25rem;
}

/* Itemku icon styling */
.social-icon span {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #6D28D9, #4F46E5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.social-icon:hover span {
  opacity: 0.9;
  text-shadow: 0 0 12px rgba(109, 40, 217, 0.5);
}

/* Highlighted stat card */
.highlighted-stat {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.07), rgba(79, 70, 229, 0.05));
  border-color: rgba(109, 40, 217, 0.3);
}

.highlighted-stat::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.1) 0%, transparent 70%);
  animation: rotate 6s infinite linear;
}

/* Premium Accounts Styles */
.premium-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.premium-category-tabs button {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  outline: none;
}

.premium-category-tabs button.active-category {
  background-color: rgba(109, 40, 217, 0.2); /* primary/20 */
  color: white;
  font-weight: 500;
}

.premium-category-tabs button:hover:not(.active-category) {
  background-color: rgba(31, 41, 55, 0.7); /* darker gray */
  color: white;
}

.premium-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(45deg, #6D28D9, #4F46E5);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0 0.375rem 0 0.375rem;
  z-index: 20;
}

/* Premium bundle promotion card */
.premium-bundle-card {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.2), rgba(79, 70, 229, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.premium-bundle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.1), rgba(79, 70, 229, 0.1));
  mask: linear-gradient(#fff 0 0);
  mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.premium-bundle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Account cards with service info */
.link-card .service-info {
  display: flex;
  flex-direction: column;
}

.link-card .service-info .service-name {
  font-weight: 500;
  color: white;
}

.link-card .service-info .service-description {
  font-size: 0.75rem;
  color: rgba(156, 163, 175, 1); /* gray-400 */
}

/* Card hover effects */
.link-card:hover .service-info .service-name {
  color: rgb(139, 92, 246); /* purple-500 */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .glass-card {
    padding: 1.25rem;
  }
}