/* Master Fence — Custom Styles */

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

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #FFF8F5;
  color: #3D3230;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background-color: #8B2E2E;
  color: #FFF8F5;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FFF8F5;
}
::-webkit-scrollbar-thumb {
  background: #8B2E2E;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #631E1E;
}

/* Navbar transitions */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* Service card transitions */
.service-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

/* Button transitions */
.btn-primary {
  transition: all 0.3s ease;
}

/* Form input transitions */
.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Pulse animation for hero dot */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.pulse-ring {
  animation: pulse-ring 2s ease-in-out infinite;
}

/* Geometric decorative shapes */
.geo-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

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

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #8B2E2E;
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
