/* Custom styles for Pilar Sarmiento Realty ONE Group EDGE */

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

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-display,
#navbar.scrolled .text-slate-900 {
  color: #0f172a;
}

#navbar.scrolled a:not(.bg-teal-600):not(.bg-white\/10) {
  color: #334155;
}

#navbar.scrolled a:not(.bg-teal-600):not(.bg-white\/10):hover {
  color: #0d9488;
}

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

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

/* Mobile links */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.2s;
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover {
  color: #0d9488;
}

/* Hero image parallax-like effect on scroll */
.hero-section {
  will-change: transform;
}

/* Geometric shape float animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(12deg); }
  50% { transform: translateY(-12px) rotate(12deg); }
}

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

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

.float-slow {
  animation: floatSlow 8s ease-in-out infinite;
}

/* Service card hover - geometric accent */
.group:hover .rounded-bl-3xl {
  transition: background-color 0.3s ease;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Testimonial card hover */
.hover\:shadow-lg:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle pattern overlay for sections */
.section-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(13, 148, 136, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .float-anim,
  .float-slow {
    animation: none;
  }
  .hover\:shadow-lg:hover {
    transform: none;
  }
}

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

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Selection color */
::selection {
  background: rgba(13, 148, 136, 0.2);
  color: #0f172a;
}
