/* Custom overrides and additional styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fff8f6;
}
::-webkit-scrollbar-thumb {
  background: #facaca;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f5a0a0;
}

/* Selection color */
::selection {
  background: #b91c1c;
  color: #fff;
}

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #b91c1c;
  outline-offset: 2px;
}

/* Mobile menu animations */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.5rem;
}

/* Subtle pattern for section backgrounds */
.section-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b91c1c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
