/* Custom styles for Carol Chartrand Real Estate */

html {
  scroll-behavior: smooth;
}

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

/* Hero floating particles */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(45deg); }
  50% { transform: translateY(-20px) rotate(45deg); }
}

/* Service card hover */
.service-card {
  transform: translateY(0);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Scroll-triggered animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Nav active state */
nav.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

::-webkit-scrollbar-track {
  background: #0a1628;
}

::-webkit-scrollbar-thumb {
  background: rgba(52, 212, 160, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 212, 160, 0.5);
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Neighborhood card overlay */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Testimonial card subtle glow */
.bg-white\/5 {
  backdrop-filter: blur(10px);
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.08);
}

/* Smooth image loading */
img {
  image-rendering: auto;
}

/* Selection color */
::selection {
  background: rgba(52, 212, 160, 0.3);
  color: #fff;
}
