/* ===== CUSTOM STYLES ===== */

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

/* Selection color */
::selection {
  background-color: rgb(161 23 64 / 0.15);
  color: rgb(61 7 26);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgb(250 248 245);
}
::-webkit-scrollbar-thumb {
  background: rgb(244 163 184);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(196 37 82);
}

/* Navbar scroll state */
#navbar.scrolled {
  box-shadow: 0 1px 20px rgb(110 22 57 / 0.08);
}

/* Mobile menu animations */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Menu toggle animation */
#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* Mobile link hover */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgb(161 23 64);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.mobile-link:hover::after {
  width: 100%;
}

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

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

/* Focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid rgb(161 23 64);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Fade-in animations (below-fold only) */
.fade-in-section {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .font-serif {
    word-spacing: -0.02em;
  }
}
