/* Custom styles for Wireframe Consulting */

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

/* Floating card animations */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.card-top {
  animation-delay: 0s;
}

.card-center {
  animation-delay: -2s;
}

.card-bottom {
  animation-delay: -4s;
}

.card-accent {
  animation-delay: -1s;
}

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

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(254, 252, 247, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(5, 150, 105, 0.08);
  box-shadow: 0 1px 20px rgba(2, 44, 34, 0.06);
}

/* Scroll reveal - progressive enhancement */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Select dropdown styling */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23059669' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Subtle pattern overlay for sections */
section::before {
  content: '';
  pointer-events: none;
}

/* Card hover lift effect */
.group:hover {
  transform: translateY(-2px);
}

.group {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #6ee7b7;
}

/* Selection color */
::selection {
  background: rgba(5, 150, 105, 0.15);
  color: #064E3B;
}
