/* ========================================
   Trust Domain Names - Custom Styles
   ======================================== */

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(5, 10, 31, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scroll Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Counter Animation */
.counter {
  display: inline-block;
}

/* Glow Effects */
.glow-text {
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.5), 0 0 40px rgba(56, 189, 248, 0.2);
}

/* Gradient Border Hover Effect */
.group:hover .group-hover\:from-accent\/30 {
  --tw-gradient-from: rgba(59, 130, 246, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #050a1f;
}

::-webkit-scrollbar-thumb {
  background: #1e2760;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}

/* Selection Color */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

/* Smooth transitions for language switch */
[data-en], [data-zh] {
  transition: opacity 0.2s ease;
}

/* Mobile menu animation */
#mobileMenu {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}
