/* ===== Custom Styles for 3G Auto Repair ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9ef;
}
::-webkit-scrollbar-thumb {
  background: #059669;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* Service cards - initial state (always visible, no JS needed) */
.service-card {
  opacity: 1;
  transform: none;
}

/* Fade-in on scroll - progressive enhancement via JS */
@media (prefers-reduced-motion: no-preference) {
  .fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(254, 253, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(4, 120, 87, 0.1);
}

/* Mobile menu transitions */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Floating cards animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

.floating-card-1 { animation: float 6s ease-in-out infinite; }
.floating-card-2 { animation: float2 5s ease-in-out infinite; }
.floating-card-3 { animation: float3 7s ease-in-out infinite; }

/* Selection color */
::selection {
  background: #059669;
  color: #fefdf8;
}

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

/* Image loading placeholder */
img {
  background-color: #d1fae5;
}
