/* ===== Base ===== */
html {
    scroll-behavior: smooth;
}

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

/* ===== Navbar Scroll Effect ===== */
#navbar.scrolled {
    background: rgba(19, 78, 74, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#navbar:not(.scrolled) {
    background: linear-gradient(to bottom, rgba(19, 78, 74, 0.35), transparent);
}

/* ===== Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: #0D9488;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0F766E;
}

/* ===== Selection ===== */
::selection {
    background: #0F766E;
    color: #fff;
}

/* ===== Smooth image rendering ===== */
img {
    -webkit-user-drag: none;
    user-select: none;
}
