/* Perscriobo — egna stilar utöver Tailwind */

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

/* Scroll-reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky navbar elevation when scrolled */
#navbar.is-scrolled nav {
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.18);
}
.dark #navbar.is-scrolled nav {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Subtle gradient text fix for Safari */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Smoother focus states */
:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 6px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}
