/* Custom styles and overrides */

/* Smooth focus visible */
*:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Hero image subtle float animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}

.floating-card-delay {
  animation: float 4s ease-in-out infinite;
  animation-delay: -2s;
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .floating-card,
  .floating-card-delay {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Ensure reveal works progressively */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .js-enabled .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .js-enabled .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print styles */
@media print {
  header, footer, #contact-form, #form-success {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
