/* Custom styles for Find Long Island Properties */

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

/* Navbar transition classes */
.nav-transparent .nav-text-color {
  color: #f8fafc;
}
.nav-transparent .nav-sub-color {
  color: #94a3b8;
}
.nav-transparent .nav-link-color {
  color: #cbd5e1;
}
.nav-solid .nav-text-color {
  color: #0f172a;
}
.nav-solid .nav-sub-color {
  color: #64748b;
}
.nav-solid .nav-link-color {
  color: #475569;
}

/* Mobile menu animation */
#mobileMenu.open {
  animation: slideDown 0.3s ease-out;
}

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

/* Menu toggle animation */
#menuToggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menuToggle.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuToggle.active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Floating card animations */
@media (prefers-reduced-motion: no-preference) {
  .float-1 {
    animation: float1 6s ease-in-out infinite;
  }
  .float-2 {
    animation: float2 7s ease-in-out infinite;
  }
  .float-3 {
    animation: float3 5s ease-in-out infinite;
  }
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* Selection color */
::selection {
  background-color: #0d9488;
  color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
