/* ========== CDC Distributors — Custom Styles ========== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0A1628;
}
::-webkit-scrollbar-thumb {
  background: #1A3256;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4A843;
}

/* Selection color */
::selection {
  background: rgba(212, 168, 67, 0.3);
  color: #E0BC5A;
}

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

#navbar.scrolled {
  background: rgba(5, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(212, 168, 67, 0.1);
}

/* ========== Product Cards ========== */
.product-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.product-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 168, 67, 0.08);
}

/* ========== Testimonial Cards ========== */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.testimonial-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

/* ========== Scroll Reveal Animations ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========== Mobile Menu ========== */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Gold shimmer on logo ========== */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ========== Input focus animations ========== */
input:focus,
textarea:focus {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ========== Button ripple effect ========== */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ========== Image lazy loading placeholder ========== */
img {
  background: linear-gradient(135deg, #0F1F38 0%, #142848 100%);
}

/* ========== Responsive adjustments ========== */
@media (max-width: 768px) {
  .font-display {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}
