/* Custom styles that complement Tailwind */

/* Smooth scroll offset for fixed navbar */
section[id] {
  scroll-margin-top: 80px;
}

/* Selection color */
::selection {
  background: #ff6b35;
  color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1c21;
}
::-webkit-scrollbar-thumb {
  background: #3a3e45;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5f6570;
}

/* Light scrollbar for light sections */
body:not(.dark) ::-webkit-scrollbar-track {
  background: #f6f6f7;
}
body:not(.dark) ::-webkit-scrollbar-thumb {
  background: #c4c6cb;
}
body:not(.dark) ::-webkit-scrollbar-thumb:hover {
  background: #9fa3ab;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Subtle entrance for hero (no JS required — always visible) */
#hero h1,
#hero p,
#hero .flex,
#hero .grid,
#hero .inline-flex {
  /* Content is visible by default; JS adds .visible class for enhanced animation */
}

/* Print styles */
@media print {
  nav, #mobile-menu, .reveal { display: block !important; opacity: 1 !important; }
  section { page-break-inside: avoid; }
}
