/* Base styles and custom utilities */

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

/* Ensure all links are underline-free by default */
a {
    text-decoration: none;
}

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

/* Selection color */
::selection {
    background-color: #99f6e4;
    color: #042f2e;
}

/* Scroll reveal base - visible by default for progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animate {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 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;
    }
}

/* Subtle hover lift for cards */
.group:hover .group-hover\:translate-y-\[-4px\] {
    transform: translateY(-4px);
}

/* Print styles */
@media print {
    nav, #mobileMenu, button, .scroll-reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
