/* Custom styles beyond Tailwind */
html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: 'cv01', 'cv02';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle line decorations */
.section-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, theme('colors.amber.400'), transparent);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: theme('colors.plum.50');
}
::-webkit-scrollbar-thumb {
    background: theme('colors.plum.200');
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: theme('colors.plum.300');
}

/* Selection color */
::selection {
    background: theme('colors.amber.200');
    color: theme('colors.plum.950');
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu item hover */
#menu .border-plum-100:hover {
    border-color: theme('colors.amber.300');
    transition: border-color 0.3s ease;
}

/* Image hover zoom */
img {
    transition: transform 0.6s ease;
}

/* Smooth focus for accessibility */
*:focus-visible {
    outline: 2px solid theme('colors.amber.400');
    outline-offset: 2px;
}

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