
/* Custom styles in addition to TailwindCSS */

/* Smooth font rendering */
html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced selection */
::selection {
  background: rgba(103, 232, 249, 0.3);
  color: #fff;
}

/* Subtle scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Focus ring with primary color */
*:focus-visible {
  outline: 2px solid rgba(103, 232, 249, 0.6);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Enhanced glass effect */
.glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
}

/* Smooth hover transitions for all interactive elements */
button, a, input, textarea, select {
  transition: all 0.2s ease;
}

/* Enhanced gradient borders */
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(103,232,249,.8), rgba(167,139,250,.8), rgba(190,242,100,.8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Subtle floating animation */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

.animate-gentle-float {
  animation: gentleFloat 6s ease-in-out infinite;
}

/* Enhanced glow effect */
.shadow-glow {
  box-shadow: 0 0 40px rgba(103, 232, 249, 0.15), 0 0 80px rgba(167, 139, 250, 0.1);
}

/* Card hover effects */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Enhanced backdrop blur for mobile menu */
@media (max-width: 768px) {
  #mobileMenu {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

/* Loading state for form */
.loading {
  position: relative;
  overflow: hidden;
}
.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Better spacing for mobile */
@media (max-width: 640px) {
  .py-16 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .py-24 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
