/* Custom styles for Franklin Sewing Machine Repair */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1a21;
}
::-webkit-scrollbar-thumb {
  background: #1e3a4a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2d5a6a;
}

/* Selection color */
::selection {
  background: rgba(200, 164, 78, 0.3);
  color: #f0f5f7;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid #c8a44e;
  outline-offset: 2px;
}

/* Navbar transition */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(6, 15, 21, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(200, 164, 78, 0.1), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Reveal animations - progressive enhancement */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Gold shimmer effect for headings */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Pulse animation for status dot */
@keyframes soft-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: soft-pulse 2s ease-in-out infinite;
}

/* Mobile menu transitions */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu:not(.hidden) {
  max-height: 400px;
  opacity: 1;
}

/* Mobile link hover */
.mobile-link {
  padding-left: 12px;
  border-left: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.mobile-link:hover {
  border-left-color: #c8a44e;
}

/* Form input transitions */
input:focus, textarea:focus {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Card hover glow */
.reveal:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .font-display {
    line-height: 1.1;
  }
}

/* Print styles */
@media print {
  #navbar, #back-to-top, .reveal {
    display: none !important;
  }
  body {
    background: white;
    color: #1a1a1a;
  }
  section {
    page-break-inside: avoid;
  }
}
