/* Custom styles for Mobile Squad */

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

/* Hide scrollbar for mobile menu */
body.menu-open {
  overflow: hidden;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Only animate when JS adds the class and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal.animated {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default visible state for reduced motion or no-JS */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #111827;
}
::-webkit-scrollbar-thumb {
  background: #a11333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c71d44;
}

/* Selection color */
::selection {
  background: rgba(161, 19, 51, 0.2);
  color: #a11333;
}

/* Image hover containers */
.rounded-2xl.overflow-hidden,
.rounded-3xl.overflow-hidden {
  will-change: transform;
}

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

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

/* Subtle pattern for sections */
.bg-grid-pattern {
  background-image: 
    linear-gradient(rgba(161, 19, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(161, 19, 51, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Hero text shadow for readability */
#hero h1 {
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

/* Service card hover lift */
.group:hover {
  transform: translateY(-2px);
}

/* Gallery image hover */
.rounded-2xl.overflow-hidden img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* Pulse animation for the live dot */
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

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

/* Print styles */
@media print {
  #navbar, #mobile-menu, .reveal {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
