/* Custom styles for KBS Enterprises */

/* Smooth scroll offset for fixed nav */
html {
  scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #eef4fb;
}
::-webkit-scrollbar-thumb {
  background: #a8c2e8;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7ca3db;
}

/* Scroll reveal base state — always visible by default */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when animation is desired (JS adds class) */
.scroll-reveal.animated {
  opacity: 0;
  transform: translateY(24px);
}

/* Nav background transition */
#nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

/* Mobile menu link hover */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eef4fb;
}
.mobile-link:last-child {
  border-bottom: none;
}

/* Input autofill style */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #f8fafc inset !important;
  -webkit-text-fill-color: #0a1628 !important;
}

/* Print styles */
@media print {
  #nav, #mobile-menu, .scroll-reveal.animated { display: block; opacity: 1; }
  footer { background: #0a1628 !important; color: white !important; }
}
