/* Base & Scroll Behavior */
html { scroll-behavior: smooth; }

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

/* Scroll Animations — progressive enhancement, works without JS */
.scroll-anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-anim {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .scroll-anim.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f7f7f8; }
::-webkit-scrollbar-thumb { background: #d4d4de; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a9a9b8; }

/* Selection */
::selection { background: #ffd0bf; color: #2a2a32; }

/* Mobile menu link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6B4A;
    transition: width 0.2s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

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

/* Form focus ring animation */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.15);
}
