/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Selection color */
::selection {
    background-color: rgba(16, 185, 129, 0.3);
    color: #FFF8E7;
}

/* Custom focus styles */
*:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* Reveal animation - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* No-reduce-motion fallback: always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar glass effect */
.navbar-scrolled {
    background-color: rgba(15, 26, 20, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(42, 63, 50, 0.6);
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Smooth hover for cards */
.reveal {
    will-change: transform, opacity;
}

/* Image loading placeholder */
img {
    background-color: #1A2B22;
}

/* Subtle gradient border effect on focus */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 1px #10B981;
}
