/* Custom styles for TRX - Total Real Estate Exchange */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Nav scroll effect */
.nav-scrolled {
  background: rgba(8, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.08);
}

/* Selection color */
::selection {
  background: rgba(45, 212, 191, 0.3);
  color: #f0fdfa;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Geometric pattern overlay */
.geometric-pattern {
  background-image: 
    linear-gradient(30deg, rgba(45, 212, 191, 0.03) 12%, transparent 12.5%),
    linear-gradient(150deg, rgba(45, 212, 191, 0.03) 12%, transparent 12.5%),
    linear-gradient(210deg, rgba(45, 212, 191, 0.03) 12%, transparent 12.5%),
    linear-gradient(330deg, rgba(45, 212, 191, 0.03) 12%, transparent 12.5%);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 0 0, 0 0;
}

/* Pulse animation for dot */
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.2; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #2dd4bf, #5eead4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hover card glow */
.card-glow:hover {
  box-shadow: 0 0 40px -10px rgba(45, 212, 191, 0.15);
}

/* Form select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
