/* Custom styles for Barracks 22 */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Selection color */
::selection {
  background: #d97706;
  color: #0a0f1e;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid #d97706;
  outline-offset: 2px;
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(10, 15, 30, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
.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) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 24px;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Button animations */
.btn-primary {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #0a0f1e;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  
  .card-hover {
    transition: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .font-display {
    letter-spacing: 0.02em;
  }
}

/* Print styles */
@media print {
  .geo-shape,
  .animate-float,
  .animate-float-reverse,
  .animate-pulse-glow {
    display: none;
  }
}
