/* Custom overrides and additional styles */

/* Ensure smooth scrolling with offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Geometric shape animations */
@media (prefers-reduced-motion: no-preference) {
  .geo-circle, .geo-square {
    animation: float 6s ease-in-out infinite;
  }
  .geo-square {
    animation-delay: -2s;
    animation-duration: 8s;
  }
  .geo-triangle {
    animation: spin-slow 20s linear infinite;
  }
}

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Subtle image zoom on hover */
.feature-card img,
#gallery img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid #d95228;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: #d95228;
  color: white;
}

/* Loading state for images */
img {
  background: linear-gradient(90deg, #f0e6dd 25%, #f5ebe3 50%, #f0e6dd 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

img[src] {
  animation: none;
  background: none;
}
