/* Custom styles beyond Tailwind */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header scroll state */
.header-scrolled {
    box-shadow: 0 1px 20px rgba(46, 55, 59, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f7f7;
}
::-webkit-scrollbar-thumb {
    background: #c4cdcf;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9eabaf;
}

/* Selection color */
::selection {
    background: #ffd4c5;
    color: #4d5d62;
}

/* Subtle image hover */
img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Mobile menu animation */
#bar1.active {
    transform: translateY(3.5px) rotate(45deg);
}
#bar2.active {
    opacity: 0;
    transform: scaleX(0);
}
#bar3.active {
    transform: translateY(-3.5px) rotate(-45deg);
    width: 1.5rem;
}

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

/* Print styles */
@media print {
    header, footer, .reveal { display: none; }
    body { color: #1a1a1a; background: white; }
    a { color: #f7521c; }
}
