/* Custom styles for geometric design elements */
:root {
  --terra-500: #d94f23;
  --terra-600: #c43a15;
  --sand-500: #cfaa5e;
  --sand-600: #b8904d;
  --navy-900: #131f30;
}

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

/* Custom geometric shapes */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.geo-square {
  position: absolute;
  pointer-events: none;
  transform: rotate(45deg);
}

/* Service card hover effects */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--terra-500), var(--sand-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Geometric accent animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

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

.geo-shape:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 8s;
}

.geo-shape:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 7s;
}

/* Button hover effects */
button, a {
  transition: all 0.3s ease;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--terra-500);
  outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.open {
  max-height: 300px;
}

/* Hero section parallax effect */
.hero-bg {
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll;
  }
}

/* Reduced motion support */
@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;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--terra-500), var(--sand-500));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--terra-600);
}
