/* Custom styles for Uni-Com Supply */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0f1f;
}

::-webkit-scrollbar-thumb {
  background: #1a2b54;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #243a6e;
}

/* Selection color */
::selection {
  background: rgba(75, 196, 136, 0.3);
  color: #f0faf5;
}

/* Navbar styles */
.nav-scrolled {
  background: rgba(10, 15, 31, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animations */
.mobile-menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
  width: 6;
  transform: rotate(-45deg) translate(5px, -5px);
}

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

/* Only apply hidden state when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  .js-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }

  .js-enabled .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service card hover glow */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Map filter for dark mode */
iframe[title*="Google Maps"] {
  transition: filter 0.3s ease;
}

/* Print styles */
@media print {
  nav, #contactForm, .scroll-reveal {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Aspect ratio utilities */
.aspect-\[4\/5\] {
  aspect-ratio: 4/5;
}

.aspect-\[4\/3\] {
  aspect-ratio: 4/3;
}

/* Custom underline for links */
a:not([class*="bg-"]):not([class*="border-"]) {
  text-decoration: none;
}
</style>
