/* ========================================= */
/* Custom Styles for Vladimir Vishnevsky Site */
/* ========================================= */

/* Base resets - Tailwind handles most, but add smooth scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* account for sticky header */
}

/* Animation: fade in up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-up.delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
}

/* Scroll-triggered reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.reveal[style*="--reveal-step:1"] { transition-delay: 0.1s; }
.reveal[style*="--reveal-step:2"] { transition-delay: 0.2s; }
.reveal[style*="--reveal-step:3"] { transition-delay: 0.3s; }
.reveal[style*="--reveal-step:4"] { transition-delay: 0.4s; }

/* FAQ toggle icon rotation */
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Bottom bar spacing on mobile */
@media (max-width: 1023px) {
  body {
    padding-bottom: 70px;
  }
}

/* Subtle hover on service cards */
.service-card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

/* Phone number formatting */
.phone-link {
  font-variant-numeric: tabular-nums;
}

/* Form focus glow */
input:focus {
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

img[onerror] {
  opacity: 1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
