/* Custom Styles for NS Realtors Landing Page */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0F4C81;
  --secondary: #2E8B57;
  --accent: #D4AF37;
  --dark: #333333;
  --light: #F8F9FA;
  --white: #FFFFFF;
}

/* Base resets and smooth scroll */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

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

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
  border: 2px solid var(--light);
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism utility */
.glass-nav {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Custom Accessibility Outline */
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Keyframe animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseBorder {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 139, 87, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(46, 139, 87, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 139, 87, 0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pulse-button {
  animation: pulseBorder 2s infinite;
}

/* Testimonial slider transitions */
.testimonial-slide {
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  transform: scale(0.98);
}

.testimonial-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Image zoom effect on cards */
.hover-zoom img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-zoom:hover img {
  transform: scale(1.05);
}

/* Decorative grid pattern */
.grid-bg {
  background-image: linear-gradient(rgba(15, 76, 129, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15, 76, 129, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}
