/* Base styles and custom utilities */
:root {
    --color-teal-50: #f0fdfa;
    --color-teal-600: #0d9488;
    --color-teal-700: #0f766e;
    --color-slate-900: #0f172a;
}

/* Ensure smooth rendering */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Scroll reveal base — content is VISIBLE by default */
/* JS adds .is-revealed when elements enter viewport */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Only animate for users who prefer motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal.is-revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered delays for grid items */
    .reveal-delay-100 { transition-delay: 100ms; }
    .reveal-delay-200 { transition-delay: 200ms; }
    .reveal-delay-300 { transition-delay: 300ms; }
    .reveal-delay-400 { transition-delay: 400ms; }
}

/* Image lazy-load fade-in */
img {
    opacity: 1;
}

/* Selection color */
::selection {
    background-color: #0d9488;
    color: white;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Print styles */
@media print {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    #navbar {
        position: static;
    }
}
