/* Custom styles for Miami Tax Team */

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

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

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(255, 248, 245, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(26, 29, 35, 0.08);
}

.nav-scrolled .nav-text {
  color: #1A1D23 !important;
}

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

.animate-slide-up-delay {
  animation: slideUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-slide-up-delay-2 {
  animation: slideUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

/* Service card hover */
.service-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Mobile menu */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
}

/* Intersection Observer animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

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